Automobile direct connection communication method and terminal device

By establishing a direct communication connection between the user terminal and the vehicle to be connected, the problems of unstable communication quality and high cost in the existing technology are solved, and more efficient and secure communication is achieved.

CN116156451BActive Publication Date: 2026-04-17GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU AUTOMOBILE GROUP CO LTD
Filing Date
2021-11-22
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

The existing communication between car users and vehicles to be connected relies on cloud forwarding, resulting in unstable communication quality and high costs.

Method used

Through collaborative operations between the user terminal, the cloud, and the vehicle to be connected, a direct communication key and a random number are generated and verified to establish a direct communication connection between the user terminal and the vehicle to be connected, avoiding cloud forwarding.

Benefits of technology

It improves communication stability and efficiency, and reduces communication latency and deployment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156451B_ABST
    Figure CN116156451B_ABST
Patent Text Reader

Abstract

This invention discloses a vehicle-to-everything (V2X) communication method and terminal device. The method includes the following steps performed by the user terminal: the user terminal sends a first connection request to the cloud; the cloud responds to the first connection request and sends a second connection request to the vehicle to be connected; the vehicle to be connected responds to the second connection request and sends a target feedback message to the cloud; the cloud receives the target feedback message and forwards it to the user terminal; the user terminal sends the target feedback message to the vehicle to be connected through the direct connection network port; the vehicle to be connected performs a direct connection communication verification, and upon successful verification, a direct connection communication connection is established between the user terminal and the vehicle to be connected. This method can ensure the security of the direct connection communication between the user terminal and the vehicle to be connected, effectively shorten communication latency, improve communication efficiency, and help save costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automotive control technology, and in particular to a direct communication method and terminal device for automobiles. Background Technology

[0002] Some autonomous driving functions in current cars require user supervision, meaning the user needs to operate specific function buttons on a user terminal to control the vehicle. For example, when a user presses a specific function button, the terminal continuously sends a heartbeat data packet corresponding to that function. Once the connected vehicle receives the heartbeat data packet, it executes the specific function. When the user releases the specific function button, the heartbeat data packet transmission stops. If the connected vehicle does not receive the heartbeat data packet, it stops executing the specific function, thus achieving the effect of user-supervised control.

[0003] Currently, communication between the user terminal and the vehicle to be connected primarily relies on cloud forwarding. Both the user terminal and the vehicle establish connections with the cloud, the user terminal sends target data packets to the cloud, and the cloud forwards these packets to the vehicle so it can perform corresponding control operations. These target data packets include, but are not limited to, heartbeat data packets. This heavy dependence on the cloud and the long network links involved in data transmission lead to numerous instabilities and inconsistent communication quality. Furthermore, since both the user terminal and the vehicle are located across the country, deploying data centers nationwide and implementing intelligent routing solutions to reduce latency significantly increases costs. Summary of the Invention

[0004] This invention provides a vehicle direct communication method and terminal device to solve the problems of unstable communication quality and high cost in existing communication between user terminals and vehicles to be connected via cloud forwarding.

[0005] This invention provides a vehicle direct communication method, comprising:

[0006] The user sends a first connection request to the cloud, the first connection request including user information and vehicle information to be connected;

[0007] The cloud responds to the first connection request and sends a second connection request to the vehicle to be connected. The second connection request includes the user terminal information and the direct connection communication key.

[0008] The vehicle to be connected responds to the second connection request and sends a target feedback message to the cloud. The target feedback message includes the direct connection communication key, the direct connection network port, and the direct connection random number.

[0009] The cloud receives the target feedback message and forwards it to the user terminal.

[0010] According to the target feedback message, the user terminal sends an authentication random number to the vehicle to be connected through the direct connection network port. The authentication random number is a value formed by the user terminal encrypting the direct connection random number using the direct connection communication key.

[0011] The vehicle to be connected uses the direct communication key and the direct communication random number to perform direct communication verification on the authentication random number. When the direct communication verification is successful, a direct communication connection is established between the user terminal and the vehicle to be connected.

[0012] This invention provides a vehicle direct communication method, comprising:

[0013] The user terminal sends a first connection request to the cloud, the first connection request including user terminal information and vehicle information to be connected, so that the cloud responds to the first connection request and sends a second connection request to the vehicle to be connected, the second connection request including the user terminal information and a direct connection communication key;

[0014] The user terminal receives a target feedback message forwarded by the cloud from the vehicle waiting to be connected, which is formed by the response of the second connection request. The target feedback message includes the direct connection communication key, the direct connection network port, and the direct connection random number.

[0015] The user terminal uses the direct communication key to encrypt the direct connection random number to form an authentication random number. The authentication random number is then sent to the vehicle to be connected through the direct connection network port. The vehicle to be connected uses the direct communication key and the direct connection random number to perform direct communication verification on the authentication random number. When the direct communication verification is successful, a direct communication connection is established between the user terminal and the vehicle to be connected.

[0016] This invention provides a vehicle direct communication method, comprising:

[0017] The cloud receives a first connection request sent by the user terminal, the first connection request including user terminal information and vehicle information to be connected;

[0018] The cloud responds to the first connection request and sends a second connection request to the vehicle to be connected. The second connection request includes the user terminal information and the direct connection communication key.

[0019] The cloud receives a target feedback message generated by the vehicle waiting to be connected in response to the second connection request. The target feedback message includes the direct connection communication key, the direct connection network port, and the direct connection random number.

[0020] The cloud forwards the target feedback message to the user terminal, so that the user terminal uses the direct connection communication key to encrypt the direct connection random number to form an authentication random number. The authentication random number is then sent to the vehicle to be connected through the direct connection network port. The vehicle to be connected uses the direct connection communication key and the direct connection random number to perform direct connection communication verification of the authentication random number. When the direct connection communication verification is successful, a direct connection communication connection is established between the user terminal and the vehicle to be connected.

[0021] This invention provides a vehicle direct communication method, comprising:

[0022] The vehicle to be connected receives a second connection request formed by the cloud response to the user's first connection request. The second connection request includes user information and a direct connection communication key.

[0023] The vehicle to be connected responds to the second connection request and sends a target feedback message to the cloud so that the cloud forwards the target feedback message to the user terminal. The target feedback message includes the direct connection communication key, the direct connection network port and the direct connection random number.

[0024] The vehicle to be connected receives an authentication random number sent by the user terminal through the direct connection network port. The authentication random number is a value formed by the user terminal encrypting the direct connection random number using the direct connection communication key.

[0025] The vehicle to be connected uses the direct communication key and the direct communication random number to perform direct communication verification on the authentication random number. When the direct communication verification is successful, a direct communication connection is established between the user terminal and the vehicle to be connected.

[0026] Preferably, after establishing a direct communication connection between the user terminal and the vehicle to be connected, the vehicle direct communication method further includes:

[0027] The user terminal receives the target control command and generates the current command sequence number corresponding to the target control command.

[0028] The user terminal generates a target anti-retransmission code based on the direct connection random number and the current instruction sequence number;

[0029] The user terminal generates a target data packet based on the target control command and the target anti-retransmission code;

[0030] The user terminal sends the target data packet to the vehicle to be connected through the direct network port, so that the vehicle to be connected can perform a retransmission verification based on the target anti-retransmission code, and execute the target control command when the retransmission verification passes.

[0031] Preferably, the cloud responds to the first connection request by sending a second connection request to the vehicle to be connected, including:

[0032] The cloud queries the cloud database based on the information of the vehicles to be connected to obtain the direct connection user information corresponding to the information of the vehicles to be connected;

[0033] When the cloud platform matches the user terminal information with the direct connection user information, it determines that the direct connection permission authentication is successful, generates a direct connection communication key, obtains a second connection request based on the direct connection communication key, and sends the second connection request to the vehicle to be connected.

[0034] Preferably, the vehicle to be connected responds to the second connection request by sending a target feedback message to the cloud, including:

[0035] The vehicle to be connected creates a direct network port for direct communication between the user terminal and the vehicle to be connected based on the user terminal information.

[0036] Generate direct connection random numbers for vehicles to be connected;

