Search

CN-121985331-A - Vehicle communication method and storage medium

CN121985331ACN 121985331 ACN121985331 ACN 121985331ACN-121985331-A

Abstract

The embodiment of the application provides a vehicle communication method and a storage medium, wherein the method comprises the steps of responding to the first access of a vehicle to a vehicle networking communication network, generating an asymmetric key pair and a reputation value through a first blockchain master node; generating dynamic credentials and random numbers of the vehicle according to the reputation value and the current running state information of the vehicle, performing signcryption processing on the public key of the road side unit, the identity identification information and the random numbers by using a private key of the vehicle to obtain a signcryption value, sending an authentication request through a wireless channel, establishing a communication link according to a session key in response to the authentication request, and performing data exchange through the communication link. The method solves the technical problems that the communication of the Internet of vehicles still has potential safety hazard and the dynamic adaptability is insufficient in the related technology.

Inventors

  • LIU TIANXIANG
  • YE WENHU

Assignees

  • 安徽开阳科技有限公司
  • 奇瑞汽车股份有限公司

Dates

Publication Date
20260505
Application Date
20260126

Claims (10)

  1. 1. A method of vehicle communication, the method comprising: Generating an asymmetric key pair and a reputation value through a first blockchain master node in response to a vehicle first accessing to a vehicle networking communication network, wherein the vehicle networking communication network is deployed in a first vehicle networking coverage area, the asymmetric key pair comprises a vehicle public key and a vehicle private key, and the reputation value is used for evaluating the safety behavior of the vehicle; Generating a dynamic credential and a random number of the vehicle according to the reputation value and the current running state information of the vehicle, wherein the dynamic credential is used for reflecting the safety condition and the identity information of the vehicle; Performing signcryption processing on the road side unit public key, the identity information and the random number by using the vehicle private key to obtain a signcryption value; sending an authentication request through a wireless channel, wherein the authentication request comprises the signcryption value and the dynamic credential; Establishing a communication link according to a session key in response to the authentication request passing, wherein the session key is determined according to a key agreement protocol; and exchanging data through the communication link.
  2. 2. The method of claim 1, wherein the current travel state information comprises a current timestamp, location encryption coordinates, and real-time speed, the method further comprising: and acquiring the current time stamp, the position encryption coordinates and the real-time speed of the vehicle in response to the distance between the vehicle and any road side unit being smaller than a preset threshold.
  3. 3. The method of claim 2, wherein the generating the dynamic credential of the vehicle based on the reputation value and the current travel state information of the vehicle comprises: Carrying out hash processing on the current timestamp, the position encryption coordinates and the real-time speed through a preset hash algorithm to obtain a first hash value; Splicing the first hash value, the reputation value and the vehicle public key to obtain a splicing result; and carrying out hash processing on the splicing result through the preset hash algorithm to obtain the dynamic credential.
  4. 4. The method of claim 1, wherein performing a signcryption process on the road side unit public key, the identification information, and the random number using the vehicle private key to obtain a signcryption value comprises: splicing the identification information and the random number to obtain a data string; Carrying out signature processing on the data string based on the vehicle private key to obtain a signature value; And encrypting the data string, the signature value and the public key of the road side unit based on a preset encryption algorithm to obtain the signcryption value.
  5. 5. The method of claim 2, wherein any of the wayside units comprises a federal learning module, the method further comprising, after the communication link is established: acquiring a feature vector in the driving environment data; encrypting the feature vector by adopting a preset encryption algorithm to obtain an encrypted feature vector; updating the federal learning module based on the encrypted feature vector.
  6. 6. A method of vehicle communication, the method comprising: Receiving an authentication request, wherein the authentication request comprises a signcryption value and a dynamic credential; decrypting the signcryption value through the vehicle public key to obtain a decryption result; checking the decryption result to obtain a first check result; Verifying the dynamic credential through an intelligent contract to obtain a second verification result, wherein the intelligent contract is used for managing identity information of a vehicle and any road side unit; establishing a communication link according to a session key in response to the first and second verification results both indicating verification pass, wherein the session key is determined according to a key agreement protocol; and exchanging data through the communication link.
  7. 7. The method of claim 6, wherein the decryption result includes identification information of the vehicle and a random number, and the verifying the decryption result to obtain a first verification result includes: Checking whether the random number is a historical use value or not, and checking whether the identity information is consistent with pre-stored vehicle information or not.
  8. 8. The method of claim 6, wherein the dynamic credential includes a current timestamp, location encryption coordinates, a real-time speed, and a reputation value of the vehicle, and wherein the verifying the dynamic credential by the smart contract results in a second verification result comprising: sending the dynamic credential to the smart contract on a blockchain side chain; Carrying out hash processing on the current timestamp, the position encryption coordinates, the real-time speed and the reputation value through the intelligent contract to obtain a second hash value; and checking whether the hash value in the dynamic credential is matched with the second hash value to obtain the second checking result.
  9. 9. The method of claim 6, wherein the method further comprises: Continuously monitoring any communication node; calculating real-time anomaly scores of any communication node based on a historical feature template library, wherein the historical feature template library is used for recording historical anomaly communication features; Generating an anomaly report within a first preset time period in response to the real-time anomaly score being greater than a preset anomaly threshold; verifying the abnormal report based on the intelligent contract to obtain abnormal behaviors of any communication node; And resetting the credit value of any communication node in response to the abnormal behavior being matched with a preset abnormal pattern, wherein the preset abnormal pattern is stored in a blockchain.
  10. 10. The method of claim 6, wherein the method further comprises: in response to detecting that the vehicle enters a second networking coverage area, synchronizing an authentication state of the vehicle to a second blockchain master node in the second networking coverage area according to a cross-chain protocol, wherein a networking communication network is deployed within the second networking coverage area; updating the asymmetric key pair of the vehicle in a second preset time period based on a preset hash algorithm to obtain the updated asymmetric key pair; and carrying out identity verification on the vehicle according to the updated asymmetric key pair.

