Data communication method for vehicle, and processor, vehicle and storage medium
By extracting and decrypting encrypted network messages in vehicle data communication and determining the decryption key using current and historical data link information, the problem of low efficiency in vehicle data communication is solved, achieving a reduction in bandwidth occupancy and an improvement in efficiency.
Patent Information
- Application Number
- PCT/CN2025/147477
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-08-19
- Filing Date
- 2025-12-30
- Publication Date
- 2026-11-12
AI Technical Summary
During vehicle data communication, each message carrying a counter requires additional bytes, resulting in high bandwidth usage, large ECU processing overhead, and low efficiency.
By acquiring encrypted transmission messages, extracting target encrypted network packets and current data link information, determining the decryption key based on current and historical data link information, and decrypting target encrypted network packets, bandwidth consumption is reduced.
It improves the efficiency of vehicle data communication and reduces bandwidth usage.
Smart Images

Figure CN2025147477_12112026_PF_FP_ABST
Abstract
Description
Vehicle data communication methods, processors, vehicles, and storage media
[0001] Cross-reference
[0002] This disclosure claims priority to Chinese Patent Application No. 202511163429.7, filed on August 19, 2025, entitled "Data Communication Method for Vehicles, Processor, Vehicle and Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This disclosure relates to the field of vehicles, and more specifically, to a data communication method for vehicles, a processor, a vehicle, and a storage medium. Background Technology
[0004] Currently, in vehicle data communication, an explicit message counter is often used to request key updates. Each message must carry the counter, and the local counter is updated after verification at the receiving end to prevent replay attacks.
[0005] However, each message carrying a counter requires additional bytes, which increases the bandwidth used, and the Electronic Control Unit (ECU) has high processing overhead, resulting in low efficiency of vehicle data communication.
[0006] There is currently no effective solution to the technical problem of low data communication efficiency in the aforementioned vehicles. Summary of the Invention
[0007] This disclosure provides a data communication method, processor, vehicle, and storage medium for vehicles, to at least address the technical problem of low efficiency in vehicle data communication.
[0008] According to one aspect of the present disclosure, a data communication method for a vehicle is provided. The method is applied to a receiving controller of a vehicle and includes: acquiring an encrypted transmission message of the vehicle, wherein the encrypted transmission message includes: a target encrypted network message of the vehicle, and current data link information of the vehicle in the current communication process. The target encrypted network message is obtained by encrypting a target network message of the vehicle. The target network message represents communication data generated by the vehicle in the current communication process. The current data link information represents the attributes of the current data links in the target data link set of the vehicle that are in a positioning state. The target data link set is a collection of data links that the vehicle needs to use in different communication processes. The communication process includes the current communication process; extracting the target encrypted network message and current data link information from the encrypted transmission message; determining the decryption key for the target network message based on the current data link information and historical data link information, wherein the historical data link information is used to indicate the attributes of the historical data link that was in the positioning state in the previous communication process of the current communication process, the current data link is the next data link of the historical data link, the decryption key and the encryption key of the target network message are symmetric keys, and the encryption key is used to represent the key used to encrypt the target network message; using the decryption key, the target encrypted network message is decrypted to obtain the target decrypted network message of the vehicle.
[0009] According to one aspect of the present disclosure, a data communication method for a vehicle is provided. The method is applied to a vehicle's transmission controller and includes: generating an encrypted transmission message for the vehicle, wherein the encrypted transmission message includes: a target encrypted network message for the vehicle, and current data link information for the vehicle in the current communication process. The target encrypted network message is obtained by encrypting a target network message for the vehicle, and the target network message represents communication data generated by the vehicle in the current communication process. The current data link information represents the attributes of current data links in the target data link set of the vehicle that are in a positioning state during the current communication process. The target data link set is a collection of data links that the vehicle needs to use in different communication processes, including the current communication process. The process involves sending an encrypted transmission message to the vehicle's receiving controller. This encrypted transmission message enables the vehicle to extract the target encrypted network message and current data link information. The current data link information and historical data link information allow the vehicle to determine the decryption key for the target network message. The historical data link information indicates the attributes of the historical data links that were in a positioning state during the previous communication process. The current data link is the next data link after the historical data link. The decryption key and the encryption key of the target network message are symmetric keys. The encryption key represents the key used to encrypt the target network message. Using the decryption key, the target encrypted network message is decrypted to obtain the vehicle's target decrypted network message.
[0010] According to another aspect of the embodiments of this disclosure, a vehicle data communication device is also provided. The device includes: an acquisition component, configured to acquire encrypted transmission messages of the vehicle, wherein the encrypted transmission messages include: a target encrypted network message of the vehicle, and current data link information of the vehicle in the current communication process. The target encrypted network message is obtained by encrypting a target network message of the vehicle. The target network message represents communication data generated by the vehicle in the current communication process. The current data link information represents the attributes of current data links in the target data link set of the vehicle that are in a positioning state. The target data link set is a collection of data links that the vehicle needs to use in different communication processes, including the current communication process. An extraction component is used to extract the target encrypted network message and the current data link information from the encrypted transmission message; a first determining component is used to determine the decryption key of the target network message based on the current data link information and historical data link information, wherein the historical data link information is used to indicate the attributes of the historical data link that was in the positioning state in the previous communication process of the current communication process, the current data link is the next data link of the historical data link, the decryption key and the encryption key of the target network message are symmetric keys, and the encryption key is used to represent the key used to encrypt the target network message; a decryption component is used to decrypt the target encrypted network message using the decryption key to obtain the target decrypted network message of the vehicle.
[0011] According to another aspect of the embodiments of this disclosure, a vehicle data communication device is also provided. The device includes: a first generating component configured to generate encrypted transmission messages for the vehicle, wherein the encrypted transmission messages include: a target encrypted network message for the vehicle, and current data link information for the vehicle in the current communication process. The target encrypted network message is obtained by encrypting a target network message for the vehicle, and the target network message represents communication data generated by the vehicle in the current communication process. The current data link information represents the attributes of the current data links in the target data link set of the vehicle that are in a positioning state during the current communication process. The target data link set is a collection of data links that the vehicle needs to use in different communication processes, including the current communication process; and a sending component. The system is configured to send an encrypted transmission message to the vehicle's receiving controller. This encrypted transmission message enables the vehicle to extract the target encrypted network message and current data link information. The current data link information and historical data link information enable the vehicle to determine the decryption key for the target network message. The historical data link information indicates the attributes of the historical data links that were in a positioning state during the previous communication process. The current data link is the next data link after the historical data link. The decryption key and the encryption key of the target network message are symmetric keys. The encryption key represents the key used to encrypt the target network message, and the decryption key enables the vehicle to decrypt the target encrypted network message, obtaining the vehicle's target decrypted network message.
[0012] According to another aspect of the present disclosure, a vehicle is also provided, including: a memory storing an executable program; and a processor configured to run the program, wherein the program executes the methods of various embodiments of the present disclosure when it runs.
[0013] According to another aspect of the embodiments of the present disclosure, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is executed, it controls the device where the computer-readable storage medium is located to perform the methods of the various embodiments of the present disclosure.
[0014] Embodiments of this disclosure also provide a processor. The processor is configured to run a program, wherein the program is executed by the processor to perform the methods described in various embodiments of this disclosure.
[0015] According to another aspect of the embodiments of this disclosure, a computer program product is also provided, including a computer program that, when executed by a processor, implements the methods of various embodiments of this disclosure.
[0016] According to another aspect of the embodiments of this disclosure, a computer program product is also provided, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods of various embodiments of this disclosure.
[0017] According to another aspect of the embodiments of this disclosure, a computer program is also provided, which, when executed by a processor, implements the methods of the various embodiments of this disclosure.
[0018] In this embodiment of the disclosure, when communicating vehicle data, encrypted transmission messages of the vehicle are acquired. From the acquired encrypted transmission messages, the target encrypted network packet and current data link information are extracted. Based on the extracted current data link information and historical data link information, a decryption key for the target network packet is determined, and the target encrypted network packet is decrypted using the determined decryption key to obtain the vehicle's target decrypted network packet. Because this embodiment of the disclosure, based on extracting the target encrypted network packet and current data link information from the acquired encrypted transmission messages, determines the decryption key for the target network packet according to the current data link information and historical data link information, and uses the decryption key to decrypt the extracted target encrypted network packet to obtain the vehicle's target decrypted network packet, it achieves the goal of reducing bandwidth occupancy, thereby solving the technical problem of low efficiency in vehicle data communication and ultimately achieving the technical effect of improving the efficiency of vehicle data communication. Attached Figure Description
[0019] The accompanying drawings, which are included to provide a further understanding of this disclosure and form part of this disclosure, illustrate exemplary embodiments of the present disclosure and are used to explain the disclosure, but do not constitute an undue limitation of the disclosure. In the drawings:
[0020] Figure 1(a) is a schematic diagram of an application scenario of a vehicle data communication method according to an embodiment of the present disclosure;
[0021] Figure 1(b) is a flowchart of a vehicle data communication method according to an embodiment of the present disclosure;
[0022] Figure 2 is a flowchart of another vehicle data communication method according to an embodiment of the present disclosure;
[0023] Figure 3(a) is a flowchart of a vehicle data transmission method according to an embodiment of the present disclosure;
[0024] Figure 3(b) is a schematic diagram of a data link update method according to an embodiment of the present disclosure;
[0025] Figure 4 is a structural block diagram of a vehicle data communication device according to an embodiment of the present disclosure;
[0026] Figure 5 is a structural block diagram of another vehicle data communication device according to an embodiment of the present disclosure. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present disclosure, the technical solutions of the present disclosure will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present disclosure.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data are interchangeable where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that comprises a series of steps or components is not necessarily limited to those steps or components explicitly listed, but may include other steps or components not explicitly listed or inherent to such processes, methods, products, or devices.
[0029] According to an embodiment of the present disclosure, an embodiment of a data communication method for a vehicle is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings are executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described are executed in a different order than that shown here.
[0030] As an optional implementation, the above-described vehicle data communication method is not limited to the application scenario shown in Figure 1(a). Figure 1(a) is a schematic diagram of an application scenario of a vehicle data communication method according to an embodiment of this disclosure. As shown in Figure 1(a), in the application scenario, the terminal device 10 communicates with the server 13 via the network 11, but is not limited to the server 13. The server 13 performs operations on the database, such as writing or reading data. The terminal device 10 includes, but is not limited to, a human-machine interface screen, a processor, and a memory. The human-machine interface screen is not limited to displaying a virtual machine on the mobile terminal 10. The vehicle 12 is not limited to responding to the above-described human-machine interface operation, performing corresponding operations, or generating corresponding instructions and sending the generated instructions to the server 13.
[0031] It should be noted that the steps shown in the flowcharts of the accompanying drawings are executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowcharts, in some cases, the steps shown or described are executed in a different order than that shown here. The vehicle data communication method of this disclosure includes: step S102, obtaining encrypted transmission messages of the vehicle, wherein the encrypted transmission messages include: a target encrypted network message of the vehicle, and current data link information of the vehicle in the current communication process, the target encrypted network message being obtained by encrypting the target network message of the vehicle, the target network message being used to represent the communication data generated by the vehicle in the current communication process, the current data link information being used to represent the attributes of the current data link in the target data link set of the vehicle that is in a positioning state, the target data link set being a set of data links that the vehicle needs to use in different communication processes, the different communication processes including the current communication process; step S104, from In the encrypted transmission message, the target encrypted network message and the current data link information are extracted; in step S106, based on the current data link information and historical data link information, the decryption key of the target network message is determined, wherein the historical data link information is used to indicate the attributes of the historical data link that was in the positioning state in the previous communication process of the current communication process, the current data link is the next data link of the historical data link, the decryption key and the encryption key of the target network message are symmetric keys, and the encryption key is used to represent the key for encrypting the target network message; and in step S108, the target encrypted network message is decrypted using the decryption key to obtain the target decrypted network message of the vehicle.
[0032] It should be noted that the relevant information (including but not limited to encrypted transmission messages, current data link information and historical data link information) and data (including but not limited to decryption keys, encrypted network messages and target encrypted network messages) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0033] Figure 1(b) is a flowchart of a data communication method for a vehicle according to an embodiment of the present disclosure. As shown in Figure 1(b), the method is applied to the receiving controller of a vehicle and includes the following steps.
[0034] Step S112: Obtain the encrypted transmission message from the vehicle.
[0035] In the technical solution provided in step S112 of this disclosure, the encrypted transmission message includes: the vehicle's target encrypted network message, and the vehicle's current data link information during the current communication process. For example, the encrypted transmission message is a secure message frame.
[0036] In this embodiment, the target encrypted network message is obtained by encrypting the target network message of the vehicle, for example, by performing symmetric encryption and asymmetric encryption operations on the target network message.
[0037] In this embodiment, the target network message is used to represent communication data generated by the vehicle during the current communication process. For example, this communication data includes: vehicle driving data and non-driving data, control signals, diagnostic data, and external data. For instance, driving data includes: speed, position, fuel level, temperature, pressure, and acceleration corresponding to a vehicle in motion; non-driving data includes: speed, position, fuel level, temperature, pressure, and acceleration corresponding to a stationary vehicle; control signals include: engine control signals, braking system control signals, and steering wheel signals; diagnostic data indicates the health or fault status of various vehicle systems; external data includes: data sent to the vehicle by external devices, including smart devices and other vehicles besides the aforementioned vehicle. Smart devices include: smartphones, tablets, and desktop computers; other vehicles include any vehicle maintaining data communication with the aforementioned vehicle. This is illustrative and not specifically limited.
[0038] In this embodiment, the aforementioned current data link information is used to represent the attributes of the current data links in the vehicle's target data link set that are in a positioning state. For example, the target data link set includes data chains.
[0039] In this embodiment, the target data chain set is a collection of data chains that the vehicle needs to use in different communication processes, including the current communication process. For example, if the data chain is a hash chain, then the target data chain set is a collection of hash chains that the vehicle needs to use in different communication processes. The hash chains include doubly linked chains, ring chains, and digital signature chains, etc., which are given as examples here and are not specifically limited.
[0040] In this embodiment, the encrypted transmission messages of the vehicle are acquired. Optionally, this embodiment receives the encrypted transmission messages of the vehicle from the transmitting controller via the communication network between the vehicle's receiving controller (ECU_RX) and the vehicle's transmitting controller (ECU_TX). The aforementioned communication network includes a Controller Area Network (CAN), which is used as an example and is not specifically limited thereto.
[0041] Optionally, the encrypted transmission message from the vehicle is received from the transmitting controller via the connection line between the receiving controller and the transmitting controller. The connection line includes electrical connection lines, which are illustrative and not specifically limited.
[0042] Step S114: Extract the target encrypted network message and the current data link information from the encrypted transmission message.
[0043] In the technical solution provided in step S114 of this disclosure, after obtaining the encrypted transmission message of the vehicle, the target encrypted network message and the current data link information are extracted from the encrypted transmission message. Optionally, this embodiment, based on obtaining the encrypted transmission message, performs message extraction on the encrypted transmission message to obtain the target encrypted network message; and performs information extraction on the encrypted transmission message to obtain the current data link information.
[0044] Optionally, based on the obtained encrypted transmission message, the format of the encrypted transmission message is converted. The content of the converted encrypted transmission message is extracted. The extracted content of the encrypted transmission message is classified to obtain the target encrypted network packet and the current data link information.
[0045] Step S116: Determine the decryption key for the target network packet based on the current data link information and historical data link information.
[0046] In the technical solution provided by step S116 of this disclosure, the historical data link information is used to represent the attributes of the historical data link that was in the positioning state in the previous communication process of the current communication process. The current data link is the next data link of the historical data link. The decryption key and the encryption key of the target network message are symmetric keys. The encryption key is used to represent the key used to encrypt the target network message.
[0047] The aforementioned historical data link information indicates the attributes of historical data links that were in a positioning state in the target data link set during the previous communication process in the current communication process. The current data link is the next data link after the historical data link.
[0048] In this embodiment, the decryption key and the encryption key of the target network packet are symmetric keys, or the decryption key and the encryption key of the target network packet are asymmetric keys. The encryption key is used to represent the key used to encrypt the target network packet.
[0049] In this embodiment, after extracting the target encrypted network packet and current data link information from the encrypted transmission message, the decryption key for the target network packet is determined based on the current data link information and historical data link information. Optionally, this embodiment, based on the extracted target encrypted network packet and current data link information, extracts historical data link information from the target data link information table; the current data link information and the historical data link information are compared to obtain a comparison result. The comparison result is used to represent the relationship between the current data link information and the historical data link information.
[0050] Based on the comparison results obtained above, the decryption key for the target network packet is determined. Optionally, if the comparison results indicate that the current data chain is the next data chain after the historical data chain, and the data corresponding to the current data identifier is the first data in the current data chain, and the data corresponding to the historical data identifier is the last data in the historical data chain, the decryption key for the target network packet is generated using the current data chain.
[0051] The method described above for obtaining the decryption key of the target network packet is illustrative and not specifically limited here. Any process and method that can determine the decryption key of the target network packet based on the extracted target encrypted network packet and current data link information, and based on the current data link information and historical data link information, is within the protection scope of this disclosure embodiment, and will not be described in detail here.
[0052] Step S118: Use the decryption key to decrypt the target encrypted network message to obtain the vehicle's target decrypted network message.
[0053] In the technical solution provided in step S118 of this disclosure, after determining the decryption key of the target network packet based on the current data link information and historical data link information, the target encrypted network packet is decrypted using the decryption key to obtain the vehicle's target decrypted network packet. Optionally, in this embodiment, based on determining the decryption key of the target network packet, the extracted target encrypted network packet is decrypted using the aforementioned decryption key to obtain the vehicle's target decrypted network packet.
[0054] Optionally, if the decryption key and the encryption key are symmetric keys, then the determined decryption key is the decryption key that is symmetric to the encryption key. Using the decryption key that is symmetric to the encryption key, the extracted target encrypted network message is decrypted to obtain the target decrypted network message of the vehicle.
[0055] Optionally, if the decryption key and the encryption key are asymmetric keys, then the determined decryption key is a decryption key that is a key pair with the encryption key and is asymmetric. Using the decryption key that is a key pair with the encryption key and is asymmetric, the extracted target encrypted network message is decrypted to obtain the target decrypted network message of the vehicle.
[0056] In steps S112 to S118 of this disclosure, when communicating vehicle data, encrypted transmission messages of the vehicle are obtained. From the obtained encrypted transmission messages, the target encrypted network message and current data link information are extracted. Based on the extracted current data link information and historical data link information, a decryption key for the target network message is determined, and the determined decryption key is used to decrypt the target encrypted network message to obtain the vehicle's target decrypted network message. Because this embodiment of the disclosure, based on extracting the target encrypted network message and current data link information from the obtained encrypted transmission messages, determines the decryption key for the target network message according to the relationship between the current data link information and historical data link information, and uses the decryption key to decrypt the extracted target encrypted network message to obtain the vehicle's target decrypted network message, it achieves the purpose of reducing bandwidth occupancy, thereby solving the technical problem of low efficiency in vehicle data communication and ultimately achieving the technical effect of improving the efficiency of vehicle data communication.
[0057] The vehicle data communication method disclosed herein is applicable to the following scenarios.
[0058] Scenario 1: Decrypting target encrypted network packets of a vehicle within a secure terminal. In this scenario, the target network packets are the vehicle's local data; correspondingly, the target encrypted network packets are encrypted local data, and the decryption key is the same as the decryption key for the encrypted local data. Therefore, the encrypted local data is decrypted using the decryption key to obtain the decrypted local data. It should be noted that the aforementioned local data includes: vehicle driving data and non-driving data, control signals, diagnostic data, etc.
[0059] Scenario 2 involves transmitting target encrypted network messages among the vehicles in a convoy to ensure message synchronization. In Scenario 2, the target network message is shared data between vehicles; correspondingly, the target encrypted network message is encrypted shared data, and the decryption key is the same as the encrypted shared data. Therefore, the encrypted shared data is decrypted using the decryption key to obtain the decrypted shared data. It should be noted that the aforementioned shared data includes: the convoy's shared key, starting position, ending position, and driving route, etc.
[0060] As an optional embodiment, the method further includes: extracting historical data link information from the target data link information table; step S116, determining the decryption key of the target network packet based on the current data link information and the historical data link information, including: extracting the current chain identifier and the current data identifier of the current data link from the current data link information, wherein the current chain identifier is used to identify the current data link and the current data identifier is used to identify the data in the current data link; and extracting the historical chain identifier and the historical data identifier of the historical data link from the historical data link information, wherein the historical chain identifier is used to identify the historical data link and the historical data identifier is used to identify the data in the historical data link; and determining the decryption key based on the current chain identifier, the current data identifier, the historical chain identifier, and the historical data identifier.
[0061] In this embodiment, the target data link information table includes information on data links used by the vehicle in historical communication processes, and the historical communication processes include: the previous communication process before the current communication process, and other communication processes prior to the previous communication process. For example, the target data link information table is a local status table of used data links; this is for illustrative purposes only and is not intended to be specific.
[0062] In this embodiment, historical data link information is extracted from the target data link information table. Optionally, this embodiment accesses the target data link information table and then searches for the information of the corresponding used data link in the target data link information table according to the chronological order of the communication process. If the previous communication process is located according to the chronological order of the communication process, the information of the used data link corresponding to the previous communication process is determined as the aforementioned historical data link information, thereby achieving the purpose of extracting historical data link information.
[0063] In this embodiment, the current chain identifier is used to identify the current data chain, and the current data identifier is used to identify the data in the current data chain. For example, the current chain identifier is represented by Chaintag_curr, and the current data identifier is represented by pos_curr.
[0064] In this embodiment, the aforementioned historical chain identifier is used to identify historical data chains, and the aforementioned historical data identifier is used to identify data within historical data chains. For example, the aforementioned historical chain identifier is represented by Chaintag_prev, and the aforementioned historical data identifier is represented by pos_prev.
[0065] In this embodiment, after extracting historical data chain information from the target data chain information table, the current chain identifier and the current data identifier of the current data chain are extracted from the current data chain information; and the historical chain identifier and the historical data identifier of the historical data chain are extracted from the historical data chain information. Optionally, based on the extracted current data chain information and historical data chain information, this embodiment performs identifier extraction on the extracted current data chain information to obtain the current chain identifier and the current data identifier of the current data chain; and performs identifier extraction on the extracted historical data chain information to obtain the historical chain identifier and the historical data identifier of the historical data chain, thereby achieving the purpose of extracting the current chain identifier, the current data identifier, the historical chain identifier, and the historical data identifier.
[0066] In this embodiment, after extracting the current chain identifier, current data identifier, historical chain identifier, and historical data identifier, a decryption key is determined based on these identifiers. Optionally, this embodiment, based on the extracted current chain identifier, current data identifier, historical chain identifier, and historical data identifier, compares the current chain identifier and the historical chain identifier to obtain a first comparison result, wherein the first comparison result represents the association relationship between the current chain identifier and the historical chain identifier; performs data identification on the current data identifier to obtain a first data identification result, wherein the first data identification result represents the data corresponding to the current data identifier; and performs data identification on the historical data identifier to obtain a second data identification result, wherein the second data identification result represents the data corresponding to the historical data identifier; the first comparison result, the first data identification result, and the second data identification result are determined as the comparison result; based on the comparison result, the decryption key of the target network packet is determined, thereby achieving the purpose of determining the decryption key corresponding to the encryption key, and thus achieving the technical effect of improving the security of the key.
[0067] The following description further explains the method for determining the decryption key based on the current chain identifier, current data identifier, historical chain identifier, and historical data identifier in this embodiment.
[0068] As an optional implementation method, the decryption key is determined based on the current chain identifier, the current data identifier, the historical chain identifier, and the historical data identifier, including: determining the association relationship between the current chain identifier and the historical chain identifier; and determining the decryption key based on the association relationship, the current data identifier, and the historical data identifier.
[0069] In this embodiment, the key database includes the correspondence between different key identifiers and different keys. For example, the key database can be a quantum key database, a quantum key data packet, or a quantum key data table; these are illustrative examples and not intended to be specific.
[0070] In this embodiment, after extracting the current chain identifier, current data identifier, historical chain identifier, and historical data identifier, the association relationship between the current chain identifier and the historical chain identifier is determined. Optionally, based on the extracted current chain identifier, current data identifier, historical chain identifier, and historical data identifier, this embodiment compares the current chain identifier and the historical chain identifier to obtain a first comparison result, that is, to obtain the association relationship between the current chain identifier and the historical chain identifier.
[0071] In this embodiment, after determining the association between the current chain identifier and the historical chain identifier, the decryption key is determined based on the association, the current data identifier, and the historical data identifier. Optionally, based on determining the association between the current chain identifier and the historical chain identifier, this embodiment performs data identification on the current data identifier to obtain a first data identification result; and performs data identification on the historical data identifier to obtain a second data identification result; the first comparison result, the first data identification result, and the second data identification result are determined as the comparison result; based on the comparison result, the decryption key of the target network packet is determined, thereby achieving the purpose of determining the decryption key corresponding to the encryption key, and thus achieving the technical effect of improving the security of the key.
[0072] The following description further explains the method for determining the decryption key based on the association relationship, current data identifier, and historical data identifier in this embodiment.
[0073] As an optional embodiment, determining the decryption key based on the association relationship, the current data identifier, and the historical data identifier includes: in response to the association relationship indicating that the current data chain corresponding to the current chain identifier is the next data chain of the historical data chain corresponding to the historical chain identifier, the data corresponding to the current data identifier is the first data in the current data chain, and the data corresponding to the historical data identifier is the last data in the historical data chain, determining the historical chain identifier as the current chain identifier and determining the historical data identifier as the current data identifier; in response to the fact that the historical chain identifier has been determined as the current chain identifier and the historical data identifier has been determined as the current data identifier in the target data chain information table, updating the current data identifier so that the updated current data identifier identifies each data after the first data according to the order of the data in the current data chain; in response to the current data chain corresponding to the current chain identifier being the same as the historical data chain corresponding to the historical chain identifier, and the data corresponding to the updated current data identifier being the last data in the current data chain, generating a decryption key using the data in the current data chain.
[0074] In this embodiment, if the data corresponding to the current data identifier is the first data in the current data chain, then the current data identifier is recorded as pos_0.
[0075] In this embodiment, after determining the association between the current chain identifier and the historical chain identifier, in response to the association indicating that the current data chain corresponding to the current chain identifier is the next data chain of the historical data chain corresponding to the historical chain identifier, the data corresponding to the current data identifier is the first data in the current data chain, and the data corresponding to the historical data identifier is the last data in the historical data chain, the historical chain identifier is determined as the current chain identifier, and the historical data identifier is determined as the current data identifier. Optionally, in this embodiment, if the association indicates that the current data chain corresponding to the current chain identifier is the next data chain of the historical data chain corresponding to the historical chain identifier, the data corresponding to the current data identifier is the first data in the current data chain, and the data corresponding to the historical data identifier is the last data in the historical data chain, then the historical chain identifier is determined as the current chain identifier, and the historical data identifier is determined as the current data identifier, thereby achieving the purpose of updating the historical data chain information.
[0076] In this embodiment, in response to the fact that the historical chain identifier has been determined as the current chain identifier and the historical data identifier has been determined as the current data identifier in the target data chain information table, the current data identifier is updated so that the updated current data identifier identifies each data after the first data according to the order of the data in the current data chain. Optionally, this embodiment determines whether the historical data chain information in the target data chain information table has been updated. If it is determined that the historical chain identifier has been determined as the current chain identifier and the historical data identifier has been determined as the current data identifier in the target data chain information table, then it is determined that the historical data chain information in the target data chain information table has been updated. If the historical data chain information has been updated, the current data identifier is updated sequentially according to the order of the data in the current data chain, thereby achieving the purpose of making the updated current data identifier identify each data after the first data according to the order of the data in the current data chain.
[0077] In this embodiment, in response to the current data chain corresponding to the current chain identifier being the same as the historical data chain corresponding to the historical chain identifier, and the data corresponding to the updated current data identifier being the last data in the current data chain, a decryption key is generated using the data in the current data chain. Optionally, this embodiment compares the current data chain corresponding to the current chain identifier with the historical data chain corresponding to the historical chain identifier to obtain a second comparison result, wherein the second comparison result is used to represent the relationship between the current data chain corresponding to the current chain identifier and the historical data chain corresponding to the historical chain identifier; and performs data identification on the updated current data identifier to obtain a third data identification result, wherein the third data identification result is used to represent the data corresponding to the updated current data identifier; if the above-mentioned second comparison result indicates that the current data chain corresponding to the current chain identifier is the same as the historical data chain corresponding to the historical chain identifier, and the above-mentioned third data identification result indicates that the data corresponding to the updated current data identifier is the last data in the current data chain, then a decryption key is generated using the data in the current data chain, thereby achieving the purpose of generating a decryption key for the target network packet, and thus achieving the technical effect of improving the security of the key.
[0078] Optionally, if the second comparison result indicates that the current data chain corresponding to the current chain identifier is different from the historical data chain corresponding to the historical chain identifier, and / or the third data identification result indicates that the data corresponding to the updated current data identifier is not the last data in the current data chain, then it is prohibited to use the data in the current data chain to generate a decryption key.
[0079] The method for updating the target data chain set described above in this embodiment will be further explained below.
[0080] As an optional embodiment, the method further includes: updating the target data chain set to a backup data chain set in response to each data chain in the target data chain set being in a used state, wherein the backup data chain set is a set of data chains that the vehicle needs to use in future communication processes, and the backup data chain set includes: a first backup data chain set and a second backup data chain set, wherein the first backup data chain set is a backup data chain set generated using the vehicle's root key at the same time as generating the target data chain set, and the second backup data chain set is a backup data chain set generated using the first and last data chains in the target data chain set after each data chain is in a used state.
[0081] In this embodiment, the aforementioned backup data link set is a collection of data links that the vehicle will need to use in future communication processes.
[0082] In this embodiment, the aforementioned backup data chain set includes: a first backup data chain set and a second backup data chain set. The first backup data chain set is generated simultaneously with the target data chain set using the vehicle's root key. The second backup data chain set is generated after each data chain has reached the used state, using the first and last data chains from the target data chain set. For example, the target data chain set includes a target hash chain S1, the first backup data chain set includes a first backup hash chain set S2, the second backup data chain set includes a second backup hash chain set S3, and the vehicle's root key is represented by K.
[0083] In this embodiment, in response to each data chain in the target data chain set being in a used state, the target data chain set is updated to a backup data chain set. Optionally, this embodiment monitors the usage status of each data chain in the target data chain set. If it is detected that each data chain in the target data chain set is in a used state, the target data chain set is updated to a backup data chain set; for example, the target data chain set is updated to a first backup data chain set, and simultaneously, a second backup data chain set is calculated using the first and last data chains in the target data chain set. This achieves the purpose of updating the target data chain set, thereby realizing the technical effect of improving the efficiency of vehicle data communication.
[0084] In this embodiment of the disclosure, when communicating vehicle data, encrypted transmission messages of the vehicle are acquired. From the acquired encrypted transmission messages, a target encrypted network packet and current data link information are extracted. Based on the extracted current data link information and historical data link information, a decryption key for the target network packet is determined, and the target encrypted network packet is decrypted using the determined decryption key to obtain the vehicle's target decrypted network packet. Because this embodiment of the disclosure, based on extracting the target encrypted network packet and current data link information from the acquired encrypted transmission messages, determines the decryption key for the target network packet according to the relationship between the current data link information and historical data link information, and uses the decryption key to decrypt the extracted target encrypted network packet to obtain the vehicle's target decrypted network packet, it achieves the goal of reducing bandwidth occupancy, thereby solving the technical problem of low efficiency in vehicle data communication and ultimately improving the technical effect of improving the efficiency of vehicle data communication.
[0085] Figure 2 is a flowchart of another vehicle data communication method according to an embodiment of the present disclosure. As shown in Figure 2, the vehicle data communication method is applied to the vehicle's transmission controller and includes the following steps.
[0086] Step S202: Generate encrypted transmission messages for the vehicle.
[0087] In the technical solution provided by step S202 of this disclosure, the encrypted transmission message includes: the target encrypted network message, and the current data link information of the vehicle in the current communication process.
[0088] In this embodiment, the target encrypted network message is obtained by encrypting the vehicle's target network message, and the target network message is used to represent the communication data generated by the vehicle during the current communication process.
[0089] In this embodiment, the aforementioned current data link information is used to represent the attributes of the current data links in the target data link set of the vehicle that are in a positioning state during the vehicle's current communication process. The aforementioned target data link set is a collection of data links that the vehicle needs to use in different communication processes, including the current communication process.
[0090] Step S204: Send an encrypted transmission message to the vehicle's receiving controller.
[0091] In the technical solution provided in step S204 of this disclosure, the encrypted transmission message is used to enable the vehicle to extract the target encrypted network message and the current data link information from the encrypted transmission message. The current data link information and the historical data link information are used to enable the vehicle to determine the decryption key of the target network message. The historical data link information is used to indicate the attributes of the historical data link that was in the positioning state in the previous communication process of the current communication process. The current data link is the next data link of the historical data link. The decryption key and the encryption key of the target network message are symmetric keys. The encryption key is used to represent the key used to encrypt the target network message. Using the decryption key, the target encrypted network message is decrypted to obtain the vehicle's target decrypted network message.
[0092] After generating the vehicle's encrypted transmission message, the encrypted transmission message is sent to the ECU_RX via the communication network between ECU_RX and ECU_TX, or via the connection line between ECU_RX and ECU_TX. This allows the vehicle to extract the target encrypted network message and the current data link identifier from the encrypted transmission message. The current data link information and historical data link information are used to enable the vehicle to determine the decryption key of the target network message. The decryption key of the target network message is used to enable the vehicle to decrypt the target encrypted network message and obtain the vehicle's target decrypted network message.
[0093] In steps S202 to S204 of this disclosure, when communicating vehicle data, after generating the vehicle's encrypted transmission message, the encrypted transmission message is sent to ECU_RX using the communication network between ECU_RX and ECU_TX, or using the connection line between ECU_RX and ECU_TX. The vehicle is configured to extract the target encrypted network message and the current data link identifier from the encrypted transmission message, determine the decryption key of the target network message based on the current data link information and historical data link information, and decrypt the target encrypted network message using the decryption key to obtain the vehicle's target decrypted network message. This achieves the purpose of reducing bandwidth occupancy, thereby solving the technical problem of low efficiency in vehicle data communication and achieving the technical effect of improving the efficiency of vehicle data communication.
[0094] The method for determining encrypted transmission messages described in this embodiment will be further explained below.
[0095] As an optional implementation method, the data chains that the vehicle needs to use in different communication processes are generated into a target data chain set; the current data chain in the positioning state is determined from the target data chain set; an encryption key is generated using the current data chain; the target network message is encrypted using the encryption key to obtain the target encrypted network message; the target encrypted network message and the current data chain information are combined to obtain an encrypted transmission message.
[0096] In this embodiment, the above encryption key is K. curr To express.
[0097] In this embodiment, the data chains that the vehicle needs to use in different communication processes are generated into a target data chain set. From the target data chain set, the data chains are filtered to obtain the current data chain in the positioning state; using the obtained current data chain, an encryption key is generated, and the generated encryption key is used to encrypt the target network message to obtain the target encrypted network message; then, the target encrypted network message and the current data chain information are combined to obtain the encrypted transmission message, thereby achieving the purpose of generating the encrypted transmission message.
[0098] Optionally, an encryption key can be generated using the obtained current data chain. For example, using the obtained current data chain, the data Chain[pos] in the current data chain is determined. Using the Key Derivation Function (KDF), a key derivation operation is performed on the data Chain[pos] and the root key K in the current data chain to obtain the encryption key. The process of obtaining the encryption key is represented by Kcurr = KDF(Chain[pos]||K). This is just an example and is not specifically limited.
[0099] The technical solutions of the present disclosure embodiments are illustrated below with reference to preferred embodiments.
[0100] Currently, in vehicle data communication, explicit Counter messages are often used to request key updates. Each message must carry a counter, and the local counter is updated after verification at the receiving end to prevent replay attacks.
[0101] However, each message carrying a counter requires additional bytes, which increases the bandwidth used and the ECU processing overhead is high, resulting in low efficiency of vehicle data communication.
[0102] However, this disclosure proposes a vehicle data communication method that, based on extracting the target encrypted network packet and current data link information from the acquired encrypted transmission message, determines the decryption key of the target network packet according to the relationship between the current data link information and historical data link information. Then, using the aforementioned decryption key, the extracted target encrypted network packet is decrypted to obtain the vehicle's target decrypted network packet. This achieves the goal of reducing bandwidth occupancy, thereby solving the technical problem of low efficiency in vehicle data communication and ultimately improving the efficiency of vehicle data communication.
[0103] In this embodiment, by executing the vehicle data transmission method shown in FIG3(a), the decryption key of the target network packet is determined based on the relationship between the current data link information and the historical data link information, and the extracted target encrypted network packet is decrypted using the aforementioned decryption key to obtain the vehicle's target decrypted network packet. For example, FIG3(a) is a flowchart of a vehicle data transmission method according to an embodiment of the present disclosure, which includes a first stage and a second stage.
[0104] Phase 1 is the initialization phase, which includes the following steps.
[0105] In step S301, the gateway broadcasts the root key K and the gateway (GECU) identifier (ID) to each ECU through a secure channel.
[0106] In the technical solution provided by step S301 of this disclosure, the root key K is a 16-byte root key generated by a quantum random number generator.
[0107] After the gateway broadcasts the root key K and gateway ID to each ECU through a secure channel, step S302 is entered, where the ECU calculates the main hash chain seed S1 and the backup hash chain seed S2.
[0108] In the technical solution provided in step S302 of this disclosure, the main hash chain seed S1 = H(K⊕MAIN_Seed⊕GECU_ID). The backup hash chain seed S2 = H(K⊕BACKUP_Seed⊕GECU_ID).
[0109] For example, if the current chain identifier is Chaintag=0, then the current data chain corresponding to the current chain identifier is the main chain S1, the chain pointer pos_curr=pos_0, and the local state table is initialized to empty.
[0110] After calculating the main hash chain seed S1 and the backup hash chain seed S2, proceed to step S303, where the ECU configures the initial state of the data chain.
[0111] In the technical solution provided in step S303 of this disclosure, the initial state of the data chain is represented by Chaintag_curr = Chaintag_0 and pos_curr = pos_0. For example, the length of the data chain is 128.
[0112] Phase two is the communication phase, which includes the following steps.
[0113] After the ECU configures the initial state of the data chain, proceed to step S304, read the current chain element Chain[pos], and obtain the encryption key Kcurr=KDF(Chain[pos]||K).
[0114] After reading the current chain element Chain[pos] and obtaining the encryption key Kcurr = KDF(Chain[pos]||K), proceed to step S305 to encrypt the CAN message, construct a security message frame from the encrypted CAN message and the current data link information, and send the security message frame to ECU_RX.
[0115] In the technical solution provided by step S306 of this disclosure, the aforementioned security message frame is represented by {C, Chaintag_curr, pos_curr}, where C represents the encrypted CAN message.
[0116] After sending the safety message frame to ECU_RX, proceed to step S306 to extract the current data link information from the safety message frame.
[0117] In the technical solution provided by step S306 of this disclosure, Chaintag_curr and pos_curr are extracted from the security message frame.
[0118] After extracting Chaintag_curr and pos_curr from the security message frame, proceed to step S307 to detect the difference between the current data chain information and the historical data chain information.
[0119] In the technical solution provided in step S307 of this disclosure, the differences between Chaintag_curr and pos_curr and Chaintag_prev and pos_prev are detected. If Chaintag_curr and Chaintag_prev show chain identifier rollback, for example, if Chaintag_curr = 0 and Chaintag_prev = 1, then the difference is an abnormal difference; if pos is not increasing within the same chain (pos_curr ≤ pos_prev), for example, if pos_curr = 2 and pos_prev = 3, then the difference is an abnormal difference; if the chain identifier is increasing and pos_curr ≠ 0, then the difference is an abnormal difference; if Chaintag_curr and Chaintag_prev are the same, and pos is increasing within the same chain, then the difference is a reasonable difference; if Chaintag_curr and Chaintag_prev are different, the hash chain identified by Chaintag_curr is the next chain after the hash chain identified by Chaintag_prev, and pos_curr = 0, then the difference is a reasonable difference.
[0120] After detecting the differences between Chaintag_curr and pos_curr and Chaintag_prev and pos_prev, if the differences are reasonable, proceed to step S308 to update the state table, calculate the symmetric key, and decrypt the encrypted CAN message.
[0121] If the difference is an abnormal difference, then the steps of executing the vehicle data transmission method are terminated.
[0122] In this embodiment, the data chains in the target data chain set are updated by executing the data chain update method shown in FIG3(b). For example, FIG3(b) is a schematic diagram of a data chain update method according to an embodiment of the present disclosure, which includes the following steps.
[0123] Step S311: When all hash chains in S1 are in a used state, switch to the standby hash chain set before the next transmission to ECU_RX.
[0124] In the technical solution provided by step S311 of this disclosure, the backup hash chain set is switched, for example, by setting Chaintag⊕=1 and resetting pos_curr=pos_0.
[0125] After switching the backup hash chain set, proceed to step S312 to calculate the second backup hash chain set.
[0126] After calculating the second backup hash chain set S3, proceed to step S313, where the first backup hash chain set S2 is determined as the target hash chain set; and the second backup hash chain set S3 is determined as the first backup hash chain set S2.
[0127] ECUs within the domain generate S3 locally using the same GECU_ID and K, without requiring gateway broadcasting, thus achieving the goal of ensuring intra-domain synchronization during chain switching.
[0128] In this embodiment, when communicating vehicle data, encrypted transmission messages of the vehicle are acquired. From the acquired encrypted transmission messages, the target encrypted network packet and current data link information are extracted. Based on the extracted current data link information and historical data link information, a decryption key for the target network packet is determined, and the target encrypted network packet is decrypted using the determined decryption key to obtain the vehicle's target decrypted network packet. Because this embodiment extracts the target encrypted network packet and current data link information from the acquired encrypted transmission messages, determines the decryption key for the target network packet based on the relationship between the current data link information and historical data link information, and uses the decryption key to decrypt the extracted target encrypted network packet to obtain the vehicle's target decrypted network packet, it achieves the goal of reducing bandwidth occupancy, thereby solving the technical problem of low efficiency in vehicle data communication and ultimately improving the technical effect of improving the efficiency of vehicle data communication.
[0129] According to another aspect of the present disclosure, corresponding to the above-described embodiments of the vehicle data communication method, the present disclosure also provides a vehicle data communication device applied to a vehicle's receiving controller. FIG4 is a structural block diagram of a vehicle data communication device according to an embodiment of the present disclosure. As shown in FIG4, the vehicle data communication device 400 includes: an acquisition component 402, a first extraction component 404, a first determination component 406, and a decryption component 408.
[0130] The acquisition component 402 is configured to acquire encrypted transmission messages of the vehicle. The encrypted transmission messages include: the vehicle's target encrypted network message and the vehicle's current data link information in the current communication process. The target encrypted network message is obtained by encrypting the vehicle's target network message. The target network message is used to represent the communication data generated by the vehicle in the current communication process. The current data link information is used to represent the attributes of the current data link in the target data link set of the vehicle that is in the positioning state. The target data link set is the set of data links that the vehicle needs to use in different communication processes, including the current communication process.
[0131] The first extraction component 404 is configured to extract the target encrypted network message and the current data link information from the encrypted transmission message.
[0132] The first determining component 406 is configured to determine the decryption key of the target network packet based on the current data link information and the historical data link information. The historical data link information is used to indicate the attributes of the historical data link that was in the positioning state in the previous communication process of the current communication process. The current data link is the next data link of the historical data link. The decryption key and the encryption key of the target network packet are symmetric keys. The encryption key is used to indicate the key used to encrypt the target network packet.
[0133] The decryption component 408 is configured to use the decryption key to decrypt the target encrypted network packet to obtain the target decrypted network packet of the vehicle.
[0134] Optionally, the vehicle's data communication device 400 includes: a second extraction component configured to extract historical data link information from a target data link information table; a first determining component 406 including: an extraction component configured to extract the current chain identifier and the current data identifier of the current data link from the current data link information, wherein the current chain identifier is used to identify the current data link and the current data identifier is used to identify the data in the current data link; and to extract the historical chain identifier and the historical data identifier of the historical data link from the historical data link information, wherein the historical chain identifier is used to identify the historical data link and the historical data identifier is used to identify the data in the historical data link; and a determining component configured to determine a decryption key based on the current chain identifier, the current data identifier, the historical chain identifier, and the historical data identifier.
[0135] Optionally, the determining component includes: a first determining sub-component, configured to determine the association between the current chain identifier and the historical chain identifier; and a second determining sub-component, configured to determine the decryption key based on the association, the current data identifier, and the historical data identifier.
[0136] Optionally, the second determining sub-component is configured to determine the decryption key based on the association relationship, the current data identifier, and the historical data identifier by performing the following steps: In response to the association relationship indicating that the current data chain corresponding to the current chain identifier is the next data chain of the historical data chain corresponding to the historical chain identifier, the data corresponding to the current data identifier is the first data in the current data chain, and the data corresponding to the historical data identifier is the last data in the historical data chain, the historical chain identifier is determined as the current chain identifier, and the historical data identifier is determined as the current data identifier; In response to the fact that the historical chain identifier has been determined as the current chain identifier and the historical data identifier has been determined as the current data identifier in the target data chain information table, the current data identifier is updated so that the updated current data identifier identifies each data after the first data according to the order of the data in the current data chain; In response to the fact that the current data chain corresponding to the current chain identifier is the same as the historical data chain corresponding to the historical chain identifier, and the data corresponding to the updated current data identifier is the last data in the current data chain, the decryption key is generated using the data in the current data chain.
[0137] Optionally, the vehicle's data communication device 400 includes: an updating component configured to update the target data chain set to a backup data chain set in response to each data chain in the target data chain set being in a used state. The backup data chain set is a collection of data chains that the vehicle will need to use in future communication processes. The backup data chain set includes: a first backup data chain set and a second backup data chain set. The first backup data chain set is generated using the vehicle's root key while generating the target data chain set. The second backup data chain set is generated using the first and last data chains in the target data chain set after each data chain is in a used state.
[0138] In this embodiment, the vehicle's data communication device includes the following components: an acquisition component, configured to acquire encrypted transmission messages of the vehicle, wherein the encrypted transmission messages include: a target encrypted network message of the vehicle, and current data link information of the vehicle in the current communication process. The target encrypted network message is obtained by encrypting the vehicle's target network message, and the target network message is used to represent the communication data generated by the vehicle in the current communication process. The current data link information is used to represent the attributes of the current data link in the target data link set of the vehicle that is in a positioning state. The target data link set is a set of data links that the vehicle needs to use in different communication processes, and different communication processes include the current communication process; and a first extraction component, configured to extract the target encrypted network message and the current data link information from the encrypted transmission messages. The first determining component is configured to determine the decryption key of the target network packet based on the current data link information and historical data link information. The historical data link information indicates the attributes of the historical data links that were in a positioning state in the previous communication process of the current communication process. The current data link is the next data link of the historical data links. The decryption key and the encryption key of the target network packet are symmetric keys, and the encryption key represents the key used to encrypt the target network packet. The decryption component is configured to use the decryption key to decrypt the target encrypted network packet, obtaining the vehicle's target decrypted network packet. This achieves the goal of reducing bandwidth occupancy, thereby solving the technical problem of low efficiency in vehicle data communication and ultimately improving the technical effect of improving the efficiency of vehicle data communication.
[0139] According to another aspect of the present disclosure, corresponding to the embodiments of the vehicle data communication method described above, the present disclosure also provides another vehicle data communication device applied to a vehicle's transmission controller. FIG5 is a structural block diagram of another vehicle data communication device according to an embodiment of the present disclosure. As shown in FIG5, the vehicle data communication device 500 includes: a first generating component 502 and a transmitting component 504.
[0140] The first generation component 502 is configured to generate encrypted transmission messages for the vehicle. The encrypted transmission messages include: the vehicle's target encrypted network message and the vehicle's current data link information in the current communication process. The target encrypted network message is obtained by encrypting the vehicle's target network message. The target network message is used to represent the communication data generated by the vehicle in the current communication process. The current data link information is used to represent the attributes of the current data link in the vehicle's target data link set that is in a positioning state in the vehicle's current communication process. The target data link set is the set of data links that the vehicle needs to use in different communication processes, including the current communication process.
[0141] The transmitting component 504 is configured to send an encrypted transmission message to the vehicle's receiving controller. This encrypted transmission message enables the vehicle to extract the target encrypted network packet and current data link information. The current data link information and historical data link information enable the vehicle to determine the decryption key for the target network packet. The historical data link information indicates the attributes of historical data links that were in a positioning state during the previous communication process of the current communication process. The current data link is the next data link after the historical data link. The decryption key and the encryption key of the target network packet are symmetric keys. The encryption key represents the key used to encrypt the target network packet, and the decryption key is used to decrypt the target encrypted network packet to obtain the vehicle's target decrypted network packet.
[0142] Optionally, the vehicle's data communication device 500 includes: a second generation component configured to generate a target data chain set from the data chains that the vehicle needs to use in different communication processes; a second determination component configured to determine the current data chain in the positioning state from the target data chain set; a third generation component configured to generate an encryption key using the current data chain; an encryption component configured to encrypt a target network packet using the encryption key to obtain a target encrypted network packet; and a combination component configured to combine the target encrypted network packet and the current data chain information to obtain an encrypted transmission message.
[0143] Embodiments of this disclosure also provide a processor. The processor is configured to run a program, wherein the program is executed by the processor to perform the methods described in various embodiments of this disclosure.
[0144] Embodiments of this disclosure also provide a vehicle, including: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods described in various embodiments of this disclosure when it runs.
[0145] Embodiments of this disclosure also provide a computer-readable storage medium including a stored executable program, wherein, when the executable program is executed, it controls the device on which the computer-readable storage medium resides to perform the methods of the various embodiments of this disclosure.
[0146] Embodiments of this disclosure also provide a computer program product, including a computer program that, when executed by a processor, implements the methods of various embodiments of this disclosure.
[0147] Embodiments of this disclosure also provide a computer program product, including a non-volatile computer-readable storage medium for storing a computer program that, when executed by a processor, implements the methods described in various embodiments of this disclosure.
[0148] Embodiments of this disclosure also provide a computer program that, when executed by a processor, implements the methods described in the various embodiments of this disclosure.
[0149] In the above embodiments of this disclosure, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0150] In the several embodiments provided in this disclosure, it should be understood that the disclosed technical content can be implemented in other ways. The apparatus embodiments described above are illustrative; for example, the division of components is a logical functional division, and in actual implementation, there may be other division methods, such as multiple components being combined or integrated into another system, or some features being ignored or not executed. Furthermore, the shown or discussed mutual coupling, direct coupling, or communication connection is through some interface; the indirect coupling or communication connection of multiple components is electrical or other forms.
[0151] The components described as separate parts may or may not be physically separate. The parts shown as components may or may not be physical components; that is, they may be located in one place or distributed across multiple components. Some or all of the components are selected according to actual needs to achieve the purpose of this embodiment.
[0152] Furthermore, in the various embodiments of this disclosure, the functional components are integrated into a single processing component, or each component exists physically separately, or two or more components are integrated into one component. The integrated components are implemented either in hardware or as software functional components.
[0153] If the integrated components are implemented as software functional components and sold or used as independent products, they are stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or all or part of the technical solution, is embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media for storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0154] The above description represents the preferred embodiments of this disclosure. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this disclosure, and these improvements and modifications should also be considered within the scope of protection of this disclosure. Industrial applicability
[0155] This disclosure provides a vehicle data communication method. When communicating with vehicle data, the method involves acquiring encrypted transmission messages, extracting target encrypted network packets and current data link information from these messages, determining a decryption key for the target network packets based on the extracted current and historical data link information, and decrypting the target encrypted network packets using the determined decryption key to obtain the vehicle's target decrypted network packets. Because this disclosure, by extracting the target encrypted network packets and current data link information from the acquired encrypted transmission messages, determining the decryption key for the target network packets based on the relationship between the current and historical data link information, and decrypting the extracted target encrypted network packets using the decryption key, achieves the goal of reducing bandwidth occupancy, thereby solving the technical problem of low efficiency in vehicle data communication and ultimately improving the efficiency of vehicle data communication.
Claims
1. A data communication method for a vehicle, applied to a receiving controller of the vehicle, comprising: The encrypted transmission message of the vehicle is obtained, wherein the encrypted transmission message includes: the target encrypted network message of the vehicle, and the current data link information of the vehicle in the current communication process. The target encrypted network message is obtained by encrypting the target network message of the vehicle. The target network message is used to represent the communication data generated by the vehicle in the current communication process. The current data link information is used to represent the attributes of the current data link in the target data link set of the vehicle that is in the positioning state. The target data link set is a set of data links that the vehicle needs to use in different communication processes. The different communication processes include the current communication process. Extract the target encrypted network message and the current data link information from the encrypted transmission message; Based on the current data link information and historical data link information, a decryption key for the target network packet is determined. The historical data link information indicates the attributes of the historical data links in the target data link set that were in the positioning state during the previous communication process of the current communication process. The current data link is the next data link of the historical data link. The decryption key and the encryption key of the target network packet are symmetric keys. The encryption key represents the key used to encrypt the target network packet. Using the decryption key, the target encrypted network message is decrypted to obtain the target decrypted network message of the vehicle.
2. The method according to claim 1, wherein, Based on the current data link information and the historical data link information, the decryption key of the target network packet is determined, including: From the current data chain information, extract the current chain identifier and the current data identifier of the current data chain, wherein the current chain identifier is used to identify the current data chain and the current data identifier is used to identify the data in the current data chain; and from the historical data chain information, extract the historical chain identifier and the historical data identifier of the historical data chain, wherein the historical chain identifier is used to identify the historical data chain and the historical data identifier is used to identify the data in the historical data chain; The decryption key is determined based on the current chain identifier, the current data identifier, the historical chain identifier, and the historical data identifier.
3. The method according to claim 2, wherein, Determining the decryption key based on the current chain identifier, the current data identifier, the historical chain identifier, and the historical data identifier includes: Determine the association between the current chain identifier and the historical chain identifier; The decryption key is determined based on the association, the current data identifier, and the historical data identifier.
4. The method according to claim 3, wherein, Determining the decryption key based on the association, the current data identifier, and the historical data identifier includes: In response to the association indicating that the current data chain corresponding to the current chain identifier is the next data chain of the historical data chain corresponding to the historical chain identifier, the data corresponding to the current data identifier is the first data in the current data chain, and the data corresponding to the historical data identifier is the last data in the historical data chain, the historical chain identifier is determined as the current chain identifier, and the historical data identifier is determined as the current data identifier; In response to the fact that the historical chain identifier has been determined as the current chain identifier and the historical data identifier has been determined as the current data identifier in the target data chain information table, the current data identifier is updated so that the updated current data identifier identifies each data after the first data according to the order of the data in the current data chain; In response to the current data chain corresponding to the current chain identifier being the same as the historical data chain corresponding to the historical chain identifier, and the data corresponding to the updated current data identifier being the last data in the current data chain, the decryption key is generated using the data in the current data chain.
5. The method according to claim 4, wherein, The method further includes: In response to the fact that the current data chain is different from the historical data chain, and / or the updated data corresponding to the current data identifier is data in the current data chain excluding the last data, it is prohibited to use the data in the current data chain to generate the decryption key.
6. The method according to claim 3, wherein, Determining the association between the current chain identifier and the historical chain identifier includes: The current chain identifier and the historical chain identifier are compared to obtain a first comparison result, wherein the first comparison result is used to represent the association relationship.
7. The method according to claim 1, wherein, The method further includes: Extract the historical data link information from the target data link information table.
8. The method according to any one of claims 1 to 7, wherein, The method further includes: In response to the fact that each data chain in the target data chain set is in a used state, the target data chain set is updated to a backup data chain set, wherein the backup data chain set is a set of data chains that the vehicle will need to use in future communication processes.
9. The method according to claim 8, wherein, The backup data chain set includes: a first backup data chain set and a second backup data chain set. The first backup data chain set is generated using the root key of the vehicle while generating the target data chain set. The second backup data chain set is generated using the first and last data chains in the target data chain set after the usage status of each data chain is the used state.
10. A data communication method for a vehicle, applied to the vehicle's transmission controller, comprising: An encrypted transmission message for the vehicle is generated, wherein the encrypted transmission message includes: a target encrypted network message for the vehicle, and current data link information for the vehicle in the current communication process. The target encrypted network message is obtained by encrypting the target network message for the vehicle. The target network message is used to represent the communication data generated by the vehicle in the current communication process. The current data link information is used to represent the attributes of the current data link in the target data link set of the vehicle that is in a positioning state in the current communication process. The target data link set is a set of data links that the vehicle needs to use in different communication processes, and the different communication processes include the current communication process. The encrypted transmission message is sent to the receiving controller of the vehicle. The encrypted transmission message enables the vehicle to extract the target encrypted network packet and the current data link information from the encrypted transmission message. The current data link information and historical data link information enable the vehicle to determine the decryption key of the target network packet. The historical data link information indicates the attributes of historical data links in the target data link set that were in the positioning state during the previous communication process of the current communication process. The current data link is the next data link of the historical data link. The decryption key and the encryption key of the target network packet are symmetric keys. The encryption key represents the key used to encrypt the target network packet. The decryption key enables the vehicle to decrypt the target encrypted network packet to obtain the vehicle's target decrypted network packet.
11. The method according to claim 10, wherein, Generating the encrypted transmission message for the vehicle includes: The encrypted network message and the current data link information are combined to obtain the encrypted transmission message.
12. The method according to claim 10, wherein, The method further includes: The data chains that the vehicle needs to use in the different communication processes are generated into the target data chain set; From the target data chain set, determine the current data chain that is in the positioning state; The encryption key is generated using the current data chain; The target network packet is encrypted using the encryption key to obtain the target encrypted network packet.
13. A processor configured to run a program, wherein, The program is executed by the processor to perform the data communication method of the vehicle according to any one of claims 1 to 12.
14. A vehicle comprising: Memory, which stores executable programs; A processor configured to run the program, wherein the program, when running, executes the data communication method of the vehicle according to any one of claims 1 to 12.
15. A computer-readable storage medium comprising a stored executable program, wherein, When the executable program is executed, it controls the device containing the storage medium to perform the data communication method of the vehicle according to any one of claims 1 to 12.