[0037] The vehicle to be connected generates a target feedback message based on the direct connection communication key, the direct connection network port, and the direct connection random number, and sends the target feedback message to the cloud.

[0038] Preferably, the vehicle to be connected uses the direct connection communication key and the direct connection random number to perform direct connection communication verification on the authentication random number, including:

[0039] The vehicle to be connected uses the direct connection communication key to decrypt the authentication random number to obtain a decrypted random number; if the decrypted random number is the same as the direct connection random number, the direct connection communication verification is successful; if the decrypted random number is different from the direct connection random number, the direct connection communication verification fails.

[0040] or,

[0041] The vehicle to be connected uses the direct connection communication key to encrypt the direct connection random number to obtain an encrypted random number; if the encrypted random number is consistent with the authentication random number, the direct connection communication verification is successful; if the encrypted random number is inconsistent with the authentication random number, the direct connection communication verification fails.

[0042] Preferably, after establishing a direct communication connection between the user terminal and the vehicle to be connected, the vehicle direct communication method further includes:

[0043] The vehicle to be connected receives the target data packet sent by the user terminal through the direct connection network port, parses the target data packet, and obtains the target control command and the target anti-repeating code. The target anti-repeating code is an encoding formed by the user terminal based on the current command sequence number corresponding to the target control command and the direct connection random number.

[0044] The vehicle to be connected performs a retransmission verification based on the target anti-retransmission code and obtains the retransmission verification result;

[0045] When the connected vehicle passes the re-verification, it executes the target control command.

[0046] This invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-described vehicle direct communication method. The terminal device can be a user terminal, a cloud, or a vehicle to be connected.

[0047] The aforementioned vehicle-to-everything (V2X) communication method and terminal equipment, before the user terminal obtains the direct network port created by the vehicle to be connected, the cloud responds to the first connection request triggered by the user terminal, forming a second connection request, and forwards the target feedback message formed by the vehicle to be connected responding to the second connection request, thereby ensuring the reliability of communication between the user terminal, the cloud, and the vehicle to be connected. After the user terminal obtains the direct network port created by the vehicle to be connected, the user terminal can send an authentication random number through the direct network port. The vehicle to be connected verifies the authentication random number for direct communication. When the direct communication verification is successful, a direct communication connection is established between the user terminal and the vehicle to be connected, ensuring the security of the established direct communication connection between the user terminal and the vehicle to be connected. This eliminates the need for cloud forwarding between the user terminal and the vehicle to be connected, effectively shortening communication latency, improving communication efficiency, and reducing the need for deploying numerous cloud data centers, thus saving costs. Since the direct communication key is the key generated by the cloud in response to the first connection request, and the direct connection random number is the random number generated by the vehicle to be connected in response to the second connection request, the authentication random number generated by encrypting the direct connection random number using the direct communication key has a high degree of randomness, ensuring the reliability of the subsequent use of the authentication random number for direct communication tokens, thereby ensuring the security of the direct communication connection established between the user terminal and the vehicle to be connected. Attached Figure Description

[0048] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0049] Figure 1 This is a flowchart of a vehicle direct communication method according to an embodiment of the present invention;

[0050] Figure 2 This is another flowchart of a vehicle direct communication method according to one embodiment of the present invention;

[0051] Figure 3 This is another flowchart of a vehicle direct communication method according to one embodiment of the present invention;

[0052] Figure 4 This is another flowchart of a vehicle direct communication method according to one embodiment of the present invention;

[0053] Figure 5 This is another flowchart of a vehicle direct communication method according to one embodiment of the present invention;

[0054] Figure 6 This is another flowchart of a vehicle direct communication method according to one embodiment of the present invention;

[0055] Figure 7 This is another flowchart of a vehicle direct communication method according to one embodiment of the present invention;

[0056] Figure 8 This is another flowchart of a vehicle direct communication method according to an embodiment of the present invention. Detailed Implementation

[0057] 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, not all, of the embodiments of the present invention. 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.

[0058] This invention provides a vehicle direct communication method applied in a vehicle direct communication control system. The control system includes a user terminal, a vehicle to be connected, and a cloud platform. Both the user terminal and the vehicle to be connected are communicatively connected to the cloud. The user terminal is a terminal loaded with an application program (APP) for controlling the vehicle to perform specific functions. The vehicle to be connected is a terminal installed in the vehicle for controlling its operation; specifically, it can be an on-board controller. The cloud platform is a cloud server used for communication with the user terminal and the vehicle to be connected.

[0059] In one embodiment, such as Figure 1 As shown, a vehicle direct communication method is provided, which is applied to a vehicle direct control system, and specifically includes the following steps:

[0060] S101: The user terminal sends the first connection request to the cloud. The first connection request includes user terminal information and information of the vehicle to be connected.

[0061] S102: The cloud responds to the first connection request and sends a second connection request to the vehicle to be connected. The second connection request includes user terminal information and direct connection communication key.

[0062] S103: The vehicle to be connected responds to the second connection request and sends a target feedback message to the cloud. The target feedback message includes the direct connection communication key, the direct connection network port, and the direct connection random number.

[0063] S104: The cloud receives the target feedback message and forwards the target feedback message to the user terminal;

[0064] S105: Based on the target feedback message, the user terminal sends an authentication random number to the vehicle to be connected through the direct network port. The authentication random number is a value formed by the user terminal encrypting the direct connection random number using the direct connection communication key.

[0065] S106: The vehicle to be connected uses a direct communication key and a direct communication random number to perform direct communication verification on the authentication random number. When the direct communication verification is successful, a direct communication connection is established between the user terminal and the vehicle to be connected.

[0066] The first connection request is used to trigger a direct communication connection between the user terminal and the vehicle to be connected. The first connection request includes user terminal information and vehicle information. User terminal information reflects the information of the user terminal requiring direct connection, including but not limited to the user identifier, login password, and user terminal IP. The user identifier is a unique identifier for a user, specifically the user account used when logging into the user terminal. The login password is the password used by the user to log into the system. The user terminal IP is the IP address corresponding to the user terminal, i.e., the IP address used by the user terminal to communicate with the cloud or the vehicle to be connected. Vehicle information reflects the information of the vehicle to be directly connected, including but not limited to the vehicle identifier and vehicle IP. The vehicle identifier is a unique identifier for a vehicle, specifically the identifier of the vehicle to be connected that needs to be controlled through the user terminal. The vehicle IP is the IP address corresponding to the vehicle to be connected, i.e., the IP address used by the vehicle to communicate with the cloud and the user terminal.

[0067] As an example, in step S101, after receiving user input of user terminal information and vehicle information to be connected, a first connection request can be generated and sent to the cloud. For instance, when a user logs into the vehicle direct connection control system through a user terminal, the user account used to log in can be identified as the user terminal information; when the user terminal receives the user input of vehicle information to be connected and clicks the direct connection button, it can generate a first connection request based on the user terminal information and vehicle information saved when the user logged into the system, and send the first connection request to the cloud.

[0068] The direct communication key is the key generated by the cloud in response to the first connection request, specifically the key used by the user terminal and the vehicle to be connected for this direct communication. The second connection request is the request generated by the cloud in response to the first connection request sent by the user terminal, specifically the request sent by the cloud to the vehicle to be connected, requesting the vehicle to establish a direct communication connection with the user terminal.

[0069] As an example, in step S102, the cloud can receive a first connection request sent by the user terminal, parse and obtain the user terminal information and the vehicle information to be connected in the first connection request, evaluate whether the user terminal can control the vehicle to be connected based on the user terminal information and the vehicle information to be connected, generate a direct connection communication key when the evaluation determines that the user terminal can control the vehicle to be connected, form a second connection request based on the user terminal information and the direct connection communication key, and send the second connection request to the vehicle to be connected.

[0070] In one example, the cloud can perform direct connection authorization authentication based on the user client information and the vehicle information to be connected parsed from the first connection request. This verifies whether the user client information is bound to the vehicle information, assessing whether the user client can directly control the vehicle, thus ensuring the security of user control of the vehicle through the user client. In this example, the cloud performs direct connection authorization authentication based on the user client information and the vehicle information. When the authentication is successful, a direct connection communication key is generated. Based on this key, a second connection request is formed and sent to the vehicle.