Description

Vehicle communication method and storage medium Technical Field The embodiment of the application relates to the technical field of Internet of vehicles, in particular to a vehicle communication method and a storage medium. Background The internet of vehicles communication technology is a wireless communication technology that allows vehicles to exchange information with other infrastructure in the surrounding environment. Current internet of vehicles communication technologies face communication security issues including identity forgery, data interception, man-in-the-middle attacks, etc., threatening the exchange of information between the vehicle and other infrastructure. Secondly, the current internet of vehicles communication technology has dynamic adaptability deficiency, and the existing scheme is difficult to quickly respond to the identity authentication requirement in the high-speed movement of the vehicle, so that the communication efficiency between the vehicle and other infrastructures is affected. There is currently no good solution to the above problems. Disclosure of Invention The embodiment of the application provides a vehicle communication method and a storage medium, which at least solve the technical problems that the communication of the Internet of vehicles still has potential safety hazards and the dynamic adaptability is insufficient in the related technology. According to one aspect of the embodiment of the application, a vehicle communication method is provided, and the method comprises the steps of responding to the first access of a vehicle to a vehicle networking communication network, generating an asymmetric key pair and a reputation value through a first blockchain master node, wherein the vehicle networking communication network is deployed in a first vehicle networking coverage area, the asymmetric key pair comprises a vehicle public key and a vehicle private key, the reputation value is used for evaluating safety behavior of the vehicle, dynamic credentials and random numbers of the vehicle are generated according to the reputation value and current running state information of the vehicle, the dynamic credentials are used for reflecting safety conditions and identity information of the vehicle, signing the public key, the identity identification information and the random numbers of a road side unit by utilizing the vehicle private key to obtain the signcryption value, sending an authentication request through a wireless channel, wherein the authentication request comprises the signcryption value and the dynamic credentials, responding to the authentication request, establishing a communication link according to a session key, determining the session key according to a key negotiation protocol, and carrying out data exchange through the communication link. Further, the current driving state information comprises a current time stamp, position encryption coordinates and real-time speed, and the vehicle communication method further comprises the step of acquiring the current time stamp, the position encryption coordinates and the real-time speed of the vehicle in response to the distance between the vehicle and any road side unit is smaller than a preset threshold value. Further, generating a dynamic credential of the vehicle according to the reputation value and the current running state information of the vehicle comprises the steps of carrying out hash processing on a current timestamp, a position encryption coordinate and a real-time speed through a preset hash algorithm to obtain a first hash value, splicing the first hash value, the reputation value and a vehicle public key to obtain a splicing result, and carrying out hash processing on the splicing result through the preset hash algorithm to obtain the dynamic credential. The method comprises the steps of obtaining a public key of a road side unit, identity identification information and a random number, obtaining a signcryption value by means of a private key of a vehicle, wherein the private key of the vehicle is used for conducting signcryption processing on the public key of the road side unit, the identity identification information and the random number, obtaining a data string, conducting signature processing on the data string based on the private key of the vehicle, obtaining a signature value, and conducting encryption processing on the data string, the signature value and the public key of the road side unit based on a preset encryption algorithm, and obtaining the signcryption value. The vehicle communication method comprises the steps of acquiring a characteristic vector in running environment data, carrying out encryption processing on the characteristic vector by adopting a preset encryption algorithm to obtain an encrypted characteristic vector, and updating the federal learning module based on the encrypted characteristic vector. According to one aspect of the embodiment of the application, a vehic