Disclosure of Invention
The embodiment of the invention provides a vehicle data processing method and a vehicle data processing system, which are used for acquiring environmental parameters of a vehicle through terminal equipment and processing the environmental parameters by adopting a preset algorithm to obtain first data of the influence of the environmental parameters on the vehicle; secondly, the processing system of the vehicle data encrypts and stores the first data into the block chain, so as to ensure the authenticity and the non-tamper property of the first data.
The invention provides a vehicle data processing method in a first aspect, which comprises the following steps:
acquiring identification information and environmental parameters of a vehicle through terminal equipment;
processing the environmental parameters by adopting a preset algorithm to generate first data;
processing the identification information and the first data according to a preset format to obtain second data;
encrypting the second data by using the first key to obtain third data;
storing and registering the identification information and the third data in a block chain in an associated manner;
receiving a data request of third-party user equipment, wherein the data request comprises identification information of a vehicle;
and sending third data corresponding to the identification information in the data request to the third-party user equipment.
Preferably, before the identification information and the environmental parameter of the vehicle are acquired by the terminal device, the method further includes:
and receiving a registration request of the terminal equipment, and generating a first key according to the identification information of the terminal equipment.
Preferably, the processing the environmental parameter by using a preset algorithm to generate the first data includes:
respectively determining adverse environmental factors of the environmental parameters;
determining the influence coefficient of the adverse environment factor on each part of the vehicle;
according to a preset first algorithm, calculating the wear rate of each part of the vehicle by using the adverse environment factor and the influence coefficient;
calculating the depreciation rate of the vehicle by using the wear rate of each part according to a preset second algorithm;
and encapsulating the wear rate of each part of the vehicle, the depreciation rate of the vehicle and the collected environmental parameters to generate first data.
Preferably, the data request further comprises:
a device identification of a third party user device;
after receiving the data request of the third party user equipment, the method further comprises:
and authenticating the third-party user equipment according to the equipment identifier to determine whether to send a second secret key to the third-party user equipment, wherein the second secret key corresponds to the first secret key.
Preferably, after the second data is obtained by processing the identification information and the first data according to a preset format, the method further includes:
calculating the second data by adopting a preset algorithm to obtain fourth data;
and storing and registering the identification information, the third data and the fourth data in association with each other in the block chain.
In another aspect of the present invention, a system for processing vehicle data is provided, including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring identification information and environmental parameters of a vehicle through terminal equipment;
the first processing unit is used for processing the environmental parameters by adopting a preset algorithm to generate first data;
the second processing unit is used for processing the identification information and the first data according to a preset format to obtain second data;
the encryption unit is used for encrypting the second data by using the first key to obtain third data;
the storage unit is used for storing and registering the identification information and the third data in a block chain in an associated manner;
the first receiving unit is used for receiving a data request of the third-party user equipment, wherein the data request contains identification information of a vehicle;
and the sending unit is used for sending the third data corresponding to the identification information in the data request to the third-party user equipment.
Preferably, the system further comprises:
and the second receiving unit is used for receiving the registration request of the terminal equipment and generating a first key according to the identification information of the terminal equipment.
Preferably, the first processing unit includes:
the first determining module is used for respectively determining adverse environment factors of the environment parameters;
the second determination module is used for determining the influence coefficient of the adverse environment factor on each part of the vehicle;
the first calculation module is used for calculating the wear rate of each part of the vehicle by utilizing the adverse environment factor and the influence coefficient according to a preset first algorithm;
the second calculation module is used for calculating the depreciation rate of the vehicle by utilizing the wear rate of each part according to a preset second algorithm;
and the packaging module is used for packaging the wear rate of each part of the vehicle, the depreciation rate of the vehicle and the collected environmental parameters to generate first data.
Preferably, the data request further comprises:
a device identification of a third party user device;
preferably, the system further comprises:
and the authentication unit is used for authenticating the third-party user equipment according to the equipment identifier so as to determine whether to send a second secret key to the third-party user equipment, wherein the second secret key corresponds to the first secret key.
Preferably, the system further comprises:
the calculating unit is used for calculating the second data by adopting a preset algorithm to obtain fourth data;
and the second storage unit is used for storing and registering the identification information, the third data and the fourth data in the block chain in an associated manner.
According to the technical scheme, the embodiment of the invention has the following advantages:
the method comprises the steps of firstly obtaining identification information and environmental parameters of a vehicle, processing the environmental parameters by adopting a preset algorithm to generate first data, processing the identification information and the first data according to a preset format to obtain second data, encrypting the second data by using a first secret key, and storing the identification information and the second data of the vehicle in a block chain in a correlation manner, so that real environmental parameters are provided for basic maintenance of the vehicle in the later period, and the vehicle environmental parameters in the block chain cannot be tampered by storing the environmental parameters in the block chain, so that when a data request of a third party is received, the real vehicle environmental parameters can be sent to the third party according to the data request.
Brief description of the drawings
FIG. 1 is a schematic diagram of an embodiment of a method for vehicle data processing according to an embodiment of the invention;
FIG. 2 is a schematic diagram of another embodiment of a method for vehicle data processing according to an embodiment of the invention;
FIG. 3 is a schematic diagram of an embodiment of a system for vehicle data processing according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a system for vehicle data processing according to an embodiment of the invention;
FIG. 5 is a diagram of an embodiment of a computer device according to the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to better maintain the vehicle, prolong the service life of the vehicle and have great significance in knowing environmental data used by the vehicle, for example, under the condition that the vehicle is at a high temperature for a long time, the temperature difference between engine cooling liquid and the atmosphere is reduced, so that the heat dissipation capacity of the cooling liquid is reduced, the engine is overheated, and a series of problems can occur. On one hand, the long-term high temperature can cause the charge coefficient of the engine to drop, the higher the air temperature is, the lower the air density is, and the actual air intake quantity of the engine is reduced; on the other hand, the temperature in the engine hood is higher due to overheating of the engine, and the air charging capacity of the engine is reduced.
Secondly, the driving data of the vehicle is managed based on a single-party device in a centralized manner at present, so that the driving data is easy to lose and tamper, and the unreliability and the risk of the data are increased.
Based on the above problems, the present application provides a method and a system for processing vehicle data, which are used to obtain environmental parameters of a vehicle and store the environmental parameters into a block chain, so as to enhance the safety of the vehicle environmental data. For easy understanding, referring to fig. 1, an embodiment of a method for processing vehicle data according to an embodiment of the present invention includes:
101. acquiring identification information and environmental parameters of a vehicle through terminal equipment;
generally, in the process of basic maintenance of a vehicle, it is very important to know the use condition of the vehicle, such as the running speed and the running position of the vehicle, environmental parameters (temperature, humidity, dust concentration) of the running of the vehicle, and the like. According to the environmental parameters and the driving data used by the vehicle, the vehicle maintenance personnel can pre-judge the worn parts and the fault parts of the vehicle, so that the vehicle can be maintained in a targeted manner, unnecessary expense of vehicle owners and maintenance time of the vehicle can be reduced, and the maintenance efficiency and the maintenance quality of the vehicle are improved.
Specifically, in the present embodiment, the vehicle data processing system may acquire and process the environmental parameters of the vehicle through the terminal device (vehicle-mounted device), so as to provide a real and powerful data base for the vehicle maintenance in the later period. Further, in order to provide index and identification for the environmental parameters of the vehicle, the processing system of the vehicle data can acquire the identification information of the vehicle while acquiring the environmental parameters of the vehicle, so as to be used for the later rapid identification of different environmental parameters of the vehicle.
Specifically, the identification information of the vehicle includes, but is not limited to, the engine model of the vehicle, the VIN code of the vehicle, the model payment of the vehicle, and the like, and is not limited herein.
102. Processing the environmental parameters by adopting a preset algorithm to generate first data;
further, after the processing system of the vehicle data obtains the environmental parameters of the vehicle, in order to determine the influence of the environmental parameters on the wear of different parts of the vehicle and the overall vehicle, the processing system of the vehicle data may adopt a preset algorithm for the environmental parameters, and calculate the wear rates of different environmental factors in the environmental parameters on different parts of the vehicle and the wear rates of different parts on the overall vehicle.
In this embodiment, specific algorithm contents are described in detail in the following embodiments.
103. Processing the identification information and the first data according to a preset format to obtain second data;
for the orderly management and storage of the vehicle data, the vehicle data processing system may process the identification information of the vehicle and the first data in a preset format after obtaining the first data to obtain the second data, so that the identification information of the vehicle and the first data of the vehicle are associated with each other in the second data.
Specifically, the preset format is a format for realizing the correlation between the identification information of the vehicle and the first data of the vehicle, and is not limited specifically here.
104. Encrypting the second data by using the first key to obtain third data;
after the vehicle data processing system obtains the second data, in order to prevent misuse and tampering of the second data by the third-party user equipment, the second data can be encrypted through the first key, so that the third data is obtained, and therefore, the third-party user equipment is guaranteed to be incapable of obtaining specific contents in the third data even if the third data is obtained on the premise that permission is not obtained.
105. Storing and registering the identification information and the third data in a block chain in an associated manner;
in order to prevent a third-party malicious website, the third data is damaged by entering the vehicle data processing system through an illegal way, and after the vehicle data processing system acquires the third data of the vehicle, the identification information of the vehicle and the third data are managed, stored and registered in the block chain.
Specifically, because the block chain is a distributed Database (or called distributed shared Ledger), because of structural characteristics of distributed records and distributed storage of the block chain itself, the block chain has characteristics of decentralization (Decentralized), trust removal (trust), collective maintenance (collectivelymaitain), Reliable Database (Reliable Database), Open Source (Open Source), and privacy protection (privacy), so that after the third data of the vehicle is uploaded to the block chain, the identification information and the third data cannot be tampered.
106. Receiving a data request of third-party user equipment, wherein the data request comprises identification information of a vehicle;
after the processing system of the vehicle data registers the third data in the blockchain, if the third-party user equipment needs to acquire the third data, a data request may be generated to the processing system of the vehicle data, where the data request includes: the identification information of the vehicle, so that the processing system of the vehicle data can quickly find the third data of the vehicle associated with the identification information of the vehicle according to the identification information of the vehicle.
After the third-party user device sends the data request, the vehicle data management system may receive the data request.
107. And sending third data corresponding to the identification information in the data request to the third-party user equipment.
It can be understood that, after finding the third data corresponding to the identification information of the vehicle, the processing system of the vehicle data further sends the third data to the third user device for reference or further processing by the third user device.
The method comprises the steps of firstly obtaining identification information and environmental parameters of a vehicle, processing the environmental parameters by adopting a preset algorithm to generate first data, processing the identification information and the first data according to a preset format to obtain second data, encrypting the second data by using a first secret key, and storing the identification information and the second data of the vehicle in a block chain in a correlation manner, so that real environmental parameters are provided for basic maintenance of the vehicle in the later period, and the vehicle environmental parameters in the block chain cannot be tampered by storing the environmental parameters in the block chain, so that when a data request of a third party is received, the real vehicle environmental parameters can be sent to the third party according to the data request.
Referring to fig. 2, a method for processing vehicle data according to an embodiment of the present invention is described in detail below based on the embodiment illustrated in fig. 1, where another embodiment of the method for processing vehicle data according to an embodiment of the present invention includes:
201. receiving a registration request of the terminal equipment, and generating a first key according to the identification information of the terminal equipment;
in order to ensure the authenticity of data stored in a vehicle data processing system and the management of vehicle environment parameters in the later period, the vehicle data processing system needs to verify a terminal device (a vehicle-mounted device), namely, to acquire the authentication information of the terminal device, and establish data interaction with the terminal device after the authentication of the terminal device is passed.
Specifically, the form of the authentication information may be various, for example, the terminal device sends a registration request to the processing system of the vehicle data, where the registration request may include identification information (such as a device ID, etc.) of the terminal device to obtain a static password for login; or after the terminal device sends a registration request to the vehicle data processing system and completes registration, the terminal device acquires a magnetic card or an intelligent card for identifying identity; or after the terminal device sends a registration request to the vehicle data processing system and completes registration, the terminal device authenticates the identity of the terminal device in a dynamic password mode before data interaction occurs with the vehicle data processing system, and the like. The authentication information between the terminal device and the vehicle data processing system includes, but is not limited to, the above several ways, and the form of the authentication information is not particularly limited herein.
Further, after receiving the registration request of the terminal device, the processing system of the vehicle data may generate the first key according to the identification information of the terminal device in the registration request, so as to encrypt the relevant data of the vehicle at a later stage. Specifically, the first key in this embodiment may be a private key in an asymmetric encryption algorithm, or may be a fixed password in a symmetric encryption algorithm, where the form of the first key is not specifically limited.
202. Acquiring identification information and environmental parameters of a vehicle through terminal equipment;
after the terminal device completes registration in the vehicle data processing system, the vehicle data processing system can acquire and process the environmental parameters of the vehicle through the terminal device (vehicle-mounted device) so as to provide a real and powerful data base for vehicle maintenance in the later period. Specifically, the environmental parameters of the vehicle include, but are not limited to, the temperature, humidity, and dust concentration of the vehicle environment, and it is understood that the ambient temperature of the vehicle, the ambient humidity of the vehicle, and the ambient dust concentration of the vehicle can be obtained by a temperature sensor, a humidity sensor, and a dust concentration sensor mounted on the vehicle, respectively.
Further, in order to provide index and identification for the environmental parameters of the vehicle, the processing system of the vehicle data can acquire the identification information of the vehicle while acquiring the environmental parameters of the vehicle, so as to be used for the later rapid identification of different environmental parameters of the vehicle. The identification information of the vehicle includes, but is not limited to, the engine model of the vehicle, the VIN code of the vehicle, the model and the style of the vehicle.
203. Determining an adverse environmental factor of an environmental parameter;
after obtaining environmental parameters of the vehicle, such as the environmental temperature, the environmental humidity, the atmospheric pressure and the environmental dust concentration of the vehicle, the vehicle data processing system calculates the altitude according to the atmospheric pressure, and then accesses the weather database through the API interface to obtain the adverse environmental factors (F1, F2 and … Fn) of each environmental parameter from the weather database.
204. Determining the influence coefficient of the adverse environment factor on each part of the vehicle;
after the vehicle data processing system determines the adverse environmental factors, the influence coefficients (C1, C2, … Cm) of the adverse environmental factors on the various components (component 1, component 2 …, component m) of the vehicle are determined from the pre-stored experimental statistical data table. The experimental statistical data table is the influence coefficient of different environmental factors on the vehicle according to a large number of experimental statistics.
205. According to a preset first algorithm, calculating the wear rate of each part of the vehicle by using the adverse environment factor and the influence coefficient;
vehicle data processing systemAfter determining the adverse environmental factors of the environmental parameters and the influence coefficients of the adverse environmental factors on various parts of the vehicle, the adverse environmental factors can be calculated according to a formula
Calculating the wear rate of the part m caused by the influence of each adverse environmental factor, and when the historical record number is r, the overall wear rate of the part m is
By analogy, the historical wear rates of various environmental factors on different components can be calculated.
206. Calculating the depreciation rate of the vehicle by using the wear rate of each part according to a preset second algorithm;
after the processing system of the vehicle data determines the wear rate of each part according to the environmental factor and the influence coefficient, the processing system of the vehicle data determines the wear rate of each part according to the weighting factors (r1, r2 … rm) of the wear rate of each part to the vehicle according to the formula
And calculating the wear rate of each part to the depreciation rate of the whole vehicle.
207. Packaging the wear rate of each part of the vehicle, the depreciation rate of the vehicle and the collected environmental parameters to generate first data;
the vehicle data processing system adopts a preset algorithm to obtain the wear rate of each part of the vehicle and the depreciation rate of the vehicle according to the collected environmental parameters, and encapsulates the wear rate of each part of the vehicle, the depreciation rate of the vehicle and the collected environmental parameters to generate first data for centralized and unified management and storage of the data so as to provide a data base for later maintenance of the vehicle.
208. Processing the identification information and the first data according to a preset format to obtain second data;
for the ordered management and storage of the vehicle data, after the vehicle data processing system obtains the first data, the identification information of the vehicle and the first data can be processed according to a preset format to obtain second data, so that the identification information of the vehicle and the first data in the second data are correlated to each other for the fast search of the vehicle data in the later period.
Specifically, the preset format is a format for realizing the correlation between the identification information of the vehicle and the first data of the vehicle, and is not limited specifically here.
209. Calculating the second data by adopting a preset algorithm to obtain fourth data;
further, in order to prevent the vehicle data processing system from tampering with a malicious website during registration of the vehicle data into the blockchain after calculating the vehicle depreciation rate according to the environmental parameters, the vehicle data processing system obtains fourth data (a hash value or an MD5 value of the second data) from second data of the vehicle by using a one-way irreversible algorithm (such as a hash algorithm or an MD5 algorithm), and stores the fourth data into the blockchain, so that a third party can verify the second data of the vehicle by using the one-way irreversible algorithm after downloading the second data of the vehicle.
According to the nature of the one-way irreversible algorithm, the hash value or MD5 value is a unique and extremely compact representation of a piece of data, and if a piece of plaintext is hashed and even if only one letter of the paragraph is altered, the subsequent hash or MD5 value will produce a different value. So after obtaining the second data, the third party can verify whether the second corresponding hash or MD5 value is changed according to the one-way irreversible algorithm, and if not, prove that the second data is complete, otherwise, the second data of the vehicle has been tampered.
210. Encrypting the second data by using the first key to obtain third data;
after the vehicle data processing system obtains the second data, in order to prevent misuse and tampering of the second data by the third-party user equipment, the second data can be encrypted through the first key, so that the third data is obtained, and therefore, the third-party user equipment is guaranteed to be incapable of obtaining specific contents in the third data even if the third data is obtained on the premise that permission is not obtained.
211. Storing and registering the identification information, the third data and the fourth data in a block chain in an associated manner;
in order to prevent a third-party malicious website, the third data and the fourth data are damaged by entering the vehicle data processing system through an illegal way, and after the third data and the fourth data of the vehicle are acquired, the vehicle data processing system stores and registers the identification information of the vehicle, the third data and the fourth data in a block chain in an associated mode.
Specifically, because the block chain is a distributed Database (or called distributed shared Ledger), because of structural characteristics of distributed records and distributed storage of the block chain itself, the block chain has characteristics of decentralization (Decentralized), trust removal (trust), collective maintenance (collectivelymaitain), Reliable Database (Reliable Database), Open Source (Open Source), and privacy protection (privacy), so that after the third data of the vehicle is uploaded to the block chain, the identification information, the third data, and the fourth data cannot be tampered.
212. Receiving a data request of third-party user equipment, wherein the data request comprises identification information of the vehicle and equipment identification of the third-party user equipment;
after the processing system of the vehicle data registers the third data in the blockchain, if the third-party user equipment needs to acquire the third data, a data request may be generated to the processing system of the vehicle data, where the data request includes: the identification information of the vehicle, so that the processing system of the vehicle data can quickly find the third data of the vehicle associated with the identification information of the vehicle according to the identification information of the vehicle. Meanwhile, in order to verify the identity of the third-party user equipment, the data request may further include an equipment identifier of the third-party user equipment, so that the vehicle data processing system verifies the identity of the third-party user equipment according to the equipment identifier of the third-party user equipment.
213. Authenticating the third-party user equipment according to the equipment identification to determine whether to send a second secret key to the third-party user equipment, wherein the second secret key corresponds to the first secret key;
it is understood that, after receiving the data request of the third-party user device, the vehicle data processing system may verify the identity of the third-party user device according to the device identifier of the third-party user device in the data request to determine whether to send the second key to the third-party user device.
Such as: after receiving the device identifier of the third-party user equipment, the vehicle data processing system can query the device identifier at an official website of the device identifier, and further send a second key to the third-party user equipment if the query result shows that the identity of the third-party user equipment is qualified, wherein the second key corresponds to the first key for encrypting the second data and is used for decrypting the third data.
Specifically, if the encryption algorithm is an asymmetric encryption algorithm, the second key is a public key corresponding to the first key, and if the encryption algorithm is a symmetric encryption algorithm, the second key is the same as the first key.
214. And sending third data corresponding to the identification information in the data request to the third-party user equipment.
And after the processing system of the vehicle data finds the third data corresponding to the vehicle according to the identification information of the vehicle, the third data is further sent to the third user equipment for reference or further processing by the third user equipment.
It can be understood that, after the authentication is passed, the third-party user equipment may receive the second secret key sent by the vehicle data processing system, and after receiving the third data, decrypt the third data through the corresponding second secret key to obtain the identification information of the vehicle and the first data, where the specific first data includes the wear rate of each component of the vehicle, the depreciation rate of the vehicle, and the collected environmental parameters for the third-party user to refer to.
The method comprises the steps of firstly obtaining identification information and environmental parameters of a vehicle, processing the environmental parameters by adopting a preset algorithm to generate first data, processing the identification information and the first data according to a preset format to obtain second data, encrypting the second data by using a first secret key, and storing the identification information and the second data of the vehicle in a block chain in a correlation manner, so that real environmental parameters are provided for basic maintenance of the vehicle in the later period, and the vehicle environmental parameters in the block chain cannot be tampered by storing the environmental parameters in the block chain, so that when a data request of a third party is received, the real vehicle environmental parameters can be sent to the third party according to the data request.
Secondly, after the second data is obtained, in order to verify whether the second data is tampered or not in the later period, the second data is calculated through a preset algorithm (Hash or MD5) to obtain fourth data, a third party user can conveniently verify whether the second data is tampered or not, and the safety of the vehicle environment parameters is further enhanced.
In the above, a method for processing vehicle data in an embodiment of the present invention is described, and a system for processing vehicle data in an embodiment of the present invention is described below, referring to fig. 3, the system for processing vehicle data in an embodiment of the present invention includes:
an obtaining unit 301, configured to obtain, by a terminal device, identification information and an environmental parameter of a vehicle;
a first processing unit 302, configured to process the environment parameter by using a preset algorithm, and generate first data;
the second processing unit 303 is configured to process the identification information and the first data according to a preset format to obtain second data;
an encrypting unit 304, configured to encrypt the second data with the first key to obtain third data;
a storage unit 305 configured to store and register the identification information and the third data in association with each other in the block chain;
a first receiving unit 306, configured to receive a data request of a third-party user device, where the data request includes identification information of a vehicle;
a sending unit 307, configured to send third data corresponding to the identification information in the data request to the third party user equipment.
It should be noted that the functions of the units in this embodiment are similar to the functions of the vehicle data processing system in the embodiment described in fig. 1, and are not described again here.
According to the invention, identification information and environmental parameters of a vehicle are acquired through an acquisition unit 301, the environmental parameters are processed through a preset algorithm through a first processing unit 302 to generate first data, the identification information and the first data are processed according to a preset format to obtain second data, the second data are encrypted by using a first key, the identification information and the second data of the vehicle are stored in a block chain in a correlation mode through a storage unit 305, so that real environmental parameters are provided for basic maintenance of the vehicle in the later period, the environmental parameters are stored in the block chain, the environmental parameters of the vehicle in the block chain cannot be tampered, and the real environmental parameters of the vehicle can be sent to a third party according to a data request when the data request of the third party is received.
Referring to fig. 4, the following describes in detail a vehicle data processing system according to an embodiment of the present invention, and referring to the embodiment of fig. 3, another embodiment of the vehicle data processing system according to an embodiment of the present invention includes:
an obtaining unit 401, configured to obtain, by a terminal device, identification information and an environmental parameter of a vehicle;
a first processing unit 402, configured to process the environment parameter by using a preset algorithm, and generate first data;
a second processing unit 403, configured to process the identification information and the first data according to a preset format to obtain second data;
an encrypting unit 404, configured to encrypt the second data with the first key to obtain third data;
a storage unit 405 configured to store and register the identification information and the third data in association with each other in the block chain;
a first receiving unit 406, configured to receive a data request of a third-party user device, where the data request includes identification information of a vehicle;
a sending unit 407, configured to send third data corresponding to the identification information in the data request to the third party user equipment.
Preferably, the vehicle data processing system may further include:
a second receiving unit 408, configured to receive a registration request of the terminal device, and generate the first key according to the identification information of the terminal device.
Preferably, the first processing unit 402 specifically includes:
a first determining module 4021, configured to determine adverse environment factors of the environment parameters respectively;
a second determination module 4022, configured to determine an influence coefficient of the adverse environment factor on each component of the vehicle;
the first calculation module 4023 is used for calculating the wear rate of each component of the vehicle by using the adverse environment factor and the influence coefficient according to a preset first algorithm;
the second calculation module 4024 is used for calculating the depreciation rate of the vehicle by using the wear rate of each component according to a preset second algorithm;
the encapsulating module 4025 is configured to encapsulate wear rates of various components of the vehicle, a depreciation rate of the vehicle, and the collected environmental parameters to generate first data.
Preferably, the vehicle data processing system may further include:
and an authentication unit 409, configured to authenticate the third-party user equipment according to the equipment identifier, so as to determine whether to send a second key to the third-party user equipment, where the second key corresponds to the first key.
Preferably, the vehicle data processing system may further include:
the calculating unit 410 is configured to calculate the second data by using a preset algorithm to obtain fourth data;
preferably, the storage unit 405 specifically includes:
the storage module 4051 is configured to store and register the identification information, the third data, and the fourth data in association with each other in the blockchain.
It should be noted that the functions of the units and the modules in this embodiment are similar to the functions of the vehicle data processing system in the embodiment described in fig. 2, and are not described again here.
In the invention, the identification information and the environmental parameters of the vehicle are obtained through an obtaining unit 401, the environmental parameters are processed through a preset algorithm through a first processing unit 402 to generate first data, the identification information and the first data are processed according to a preset format to obtain second data, the second data are encrypted by using a first key, the identification information and the second data of the vehicle are stored in a block chain in a correlation mode through a storage unit 405, so that real environmental parameters are provided for basic maintenance of the vehicle in the later period, and the environmental parameters are stored in the block chain, so that the environmental parameters of the vehicle in the block chain cannot be tampered, and when a data request of a third party is received, the real environmental parameters of the vehicle can be sent to the third party according to the data request.
Secondly, after the second data is obtained, in order to verify whether the second data is tampered in a later period, the calculation unit 410 is used for calculating the second data by adopting a preset algorithm (Hash or MD5) to obtain fourth data, so that a third party user can conveniently verify whether the second data is tampered, and the safety of the vehicle environment parameters is further enhanced.
The processing method of the vehicle data in the embodiment of the present invention is described above from the perspective of the modular functional entity, and the computer apparatus in the embodiment of the present invention is described below from the perspective of hardware processing:
fig. 5 is a schematic diagram showing only a portion related to an embodiment of the present invention, and for convenience of description, please refer to the method portion of the embodiment of the present invention. The computer device 5 may be any terminal device including a mobile phone, a server, a tablet computer, and the like, and the computer device 5 is respectively in direct or indirect communication connection with the terminal device and a third-party user device.
Referring to fig. 5, the computer apparatus 5 includes: a power supply 510, a memory 520, a processor 530, and a computer program stored in the memory and executable on the processor. The processor 530, when executing the computer program, is configured to perform the following steps:
acquiring identification information and environmental parameters of a vehicle through terminal equipment;
processing the environmental parameters by adopting a preset algorithm to generate first data;
processing the identification information and the first data according to a preset format to obtain second data;
encrypting the second data by using a first key to obtain third data;
storing and registering the identification information and the third data in a block chain in an associated manner;
receiving a data request of a third party user device, wherein the data request comprises identification information of the vehicle;
and sending third data corresponding to the identification information in the data request to the third-party user equipment.
In some embodiments of the present invention, processor 530 may be further configured to implement the following steps:
and receiving a registration request of the terminal equipment, and generating the first key according to the identification information of the terminal equipment.
In some embodiments of the present invention, processor 530 may be further configured to implement the following steps:
respectively determining adverse environmental factors of the environmental parameters;
determining the influence coefficient of the adverse environment factor on each component of the vehicle;
calculating the wear rate of each part of the vehicle by using the adverse environment factor and the influence coefficient according to a preset first algorithm;
calculating the depreciation rate of the vehicle by using the wear rate of each part according to a preset second algorithm;
packaging the wear rate of each part of the vehicle, the depreciation rate of the vehicle and the collected environmental parameters to generate first data
In some embodiments of the present invention, the processor 530, receiving the data request, further comprises: a device identification of a third party user device;
processor 530 may also be specifically configured to implement the following steps:
and authenticating the third-party user equipment according to the equipment identification to determine whether to send a second secret key to the third-party user equipment, wherein the second secret key corresponds to the first secret key.
In some embodiments of the present invention, processor 530 may be further configured to implement the following steps:
calculating the second data by adopting a preset algorithm to obtain fourth data;
and storing and registering the identification information, the third data and the fourth data in the block chain in an associated manner.
Alternatively, the processor implements the functions of the modules or units in the above device embodiments when executing the computer program. Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the computer apparatus. For example, referring to the corresponding embodiment of fig. 3, the computer program may be divided into an acquisition unit 301, a first processing unit 302, a second processing unit 303, an encryption unit 304, a storage unit 305, a first receiving unit 306, and a sending unit 307, and the specific functions of each unit are as follows:
an obtaining unit 301, configured to obtain, by a terminal device, identification information and an environmental parameter of a vehicle;
a first processing unit 302, configured to process the environment parameter by using a preset algorithm, and generate first data;
the second processing unit 303 is configured to process the identification information and the first data according to a preset format to obtain second data;
an encrypting unit 304, configured to encrypt the second data with the first key to obtain third data;
a storage unit 305 configured to store and register the identification information and the third data in association with each other in the block chain;
a first receiving unit 306, configured to receive a data request of a third-party user device, where the data request includes identification information of a vehicle;
a sending unit 307, configured to send third data corresponding to the identification information in the data request to the third party user equipment.
Those skilled in the art will appreciate that the architecture shown in fig. 5 does not constitute a limitation of the computer apparatus 5, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components, e.g., the computer apparatus may also include input-output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The modules/units integrated by the computer device may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.