[0071] Furthermore, before performing direct connection authorization authentication based on user information and vehicle information, the cloud also needs to perform identity verification based on the vehicle information. Only when the identity verification result is successful will the direct connection authorization authentication process based on user information and vehicle information be executed. In this example, identity verification based on vehicle information specifically includes: obtaining the user identifier and login password from the user identity information; querying the cloud database based on the user identifier to obtain the pre-stored registration login password that matches the user identifier; if the entered login password matches the registered login password, the identity verification result is successful; otherwise, if the entered login password does not match the registered login password, the identity verification result is unsuccessful.

[0072] In this example, a direct connection communication key is only generated after the direct connection permission authentication between the user terminal information and the vehicle information to be connected is passed. This direct connection communication key is only used in the direct connection communication process between the user terminal corresponding to the user terminal information and the vehicle information to be connected, which makes the direct connection communication key time-sensitive and helps to ensure the security of the direct connection communication between the user terminal and the vehicle to be connected.

[0073] The target feedback message refers to the message returned by the vehicle to be connected. In this example, the target feedback message includes the direct connection communication key, the direct connection network port, and the direct connection random number. The direct connection network port is the port created by the vehicle to be connected in response to the second connection request for direct communication with the user terminal. Specifically, it is the network port that allows the user terminal to communicate directly with the vehicle to be connected; this network port is generally a TCP / UDP port. Information related to the direct connection network port includes, but is not limited to, the port number and port IP address. The direct connection random number is a random number generated by the vehicle to be connected in response to the second connection request.

[0074] As an example, in step S103, the vehicle to be connected can receive a second connection request sent by the cloud and can respond to the second connection request to form a target feedback message. This target feedback message can be understood as the message that the vehicle to be connected needs to send back to the user terminal, specifically including the direct connection communication key, the direct connection network port, and the direct connection random number.

[0075] In this example, the second connection request received by the vehicle to be connected includes user terminal information and a direct connection communication key. Based on the user terminal information, a direct connection network port can be created between the user terminal and the vehicle to be connected, providing the technical foundation for direct communication between the user terminal and the vehicle. Furthermore, the vehicle to be connected executes a random number generation program to generate a target random number, which is then used to perform security verification on the direct connection network port created between the user terminal and the vehicle. Finally, based on the direct connection communication key, the direct connection network port, and the direct connection random number, the vehicle to be connected generates a target feedback message and sends it to the cloud.

[0076] In this example, the vehicle to be connected can store the direct connection random number, direct connection communication key, and user terminal information in the vehicle-side database. This allows the direct connection communication key to be used to perform security verification on the authentication random number or other related information sent by the user terminal, thereby ensuring the security of the direct connection communication between the user terminal and the vehicle to be connected.

[0077] As an example, in step S104, the cloud receives the target feedback message and forwards it to the user terminal. Understandably, when no direct communication connection is established between the user terminal and the vehicle to be connected, information between the vehicle and the user terminal still needs to be forwarded through the cloud. Therefore, the cloud can receive the target feedback message sent by the vehicle to be connected and forward it to the user terminal to ensure the reliability of communication between the user terminal, the cloud, and the vehicle to be connected.

[0078] The authentication random number is a value generated by encrypting the direct connection random number using the direct connection communication key on the user end.

[0079] As an example, in step S105, to ensure the security of direct communication between the user terminal and the vehicle to be connected, after receiving the target feedback message, the user terminal can encrypt the direct connection random number using the direct connection communication key to obtain the authentication random number. Then, the authentication random number is sent to the vehicle to be connected through the direct connection network port, so that the vehicle to be connected can verify the authentication random number using the direct connection communication key and the direct connection random number, thus ensuring the security of the direct communication between the user terminal and the vehicle to be connected. In this example, the system's default target encryption algorithm and direct connection communication key are used to encrypt the direct connection random number to generate the authentication random number corresponding to this direct communication between the user terminal and the vehicle to be connected. The target encryption algorithm is the encryption algorithm used by the user terminal during the direct communication verification process.

[0080] Understandably, since the direct communication key is a randomly generated key in the cloud, and the direct connection random number is a randomly generated random number from the vehicle to be connected, both are data formed only for this direct communication between the user and the vehicle to be connected, and have a high degree of randomness. The authentication random number formed by encrypting the direct connection random number with the direct communication key is also only for the specific scenario of verifying the direct communication between the user and the vehicle to be connected, making the authentication random number time-sensitive and helping to ensure the security of the direct communication between the user and the vehicle to be connected.

[0081] As an example, in step S106, the vehicle to be connected can receive the authentication random number sent by the user terminal through the direct connection network port. The authentication random number is verified by direct connection communication using the direct connection communication key and the direct connection random number. When the direct connection communication verification is successful, the direct connection network port is recognized as a secure channel. At this time, a direct connection communication connection is established between the user terminal and the vehicle to be connected, so that the user terminal can directly control the vehicle to be connected by establishing a direct connection between the user terminal and the vehicle to be connected.

[0082] Furthermore, the vehicle to be connected can use a pre-stored direct connection random number and direct connection communication key to perform direct connection communication verification on the received authentication random number. When the direct connection communication verification is successful, after establishing a direct connection communication connection between the user terminal and the vehicle to be connected, the direct connection verification result can also be sent to the user terminal through the direct connection network port to inform the user terminal that a direct connection communication connection has been established between the two parties.

[0083] In this example, after receiving the authentication random number, the vehicle to be connected can use the direct communication key and the direct communication random number to perform direct communication verification on the authentication random number. That is, it verifies whether the authentication random number is a random number formed based on the direct communication key and the direct communication random number. If it is verified that the authentication random number is a random number formed based on the direct communication key and the direct communication random number, the direct communication verification passes; if it is verified that the authentication random number is not a random number formed based on the direct communication key and the direct communication random number, the direct communication verification fails.

[0084] Understandably, after establishing a direct communication connection between the user terminal and the vehicle to be connected, the user terminal can generate a target data packet and send it to the vehicle through the direct network port. This allows the user terminal to control the vehicle to execute the direct control operation corresponding to the target data packet, thereby achieving the goal of securely controlling the vehicle to perform a specific function through the user terminal. The target data packet is the data packet sent by the user terminal to the vehicle to control it to perform a specific function.

[0085] In the vehicle-to-everything (V2X) communication method provided in this embodiment, before the user terminal obtains the V2X network port created by the vehicle to be connected, the cloud responds to the first connection request triggered by the user terminal, forming a second connection request, and forwards the target feedback message formed by the vehicle to be connected responding to the second connection request, thereby ensuring the reliability of communication between the user terminal, the cloud, and the vehicle to be connected. After the user terminal obtains the V2X network port created by the vehicle to be connected, the user terminal can send an authentication random number through the V2X network port. The vehicle to be connected verifies the authentication random number for V2X communication. When the V2X communication verification is successful, a V2X communication connection is established between the user terminal and the vehicle to be connected, ensuring the security of the V2X communication connection established between the user terminal and the vehicle to be connected. This method allows communication between the user terminal and the vehicle to be connected to bypass the cloud, effectively shortening communication latency, improving communication efficiency, and eliminating the need for deploying multiple cloud data centers, thus saving costs. Since the direct communication key is the key generated by the cloud in response to the first connection request, and the direct connection random number is the random number generated by the vehicle to be connected in response to the second connection request, the direct connection random number is encrypted using the direct communication key. The resulting authentication random number has a high degree of randomness, which ensures the reliability of the subsequent use of the authentication random number for direct communication tokens, thereby ensuring the security of the direct communication connection established between the user and the vehicle to be connected.

[0086] In one embodiment, such as Figure 2 As shown, a vehicle direct communication method is provided. This vehicle direct communication method is applied to the user end of a vehicle direct control system and includes the following steps performed by the user end:

[0087] S201: The user terminal sends a first connection request to the cloud. The first connection request includes user terminal information and vehicle information to be connected, so that the cloud responds to the first connection request and sends a second connection request to the vehicle to be connected. The second connection request includes user terminal information and direct connection communication key.

