A driving data processing method, device and system
By verifying the integrity of driving data through blockchain and Trusted Execution Environment (TEE), the problem of data tampering in autonomous vehicles is solved, and the trusted transmission and storage of data is realized, thereby improving the accuracy of supervision.
Patent Information
- Application Number
- CN202110803024.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-15
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2041-07-15
AI Technical Summary
In existing technologies, the driving data of autonomous vehicles is easily tampered with during storage and transmission, making it impossible to guarantee data integrity and leading to difficulties in supervision.
By employing blockchain technology and a Trusted Execution Environment (TEE), the integrity of driving data is verified through identifiers in the data packet header, ensuring the reliable transmission and storage of data between different storage devices.
This effectively reduces the possibility of vehicle data being tampered with during transmission and storage, improves data credibility and integrity, and ensures the accuracy of supervision.
Smart Images

Figure CN115622722B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of autonomous driving technology, and in particular to a driving data processing method, apparatus and system. Background Technology
[0002] With the rapid development of the autonomous driving industry and the frequent accidents involving autonomous vehicles, the regulatory requirements for driving data from these vehicles are becoming increasingly urgent. Currently, relevant departments require autonomous vehicles or automakers to report some of the driving data they collect to a regulatory center after obtaining user authorization, for vehicle safety monitoring. However, the original driving data stored in the relevant storage devices of autonomous vehicles, automakers, or regulatory centers may be tampered with, compromising the integrity of the original data and posing challenges to vehicle supervision.
[0003] Therefore, ensuring the integrity of raw driving data remains an important issue that urgently needs to be addressed. Summary of the Invention
[0004] This application provides a method, apparatus, and system for processing vehicle data, which helps to ensure the integrity of raw vehicle data stored in different storage devices.
[0005] In a first aspect, embodiments of this application provide a method for processing vehicle data. This method can be applied to a first communication device, which can be an independent device, a chip or component in a device, or software. It can be deployed in the cloud, a roadside device, a remote server, or a local server, etc. Embodiments of this application do not limit the product form or deployment method of the communication device.
[0006] The method includes: a first communication device obtaining a first data packet header based on the identifier of a target vehicle, the first data packet header containing a first identifier associated with first driving data of the target vehicle; obtaining second driving data of the target vehicle, the second driving data being part or all of the data in the first driving data; and verifying the integrity of the second driving data based on the first identifier.
[0007] Using the above method, the first communication device can act as an anti-tampering node. By utilizing the first identifier contained in the first data packet header, it verifies the integrity of the second driving data to be used (the second driving data can be stored in different storage devices), thereby ensuring the integrity of the original driving data stored in different storage devices and reducing the probability that the first communication device uses unauthorized tampered and untrusted driving data to monitor the target vehicle.
[0008] In conjunction with the first aspect, in one possible design, obtaining the first data packet header based on the identifier of the target vehicle includes: obtaining the first data packet header from a target device based on the identifier of the target vehicle, wherein the target device includes a blockchain node.
[0009] The above method utilizes blockchain technology to ensure the implementation of the data anti-tampering function of the first communication device. The first data packet header can be stored in the target block of the blockchain. Through the blockchain node device, the first communication device can obtain the first data packet header from the target block. Due to the immutable nature of the blockchain, once the first data packet header is stored in the target block, it cannot be changed. Using this immutable first data packet header helps to verify whether the second vehicle data has been unauthorizedly tampered with during transmission or storage.
[0010] In conjunction with the first aspect, in one possible design, obtaining the second driving data of the target vehicle includes: obtaining the second driving data from the on-board storage device of the target vehicle; or, obtaining the second driving data from a server.
[0011] Using the above method, the first communication device can obtain the second driving data from different storage devices such as vehicle storage device servers for integrity verification. It should be noted that the second driving data can also be data stored on the first communication device. That is, when the first communication device acts as an anti-tampering node, it can have the function of verifying the integrity of its own stored driving data or other acquired driving data. This application embodiment does not limit this aspect.
[0012] In conjunction with the first aspect, in one possible design, the method further includes: generating a second identifier based on the target file and the second driving data; verifying the integrity of the second driving data based on the first identifier includes: determining that the second driving data is complete if the first identifier and the second identifier are consistent; or determining that the second driving data is incomplete if the first identifier and the second identifier are inconsistent.
[0013] Using the above method, the first communication device can perform a consistency comparison by comparing the data identifiers associated with the two data sets. If there is no difference between the two data identifiers, it indicates that the second driving data is complete, i.e., there is no unauthorized tampering; if there is a difference between the two data identifiers, it indicates that the second driving data is incomplete, i.e., there is unauthorized tampering, and the second driving data is not suitable for monitoring the target vehicle.
[0014] In conjunction with the first aspect, in one possible design, the method further includes: constructing a second data packet header based on the second identifier; and sending the second data packet header to a second communication device.
[0015] Using the above method, when the first communication device acts as an anti-tampering node, it can also construct a second data packet header based on the second vehicle data and send it to the target device so that the integrity of the second vehicle data can be verified by using the second data packet header, thereby reducing the probability that the second vehicle data stored on the first device side can be tampered with without authorization.
[0016] In conjunction with the first aspect, in one possible design, constructing the second data packet header based on the second identifier includes: invoking a trusted execution program TA installed in a trusted execution environment (TEE) to construct the second data packet header based on the second identifier, wherein the second data packet header further includes a trusted timestamp and the signature information of the TA program.
[0017] Using the above method, the first communication device can construct the second data packet header in a TEE environment, provide security isolation for the second data packet header, and improve the reliability of the second data packet header.
[0018] In conjunction with the first aspect, in one possible design, the method further includes: generating a third identifier based on a target file and third vehicle data, wherein the third vehicle data is part or all of the data in the second vehicle data; and sending a target data packet to a third communication device, wherein the target data packet includes the third identifier and the third vehicle data.
[0019] Using the above method, the first communication device, as an anti-tampering node, can selectively send the second vehicle data to other communication devices to ensure that this information is not tampered with without authorization.
[0020] Secondly, embodiments of this application provide a vehicle data processing method. This method can be applied to a second communication device, which can be an independent device, a chip or component within a device, or software. It can be deployed in the cloud, on a roadside device, a remote server, or a local server, etc. Embodiments of this application do not limit the product form or deployment method of this communication device. The second communication device can also serve as an anti-tampering node, possessing data anti-tampering functionality. It should be noted that the implementation of the data anti-tampering function of the second communication device is the same as or similar to that of the first communication device; details can be found in the relevant content of the first aspect above, and will not be differentiated further below.
[0021] The method includes: a second communication device acquiring fourth driving data of the target vehicle; generating a fourth identifier based on the target file and the fourth driving data; constructing a fourth data packet header based on the fourth identifier; and sending the fourth data packet header to a first communication device.
[0022] In conjunction with the second aspect, in one possible design, constructing the fourth data packet header based on the fourth identifier includes: calling a TA installed in the TEE to construct the fourth data packet header based on the fourth identifier, wherein the fourth data packet header further includes a trusted timestamp and the signature information of the TA program.
[0023] In conjunction with the second aspect, in one possible design, the method further includes: obtaining a fifth data packet header based on the identifier of the target vehicle, the fifth data packet header containing a fifth identifier associated with the fifth driving data of the target vehicle, the fourth driving data being part or all of the data in the fifth driving data; and verifying the integrity of the fourth driving data based on the fifth identifier.
[0024] In conjunction with the second aspect, in one possible design, obtaining the fifth data packet header based on the identifier of the target vehicle includes: obtaining the fifth data packet header from a target device, the target device including a blockchain node, based on the identifier of the target vehicle.
[0025] In conjunction with the second aspect, in one possible design, verifying the integrity of the fourth driving data based on the fifth identifier includes: determining that the fourth driving data is complete if the fifth identifier and the fourth identifier are consistent; or determining that the fourth driving data is incomplete if the fifth identifier and the fourth identifier are inconsistent.
[0026] In conjunction with the second aspect, in one possible design, obtaining the fourth driving data of the target vehicle includes: obtaining the fourth driving data from the on-board storage device of the target vehicle; or, obtaining the fourth driving data from a server.
[0027] In conjunction with the second aspect, in one possible design, the method further includes: generating a sixth identifier based on the target file and the sixth train data, wherein the sixth train data is part or all of the data in the fourth train data; and sending a target data packet to a third communication device, wherein the target data packet includes the sixth identifier and the sixth train data.
[0028] Thirdly, embodiments of this application provide a vehicle data processing method. This method can be applied to a third communication device, which can be an independent device, a chip or component within a device, or software. It can be deployed in the cloud, on a roadside device, a remote server, or a local server, etc. Embodiments of this application do not limit the product form or deployment method of this communication device. The third communication device can also serve as an anti-tampering node, possessing data anti-tampering functionality. It should be noted that the implementation of the data anti-tampering function of the third communication device is the same as or similar to that of the first and second communication devices. For details, please refer to the relevant content of the first or second aspects mentioned above; further distinctions will not be made below.
[0029] The method includes: acquiring the seventh driving data of the target vehicle; generating a seventh identifier using the target file and the seventh driving data; constructing a seventh data packet header based on the seventh identifier; and sending the seventh data packet header to a first communication device.
[0030] In conjunction with the third aspect, in one possible design, constructing the seventh data packet header based on the seventh identifier includes: calling a TA installed in the TEE to construct the seventh data packet header based on the fourth identifier, wherein the seventh data packet header also contains a trusted timestamp and the signature information of the TA program.
[0031] In conjunction with the third aspect, in one possible design, the method further includes: obtaining an eighth data packet header based on the identifier of the target vehicle, the eighth data packet header containing an eighth identifier associated with the eighth driving data of the target vehicle, the seventh driving data being part or all of the data in the eighth driving data; and verifying the integrity of the seventh driving data based on the eighth identifier.
[0032] In conjunction with the third aspect, in one possible design, obtaining the eighth data packet header based on the identifier of the target vehicle includes: obtaining the eighth data packet header from a target device, the target device including a blockchain node, based on the identifier of the target vehicle.
[0033] In conjunction with the third aspect, in one possible design, verifying the integrity of the seventh driving data based on the eighth identifier includes: determining that the seventh driving data is complete if the eighth identifier and the seventh identifier are consistent; or determining that the seventh driving data is incomplete if the eighth identifier and the seventh identifier are inconsistent.
[0034] In conjunction with the third aspect, in one possible design, obtaining the seventh driving data of the target vehicle includes: obtaining the seventh driving data from the on-board storage device of the target vehicle; or, obtaining the seventh driving data from a server.
[0035] In conjunction with the third aspect, in one possible design, the method further includes: generating a ninth identifier using a target file and ninth train data, wherein the ninth train data is part or all of the data in the seventh train data; and sending a target data packet to a third communication device, wherein the target data packet includes the ninth identifier and the ninth train data.
[0036] Fourthly, embodiments of this application provide a vehicle data processing method, which can be applied to an anti-tampering node. The anti-tampering node can be the first communication device mentioned in the first aspect, the second communication device mentioned in the second aspect, or the third communication device mentioned in the third aspect. The anti-tampering node can have data anti-tampering function.
[0037] In conjunction with the fourth aspect, in one possible design, when the anti-tampering node implements the data anti-tampering function, it can construct a data packet header based on the received original driving data of the target vehicle and send the data packet header to the target node for secure storage. The data packet header contains a data identifier associated with the original driving data. This data identifier can be used to verify the integrity of some or all of the original driving data during subsequent transmission or storage of the target vehicle's driving data, thereby reducing the possibility of the original driving data being tampered with during transmission or storage, and ensuring the authenticity, integrity, and reliability of the target vehicle's original driving data as much as possible, thus reducing the difficulty of supervising the target vehicle. The target node can be any node other than the anti-tampering node, or a designated node; this application embodiment does not limit this. For example, if the anti-tampering node is the first communication device described in the first aspect, the other nodes can be the second communication device described in the second aspect, the third communication device described in the third aspect, or a blockchain node.
[0038] The method may include: obtaining a first identifier, the first identifier being associated with first driving data of a target vehicle; constructing a first data packet header based on the first identifier; and sending the first data packet header to other nodes. Optionally, obtaining the first identifier includes: generating the first identifier in an untrusted execution environment (REE) based on a target file and the saved first driving data. Optionally, constructing the first data packet header based on the first identifier includes: invoking a trusted execution program (TA) installed in a trusted execution environment (TEE) to cause the TA to construct the first data packet header based on the first identifier. Optionally, the first data packet header includes a trusted timestamp and the signature information of the TA.
[0039] Optionally, the first data packet header can be a data packet header from at least two data packet headers constructed in a chain. The at least two data packet headers include a second data packet header and a first data packet header constructed sequentially. The first data packet header further includes a second identifier of the second data packet header. The second identifier is associated with the second driving data of the target vehicle. The second collection time period of the second driving data is adjacent to the first collection time period of the first driving data, and the second collection time period precedes the first collection time period. Optionally, the method further includes: generating a target data packet based on the first identifier and some or all of the data in the first driving data, and sending the target data packet to the other nodes.
[0040] In conjunction with the fourth aspect, in another possible design, when the anti-tampering node implements the data anti-tampering function, it can obtain the target data packet header from the target node based on the target vehicle's identifier, and verify the integrity of the stored first driving data based on the target identifier contained in the target data packet header and associated with the target driving data. The first driving data is part or all of the data in the target driving data, and the first driving data is used to monitor the target vehicle. Therefore, by verifying the integrity of the stored first driving data, the possibility of using incomplete driving data of the target vehicle to monitor the target vehicle is reduced, improving the accuracy of monitoring. The target node is a pre-negotiated device for the anti-tampering node to implement the data anti-tampering function. If the anti-tampering node is the first communication device mentioned in the first aspect, the target node can be the second communication device mentioned in the second aspect, or the third communication device mentioned in the third aspect, or a designated blockchain node.
[0041] In implementation, the method may include: obtaining a target data packet header from a target node based on the identifier of the target vehicle; parsing the target data packet header to obtain a target identifier, the target identifier being associated with the target driving data of the target vehicle; and verifying the integrity of the stored first driving data based on the target identifier. Optionally, verifying the integrity of the stored first driving data based on the target identifier includes: generating a first identifier based on the target file and the first driving data; verifying the integrity of the first driving data based on whether the target identifier and the first identifier are consistent, wherein if the target identifier and the first identifier are consistent, the first driving data is determined to be complete; if the target identifier and the first identifier are inconsistent, the first driving data is determined to be incomplete.
[0042] Optionally, in the two possible designs described above in the fourth aspect, the target file may include a hash algorithm and / or a Merkle tree algorithm. Vehicle driving data may include one or more of the following: vehicle data; warning data; ADAS data; operating data; performance data; battery data; network status data; alarm data; event data; perception data; user-defined, manually intervened parameter data. In this embodiment, the aforementioned anti-tampering node can be configured in at least one node of the communication system.
[0043] Fifthly, embodiments of this application provide a vehicle data processing apparatus, comprising: a first acquisition unit, configured to acquire a first data packet header based on the identifier of a target vehicle, the first data packet header containing a first identifier associated with first driving data of the target vehicle; a second acquisition unit, configured to acquire second driving data of the target vehicle, the second driving data being part or all of the data in the first driving data; and a first verification unit, configured to verify the integrity of the second driving data based on the first identifier.
[0044] In conjunction with the fifth aspect, in one possible design, the first acquisition unit is configured to: acquire the first data packet header from the target device based on the identifier of the target vehicle, wherein the target device includes a blockchain node.
[0045] In conjunction with the fifth aspect, in one possible design, the second acquisition unit is used to: acquire the second driving data from the on-board storage device of the target vehicle; or, acquire the second driving data from a cloud storage device.
[0046] In conjunction with the fifth aspect, in one possible design, it further includes: a first generation unit, configured to generate a second identifier based on the target file and the second driving data; and a first verification unit configured to: determine that the second driving data is complete if the first identifier and the second identifier are consistent; or, determine that the second driving data is incomplete if the first identifier and the second identifier are inconsistent.
[0047] In conjunction with the fifth aspect, one possible design further includes: a first construction unit for constructing a second data packet header based on the second identifier; and a first transmission unit for transmitting the second data packet header to the second communication device.
[0048] In conjunction with the fifth aspect, in one possible design, the first construction unit is used to: invoke a trusted execution program TA installed in a trusted execution environment (TEE) to construct the second data packet header based on the second identifier, wherein the second data packet header also contains a trusted timestamp and the signature information of the TA program.
[0049] In conjunction with the fifth aspect, in one possible design, it further includes: a second generation unit, configured to generate a third identifier based on the target file and the third driving data, wherein the third driving data is part or all of the data in the second driving data; and a second sending unit, configured to send a target data packet to a third communication device, wherein the target data packet includes the third identifier and the third driving data.
[0050] In a sixth aspect, embodiments of this application provide a vehicle data processing apparatus, comprising: a third acquisition unit for acquiring fourth vehicle data of a target vehicle; a third generation unit for generating a fourth identifier based on a target file and the fourth vehicle data; a second construction unit for constructing a fourth data packet header based on the fourth identifier; and a third sending unit for sending the fourth data packet header to a first communication device.
[0051] In conjunction with the sixth aspect, in one possible design, the second construction unit is used to: invoke the TA installed in the TEE to construct the fourth data packet header according to the fourth identifier, the fourth data packet header also containing a trusted timestamp and the signature information of the TA program.
[0052] In conjunction with the sixth aspect, in one possible design, it further includes: a fourth acquisition unit, configured to acquire a fifth data packet header based on the identifier of the target vehicle, the fifth data packet header containing a fifth identifier associated with the fifth driving data of the target vehicle, the fourth driving data being part or all of the data in the fifth driving data; and a second verification unit, configured to verify the integrity of the fourth driving data based on the fifth identifier.
[0053] In conjunction with the sixth aspect, in one possible design, the fourth acquisition unit is used to: acquire a fifth data packet header from the target device based on the identifier of the target vehicle, the target device including a blockchain node.
[0054] In conjunction with the sixth aspect, in one possible design, the third acquisition unit is used to: acquire the fourth driving data from the on-board storage device of the target vehicle; or, acquire the fourth driving data from a cloud storage device.
[0055] In conjunction with the sixth aspect, in one possible design, the second verification unit is used to: determine that the fourth driving data is complete if the fifth identifier and the fourth identifier are consistent; or determine that the fourth driving data is incomplete if the fifth identifier and the fourth identifier are inconsistent.
[0056] In conjunction with the sixth aspect, in one possible design, it further includes: a fourth generation unit, configured to generate a sixth identifier based on the target file and the sixth driving data, wherein the sixth driving data is part or all of the data in the fourth driving data; and a fourth sending unit, configured to send a target data packet to a third communication device, wherein the target data packet includes the sixth identifier and the sixth driving data.
[0057] In a seventh aspect, embodiments of this application provide a vehicle data processing apparatus, comprising: a fifth acquisition unit for acquiring seventh driving data of a target vehicle; a fifth generation unit for generating a seventh identifier based on a target file and the seventh driving data; a third construction unit for constructing a seventh data packet header based on the seventh identifier; and a fifth sending unit for sending the seventh data packet header to a first communication device.
[0058] In conjunction with the seventh aspect, in one possible design, the third construction unit is used to: invoke the TA installed in the TEE to construct the seventh data packet header according to the fourth identifier, the seventh data packet header also containing a trusted timestamp and the signature information of the TA program.
[0059] In conjunction with the seventh aspect, in one possible design, it further includes: a sixth acquisition unit, configured to acquire an eighth data packet header based on the identifier of the target vehicle, the eighth data packet header containing an eighth identifier associated with the eighth driving data of the target vehicle, the seventh driving data being part or all of the data in the eighth driving data; and a third verification unit, configured to verify the integrity of the seventh driving data based on the eighth identifier.
[0060] In conjunction with the seventh aspect, in one possible design, the sixth acquisition unit is used to: acquire an eighth data packet header from a target device, the target device including a blockchain node, based on the identifier of the target vehicle.
[0061] In conjunction with the seventh aspect, in one possible design, verifying the integrity of the seventh driving data based on the eighth identifier includes: determining that the seventh driving data is complete if the eighth identifier and the seventh identifier are consistent; or determining that the seventh driving data is incomplete if the eighth identifier and the seventh identifier are inconsistent.
[0062] In conjunction with the seventh aspect, in one possible design, the fifth acquisition unit is used to: acquire the seventh driving data from the on-board storage device of the target vehicle; or, acquire the seventh driving data from a cloud storage device.
[0063] In conjunction with the seventh aspect, in one possible design, it further includes: a sixth generation unit, configured to generate a ninth identifier based on the target file and the ninth driving data, wherein the ninth driving data is part or all of the data in the seventh driving data; and a sixth sending unit, configured to send a target data packet to a third communication device, wherein the target data packet includes the ninth identifier and the ninth driving data.
[0064] Eighthly, embodiments of this application provide a vehicle data processing apparatus, comprising: an acquisition unit for acquiring a first identifier, the first identifier being associated with first vehicle data of a target vehicle; a construction unit for constructing a first data packet header based on the first identifier; and a sending unit for sending the first data packet header to other nodes.
[0065] Optionally, the acquisition unit is configured to: generate the first identifier based on the target file and the saved first driving data in an untrusted execution environment (REE). Optionally, the construction unit is configured to: call the trusted execution program (TA) installed in the trusted execution environment (TEE) to cause the TA to construct the first data packet header based on the first identifier. Optionally, the first data packet header includes a trusted timestamp and the signature information of the TA. Optionally, the first data packet header can be the header of at least two data packet headers constructed in a chain, the at least two data packet headers including a second data packet header and a first data packet header constructed sequentially, the first data packet header further including a second identifier of the second data packet header, the second identifier being associated with the second driving data of the target vehicle, the second collection time period of the second driving data being adjacent to the first collection time period of the first driving data, and the second collection time period being before the first collection time period. Optionally, the sending unit is further configured to: generate a target data packet based on the first identifier and some or all of the data in the first driving data, and send the target data packet to the other nodes.
[0066] In implementation, the acquisition unit can also be used to: acquire a target data packet header from a target node based on the identifier of the target vehicle; the device further includes: a parsing unit, used to parse the target data packet header to obtain a target identifier, the target identifier being associated with the target driving data of the target vehicle; and a verification unit, used to verify the integrity of the stored first driving data based on the target identifier. Optionally, the verification unit is used to: generate a first identifier based on the target file and the first driving data, and verify the integrity of the first driving data based on whether the target identifier and the first identifier are consistent, wherein if the target identifier and the first identifier are consistent, the first driving data is determined to be complete; if the target identifier and the first identifier are inconsistent, the first driving data is determined to be incomplete.
[0067] Optionally, in a possible design of the eighth aspect, the target file may include a hash algorithm and / or a Merkle tree algorithm. Vehicle driving data may include one or more of the following: vehicle data; warning data; ADAS data; operational data; performance data; battery data; network status data; alarm data; event data; perception data; user-defined, manually intervened parameter data. In embodiments of this application, the driving data processing device described in the eighth aspect above may be configured in at least one node of the communication system.
[0068] Ninthly, embodiments of this application provide a vehicle data processing device, including: a processor and a memory; the memory is used to store a program; the processor is used to execute the program stored in the memory to enable the device to implement the methods of the first aspect and possible designs of the first aspect, or to implement the methods of the second aspect and possible designs of the second aspect, or to implement the methods of the third aspect and possible designs of the third aspect, or to implement the methods of the fourth aspect and possible designs of the fourth aspect.
[0069] In a tenth aspect, embodiments of this application provide a vehicle data processing system, including: the vehicle data processing apparatus as described in the fifth aspect above and as may be designed in the fifth aspect.
[0070] In conjunction with aspect ten, in one possible design, the vehicle data processing system may also include: the vehicle data processing device as described in aspect six above and in the possible design of aspect six.
[0071] In conjunction with aspect ten, in one possible design, the vehicle data processing system may also include: the vehicle data processing device as described in aspect seven above and in the possible design of aspect seven.
[0072] In conjunction with the tenth aspect, in one possible design, the vehicle data processing system may also include blockchain nodes.
[0073] Eleventhly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform any of the above-described methods and any possible designs of any of the above-described methods.
[0074] In a twelfth aspect, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to perform any of the above aspects and the methods described in any of the above aspects.
[0075] In a thirteenth aspect, embodiments of this application provide a chip system including a processor for calling a computer program or computer instructions stored in a memory, such that the processor performs any of the above aspects and the methods described in any of the possible designs of the above aspects.
[0076] In conjunction with aspect thirteen, in one possible implementation, the processor is coupled to the memory via an interface.
[0077] In conjunction with aspect thirteen, in one possible implementation, the chip system further includes a memory in which computer programs or computer instructions are stored.
[0078] In a fourteenth aspect, embodiments of this application provide a processor for invoking a computer program or computer instructions stored in a memory, such that the processor performs any of the methods described in the above-mentioned aspects and possible designs of the above-mentioned aspects.
[0079] Based on the implementations provided in the above aspects, this application can be further combined to provide more implementations. Attached Figure Description
[0080] Figures 1a-1c Examples of three possible methods for processing vehicle data;
[0081] Figure 2a The system architecture diagram applicable to the embodiments of this application is shown;
[0082] Figure 2b Another system architecture diagram applicable to embodiments of this application is shown;
[0083] Figures 3a-3h This application illustrates different scenarios for configuring anti-tampering nodes in the system architecture of its embodiments;
[0084] Figure 4 This application shows a schematic diagram illustrating the structure of a data packet and a data packet header according to an embodiment of the present application;
[0085] Figure 5a This illustration shows a schematic diagram of the principle of generating data identifiers according to an embodiment of this application;
[0086] Figure 5b This illustration shows another schematic diagram of the principle of generating data identifiers according to an embodiment of this application;
[0087] Figure 6 A schematic diagram illustrating the construction of a data packet according to an implementation of this application is shown;
[0088] Figure 7 A flowchart illustrating a vehicle data processing method according to an embodiment of this application is shown;
[0089] Figure 8 A flowchart illustrating a vehicle data processing method according to an embodiment of this application is shown;
[0090] Figure 9 A flowchart illustrating a vehicle data processing method according to an embodiment of this application is shown;
[0091] Figure 10 A schematic diagram of a communication device according to an embodiment of this application is shown;
[0092] Figure 11 A schematic diagram of a communication device according to an embodiment of this application is shown;
[0093] Figure 12 A schematic diagram of a communication device according to an embodiment of this application is shown;
[0094] Figure 13 A schematic diagram of a communication device according to an embodiment of this application is shown. Detailed Implementation
[0095] With the rapid development of the autonomous driving industry and the frequent accidents involving autonomous vehicles, the regulatory requirements for driving data from autonomous vehicles are becoming increasingly urgent. Currently, relevant departments require autonomous vehicles or automakers to report some of the driving data they collect to a regulatory center after obtaining user authorization, for the purpose of vehicle safety monitoring.
[0096] See Figure 1a As shown, in one implementation, driving data is recorded only on the vehicle's onboard storage device (e.g., an Endpoint Detection & Response (EDR) system). When an accident occurs, other devices can retrieve the relevant driving data from this onboard storage device as needed. Typically, the vehicle manufacturer or a third party retrieves and decrypts the driving data from the vehicle's onboard storage device before providing it to the regulatory center. In this scenario, there is a possibility that the vehicle manufacturer or third party may tamper with the decrypted driving data; therefore, the vehicle manufacturer or third party cannot prove the integrity of the driving data provided to the regulatory center.
[0097] See Figure 1bAs shown, in one implementation, driving data of autonomous vehicles is stored only on the vehicle manufacturer's server. For example, during operation, autonomous vehicles can collect data using their various sensors and report the collected data to the server in real time. Alternatively, the data can be cached in the vehicle's local onboard storage and periodically transferred to the server. In the event of an accident, the vehicle manufacturer or a third party retrieves and decrypts the driving data from the server before providing it to the regulatory center. However, there is a possibility that the vehicle manufacturer or third party may tamper with the decrypted driving data. Therefore, the vehicle manufacturer or third party cannot prove the integrity of the driving data provided to customers or regulatory authorities.
[0098] See Figure 1c As shown, in one implementation, the autonomous vehicle collects driving data during its journey, denoted as Data 1; the autonomous vehicle reports some or all of the driving data to the automaker's server, denoted as Data 2, where the amount of Data 1 is greater than or equal to the amount of Data 2; the automaker's server reports the driving data it requests to the monitoring center, denoted as Data 3, where the amount of Data 2 is greater than or equal to the amount of Data 3. However, this implementation has the following problems:
[0099] 1) Because autonomous vehicles generate a large amount of driving data, real-time uploading requires a significant amount of bandwidth. Therefore, autonomous vehicles typically only need to upload a portion of their driving data, and the unreported driving data may be tampered with.
[0100] 2) Because autonomous vehicles are equipped with more sensors than ordinary vehicles, they generate a large amount of driving data during driving. If the vehicle manufacturer's server reports the original driving data required by each of the different regulatory centers, it will increase the requirements for network transmission and storage, resulting in a waste of network transmission and storage resources.
[0101] Furthermore, in all three implementation methods mentioned above, the data reported to the regulatory center may theoretically be tampered with, meaning that the driving data stored locally by the regulatory center may also be altered.
[0102] To address the aforementioned issues, this application provides a vehicle data processing method, apparatus, and system. A first, second, or third communication device can obtain data packet headers from other communication devices. These headers contain data identifiers associated with the original vehicle driving data of the target vehicle. The first, second, or third communication device can utilize the data identifiers obtained from the data packet headers to perform integrity verification on relevant driving data stored locally or obtained from other storage devices, thereby reducing the possibility of tampering with the relevant driving data and maximizing the reliability of the driving data. The method and apparatus are based on the same technical concept. Since the principles by which the method and apparatus solve the problem are similar, the implementation of the apparatus and method can be mutually referred to, and repeated details will not be elaborated further.
[0103] It should be noted that the driving data processing scheme in this application embodiment can be applied to vehicle-to-everything (V2X), long-term evolution-vehicle (LTE-V), and vehicle-to-vehicle (V2V) communication. For example, it can be applied to vehicles with driving mobility functions, or other devices within vehicles with driving mobility functions. These other devices include, but are not limited to, vehicle-mounted terminals, vehicle-mounted controllers, vehicle-mounted modules, vehicle-mounted components, vehicle-mounted chips, vehicle-mounted units, vehicle-mounted radar, or vehicle-mounted cameras, and other sensors. Vehicles can implement the driving data processing method provided in this application embodiment through these vehicle-mounted terminals, vehicle-mounted controllers, vehicle-mounted modules, vehicle-mounted components, vehicle-mounted chips, vehicle-mounted units, vehicle-mounted radar, or vehicle-mounted cameras. Of course, the control scheme in this application embodiment can also be used in other intelligent terminals with mobility control functions besides vehicles, or be installed in other intelligent terminals with mobility control functions besides vehicles, or be installed in components of such intelligent terminals. These intelligent terminals can be intelligent transportation equipment, smart home devices, robots, etc. Examples include, but are not limited to, smart terminals or controllers, chips, radar or cameras, and other sensors and components within smart terminals.
[0104] It should be noted that in the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0105] Furthermore, unless otherwise specified, the ordinal numbers such as "first" and "second" mentioned in the embodiments of this application are used to distinguish multiple objects and are not used to limit the priority or importance of multiple objects. For example, the first data packet header, the second data packet header, and the third data packet header are only used to distinguish different data packet headers, and do not indicate that these three data packet headers have different priorities or importance.
[0106] For ease of understanding, the following description is provided in conjunction with the accompanying drawings and embodiments.
[0107] Figure 2a This is a system architecture diagram applicable to the embodiments of this application. See also... Figure 2a As shown, the communication system may include at least one communication device, such as any one or more of the first communication device 1-1, the second communication device 1-2, and the third communication device 1-3.
[0108] In this embodiment, any two of the first communication device 1-1, the second communication device 1-2, and the third communication device 1-3 can interact to implement the vehicle data processing scheme of this application. It should be understood that this is only illustrative and not limiting in any way. In actual applications, the system may include only one, two, or three of the first communication device 1-1, the second communication device 1-2, and the third communication device 1-3, or may include more communication devices such as the fourth communication device 1-4 and the fifth communication device 1-5. Different communication devices can communicate with each other to implement the vehicle data processing scheme described in the embodiments of this application. This application does not limit this aspect.
[0109] In one example, the aforementioned first communication device 1-1, second communication device 1-2, and third communication device 1-3 can be deployed respectively, corresponding to different execution entities. For example, see [link to relevant documentation]. Figure 2bAs shown, the first communication device 1-1 can be a computing device on the monitoring center side (which may include multiple monitoring centers) or a chip or component within that computing device. This computing device can be a terminal device or a network device. The second communication device 1-2 can be a computing device on the vehicle side or a chip or component within that computing device. This computing device can be the entire vehicle, an in-vehicle device, or a smart device on the vehicle, such as a mobile phone. The third communication device 1-3 can be a computing device on the vehicle manufacturer side or a chip or component within that computing device. This computing device can be a server on the vehicle manufacturer side. It should be understood that in this embodiment, the first communication device 1-1, the second communication device 1-2, or the third communication device 1-3 can also be a software module, or can be used for interaction between multiple applications or software, and can be deployed in a corresponding computing device. This embodiment does not limit the product form or deployment method of each communication device.
[0110] Optionally, see Figure 2b As shown, the system may also include a fourth communication device 1-4, which may be, for example, a blockchain node. This blockchain node may provide blockchain services to the aforementioned first communication device 1-1, second communication device 1-2, and third communication device 1-3 in order to implement the vehicle data processing method of this application embodiment.
[0111] The second communication device 1-2 can obtain vehicle driving data from the vehicle's on-board storage device (or second storage device), which can be represented as data 1. The second communication device 1-2 can report some or all of the data in data 1 (which can be represented as data 2) to the third communication device 1-3 (or the first communication device 1-1) and store it in the third storage device associated with the third communication device 1-3. The third communication device 1-3 can report some or all of the data in data 2 (which can be represented as data 3) to the first communication device 1-1 and store it in the first storage device associated with the first communication device. The amount of data in data 1 is greater than or equal to the amount of data in data 2, and the amount of data in data 2 is greater than or equal to the amount of data in data 3. The driving data transmitted between the first communication device 1-1, the second communication device 1-2, and the third communication device 1-3 can be transmitted in real time, periodically, or in response to signaling. The driving data that needs to be transmitted between different communication devices can be pre-agreed. This application embodiment does not limit the timing or method of transmitting driving data between different communication devices. The first communication device 1-1 and the first storage device can be the same device, the second communication device 1-2 and the second storage device can be the same device, and the third communication device 1-3 and the third storage device can be the same device.
[0112] In implementation, any one of the aforementioned communication devices, or a combination of at least two communication devices, can serve as an anti-tampering node in the system to implement data anti-tampering functionality. It should be noted that, in this embodiment, the data anti-tampering function means that the anti-tampering node itself can construct a data packet header based on the data identifier of the stored or to-be-stored driving data, and send the data packet header to other communication devices, which can securely store the data packet header. Optionally, the other devices can perform integrity verification on the driving data to be used based on the data identifier contained in the data packet header, improving the credibility of the corresponding driving data and reducing the probability that other devices will use tampered driving data to implement vehicle monitoring. And / or, the anti-tampering node itself can also obtain data packet headers from other devices and perform integrity verification on the corresponding driving data to be used based on the data identifier contained in the data packet header, improving the credibility of the driving data required for monitoring and reducing the probability that the anti-tampering node itself will use tampered driving data to implement vehicle monitoring. When different communication devices act as anti-tampering nodes, they can employ the same or similar methods to construct data packet headers based on locally stored or to-be-stored vehicle data and send them to other communication devices, and / or obtain data packet headers from other communication devices to perform data integrity verification, thereby achieving the data anti-tampering function. It is understood that in some examples, the aforementioned other communication devices may include devices that merely provide secure storage assistance for the anti-tampering nodes to achieve the data anti-tampering function, such as blockchain nodes.
[0113] Optionally, the anti-tampering node can also construct a data packet based on the data identifier and the driving data associated with the data identifier, and send the obtained data packet to other communication devices so that other communication devices can store the driving data in the data packet or use the driving data in the data packet to monitor the corresponding vehicles. It should be understood that in the embodiments of this application, the anti-tampering node can send the data packet to other communication devices according to the pre-agreed monitoring requirements. It can be sent in real time, periodically, or according to a pre-agreed reporting mechanism, or respond and provide feedback after receiving instructions from other communication devices. In some embodiments, the relevant data packet can also be forwarded via a third-party device. The embodiments of this application do not limit the timing of data packet transmission or the data transmission method.
[0114] It should be noted that, in the embodiments of this application, other communication devices communicating with the anti-tampering node may include other communication devices besides the anti-tampering node. For example, if the first communication device 1-1 is the anti-tampering node, other communication devices may be the second communication device 1-2, the third communication device 1-3, or the fourth communication device 1-4, etc. If the second communication device 1-2 is the anti-tampering node, other communication devices may be the first communication device 1-1, the third communication device 1-3, or the fourth communication device 1-4, etc. When the anti-tampering node implements the data anti-tampering function, the other communication devices interacting with the anti-tampering node are not limited to one.
[0115] During implementation, with Figure 2b Taking the system architecture shown as an example, the configuration of the anti-tampering node can include various scenarios, such as:
[0116] Scenario 1: The first communication device 1-1 is used as the tamper-proof node.
[0117] See Figure 3a As shown, in this scenario, when the first communication device 1-1 implements the data anti-tampering function, it can generate an associated data identifier 3 based on the received data 3, and construct a corresponding data packet header 3 using this data identifier 3. The first communication device 1-1 can then send the constructed data packet header 3 to other communication devices (such as the second communication device 1-2 or the third communication device 1-3) and store the data 3 in the corresponding first storage device. Accordingly, other communication devices can verify the integrity of the data 4 to be used based on the data identifier 3 in the data packet header 3. This data 4 is part or all of the data in data 3. Data 3 can be vehicle driving data reported by the vehicle or vehicle manufacturer according to the regulatory requirements of the regulatory center.
[0118] Furthermore, when the first communication device 1-1 needs to monitor a target vehicle based on the stored data 3 or the data 3 obtained from the third communication device 1-3 on the vehicle manufacturer's side, it can obtain the data packet header 3 from the other communication devices and perform integrity verification on the data 3 to be used based on the data identifier 3 contained in the data packet header 3. If the verification passes, the first communication device 1-1 can monitor the vehicle based on the data 3. If the verification fails, it indicates that the data 3 is unreliable. The first communication device 1-1 can request the second communication device 1-2 or the third communication device 1-3 to re-report the real data 3, or request the third communication device 1-3 to check the data 3 and re-report it, thereby improving the credibility of the driving data used for vehicle monitoring.
[0119] Optionally, the first communication device 1-1 can also construct a data packet 3 according to the data identifier 3. The data packet 3 may include part or all of the data in the data 3. The first communication device 1-1 can send the data packet 3 to other communication devices (such as the second communication device 1-2 or the third communication device 1-3).
[0120] Scenario 2: The second communication device 1-2 is used as the anti-tampering node.
[0121] See Figure 3b As shown, in this scenario, when the second communication device 1-2 implements the data anti-tampering function, it can generate an associated data identifier 1 based on the received data 1, construct a corresponding data packet header 1 using this data identifier 1, and send the constructed data packet header 1 to other communication devices (e.g., the first communication device 1-1 or the third communication device 1-3), and store the data 1 in the corresponding second storage device. Correspondingly, other communication devices can verify the integrity of the data 5 to be used based on the data identifier 1 in the data packet header 1. This data 5 is part or all of the data in data 1. The data 1 can be driving data related to vehicle operation collected during vehicle operation.
[0122] Furthermore, when the second communication device 1-2 needs to monitor the target vehicle based on some or all of the data in the stored data 1, it can obtain the data packet header 1 from the other communication device and perform integrity verification on the data 1 to be used based on the data identifier 1 contained in the data packet header 1. If the verification passes, the second communication device 1-2 can monitor the vehicle based on the data 1. If the verification fails, it indicates that the data 1 is unreliable. In this case, the data 1 cannot be used as driving data for monitoring the vehicle, and the original driving data of the vehicle needs to be obtained again.
[0123] Optionally, the second communication device 1-2 can also construct a data packet 1 according to the data identifier 1. The data packet 1 may include part or all of the data in the data 1. The second communication device 1-2 can send the data packet 1 to other communication devices (such as the first communication device 1-1 or the third communication device 1-3).
[0124] Scenario 3: The third communication device 1-3 is used as the anti-tampering node.
[0125] See Figure 3cAs shown, in this scenario, when the third communication device 1-3 implements the data anti-tampering function, it can generate an associated data identifier 2 based on the received data 2, construct a corresponding data packet header 2 using this data identifier 2, and send the constructed data packet header 2 to other communication devices (e.g., the second communication device 1-2 or the first communication device 1-1), and store the data in a corresponding third storage device (e.g., an in-vehicle storage device). Correspondingly, other communication devices can verify the integrity of the data 6 to be used based on the data identifier 2 in the data packet header 2. This data 6 is part or all of the data in data 2. The data 2 can be vehicle driving data reported by the vehicle according to the requirements of the monitoring center or the vehicle manufacturer.
[0126] Furthermore, when the third communication device 1-3 needs to monitor the target vehicle based on the stored data 2, it can obtain the data packet header 2 from the other communication devices and perform integrity verification on the data 2 to be used based on the data identifier 2 contained in the data packet header 2. If the verification passes, the third communication device 1-3 can monitor the vehicle based on the data 2. If the verification fails, it indicates that the data 2 is unreliable, and the third communication device 1-3 can request the second communication device 1-2 to re-report the original driving data of the target vehicle.
[0127] Optionally, the third communication device 1-3 may also construct a data packet 2 based on the data identifier 2. The data packet 2 may include some or all of the data in the data 2. The third communication device 1-3 may send the data packet 2 to other communication devices (such as the first communication device 1-1 or the second communication device 1-2).
[0128] Scenario 4: The first communication device 1-1 and the second communication device 1-2 are used as anti-tampering nodes.
[0129] See Figure 3d As shown, in this scenario, both the first communication device 1-1 and the second communication device 1-2 can serve as anti-tampering nodes, implementing data anti-tampering functionality in a manner similar to or the same as described in Scenarios 1 and 2 above. For details, please refer to the relevant descriptions of Scenarios 1 or 2 above, which will not be repeated here. In this scenario, the other communication devices corresponding to the first communication device 1-1 can be the same as or different from the other communication devices corresponding to the second communication device 1-2. Accordingly, Figure 3d Other communication devices shown may include data 4 and / or data 5.
[0130] Scenario 5: The first communication device 1-1 and the third communication device 1-3 are used as anti-tampering nodes.
[0131] See Figure 3eAs shown, in this scenario, both the first communication device 1-1 and the third communication device 1-3 can serve as anti-tampering nodes, implementing data anti-tampering functionality in a manner similar to or the same as described in scenarios one and three above. For details, please refer to the relevant descriptions of scenarios one or three above, which will not be repeated here. In this scenario, the other communication devices corresponding to the first communication device 1-1 can be the same as or different from the other communication devices corresponding to the third communication device 1-3. Accordingly, Figure 3e Other communication devices shown may include data 4 and / or data 6.
[0132] Scenario 6: The second communication device 1-2 and the third communication device 1-3 are used as tamper-proof nodes.
[0133] See Figure 3f As shown, in this scenario, both the second communication device 1-2 and the third communication device 1-3 can serve as anti-tampering nodes, implementing data anti-tampering functionality in a manner similar to or the same as described in scenarios two and three above. For details, please refer to the relevant descriptions of scenarios two or three above, which will not be repeated here. In this scenario, the other communication devices corresponding to the second communication device 1-2 can be the same as or different from the other communication devices corresponding to the third communication device 1-3. Accordingly, Figure 3f Other communication devices shown may include data 5 and / or data 6.
[0134] Scenario 7: The first communication device 1-1, the second communication device 1-2, and the third communication device 1-3 are used as anti-tampering nodes.
[0135] See Figure 3g As shown, in this scenario, the first communication device 1-1, the second communication device 1-2, and the third communication device 1-3 can all serve as anti-tampering nodes, implementing data anti-tampering functionality in a manner similar to or the same as described in scenarios one, two, and three above. For details, please refer to the relevant descriptions of scenarios one, two, and three above, which will not be repeated here. In this scenario, the other communication devices corresponding to the first communication device 1-1, the other communication devices corresponding to the second communication device 1-2, and the other communication devices corresponding to the third communication device 1-3 can be the same or different. Accordingly, Figure 3g Other communication devices shown may include one or more of data 4, data 5, and data 6.
[0136] Scenario 8: A blockchain node is designated as the device, providing blockchain services to the first communication device 1-1, the second communication device 1-2, and the third communication device 1-3 to achieve data anti-tampering functions for each of the three devices. The blockchain node can also be considered as the aforementioned fourth communication device 1-4.
[0137] See Figure 3h As shown, in this scenario, any one or more of the first communication device 1-1, the second communication device 1-2, or the third communication device 1-3 can act as an anti-tampering node. By sending the constructed relevant data packet headers and / or data packets to the blockchain node, the blockchain node, after reaching a consensus, sends the relevant data packet headers and / or data packets to the target block for storage, thus ensuring the tamper-proof nature of the vehicle's original driving data. Furthermore, when vehicle monitoring is required, the first communication device 1-1, the second communication device 1-2, and the third communication device 1-3, after obtaining authorization, can obtain data packet headers and / or data packets from the corresponding target block through the blockchain node. This allows them to use the obtained data packet headers and / or data packets to verify the integrity of the driving data to be used, reducing the possibility of using tampered driving data for vehicle monitoring. Figure 3h In the diagram, dashed boxes indicate that the first communication device 1-1, the second communication device 1-2, or the third communication device 1-3 can be selectively configured as tamper-proof nodes with data tamper-proof functionality. For details, please refer to the relevant descriptions of scenarios one through seven above. Figure 3h The blockchain node in the middle is Figures 3a to 3g Other communication devices in the system.
[0138] It should be noted that, in the embodiments of this application, when any communication device acts as an anti-tampering node to implement its data anti-tampering function, it typically includes verifying the integrity of the data by using the data identifier obtained from the data packet header and whether it is consistent with the data identifier associated with the driving data to be used. If the two data identifiers are consistent, it can be determined that the driving data to be used is complete; if the two data identifiers are inconsistent, it can be determined that the driving data to be used is incomplete.
[0139] Due to the differences in the specific algorithms used by the anti-tampering nodes in generating data identifiers and constructing data packet headers, the specific verification process will also differ. For ease of understanding, the following provides an example of the structure of the data packet header and data packet, as well as their construction and generation process.
[0140] Figure 4 A schematic diagram of the structure of the data packet and data packet header according to an embodiment of this application is shown.
[0141] See Figure 4As shown, the data packet is a data structure defined in this application embodiment. The data packet may include a set of driving data (e.g., data a, data b, data c, data d, etc.) and a data identifier associated with that set of driving data. For example, a set of driving data may be a collection of driving data required by regulatory requirements to facilitate vehicle monitoring, or it may be driving data of a vehicle within a predetermined time period. As an example, a set of driving data may include, but is not limited to, at least one of the following data types: vehicle data, warning data, Advanced Driver Assistance System (ADAS) data, operational data, performance data, battery data, network status data, alarm data, event data, road data, personnel data, perception data, user-defined data, and manually intervened parameter data. The data packet header is another data structure defined in this application embodiment. The data packet header corresponds to the data packet and may include a data identifier associated with the set of driving data and other information.
[0142] It should be noted that the set of driving data mentioned here can be part or all of the data in data 1, data 2, or data 3 mentioned above, and data a, data b, data c, and data d are sub-data sets of data 1 / data 2 / data 3, respectively. As an example, data a can be whole vehicle data, data b can be warning data, data c can be ADAS data, and data d can be operational data. Generally, a set of driving data can be a set of data collected in real time or periodically.
[0143] In this embodiment, the anti-tampering node can generate a data identifier associated with a set of driving data based on a target file and that set of driving data. It then constructs a data packet header based on this data identifier and sends this header as lightweight verification data to other communication devices. This allows other communication devices or the anti-tampering node itself to verify the integrity of the corresponding driving data by obtaining the data packet header and using the data identifier contained within it, reducing the likelihood of other communication devices or the anti-tampering node using tampered driving data for vehicle monitoring. Optionally, the anti-tampering node can generate a target data packet based on the data identifier and some or all of the data in the set of driving data. The anti-tampering node can also send the generated target data packet to other communication devices, allowing these devices to obtain the original driving data for vehicle monitoring.
[0144] For example, the target file may include a target algorithm, a method for generating data identifiers, or a process for generating data identifiers. This application embodiment does not limit the specific implementation of the target file. After determining a set of driving data, the anti-tampering node can generate a data identifier associated with that set of driving data based on the target file and the set of driving data. The specific representation of the obtained data identifier will vary depending on the actual target file used. As an example, the target file may be a Merkle tree algorithm, a hash algorithm, etc.
[0145] Figure 5a This diagram illustrates a method for generating data identifiers using a hash algorithm, as described in an embodiment of this application. (See also...) Figure 5a As shown, the anti-tampering node can input a set of driving data into a hash algorithm to obtain a data identifier associated with that set of driving data. This data identifier is a unique identifier for that set of driving data and can be used to uniquely identify the set of driving data. The anti-tampering node can construct data packets based on the set of driving data and the data identifier, and / or construct data packet headers based on the data identifier. The constructed data packet headers and / or data packets can be provided to other communication devices to realize the data anti-tampering function of the anti-tampering node.
[0146] Figure 5b A schematic diagram illustrating the use of Merkle trees to generate data identifiers according to an embodiment of this application is shown. (See also...) Figure 5b As shown, the anti-tampering node can generate a leaf node hash value for each type of data in a set of driving data, such as hash value 1, hash value 2, hash value 3, etc. Then, based on two leaf nodes, it generates intermediate node hash values, such as hash value 12, hash value 34, etc., calculating level by level towards the root node until the Merkle tree root hash value of the set of driving data is obtained, thus obtaining the data identifier associated with that set of driving data. The anti-tampering node can use this root hash value as the data identifier for that set of driving data to construct a data packet header. The anti-tampering node can construct a data packet using the set of driving data and the entire Merkle tree.
[0147] In this embodiment of the application, to increase the trustworthiness of the data packet header, one possible implementation is that the tamper-proof node can invoke a trusted application (TA) installed in the Trusted Execution Environment (TEE) to construct the data packet header. Optionally, the data packet header may also include a trusted timestamp and the signature information of the TA program.
[0148] See Figure 6As shown, the operating environment of the tamper-proof node can include a TEE (Traffic Equipment Environment) and a Rich Execution Environment (REE). A TA (Traffic Controller) is installed and running on the TEE side, while the REE side can include a cache area. The tamper-proof node can perform processes within the REE such as acquiring relevant driving data, saving relevant driving data, generating data identifiers associated with the driving data, and constructing data packets based on the data identifiers. Furthermore, the tamper-proof node can invoke the TA installed in the TEE to construct data packet headers based on the data identifiers. For example, the TA can obtain the data identifier from the REE and generate a trusted timestamp. Simultaneously, the TA can sign the data identifier and the trusted timestamp using its private key to obtain the data packet header.
[0149] Optionally, the anti-tampering node can construct multiple data packet headers, which can be generated and stored in a chain to ensure the continuity of vehicle data. Specifically, when constructing a data packet header N, the anti-tampering node can also obtain the data identifier N-1 corresponding to the previous data packet header N-1, and then sign the current data identifier N, the previous data identifier N-1, and the trusted timestamp using its private key to obtain the required data packet header N. See also... Figure 4 As shown, the obtained data packet header N may include data identifier N-1, data identifier N, trusted timestamp, and TA signature information. Further, see [link to documentation]. Figure 6 As shown, the TA feeds back the constructed data packet header to the REE. The tamper-proof node can cache this data packet header in the REE and synchronize it to other communication devices when needed, so as to perform integrity verification on the related driving data associated with the data packet header in the future.
[0150] To facilitate understanding, the process of different anti-tampering nodes implementing data anti-tampering functions is described below with reference to the method flowchart. The implementation flow of the vehicle data processing method of this application embodiment is illustrated using the aforementioned first communication device 1-1, second communication device 1-2, and third communication device 1-3 as anti-tampering nodes. In the following text, "first," "second," and "third," etc., are used to distinguish different types of vehicle data and are not intended to limit the order or function of the different vehicle data.
[0151] Example 1: Using the first communication device 1-1 as the tamper-proof node
[0152] It should be noted that this embodiment can be implemented through interaction between the anti-tampering node and other communication devices. The anti-tampering node can be the first communication device 1-1 in the aforementioned system, and the other communication devices can be any other communication device in the aforementioned system besides the first communication device 1-1 itself, such as the second communication device 1-2, the third communication device 1-3, the blockchain node, etc., and the possibility that other communication devices are also anti-tampering nodes cannot be ruled out. See also Figure 7 As shown, the vehicle data processing method may include the following steps:
[0153] S710: The first communication device 1-1 obtains a first data packet header based on the identifier of the target vehicle, wherein the first data packet header contains a first identifier associated with the first driving data of the target vehicle.
[0154] In this embodiment, the target vehicle can be a vehicle requiring supervision by the regulatory center, any vehicle, a vehicle involved in a traffic accident, a vehicle subject to random inspection, or a vehicle undergoing annual inspection, etc. This embodiment does not limit the type or function of the target vehicle. Optionally, the target vehicle can be pre-registered with the first communication device 1-1, and the two parties can pre-agree on the necessary regulatory agreements and authorizations, so that the regulatory center can obtain the relevant information required for supervising the target vehicle. The identifier of the target vehicle is information that uniquely identifies the target vehicle. This identifier can be the vehicle's license plate number, a unique identifier assigned to the target vehicle during registration with the first communication device 1-1, or other identification information. This embodiment does not limit the specific implementation of the vehicle identifier.
[0155] In this embodiment, the first data packet header is the data packet header required by the first communication device 1-1 to monitor the target vehicle and verify the integrity of relevant driving data. When the first communication device 1-1 needs to monitor the target vehicle, it can obtain the first data packet header based on the target vehicle's identifier and requirement information, so as to perform integrity verification on the driving data to be used based on the first data packet header. For example, the requirement information may be information such as time period, location, and monitoring type. When implementing S710, according to the requirement information, the first communication device 1-1 can obtain the first data packet header from the target device based on the target vehicle's identifier. For example, the target device may include the aforementioned second communication device 1-2, third communication device 1-3, blockchain node, etc.
[0156] It should be noted that, in this embodiment, the requirement information may be negotiated in advance between the first communication device 1-1 and other communication devices, manually configured, or triggered by an event. This embodiment does not limit the specific implementation of the requirement information. A communication connection may be established in advance between the first communication device 1-1 and the target device. After the target device learns the requirement information of the first communication device 1-1 and the identifier of the target vehicle, it provides the first data packet header to the first communication device 1-1.
[0157] In this embodiment, the first communication device 1-1 can parse the obtained first data packet header to obtain a first identifier associated with the first driving data of the target vehicle. The first identifier obtained after parsing can be a hash value or the root hash value of a Merkle tree, depending on the target file used to generate the first identifier. Generally, the first identifier obtained from the first data packet header is considered reliable. This first identifier can be used to verify the integrity of the second driving data to be used by the first communication device 1-1 to monitor the target vehicle. The second driving data is part or all of the data in the first driving data, meaning the amount of data in the first driving data is greater than or equal to the amount of data in the second driving data.
[0158] S720: The first communication device 1-1 acquires the second driving data of the target vehicle.
[0159] In this embodiment, the driving data of the target vehicle can be stored in at least one storage device, such as the vehicle's on-board storage device, a server on the vehicle manufacturer's side, or the local storage device of the first communication device 1-1 or its associated storage device. When implementing S720, the first communication device 1-1 can obtain the second driving data from the vehicle's on-board storage device, the vehicle manufacturer's server, or the local storage device of the first communication device 1-1 or its associated storage device as needed. Furthermore, the first communication device 1-1 can obtain the second driving data in real time, periodically, or by issuing a signal at a specified time. This embodiment does not limit the method of obtaining the second driving data.
[0160] S730: The first communication device 1-1 verifies the integrity of the second driving data based on the first identifier.
[0161] In this embodiment of the application, the purpose of verifying the integrity of driving data is to verify whether the driving data has been tampered with without authorization during transmission or storage.
[0162] In one example, the first communication device 1-1 can generate a second identifier based on the target file and the second driving data. When implementing S730, the first communication device 1-1 can determine that the second driving data is complete if the first identifier and the second identifier are consistent; or, if the first identifier and the second identifier are inconsistent, determine that the second driving data is incomplete. It should be understood that in this embodiment, the target file used to generate the first identifier and the second identifier is the same.
[0163] Therefore, based on the first data packet header, the first communication device 1-1 can verify the integrity of the driving data to be used through lightweight transmission and storage information, which can not only reduce the probability of using illegally tampered driving data, but also reduce the requirements for network transmission and storage.
[0164] Optionally, in another possible implementation, the first communication device 1-1 can obtain a first data packet from the target device, the first data packet including first driving data of the target vehicle. The first communication device 1-1 can verify the integrity of the second driving data based on the first data packet, the second driving data being part or all of the data in the first driving data. Specifically, the first communication device 1-1 can compare the first driving data contained in the first data packet with the second driving data to determine if there is a difference. If a difference exists, it indicates that the second driving data has been unauthorizedly tampered with. In this case, the first communication device 1-1 can replace the second driving data with the first driving data to monitor the target vehicle, or the first communication device 1-1 can request the second communication device 1-2 or the third communication device 1-3 to re-upload the real second driving data so as to monitor the target vehicle based on the real second driving data.
[0165] In this embodiment, the first communication device 1-1 can store the second driving data. To prevent unauthorized tampering of the second driving data stored on the first communication device 1-1, such as... Figure 7 As shown, one possible implementation is as follows: S740: The first communication device 1-1 constructs a second data packet header based on the second identifier, and S750: Sends the second data packet header to the second communication device 1-2. Here, the second communication device 1-2 can be a pre-agreed target device for which the first communication device 1-1 implements data anti-tampering functionality, thereby reducing the possibility of unauthorized tampering with the second vehicle data stored on the first communication device 1-1 side. For example, the second communication device 1-2 can also be replaced by a third communication device 1-3, a blockchain node, etc., and this application does not limit this.
[0166] Similar to the previous embodiments, in order to increase the credibility of the second data packet header, the first communication device 1-1 may also call the TA installed in its TEE to construct the second data packet header according to the second identifier when constructing the second data packet header. The second data packet header also contains a trusted timestamp and the signature information of the TA program. For detailed implementation, please refer to the relevant description above, which will not be repeated here.
[0167] Optionally, such as Figure 7 As shown, in S760: the first communication device 1-1 can also generate a third identifier based on the target file and the third driving data, and then in S770: send a target data packet to the third communication device 1-3. The driving data is part or all of the data in the second driving data. The target data packet includes the third identifier and the third driving data. The third communication device in S770 can be the same as or different from the second communication device in S750. It should be noted that the third communication device 1-3 here is a pre-agreed target device for which the first communication device 1-1 implements the data anti-tampering function. The third communication device 1-3 here can also be replaced by the second communication device 1-2, a blockchain node, etc. Therefore, the first communication device 1-1 can selectively store the saved second driving data in the target device to reduce the possibility of the second driving data saved on the first communication device 1-1 being tampered with without authorization.
[0168] Example 2: Using the second communication device 1-2 as an anti-tampering node
[0169] It should be noted that this embodiment can be implemented through interaction between the anti-tampering node and other communication devices. The anti-tampering node can be the second communication device 1-2 in the aforementioned system. The other communication devices can be any other communication device in the aforementioned system besides the second communication device 1-2 itself, such as the first communication device 1-1, the third communication device 1-3, the blockchain node, etc. Furthermore, the possibility that other communication devices are also anti-tampering nodes cannot be ruled out. See also... Figure 8 As shown, the vehicle data processing method may include the following steps:
[0170] S810: The second communication device 1-2 acquires the fourth driving data of the target vehicle.
[0171] In this embodiment, the target vehicle is the vehicle that needs to be monitored by the monitoring center. The second communication device 1-2 can be a computing device on the target vehicle side, or a chip or component in the computing device, or software deployed on the target vehicle, or a smart device equipped on the target vehicle, etc.
[0172] The driving data of the target vehicle can be stored in at least one storage device, such as the vehicle's onboard storage device, a server on the vehicle manufacturer's side, or the local storage device of the first communication device 1-1 or its associated storage device. During S820, the second communication device 1-2 can, as needed, obtain the fourth driving data from the vehicle's onboard storage device, the vehicle manufacturer's server, or the local storage device of the first communication device 1-1 or its associated storage device. The vehicle's onboard storage device stores a collection of driving data collected in real time during the vehicle's operation. The second communication device 1-2 can obtain the fourth driving data from the onboard storage device in real time or periodically to verify the integrity of the fourth driving data. Alternatively, the second communication device 1-2 can also obtain the fourth driving data from the vehicle manufacturer's server, or the local storage device of the first communication device 1-1 or its associated storage device to verify the integrity of the fourth driving data.
[0173] S820: The second communication device 1-2 generates a fourth identifier based on the target file and the fourth driving data. In this embodiment, the target file is the same as described above, and the detailed generation process of the fourth identifier can be found in the relevant description above, and will not be repeated here.
[0174] S830: The second communication device 1-2 constructs a fourth data packet header based on the fourth identifier.
[0175] For example, the second communication device 1-2 can invoke the TA installed in its TEE to construct the fourth data packet header based on the fourth identifier. The fourth data packet header also includes a trusted timestamp and the signature information of the TA program. The construction process of this fourth data packet header can be found in the relevant description above, and will not be repeated here.
[0176] S840: The second communication device 1-2 sends the fourth data packet header to the first communication device 1-1. It should be noted that, here, the first communication device 1-1 refers only to the pre-agreed target device when the second communication device 1-2 implements the data anti-tampering function. The first communication device 1-1 here can be replaced by the third communication device 1-3, a blockchain node, etc.
[0177] Optionally, when the second communication device 1-2 implements the data anti-tampering function, it may further include the following steps:
[0178] S850: The second communication device 1-2 obtains a fifth data packet header based on the identifier of the target vehicle. The fifth data packet header contains a fifth identifier associated with the fifth driving data of the target vehicle. The fourth driving data is part or all of the data in the fifth driving data. Optionally, the second communication device 1-2 can obtain the fifth data packet header from the target device based on the identifier of the target vehicle. The target device may include the aforementioned first communication device 1-1, third communication device 1-3, blockchain node, etc.
[0179] S860: The second communication device 1-2 verifies the integrity of the fourth driving data based on the fifth identifier. Verifying the integrity of the fourth driving data based on the fifth identifier includes: determining that the fourth driving data is complete if the fifth identifier and the fourth identifier are consistent; or determining that the fourth driving data is incomplete if the fifth identifier and the fourth identifier are inconsistent.
[0180] S870: The second communication device 1-2 generates a sixth identifier based on the target file and the sixth train data, wherein the sixth train data is part or all of the data in the fourth train data.
[0181] S880: The second communication device 1-2 sends a target data packet to the third communication device 1-3. The target data packet includes the sixth identifier and the sixth vehicle data. The third communication device in S880 may be the same as or different from the first communication device mentioned in S840. It should be noted that here, the third communication device 1-3 refers only to the pre-agreed target device when the second communication device 1-2 implements the data anti-tampering function. The third communication device 1-3 here can be replaced by the first communication device 1-1, a blockchain node, etc.
[0182] It should be noted that this second embodiment is only a simple description of the interaction process between the second communication device 1-2 and other communication devices when the second communication device 1-2 is set as an anti-tampering node and realizes its data anti-tampering function. For detailed implementation process, please refer to the relevant description above, which will not be repeated here.
[0183] Example 3: Using the third communication device 1-3 as the data anti-tampering node
[0184] It should be noted that this embodiment can be implemented through interaction between the anti-tampering node and other communication devices. The anti-tampering node can be the third communication device 1-3 in the aforementioned system. The other communication devices can be any other communication device in the aforementioned system besides the third communication device 1-3 itself, such as the first communication device 1-1, the second communication device 1-2, the blockchain node, etc. Furthermore, the possibility that other communication devices are also anti-tampering nodes cannot be ruled out. See also... Figure 9As shown, the vehicle data processing method may include the following steps:
[0185] S910: The third communication device 1-3 acquires the seventh driving data of the target vehicle.
[0186] In this embodiment, the third communication device 1-3 can be a computing device on the vehicle manufacturer's side, or a chip or component within that computing device, or it can be software deployed on the vehicle manufacturer's server. The target vehicle is a vehicle requiring monitoring; it can be any vehicle, a vehicle involved in a traffic accident, a vehicle subject to random inspection, or a vehicle undergoing annual inspection, etc. The target vehicle can be pre-registered with the third communication device 1-3, which can, for example, obtain the seventh driving data based on the target vehicle's identifier. For example, the seventh driving data can be stored locally on the third communication device 1-3 or its associated storage device, and the third communication device 1-3 can obtain the seventh driving data from the local storage device or the associated storage device. Alternatively, the seventh driving data can also be obtained by the third communication device 1-3 from the target vehicle's onboard equipment or the vehicle manufacturer's server, and the third communication device 1-3 can store the seventh driving data.
[0187] S920: The third communication devices 1-3 generate a seventh identifier based on the target file and the seventh driving data. In this embodiment, the target file is the same as described above, and the detailed generation process of the seventh identifier can be found in the relevant description above, and will not be repeated here.
[0188] S930: The third communication device 1-3 constructs a seventh data packet header based on the seventh identifier.
[0189] For example, the third communication device 1-3 can invoke the TA installed in its TEE to construct the seventh data packet header based on the fourth identifier. The seventh data packet header also includes a trusted timestamp and the signature information of the TA program. The construction process of the seventh data packet header can be found in the relevant description above, and will not be repeated here.
[0190] S940: The third communication device 1-3 sends the seventh data packet header to the first communication device 1-1. It should be noted that, here, the first communication device 1-1 refers only to the target device when the third communication device 1-3 implements the data anti-tampering function. The first communication device 1-1 here can be replaced by the second communication device 1-2, a blockchain node, etc.
[0191] Optionally, when the third communication device 1-3 implements the data anti-tampering function, it may further include the following steps:
[0192] S950: The third communication device 1-3 obtains an eighth data packet header based on the identifier of the target vehicle. The eighth data packet header contains an eighth identifier associated with the eighth driving data of the target vehicle, and the seventh driving data is part or all of the data in the eighth driving data. Optionally, the third communication device 1-3 can obtain the eighth data packet header from the target device based on the identifier of the target vehicle. The target device may include the aforementioned first communication device 1-1, second communication device 1-2, blockchain node, etc.
[0193] S960: The third communication device 1-3 verifies the integrity of the seventh driving data based on the eighth identifier. Specifically, the third communication device 1-3 verifies the integrity of the seventh driving data based on the eighth identifier by: determining that the seventh driving data is complete if the eighth identifier and the seventh identifier are consistent; or determining that the seventh driving data is incomplete if the eighth identifier and the seventh identifier are inconsistent.
[0194] S970: The third communication device 1-3 generates a ninth identifier based on the target file and the ninth driving data, wherein the ninth driving data is part or all of the data in the seventh driving data.
[0195] S970: The third communication device 1-3 sends a target data packet to the second communication device 1-2. The target data packet includes the ninth identifier and the ninth driving data. The second communication device in S970 may be the same as or different from the first communication device in S940. It should be noted that, here, the second communication device 1-2 refers to the pre-agreed target device when the third communication device 1-3 implements the data anti-tampering function. The second communication device 1-2 here can be replaced by the first communication device 1-1, a blockchain node, etc.
[0196] It should be noted that this embodiment three is only a simple description of the interaction process between the third communication device 1-3 and other communication devices when the third communication device 1-3 is set as an anti-tampering node and implements its data anti-tampering function. For detailed implementation process, please refer to the relevant description above, which will not be repeated here.
[0197] This application also provides a communication device for executing the method executed by the first communication device in the above embodiments. The relevant features can be found in the above method embodiments, and will not be repeated here.
[0198] like Figure 10As shown, the device 1000 may include: a first acquisition unit 1001, configured to acquire a first data packet header based on the identifier of the target vehicle, wherein the first data packet header contains a first identifier associated with the first driving data of the target vehicle; a second acquisition unit 1102, configured to acquire second driving data of the target vehicle, wherein the second driving data is part or all of the data in the first driving data; and a first verification unit 1103, configured to verify the integrity of the second driving data based on the first identifier.
[0199] Optionally, the first acquisition unit is configured to: acquire the first data packet header from the target device based on the identifier of the target vehicle, wherein the target device includes a blockchain node.
[0200] Optionally, the second acquisition unit is used to: acquire the second driving data from the on-board storage device of the target vehicle; or, acquire the second driving data from a cloud storage device.
[0201] Optionally, the device 1000 further includes: a first generation unit, configured to generate a second identifier based on the target file and the second driving data; the first verification unit is configured to: determine that the second driving data is complete if the first identifier and the second identifier are consistent; or determine that the second driving data is incomplete if the first identifier and the second identifier are inconsistent.
[0202] Optionally, the device 1000 further includes: a first construction unit for constructing a second data packet header based on the second identifier; and a first transmission unit for transmitting the second data packet header to the second communication device.
[0203] Optionally, the first construction unit is used to: call the trusted execution program TA installed in the trusted execution environment (TEE) to construct the second data packet header according to the second identifier, wherein the second data packet header also contains a trusted timestamp and the signature information of the TA program.
[0204] Optionally, the device 1000 further includes: a second generation unit, configured to generate a third identifier based on the target file and the third driving data, wherein the third driving data is part or all of the data in the second driving data; and a second sending unit, configured to send a target data packet to a third communication device, wherein the target data packet includes the third identifier and the third driving data.
[0205] This application also provides a communication device for executing the method executed by the second communication device in the above embodiments. The relevant features can be found in the above method embodiments, and will not be repeated here.
[0206] like Figure 11As shown, the device 1100 may include: a third acquisition unit 1101, used to acquire fourth driving data of the target vehicle; a third generation unit 1102, used to generate a fourth identifier based on the target file and the fourth driving data; a second construction unit 1103, used to construct a fourth data packet header based on the fourth identifier; and a third sending unit 1104, used to send the fourth data packet header to the first communication device.
[0207] Optionally, the second construction unit is used to: call the TA installed in the TEE to construct the fourth data packet header according to the fourth identifier, wherein the fourth data packet header also contains a trusted timestamp and the signature information of the TA program.
[0208] Optionally, the device 1100 further includes: a fourth acquisition unit, configured to acquire a fifth data packet header based on the identifier of the target vehicle, the fifth data packet header containing a fifth identifier associated with the fifth driving data of the target vehicle, the fourth driving data being part or all of the data in the fifth driving data; and a second verification unit, configured to verify the integrity of the fourth driving data based on the fifth identifier.
[0209] Optionally, the fourth acquisition unit is configured to: acquire a fifth data packet header from the target device based on the identifier of the target vehicle, wherein the target device includes a blockchain node.
[0210] Optionally, the third acquisition unit is configured to: acquire the fourth driving data from the on-board storage device of the target vehicle; or acquire the fourth driving data from a cloud storage device.
[0211] Optionally, the second verification unit is configured to: determine that the fourth driving data is complete if the fifth identifier and the fourth identifier are consistent; or determine that the fourth driving data is incomplete if the fifth identifier and the fourth identifier are inconsistent.
[0212] Optionally, the device 1100 further includes: a fourth generation unit, configured to generate a sixth identifier based on the target file and the sixth driving data, wherein the sixth driving data is part or all of the data in the fourth driving data; and a fourth sending unit, configured to send a target data packet to a third communication device, wherein the target data packet includes the sixth identifier and the sixth driving data.
[0213] This application also provides a communication device for executing the method executed by the second communication device in the above embodiments. The relevant features can be found in the above method embodiments, and will not be repeated here.
[0214] like Figure 12As shown, the device 1200 may include: a fifth acquisition unit 1201, used to acquire the seventh driving data of the target vehicle; a fifth generation unit 1202, used to generate a seventh identifier based on the target file and the seventh driving data; a third construction unit 1203, used to construct a seventh data packet header based on the seventh identifier; and a fifth sending unit 1204, used to send the seventh data packet header to the first communication device.
[0215] Optionally, the third construction unit is used to: call the TA installed in the TEE to construct the seventh data packet header according to the fourth identifier, wherein the seventh data packet header also contains a trusted timestamp and the signature information of the TA program.
[0216] Optionally, the device 1200 further includes: a sixth acquisition unit, configured to acquire an eighth data packet header based on the identifier of the target vehicle, the eighth data packet header containing an eighth identifier associated with the eighth driving data of the target vehicle, the seventh driving data being part or all of the data in the eighth driving data; and a third verification unit, configured to verify the integrity of the seventh driving data based on the eighth identifier.
[0217] Optionally, the sixth acquisition unit is configured to: acquire an eighth data packet header from the target device based on the identifier of the target vehicle, wherein the target device includes a blockchain node.
[0218] Optionally, verifying the integrity of the seventh driving data based on the eighth identifier includes: determining that the seventh driving data is complete if the eighth identifier and the seventh identifier are consistent; or determining that the seventh driving data is incomplete if the eighth identifier and the seventh identifier are inconsistent.
[0219] Optionally, the fifth acquisition unit is configured to: acquire the seventh driving data from the on-board storage device of the target vehicle; or acquire the seventh driving data from a cloud storage device.
[0220] Optionally, the device 1200 further includes: a sixth generation unit, configured to generate a ninth identifier based on the target file and the ninth driving data, wherein the ninth driving data is part or all of the data in the seventh driving data; and a sixth sending unit, configured to send a target data packet to the second communication device, wherein the target data packet includes the ninth identifier and the ninth driving data.
[0221] It should be noted that the division of units in the embodiments of this application is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods. The functional units in the embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units described above can be implemented in hardware or as software functional units.
[0222] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be 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.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0223] In a simplified embodiment, those skilled in the art will realize that the communication devices described in the above embodiments can all be employed. Figure 13 As shown in the figure.
[0224] like Figure 13 The device 1300 shown includes at least one processor 1310 and a memory 1320, and optionally, may also include a communication interface 1330.
[0225] Memory 1320 may be volatile memory, such as random access memory; memory may also be non-volatile memory, such as read-only memory, flash memory, hard disk drive (HDD), or solid-state drive (SSD); or memory 1320 may be any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 1320 may be a combination of the above-described memories.
[0226] The specific connection medium between the processor 1310 and the memory 1320 described above is not limited in the embodiments of this application.
[0227] In such Figure 13The device also includes a communication interface 1330, through which the processor 1310 can transmit data when communicating with other devices.
[0228] When the communication device adopts Figure 13 When in the form shown, Figure 13 The processor 1310 can call computer execution instructions stored in the memory 1320, so that the device 1300 can execute the method executed by the communication device in any of the above method embodiments.
[0229] This application also relates to a chip system, which includes a processor for calling computer programs or computer instructions stored in memory, so that the processor performs actions such as... Figures 6-9 The method of any of the embodiments shown.
[0230] In one possible implementation, the processor is coupled to the memory via an interface.
[0231] In one possible implementation, the chip system also includes a memory that stores computer programs or computer instructions.
[0232] This application also relates to a processor for calling computer programs or computer instructions stored in memory, so that the processor performs the following: Figures 6-9 The method described in any embodiment.
[0233] The processor mentioned above can be a general-purpose central processing unit, a microprocessor, an application-specific integrated circuit (ASIC), or one or more devices used to control the above. Figures 6-9 An integrated circuit for program execution of the method in any of the embodiments shown. The memory mentioned above may be read-only memory (ROM) or other types of static storage devices capable of storing static information and instructions, such as random access memory (RAM).
[0234] It should be understood that embodiments of this application may be provided as methods, systems, or computer program products. Therefore, this application may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0235] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0236] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
[0237] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the scope of the embodiments of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of the claims of this application and their equivalents, this application also intends to include these modifications and variations.
Claims
1. A method for processing vehicle driving data, characterized in that, Applied to a first communication device, the method includes: Based on the identifier of the target vehicle, a first data packet header is obtained from the target device, wherein the target device includes at least one of a blockchain node, a second communication device, or a third communication device. The first data packet header contains a first identifier associated with the first driving data of the target vehicle. The first identifier is generated in an untrusted execution environment (REE) based on the target file and the first driving data. The first data packet header is constructed by calling a trusted execution program (TA) installed in a trusted execution environment (TEE) based on the first identifier. Acquire second driving data of the target vehicle, wherein the second driving data is part or all of the data in the first driving data; The integrity of the second driving data is verified based on the first identifier.
2. The method according to claim 1, characterized in that, The acquisition of the second driving data of the target vehicle includes: The second driving data is obtained from the on-board storage device of the target vehicle; or, The second driving data is obtained from the server.
3. The method according to claim 1 or 2, characterized in that, The method further includes: Generate a second identifier based on the target file and the second driving data; The step of verifying the integrity of the second driving data based on the first identifier includes: If the first identifier and the second identifier match, the second driving data is determined to be complete; or, If the first identifier and the second identifier are inconsistent, the second driving data is determined to be incomplete.
4. The method according to claim 3, characterized in that, The method further includes: Construct the second data packet header based on the second identifier; Send the second data packet header to the second communication device.
5. The method according to claim 4, characterized in that, The step of constructing the second data packet header based on the second identifier includes: The trusted executor TA installed in the Trusted Execution Environment (TEE) is invoked to construct the second data packet header based on the second identifier. The second data packet header also contains a trusted timestamp and the signature information of the trusted executor TA.
6. The method according to claim 1 or 2, characterized in that, The method further includes: A third identifier is generated based on the target file and the third driving data, wherein the third driving data is part or all of the data in the second driving data; Send a target data packet to a third communication device, the target data packet including the third identifier and the third vehicle data.
7. A method for processing driving data, characterized in that, The method, applied to a second communication device on the vehicle side, includes: Obtain the fourth driving data of the target vehicle; In the REE, a fourth identifier is generated based on the target file and the fourth driving data; The trusted executor TA installed in the TEE is invoked to construct a fourth data packet header based on the fourth identifier. The fourth data packet header also contains a trusted timestamp and the signature information of the trusted executor TA. The fourth data packet header is sent to the first communication device.
8. The method according to claim 7, characterized in that, The method further includes: The fifth data packet header is obtained based on the identifier of the target vehicle. The fifth data packet header contains a fifth identifier associated with the fifth driving data of the target vehicle. The fourth driving data is part or all of the data in the fifth driving data. The integrity of the fourth driving data is verified based on the fifth identifier.
9. The method according to claim 8, characterized in that, The step of obtaining the fifth data packet header based on the identifier of the target vehicle includes: Based on the identifier of the target vehicle, a fifth data packet header is obtained from the target device, which includes a blockchain node.
10. The method according to claim 8 or 9, characterized in that, The step of verifying the integrity of the fourth driving data based on the fifth identifier includes: If the fifth identifier and the fourth identifier are consistent, the fourth driving data is determined to be complete; or, If the fifth identifier and the fourth identifier are inconsistent, the fourth driving data is determined to be incomplete.
11. The method according to any one of claims 7-9, characterized in that, The acquisition of the fourth driving data of the target vehicle includes: The fourth driving data is obtained from the on-board storage device of the target vehicle; or, The fourth vehicle data is obtained from the server.
12. The method according to any one of claims 7-9, characterized in that, The method further includes: A sixth identifier is generated based on the target file and the sixth driving data, wherein the sixth driving data is part or all of the data in the fourth driving data; A target data packet is sent to a third communication device, the target data packet including the sixth identifier and the sixth vehicle data.
13. A method for processing vehicle driving data, characterized in that, A third communication device applied to the vehicle manufacturer's side, the method comprising: Obtain the seventh driving data of the target vehicle; In the REE, a seventh identifier is generated based on the target file and the seventh vehicle data; The trusted executor TA installed in the TEE is invoked to construct a seventh data packet header based on the seventh identifier. The seventh data packet header also contains a trusted timestamp and the signature information of the trusted executor TA. The seventh data packet header is sent to the first communication device.
14. The method according to claim 13, characterized in that, The method further includes: The eighth data packet header is obtained based on the identifier of the target vehicle. The eighth data packet header contains an eighth identifier associated with the eighth driving data of the target vehicle. The seventh driving data is part or all of the data in the eighth driving data. The integrity of the seventh driving data is verified based on the eighth identifier.
15. The method according to claim 14, characterized in that, The step of obtaining the eighth data packet header based on the identifier of the target vehicle includes: Based on the identifier of the target vehicle, an eighth data packet header is obtained from the target device, which includes a blockchain node.
16. The method according to claim 14 or 15, characterized in that, The step of verifying the integrity of the seventh driving data based on the eighth identifier includes: If the eighth identifier and the seventh identifier are consistent, the seventh driving data is determined to be complete; or, If the eighth identifier and the seventh identifier are inconsistent, the seventh driving data is determined to be incomplete.
17. The method according to any one of claims 13-15, characterized in that, The acquisition of the seventh driving data of the target vehicle includes: The seventh driving data is obtained from the on-board storage device of the target vehicle; or, The seventh vehicle data is obtained from the server.
18. The method according to any one of claims 13-15, characterized in that, The method further includes: Using the target file and the ninth driving data, a ninth identifier is generated, wherein the ninth driving data is part or all of the data in the seventh driving data; A target data packet is sent to the second communication device, the target data packet including the ninth identifier and the ninth driving data.
19. A vehicle data processing device, characterized in that, include: The first acquisition unit is configured to acquire a first data packet header from a target device based on the identifier of the target vehicle, wherein the target device includes at least one of a blockchain node, a second communication device, or a third communication device, and the first data packet header contains a first identifier associated with the first driving data of the target vehicle, the first identifier being generated in an untrusted execution environment (REE) based on a target file and the first driving data, and the first data packet header being constructed by calling a trusted execution program (TA) installed in a trusted execution environment (TEE) based on the first identifier; The second acquisition unit is used to acquire the second driving data of the target vehicle, wherein the second driving data is part or all of the data in the first driving data; The first verification unit is used to verify the integrity of the second driving data based on the first identifier.
20. The apparatus according to claim 19, characterized in that, The second acquisition unit is used for: The second driving data is obtained from the on-board storage device of the target vehicle; or, The second driving data is obtained from the cloud storage device.
21. The apparatus according to claim 19 or 20, characterized in that, Also includes: The first generation unit is used to generate a second identifier based on the target file and the second driving data; The first verification unit is used for: If the first identifier and the second identifier are consistent, the second driving data is determined to be complete; or, If the first identifier and the second identifier are inconsistent, the second driving data is determined to be incomplete.
22. The apparatus according to claim 21, characterized in that, Also includes: The first construction unit is used to construct a second data packet header based on the second identifier; The first sending unit is used to send the second data packet header to the second communication device.
23. The apparatus according to claim 22, characterized in that, The first construction unit is used for: The trusted executor TA installed in the Trusted Execution Environment (TEE) is invoked to construct the second data packet header based on the second identifier. The second data packet header also contains a trusted timestamp and the signature information of the trusted executor TA.
24. The apparatus according to claim 19 or 20, characterized in that, Also includes: The second generation unit is used to generate a third identifier based on the target file and the third driving data, wherein the third driving data is part or all of the data in the second driving data; The second sending unit is used to send a target data packet to the third communication device, the target data packet including the third identifier and the third driving data.
25. A vehicle data processing device, characterized in that, The device is a second communication device on the vehicle side, comprising: The third acquisition unit is used to acquire the fourth driving data of the target vehicle; The third generation unit is used to generate a fourth identifier in the REE based on the target file and the fourth driving data; The second construction unit is used to call the trusted executor TA installed in the TEE to construct a fourth data packet header based on the fourth identifier. The fourth data packet header also contains a trusted timestamp and the signature information of the trusted executor TA. The third sending unit is used to send the fourth data packet header to the first communication device.
26. The apparatus according to claim 25, characterized in that, Also includes: The fourth acquisition unit is used to acquire a fifth data packet header based on the identifier of the target vehicle. The fifth data packet header contains a fifth identifier associated with the fifth driving data of the target vehicle. The fourth driving data is part or all of the data in the fifth driving data. The second verification unit is used to verify the integrity of the fourth driving data based on the fifth identifier.
27. The apparatus according to claim 26, characterized in that, The fourth acquisition unit is used for: Based on the identifier of the target vehicle, a fifth data packet header is obtained from the target device, which includes a blockchain node.
28. The apparatus according to any one of claims 25-27, characterized in that, The third acquisition unit is used for: The fourth driving data is obtained from the on-board storage device of the target vehicle; or, The fourth vehicle data is obtained from the cloud storage device.
29. The apparatus according to claim 26 or 27, characterized in that, The second verification unit is used for: If the fifth identifier and the fourth identifier are consistent, the fourth driving data is determined to be complete; or, If the fifth identifier and the fourth identifier are inconsistent, the fourth driving data is determined to be incomplete.
30. The apparatus according to any one of claims 25-27, characterized in that, Also includes: The fourth generation unit is used to generate a sixth identifier based on the target file and the sixth driving data, wherein the sixth driving data is part or all of the data in the fourth driving data; The fourth sending unit is used to send a target data packet to the third communication device, the target data packet including the sixth identifier and the sixth vehicle data.
31. A vehicle data processing device, characterized in that, The device is a third communication device on the vehicle manufacturer's side, comprising: The fifth acquisition unit is used to acquire the seventh driving data of the target vehicle; The fifth generation unit is used to generate a seventh identifier in the REE based on the target file and the seventh driving data; The third construction unit is used to call the trusted executor TA installed in the TEE to construct a seventh data packet header based on the seventh identifier. The seventh data packet header also contains a trusted timestamp and the signature information of the trusted executor TA. The fifth sending unit is used to send the seventh data packet header to the first communication device.
32. The apparatus according to claim 31, characterized in that, Also includes: The sixth acquisition unit is used to acquire an eighth data packet header based on the identifier of the target vehicle. The eighth data packet header contains an eighth identifier associated with the eighth driving data of the target vehicle. The seventh driving data is part or all of the data in the eighth driving data. The third verification unit is used to verify the integrity of the seventh driving data based on the eighth identifier.
33. The apparatus according to claim 32, characterized in that, The sixth acquisition unit is used for: Based on the identifier of the target vehicle, an eighth data packet header is obtained from the target device, which includes a blockchain node.
34. The apparatus according to claim 32 or 33, characterized in that, Verifying the integrity of the seventh driving data based on the eighth identifier includes: If the eighth identifier and the seventh identifier are consistent, the seventh driving data is determined to be complete; or, If the eighth identifier and the seventh identifier are inconsistent, the seventh driving data is determined to be incomplete.
35. The apparatus according to any one of claims 31-33, characterized in that, The fifth acquisition unit is used for: The seventh driving data is obtained from the on-board storage device of the target vehicle; or, The seventh vehicle data is obtained from the cloud storage device.
36. The apparatus according to any one of claims 31-33, characterized in that, Also includes: The sixth generation unit is used to generate a ninth identifier based on the target file and the ninth driving data, wherein the ninth driving data is part or all of the data in the seventh driving data; The sixth sending unit is used to send a target data packet to the second communication device, the target data packet including the ninth identifier and the ninth driving data.
37. A vehicle data processing device, characterized in that, include: Processor and memory; The memory is used to store programs; The processor is configured to execute a program stored in the memory to enable the device to implement the method as described in any one of claims 1-6, or the method as described in any one of claims 7-12, or the method as described in any one of claims 13-18.
38. A vehicle data processing system, characterized in that, include: The vehicle data processing apparatus as described in any one of claims 19-24.
39. The system according to claim 38, characterized in that, Also includes: The vehicle data processing apparatus as described in any one of claims 25-30.
40. The system according to claim 38 or 39, characterized in that, Also includes: The vehicle data processing apparatus as described in any one of claims 31-36.
41. A computer-readable storage medium, characterized in that, Includes computer-readable instructions that, when executed by a processor, implement the method as described in any one of claims 1-6, 7-12, or 13-18.
Citation Information
Patent Citations
Data verification method and device
CN109714361A