[0088] S202: The user terminal receives the target feedback message formed by the cloud forwarding the response of the vehicle to be connected to the second connection request. The target feedback message includes the direct connection communication key, the direct connection network port and the direct connection random number.

[0089] S203: The user terminal encrypts the direct connection random number using the direct connection communication key to form an authentication random number. The authentication random number is then sent to the vehicle to be connected through the direct connection network port. This allows the vehicle to verify the authentication random number using the direct connection communication key and the direct connection random number. When the direct connection verification is successful, a direct connection is established between the user terminal and the vehicle to be connected.

[0090] As an example, in step S201, after receiving user input of user terminal information and vehicle information to be connected, the user terminal can trigger the generation of a first connection request and send the first connection request to the cloud, so that the cloud responds to the first connection request and sends a second connection request to the vehicle to be connected. For example, when a user logs into the vehicle direct connection control system through the user terminal, the user account used to log in to the system can be identified as the user terminal information; when the user receives the vehicle information to be connected input by the user and clicks the direct connection button, the user terminal can generate a first connection request based on the user terminal information and vehicle information saved when the user logs into the system, and send the first connection request to the cloud, so that the cloud responds to the first connection request and sends a second connection request to the vehicle to be connected.

[0091] As an example, in step S202, after sending the first connection request to the cloud, the user terminal can receive a target feedback message forwarded by the cloud from the vehicle waiting to be connected, generated by the vehicle's response to the second connection request. Understandably, since the target feedback message forwarded by the cloud includes a direct connection communication key, a direct connection network port, and a direct connection random number, the user terminal can only obtain the target feedback message forwarded by the cloud from the vehicle waiting to be connected, after the cloud responds to the first connection request sent by the user terminal, sends a second connection request to the vehicle waiting to be connected, and the vehicle waiting to be connected responds to the second connection request sent by the cloud. In this example, since the target feedback message includes a direct connection communication key generated by the cloud in response to the first connection request and a direct connection random number generated by the vehicle waiting to be connected in response to the second connection request, the direct connection communication key and the direct connection random number have high randomness. This allows for subsequent verification of the direct connection communication using the direct connection communication key, the direct connection network port, and the direct connection random number, ensuring the security of the direct connection communication between the user terminal and the vehicle waiting to be connected.

[0092] As an example, in step S203, to ensure the security of direct communication between the user terminal and the vehicle to be connected, after receiving the target feedback message, the user terminal can encrypt the direct connection random number using the direct connection communication key to obtain an authentication random number. This authentication random number is then sent to the vehicle to be connected via the direct connection network port. The vehicle to be connected then verifies the authentication random number using the direct connection communication key and the direct connection random number. Upon successful verification, a direct communication connection is established between the user terminal and the vehicle to be connected, thus ensuring the security of the direct communication between them. Understandably, since the direct connection communication key is the key generated by the cloud in response to the first connection request, and the direct connection random number is the random number generated by the vehicle to be connected in response to the second connection request, encrypting the direct connection random number using the direct connection communication key results in a highly random authentication random number. This ensures the reliability of subsequent direct communication tokens using this authentication random number, thereby guaranteeing the security of the direct communication connection established between the user terminal and the vehicle to be connected.

[0093] In this example, after establishing a direct communication connection between the user terminal and the vehicle to be connected, the user terminal can generate a target data packet and send it to the vehicle through the direct network port. This allows the user terminal to control the vehicle to execute the direct control operation corresponding to the target data packet, thereby achieving the goal of securely controlling the vehicle to perform a specific function through the user terminal. The target data packet is the data packet sent by the user terminal to the vehicle to control it to perform a specific function.

[0094] The vehicle-to-everything (V2X) communication method provided in this invention involves a user terminal sending a first connection request to the cloud, carrying user terminal information and information about the vehicle to be connected. The cloud responds to the first connection request by sending a second connection request to the vehicle to be connected and forwards the target feedback message generated by the vehicle's response to the second connection request back to the user terminal. This ensures the reliability of communication between the user terminal, the cloud, and the vehicle to be connected before establishing a direct connection network port between them. After the user terminal obtains the direct connection network port created by the vehicle to be connected, it can send an authentication random number through the port. The vehicle to be connected verifies the authentication random number for direct connection communication. Only when the direct connection communication verification is successful is a direct connection established between the user terminal and the vehicle to be connected. This ensures the security of the established direct connection between the user terminal and the vehicle to be connected. Communication between the user terminal and the vehicle to be connected does not need to be forwarded through the cloud, effectively reducing communication latency and improving communication efficiency. Furthermore, it eliminates the need for deploying numerous cloud data centers, thus saving costs. Since the direct communication key is the key generated by the cloud in response to the first connection request, and the direct connection random number is the random number generated by the vehicle to be connected in response to the second connection request, the direct connection random number is encrypted using the direct communication key. The resulting authentication random number has a high degree of randomness, which ensures the reliability of the subsequent use of the authentication random number for direct communication tokens, thereby ensuring the security of the direct communication connection established between the user and the vehicle to be connected.

[0095] In one embodiment, such as Figure 3 As shown, a vehicle direct communication method is provided, which is applied on the cloud of the vehicle direct control system, including the following steps performed on the cloud:

[0096] S301: The cloud receives the first connection request sent by the user terminal. The first connection request includes user terminal information and vehicle information to be connected.

[0097] S302: The cloud responds to the first connection request and sends a second connection request to the vehicle to be connected. The second connection request includes user terminal information and direct connection communication key.

[0098] S303: The cloud receives the target feedback message formed by the vehicle waiting to be connected responding to the second connection request. The target feedback message includes the direct connection communication key, the direct connection network port, and the direct connection random number.

[0099] S304: The cloud forwards the target feedback message to the user terminal, so that the user terminal uses the direct connection communication key to encrypt the direct connection random number to form an authentication random number. The authentication random number is then sent to the vehicle to be connected through the direct connection network port. The vehicle to be connected uses the direct connection communication key and the direct connection random number to perform direct connection communication verification of the authentication random number. When the direct connection communication verification is successful, a direct connection communication connection is established between the user terminal and the vehicle to be connected.

[0100] As an example, in step S301, the cloud can receive a first connection request sent by the user terminal through the network, parse the first connection request, and obtain user terminal information and vehicle information to be connected, so as to evaluate whether the user terminal can control the vehicle to be connected based on the user terminal information and vehicle information to be connected.

[0101] As an example, in step S302, the cloud can receive a first connection request sent by the user terminal, parse and obtain the user terminal information and the vehicle information to be connected from the first connection request, assess whether the user terminal can control the vehicle to be connected based on the user terminal information and the vehicle information to be connected, and if the assessment determines that the user terminal can control the vehicle to be connected, a direct connection communication key can be generated, and a second connection request can be formed based on the direct connection communication key and sent to the vehicle to be connected. The second connection request includes user terminal information and a direct connection communication key, which is a key generated by the cloud in response to the first connection request and has randomness.

[0102] As an example, in step S303, after sending the second connection request to the vehicle to be connected, the cloud can receive a target feedback message generated by the vehicle's response to the second connection request. In this example, the target feedback message includes a direct connection communication key, a direct connection network port, and a direct connection random number. The direct connection network port is the port created by the vehicle in response to the second connection request for direct communication with the user terminal, providing the technical basis for direct communication between the user terminal and the vehicle to be connected. The direct connection random number is a random number generated by the vehicle in response to the second connection request and has randomness.

[0103] As an example, in step S304, after receiving the target feedback message, since no direct communication connection has been established between the user terminal and the vehicle to be connected, the information between the vehicle to be connected and the user terminal still needs to be forwarded through the cloud. Therefore, the cloud needs to forward the target feedback message to the user terminal so that the user terminal can encrypt the direct connection random number using the direct connection communication key to form an authentication random number, and send the authentication random number to the vehicle to be connected through the direct connection network port. The vehicle to be connected then uses the direct connection communication key and the direct connection random number to perform direct connection communication verification of the authentication random number. When the direct connection communication verification is successful, a direct communication connection between the user terminal and the vehicle to be connected is established. Since the authentication random number is a value that the user terminal encrypts using the direct connection communication key, it has a high degree of randomness. Therefore, the vehicle to be connected using the direct connection communication key and the direct connection random number to perform direct connection communication verification of the authentication random number can ensure the reliability of the direct communication token using the authentication random number, thereby ensuring the security of the direct communication connection established between the user terminal and the vehicle to be connected.

[0104] The vehicle-to-everything (V2X) communication method provided in this invention addresses the reliability of communication between the user terminal, the cloud, and the vehicle to be connected. Before the direct network port established between the user terminal and the vehicle to be connected is verified, the cloud responds to the first connection request triggered by the user terminal, forming a second connection request. It then forwards the target feedback message generated by the vehicle to be connected in response to the second connection request, ensuring the reliability of communication between the user terminal, the cloud, and the vehicle to be connected. After the cloud sends the target feedback message generated by the vehicle to be connected to the user terminal, the user terminal can send an authentication random number through the direct network port. The vehicle to be connected uses the direct communication key and the direct random number to verify the authentication random number. Only when the direct communication verification is successful is a direct communication connection established between the user terminal and the vehicle to be connected confirmed. This ensures the security of the established direct communication connection between the user terminal and the vehicle to be connected. Communication between the user terminal and the vehicle to be connected does not need to be forwarded through the cloud, effectively shortening communication latency, improving communication efficiency, and eliminating the need for deploying numerous cloud data centers, thus saving costs. Since the direct communication key is the key generated by the cloud in response to the first connection request, and the direct connection random number is the random number generated by the vehicle to be connected in response to the second connection request, the direct connection random number is encrypted using the direct communication key. The resulting authentication random number has a high degree of randomness, which ensures the reliability of the subsequent use of the authentication random number for direct communication tokens, thereby ensuring the security of the direct communication connection established between the user and the vehicle to be connected.

[0105] In one embodiment, such as Figure 4 As shown, a vehicle direct communication method is provided. This method is applied to a vehicle to be connected in a vehicle direct control system and includes the following steps performed by the vehicle to be connected:

[0106] S401: The vehicle to be connected receives a second connection request formed by the cloud's response to the user's first connection request. The second connection request includes user information and a direct connection communication key.

[0107] S402: The vehicle to be connected responds to the second connection request and sends a target feedback message to the cloud so that the cloud forwards the target feedback message to the user terminal. The target feedback message includes the direct connection communication key, the direct connection network port and the direct connection random number.

[0108] S403: The vehicle to be connected receives an authentication random number sent by the user terminal through the direct connection network port. The authentication random number is a value formed by the user terminal encrypting the direct connection random number using the direct connection communication key.

[0109] S404: The vehicle to be connected uses a direct communication key and a direct communication random number to perform direct communication verification on the authentication random number. When the direct communication verification is successful, a direct communication connection is established between the user terminal and the vehicle to be connected.

[0110] As an example, in step S401, the vehicle to be connected can receive a second connection request sent by the cloud. This second connection request is an instruction formed by the cloud in response to the first connection request sent by the vehicle to be connected. In this example, the second connection request is generated by the cloud when it assesses whether the user terminal can control the vehicle to be connected based on the user terminal information and the vehicle information in the first connection request, and determines that the user terminal can control the vehicle to be connected.

[0111] In this example, the second connection request includes client information and a direct connection communication key. The direct connection communication key is the key generated by the cloud in response to the first connection request. Specifically, it is generated by the cloud when performing direct connection authorization authentication based on the client information and the vehicle information to be connected, and the authentication result is successful. Understandably, the vehicle to be connected can determine which client to establish a direct connection network port with based on the client information in the second connection request, and can ensure the security of direct communication with the client through the direct connection network port based on the direct connection communication key.

[0112] As an example, in step S402, the vehicle to be connected can respond to the second connection request forwarded by the cloud to form a target feedback message, and send the target feedback message to the cloud so that the cloud can forward the target feedback message to the user terminal. This target feedback message can be understood as the message that the vehicle to be connected needs to send back to the user terminal, specifically including the direct connection communication key, the direct connection network port, and the direct connection random number. The direct connection network port is the port created by the vehicle to be connected in response to the second connection request for direct communication with the user terminal, providing the technical basis for direct communication between the user terminal and the vehicle to be connected. The direct connection random number is a random number generated by the vehicle to be connected in response to the second connection request, and it has randomness.

[0113] In this example, the second connection request received by the vehicle to be connected includes user terminal information and a direct connection communication key. Based on the user terminal information, a direct connection network port can be created between the user terminal and the vehicle to be connected, providing the technical foundation for direct communication between the user terminal and the vehicle. Furthermore, the vehicle to be connected executes a random number generation program to generate a target random number, which is then used to perform security verification on the direct connection network port created between the user terminal and the vehicle. Finally, based on the direct connection communication key, the direct connection network port, and the direct connection random number, the vehicle to be connected generates a target feedback message and sends it to the cloud.

[0114] In this example, the vehicle to be connected can store the direct connection random number, direct connection communication key and user terminal information in the vehicle-side database. This allows the direct connection communication key to be used to perform security verification on the authentication random number or other relevant information sent by the user terminal corresponding to the user terminal information, thereby ensuring the security of the direct connection communication between the user terminal and the vehicle to be connected.

[0115] As an example, in step S403, the vehicle to be connected sends the target feedback message to the cloud so that after the cloud forwards the target feedback message to the user terminal, it can receive the authentication random number sent by the user terminal through the direct connection network port in the target feedback message. The authentication random number is a value formed by the user terminal encrypting the direct connection random number using the direct connection communication key.

[0116] As an example, in step S404, the vehicle to be connected uses a direct connection random number and a direct connection communication key to perform direct connection communication verification on the authentication random number. Only when the direct connection communication verification is successful is the direct connection network port recognized as a secure channel. At this point, a direct connection communication connection is established between the user terminal and the vehicle to be connected, so that the user terminal can directly control the vehicle to be connected by establishing a direct connection communication connection between the user terminal and the vehicle to be connected. Understandably, the vehicle to be connected can also send the direct connection verification result to the user terminal through the direct connection network port to inform the user terminal that a direct connection communication connection has been established between the two parties.

[0117] In this example, after establishing a direct communication connection between the user terminal and the vehicle to be connected, the vehicle to be connected can receive the target data packet sent by the user terminal through the direct network port, enabling the vehicle to perform direct control operations based on the received target data packet. This allows the vehicle to quickly receive the target data packet sent by the user terminal through the direct network port and perform direct control operations.

[0118] The vehicle-to-everything (V2X) communication method provided in this invention ensures reliable communication between the user terminal, the cloud, and the vehicle before the established direct network port between the user terminal and the vehicle to be connected is verified. Before verification, the vehicle receives a second connection request formed by the cloud's response to the first connection request, and forwards the target feedback message formed by the response to the second connection request to the user terminal via the cloud. After the user terminal obtains the direct network port created by the vehicle, the vehicle can receive an authentication random number sent by the user terminal through the direct network port. The authentication random number and the direct communication key are used to verify the direct communication. Only when the direct communication verification is successful is a direct communication connection established between the user terminal and the vehicle to be connected. This ensures the security of the established direct communication connection between the user terminal and the vehicle. Communication between the user terminal and the vehicle does not need to be forwarded through the cloud, effectively shortening communication latency, improving communication efficiency, and eliminating the need for deploying numerous cloud data centers, thus saving costs. Since the direct communication key is the key generated by the cloud in response to the first connection request, and the direct connection random number is the random number generated by the vehicle to be connected in response to the second connection request, the direct connection random number is encrypted using the direct communication key. The resulting authentication random number has a high degree of randomness, which ensures the reliability of the subsequent use of the authentication random number for direct communication tokens, thereby ensuring the security of the direct communication connection established between the user and the vehicle to be connected.

[0119] In one embodiment, such as Figure 5 As shown, after establishing a direct communication connection between the user terminal and the vehicle to be connected, the vehicle direct communication method also includes the following steps performed by the user terminal:

[0120] S501: The user terminal receives the target control command and generates the current command sequence number corresponding to the target control command;

[0121] S502: The user terminal generates the target anti-retransmission code based on the direct connection random number and the current instruction sequence number;

[0122] S503: The user terminal generates target data packets based on the target control command and the target anti-retransmission code;

[0123] S504: The user terminal sends the target data packet to the vehicle to be connected through the direct network port, so that the vehicle to be connected can perform retransmission verification according to the target anti-retransmission code. When the retransmission verification passes, the target control command is executed.

[0124] The target control command is a control command used to control the connected vehicle to perform a specific function. The current command number refers to the command number in which the user terminal generates the target control command.

[0125] As an example, in step S501, when the direct communication verification is successful, the user terminal can receive the target control command formed by the user's operation of the user terminal, and record the current command sequence number corresponding to the target control command. The current command sequence number is used to reflect which control command is formed after the target control command is built on the direct network port.

[0126] In this example, when the direct communication verification is successful, the user terminal triggers a counter to work. For each target control command generated by the user terminal, the counter generates a current command sequence number. This current command sequence number is formed by adding 1 to the most recent historical command sequence number, so as to know the number of times the user has controlled the vehicle to be connected through the direct connection of the user terminal.

[0127] Among them, the target anti-retransmission code is an encoding used to prevent the target data packet from being sent repeatedly.

[0128] As an example, in step S502, the user terminal can generate a target anti-duplicate code based on the direct connection random number generated by the vehicle to be connected forwarded from the cloud and the current command sequence number. In this example, the target anti-duplicate code can be the sum of the direct connection random number and the current command sequence number. Understandably, using the direct connection random number and the current command sequence number to generate the target anti-duplicate code can ensure the uniqueness of the target data packet carrying the target anti-duplicate code, so as to facilitate subsequent retransmission verification and help ensure the reliability of the vehicle to be connected executing the target control command.

[0129] The target data packet is a data packet sent directly from the user terminal to the vehicle to be connected via a direct network port.

[0130] As an example, in step S503, the user terminal can generate a target data packet based on the target control command and the target anti-retransmission code. The target data packet is a data packet formed by packaging the target control command and the target anti-retransmission code according to a specific data packet generation tool.

[0131] As an example, in step S504, the user terminal can send the target data packet to the vehicle to be connected through the direct network port, so that the vehicle to be connected can perform a retransmission verification based on the target anti-retransmission code. If the retransmission verification passes, the target control command is executed. In this example, the retransmission verification performed by the vehicle to be connected based on the target anti-retransmission code specifically includes: verifying whether the vehicle to be connected received a historical data packet carrying the same target anti-retransmission code before the current system time; if the system has received a historical data packet carrying the same target anti-retransmission code before the current system time, then the retransmission verification result of failure is obtained; if the system has not received a historical data packet carrying the same target anti-retransmission code before the current system time, then the retransmission verification result of success is obtained.

[0132] Understandably, the user terminal can generate a unique target anti-retransmission code based on the direct connection random number and the current instruction sequence number. When the target data packet formed by the target anti-retransmission code and the target control instruction is sent to the vehicle to be connected through the direct connection network port, the vehicle to be connected can perform a retransmission verification based on the target anti-retransmission code. Only when the retransmission verification passes will the target control instruction be executed, so as to avoid repeated execution of the target control instruction and ensure the reliability of the vehicle to be connected in performing direct connection control operations based on the target control instruction.

[0133] In one embodiment, such as Figure 6 As shown, in response to the first connection request, the cloud sends a second connection request to the vehicle to be connected, including:

[0134] S601: The cloud queries the cloud database based on the information of the vehicle to be connected and obtains the direct connection user information corresponding to the information of the vehicle to be connected.

[0135] S602: When the cloud verifies that the user terminal information and the direct connection user information match, it determines that the direct connection permission authentication is successful, generates a direct connection communication key, obtains a second connection request based on the direct connection communication key, and sends the second connection request to the vehicle to be connected.

[0136] Among them, the direct connection user information is the user information that has been pre-authenticated and bound to the vehicle to be connected.

[0137] As an example, in step S601, after receiving the first connection request, parsing the first connection request, and determining the user information and the vehicle information to be connected, the cloud needs to first query the cloud database based on the vehicle information to be connected to obtain all directly connected user information stored in the cloud database that is bound to the vehicle information to be connected. This directly connected user information is a user identifier that has been pre-bound to the vehicle information to be connected through a binding authentication process.

[0138] As an example, in step S602, after obtaining all directly connected user information corresponding to the vehicle information to be connected, the cloud can match the user terminal information with each of the directly connected user information. If the user terminal information matches any directly connected user information, it means that the user terminal information has been pre-bound to the vehicle information through a binding authentication process, indicating that the user corresponding to the user terminal has the authority to control the vehicle to be connected. The direct connection authorization is thus verified, and a direct connection communication key can be generated. Based on the direct connection communication key, a second connection request is obtained and sent to the vehicle to be connected. In this example, only when the user terminal information and the directly connected user information match, and the direct connection authorization is verified, can a direct connection communication key be generated, a second connection request be formed, and a second connection request be sent to the vehicle to be connected, ensuring the security of the user terminal's control over the vehicle to be connected.

[0139] Understandably, after obtaining all directly connected user information corresponding to the vehicle information to be connected, the cloud can match the user terminal information with all directly connected user information one by one. If the user terminal information does not match any of the directly connected user information, it means that the user terminal information is not the user information that has been pre-bound and authenticated to the vehicle information to be connected. This means that the user terminal does not have the authority to control the vehicle to be connected, and the direct connection authorization authentication is deemed to have failed. Therefore, the direct connection communication key cannot be generated, and no second connection request will be sent to the vehicle to be connected, in order to avoid unauthorized users controlling the operation of the vehicle to be connected, thereby ensuring the security of the control of the vehicle to be connected.

[0140] In one embodiment, such as Figure 7 As shown, the vehicle to be connected responds to the second connection request by sending a target feedback message to the cloud, including:

[0141] S701: The vehicle to be connected creates a direct network port for direct communication between the user terminal and the vehicle to be connected based on the user terminal information.

[0142] S702: Generate direct connection random numbers for vehicles to be connected;

[0143] S703: The vehicle to be connected generates a target feedback message based on the direct connection communication key, the direct connection network port, and the direct connection random number, and sends the target feedback message to the cloud.

[0144] Step S702 can be executed before step S701, after step S701, or in parallel with step S701.

[0145] As an example, in step S701, the vehicle to be connected creates a direct network port for direct communication between the user terminal and the vehicle to be connected based on the user terminal information in the second connection request. Specifically, this includes the following steps: (1) The vehicle to be connected extracts the user terminal IP from the user terminal information so that it can subsequently use the user terminal IP and the vehicle to be connected IP to create a direct network product for direct communication between the user terminal and the vehicle to be connected. (2) The vehicle to be connected creates an original network port between the user terminal and the vehicle to be connected based on the user terminal IP and the vehicle to be connected IP. This original network port can be understood as the network port allocated between the user terminal and the vehicle to be connected for network communication by executing the network port application request. This original network port is an unverified network port. (3) The vehicle to be connected listens to the original network port and determines the original network port that is successfully listened to as the direct network port. The system allows the vehicle to listen to the original network port. Only the original network port that is successfully listened to is designated as the direct network port for direct communication between the user and the vehicle. This ensures the reliability of the direct network port created between the user and the vehicle, guaranteeing direct communication between them. In this example, the original network port created by the vehicle is a TCP / UDP port. The vehicle acts as the receiver, opening a socket and listening for communication on the original network port. When a response signal from the user (as the access party) is detected on the original network port, the listening is considered successful, indicating that the user can communicate with the vehicle. Therefore, the original network port that is successfully listened to is designated as the direct network port for direct communication between the user and the vehicle.

[0146] As an example, in step S702, during the process of responding to the second connection request, the vehicle to be connected also needs to execute a random number generation program to generate a target random number so that the direct connection random number can be used to perform security verification on the direct connection network port created by the user terminal and the vehicle to be connected.

[0147] As an example, in step S703, after the vehicle to be connected receives the response to the second connection request and determines the direct connection network port and the direct connection random number, it can use a pre-set message generation template to process the direct connection communication key, direct connection network port and direct connection random number in the second connection request to form a target feedback message. The target feedback message is then sent to the cloud so that the cloud forwards the target feedback message to the user terminal. This allows the user terminal and the vehicle to be connected to complete the direct connection communication verification based on the target feedback message, thereby ensuring the security of establishing the direct connection communication between the user terminal and the vehicle to be connected.

[0148] In one embodiment, the vehicle to be connected uses a direct connection communication key and a direct connection random number to perform direct connection communication verification on the authentication random number, including: the vehicle to be connected uses the direct connection communication key to decrypt the authentication random number to obtain a decrypted random number; if the decrypted random number is consistent with the direct connection random number, the direct connection communication verification passes; if the decrypted random number is inconsistent with the direct connection random number, the direct connection communication verification fails.

[0149] As an example, after receiving the authentication random number sent by the user terminal through the direct connection network port, the vehicle to be connected retrieves the pre-stored direct connection communication key and direct connection random number from the vehicle database, and uses the direct connection communication key and direct connection random number to perform direct connection communication verification of the authentication random number. The specific process includes the following steps:

[0150] A1: The vehicle to be connected can use the system's default target decryption algorithm and the pre-generated direct connection communication key in the cloud to decrypt the authentication random number and obtain a decrypted random number. In this example, the target decryption algorithm is the inverse of the target encryption algorithm. This target encryption algorithm is used to encrypt the direct connection random number to form the authentication random number. Therefore, when the vehicle to be connected uses the target decryption algorithm to decrypt the authentication random number, the decrypted random number it obtains should be consistent with the direct connection random number. Therefore, the decrypted random number and the direct connection random number can be used for security verification.

[0151] A2: After obtaining the decrypted random number generated by decrypting the authentication random number, the vehicle to be connected compares the decrypted random number with the pre-stored direct connection random number in order to determine whether the direct connection communication verification is successful based on the comparison result.

[0152] A3: If the decrypted random number is consistent with the direct connection random number, it means that the authentication random number generated by the user is data formed by encrypting the direct connection random number generated by the vehicle to be connected based on the direct connection communication key generated by the cloud. This indicates that the message transmission between the user, the cloud and the vehicle to be connected is normal, and the direct connection communication verification is successful, which can ensure the security of the direct connection communication between the user and the vehicle to be connected.

[0153] A4: If the decrypted random number is inconsistent with the direct connection random number, it means that the authentication random number generated by the user is not data formed by encrypting the direct connection random number generated by the vehicle to be connected based on the direct connection communication key generated by the cloud. This indicates that the message transmission between the user, the cloud and the vehicle to be connected is abnormal, and the direct connection communication verification fails.

[0154] In another embodiment, the vehicle to be connected uses a direct connection communication key and a direct connection random number to perform direct connection communication verification on the authentication random number, including:

[0155] The vehicle to be connected uses the direct connection communication key to encrypt the direct connection random number and obtain the encrypted random number; if the encrypted random number is consistent with the authentication random number, the direct connection communication verification is successful; if the encrypted random number is inconsistent with the authentication random number, the direct connection communication verification fails.

[0156] As an example, after receiving the authentication random number sent by the user terminal through the direct connection network port, the vehicle to be connected can obtain the direct connection communication key and the direct connection random number from the vehicle database, and use the direct connection communication key and the direct connection random number to perform direct connection communication verification of the authentication random number. The specific process includes the following steps:

[0157] B1: The vehicle to be connected can use the system's default verification encryption algorithm and a pre-generated direct connection communication key in the cloud to encrypt the direct connection random number, thus obtaining an encrypted random number. In this example, when the verification encryption algorithm used by the vehicle to be connected and the target encryption algorithm used by the vehicle to be connected are the same, the encrypted random number generated by the vehicle to be connected using the verification encryption algorithm and the direct connection communication key should be consistent with the authentication random number generated by the user end using the target encryption algorithm and the direct connection communication key. Therefore, the encrypted random number and the authentication random number can be used for security verification.

[0158] B2: After obtaining the direct connection communication key, the vehicle to be connected encrypts the direct connection random number to form an encrypted random number. Then, it compares the encrypted random number with the authentication random number sent by the user terminal through the direct connection network port. Based on the comparison result, it determines whether the direct connection communication verification is successful.

[0159] B3: If the encrypted random number is consistent with the authentication random number, it reflects that the direct connection random number pre-stored by the vehicle to be connected is consistent with the direct connection random number received by the user terminal. In this case, the direct connection communication verification is successful, which can ensure the security of direct connection communication between the user terminal and the vehicle to be connected.

[0160] B4: If the encrypted random number and the authentication random number are inconsistent, it reflects that the direct connection random number pre-stored by the vehicle to be connected is inconsistent with the direct connection random number received by the user terminal. This indicates that the message transmission between the user terminal, the cloud and the vehicle to be connected is abnormal, and the direct connection communication verification fails. This can ensure the security of direct connection communication between the user terminal and the vehicle to be connected.

[0161] In one embodiment, after establishing a direct communication connection between the user terminal and the vehicle to be connected, the vehicle direct communication method further includes:

[0162] S801: The vehicle to be connected receives the target data packet sent by the user terminal through the direct network port, parses the target data packet, and obtains the target control command and the target anti-repeating code. The target anti-repeating code is an encoding formed by the user terminal based on the current command sequence number corresponding to the target control command and the direct connection random number.

[0163] S802: The vehicle to be connected performs a retransmission verification based on the target anti-retransmission code and obtains the retransmission verification result;

[0164] S803: When the vehicle to be connected passes the re-verification, the target control command is executed.

[0165] As an example, in step S801, the vehicle to be connected can receive the target data packet sent by the user terminal through the direct network port, parse the target data packet, and obtain the target control command and the target anti-duplicate code. The target control command is a control command used to control the vehicle to be connected to perform a specific function. The target anti-duplicate code is an encoding formed based on the current command sequence number corresponding to the target control command and the direct connection random number. The current command sequence number refers to the command sequence number in which the user terminal generates the target control command. In this example, after generating the target control command, the user terminal needs to obtain the current command sequence number corresponding to the target control command, and then, based on the direct connection random number pre-generated by the vehicle to be connected and the current command sequence number, form the target anti-duplicate code corresponding to the target control command (for example, the target anti-duplicate code is the sum of the direct connection random number and the current command sequence number). Then, based on the target control command and the target anti-duplicate code, a target data packet is formed, and the target data packet is sent to the vehicle to be connected through the direct network port, so that the vehicle to be connected can receive the target data packet carrying the target control command and the target anti-duplicate code.

[0166] As an example, in step S802, after the vehicle to be connected receives the target data packet and parses the target control command and the target anti-retransmission code from the target data packet, it needs to perform a retransmission verification based on the target anti-retransmission code to verify whether the target control command is a control command repeatedly sent by the user terminal and obtain the retransmission verification result.

[0167] For example, after a vehicle obtains the target anti-duplicate code in any target data packet, it can query at least one historical anti-duplicate code cached on the vehicle side based on the target anti-duplicate code; if the target anti-duplicate code is consistent with any historical anti-duplicate code, the retransmission verification result of the verification failure is obtained; if the target anti-duplicate code is inconsistent with all historical anti-duplicate codes, the retransmission verification result of the verification success is obtained.

[0168] For example, after a vehicle to be connected obtains the target anti-duplicate code in any target data packet, it can query the most recent historical anti-duplicate code cached on the vehicle's end based on that target anti-duplicate code. This most recent historical anti-duplicate code is the target anti-duplicate code in the most recent target data packet received by the vehicle to be connected. Understandably, since the target anti-duplicate code is the sum of a direct connection random number and the current instruction sequence number, and the current instruction sequence number increments sequentially, the target anti-duplicate code sent later should be greater than the historical anti-duplicate code sent earlier. When performing retransmission verification based on the target anti-duplicate code, the target anti-duplicate code can be compared with the most recent historical anti-duplicate code; if the target anti-duplicate code is greater than the most recent historical anti-duplicate code, the retransmission verification result is obtained if the verification passes; if the target anti-duplicate code is not greater than the most recent historical anti-duplicate code, the retransmission verification result is obtained if the verification fails.

[0169] As an example, in step S803, when the vehicle to be connected passes the retransmission verification, it executes the target control command to realize the direct connection control operation according to the target control command sent by the user terminal, so as to avoid repeatedly executing a certain target control command and ensure the reliability of the direct connection control operation.

[0170] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0171] In one embodiment, a terminal device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the vehicle-to-everything (V2X) communication method described in the above embodiment, for example... Figure 1 Steps S101-S107 shown, or Figures 2-8 As shown, to avoid repetition, it will not be repeated here. The terminal device in this example can be the aforementioned user terminal, cloud, or vehicle to be connected.

[0172] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0173] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0174] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A method for direct car-to-car communication, characterized in that include: The user sends a first connection request to the cloud, the first connection request including user information and vehicle information to be connected; The cloud responds to the first connection request and sends a second connection request to the vehicle to be connected. The second connection request includes the user terminal information and the direct connection communication key. The vehicle to be connected responds to the second connection request and sends a target feedback message to the cloud. The target feedback message includes the direct connection communication key, the direct connection network port, and the direct connection random number. The direct connection network port is the port created by the vehicle to be connected in response to the second connection request for direct communication with the user terminal. The direct connection random number is a random number generated by the vehicle to be connected in response to the second connection request; The cloud receives the target feedback message and forwards it to the user terminal. According to the target feedback message, the user terminal sends an authentication random number to the vehicle to be connected through the direct connection network port. The authentication random number is a value formed by the user terminal encrypting the direct connection random number using the direct connection communication key. The vehicle to be connected uses the direct communication key and the direct communication random number to perform direct communication verification on the authentication random number. When the direct communication verification is successful, a direct communication connection is established between the user terminal and the vehicle to be connected.

2. A method for direct car-to-car communication, characterized in that include: The user sends a first connection request to the cloud, the first connection request including user information and vehicle information to be connected, so that the cloud responds to the first connection request and sends a second connection request to the vehicle to be connected. The user terminal receives a target feedback message forwarded by the cloud from the vehicle waiting to be connected in response to the second connection request. The target feedback message includes the direct connection communication key, the direct connection network port, and the direct connection random number. The direct connection network port is the port created by the vehicle waiting to be connected in response to the second connection request for direct communication with the user terminal. The direct connection random number is a random number generated by the vehicle to be connected in response to the second connection request; The user terminal uses the direct communication key to encrypt the direct connection random number to form an authentication random number. The authentication random number is then sent to the vehicle to be connected through the direct connection network port. The vehicle to be connected uses the direct communication key and the direct connection random number to perform direct communication verification on the authentication random number. When the direct communication verification is successful, a direct communication connection is established between the user terminal and the vehicle to be connected.

3. A vehicle-to-vehicle direct communication method, characterized in that, include: The cloud receives a first connection request sent by the user terminal, the first connection request including user terminal information and vehicle information to be connected; The cloud responds to the first connection request and sends a second connection request to the vehicle to be connected. The second connection request includes the user terminal information and the direct connection communication key. The cloud receives a target feedback message generated by the vehicle to be connected in response to the second connection request. The target feedback message includes the direct connection communication key, the direct connection network port, and the direct connection random number. The direct connection network port is the port created by the vehicle to be connected in response to the second connection request for direct communication with the user terminal. The direct connection random number is a random number generated by the vehicle to be connected in response to the second connection request; The cloud forwards the target feedback message to the user terminal, so that the user terminal uses the direct connection communication key to encrypt the direct connection random number to form an authentication random number. The authentication random number is then sent to the vehicle to be connected through the direct connection network port. The vehicle to be connected uses the direct connection communication key and the direct connection random number to perform direct connection communication verification of the authentication random number. When the direct connection communication verification is successful, a direct connection communication connection is established between the user terminal and the vehicle to be connected.

4. A vehicle-to-vehicle direct communication method, characterized in that, include: The vehicle to be connected receives a second connection request formed by the cloud response to the user's first connection request. The second connection request includes user information and a direct connection communication key. The vehicle to be connected responds to the second connection request and sends a target feedback message to the cloud, so that the cloud forwards the target feedback message to the user terminal. The target feedback message includes the direct connection communication key, the direct connection network port, and the direct connection random number. The direct connection network port is the port created by the vehicle to be connected in response to the second connection request for direct communication with the user terminal. The direct connection random number is a random number generated by the vehicle to be connected in response to the second connection request; The vehicle to be connected receives an authentication random number sent by the user terminal through the direct connection network port. The authentication random number is a value formed by the user terminal encrypting the direct connection random number using the direct connection communication key. The vehicle to be connected uses the direct communication key and the direct communication random number to perform direct communication verification on the authentication random number. When the direct communication verification is successful, a direct communication connection is established between the user terminal and the vehicle to be connected.

5. The vehicle direct communication method as described in claim 1 or 2, characterized in that, After establishing a direct communication connection between the user terminal and the vehicle to be connected, the vehicle direct communication method further includes: The user terminal receives the target control command and generates the current command sequence number corresponding to the target control command. The user terminal generates a target anti-retransmission code based on the direct connection random number and the current instruction sequence number; The user terminal generates a target data packet based on the target control command and the target anti-retransmission code; The user terminal sends the target data packet to the vehicle to be connected through the direct network port, so that the vehicle to be connected can perform a retransmission verification based on the target anti-retransmission code, and execute the target control command when the retransmission verification passes.

6. The vehicle direct communication method as described in claim 1 or 3, characterized in that, The cloud responds to the first connection request by sending a second connection request to the vehicle to be connected, including: The cloud queries the cloud database based on the information of the vehicles to be connected to obtain the direct connection user information corresponding to the information of the vehicles to be connected; When the cloud platform matches the user terminal information with the direct connection user information, it determines that the direct connection permission authentication is successful, generates a direct connection communication key, obtains a second connection request based on the direct connection communication key, and sends the second connection request to the vehicle to be connected.

7. The vehicle direct communication method as described in claim 1 or 4, characterized in that, The vehicle to be connected responds to the second connection request by sending a target feedback message to the cloud, including: The vehicle to be connected creates a direct network port for direct communication between the user terminal and the vehicle to be connected based on the user terminal information. Generate direct connection random numbers for vehicles to be connected; The vehicle to be connected generates a target feedback message based on the direct connection communication key, the direct connection network port, and the direct connection random number, and sends the target feedback message to the cloud.

8. The vehicle direct communication method as described in claim 1 or 4, characterized in that, The vehicle to be connected uses the direct connection communication key and the direct connection random number to perform direct connection communication verification on the authentication random number, including: The vehicle to be connected uses the direct connection communication key to decrypt the authentication random number to obtain a decrypted random number; if the decrypted random number is the same as the direct connection random number, the direct connection communication verification is successful; if the decrypted random number is different from the direct connection random number, the direct connection communication verification fails. or, The vehicle to be connected uses the direct connection communication key to encrypt the direct connection random number to obtain an encrypted random number; if the encrypted random number is consistent with the authentication random number, the direct connection communication verification is successful; if the encrypted random number is inconsistent with the authentication random number, the direct connection communication verification fails.

9. The vehicle direct communication method as described in claim 1 or 4, characterized in that, After establishing a direct communication connection between the user terminal and the vehicle to be connected, the vehicle direct communication method further includes: The vehicle to be connected receives the target data packet sent by the user terminal through the direct connection network port, parses the target data packet, and obtains the target control command and the target anti-repeating code. The target anti-repeating code is an encoding formed by the user terminal based on the current command sequence number corresponding to the target control command and the direct connection random number. The vehicle to be connected performs a retransmission verification based on the target anti-retransmission code and obtains the retransmission verification result; When the connected vehicle passes the re-verification, it executes the target control command.

10. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the vehicle direct communication method as described in any one of claims 2 to 9, wherein the terminal device is a user terminal, a cloud, or a vehicle to be connected.

Citation Information

Patent Citations

  • Data exchange method of local heterogeneous network

    CN104159320A

  • Point-to-point instant communication method

    CN109451009A

  • Safe direct connection communication method based on 5GD2D service and terminal

    CN112040486A

  • Method for establishing pier-to-pier direct channels

    CN1805388A