CN-121984756-A - Data acquisition method, vehicle and computer readable storage medium
Abstract
The embodiment of the application provides a data acquisition method, a vehicle and a computer readable storage medium, wherein the method comprises the steps of acquiring address information of a target message agent component; the method comprises the steps of carrying out mutual authentication on a target message proxy component and a vehicle based on address information to obtain a mutual authentication result, constructing an encryption channel between the vehicle and the target message proxy component under the condition that the mutual authentication result represents that the target message proxy component and the vehicle are successful in mutual authentication, receiving a data acquisition instruction based on the encryption channel, wherein the data acquisition instruction is issued by cloud service and is forwarded to the vehicle through the target message proxy component, executing the data acquisition instruction to obtain a data acquisition result, and pushing the data acquisition result based on the encryption channel, wherein the data acquisition result is reported to the cloud service through the target message proxy component. The application solves the technical problem of poor safety of data interaction of vehicles in the data acquisition process in the related technology.
Inventors
- WEN HAO
Assignees
- 奇瑞汽车股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260203
Claims (10)
- 1. A data acquisition method, applied to a vehicle, comprising: obtaining address information of a target message proxy component, wherein the target message proxy component is a message proxy component distributed for the vehicle in at least one message proxy component; Based on the address information, performing bidirectional authentication on the target message proxy component and the vehicle to obtain a bidirectional authentication result; Under the condition that the bidirectional authentication result represents that the bidirectional authentication of the target message proxy component and the vehicle is successful, an encryption channel between the vehicle and the target message proxy component is constructed; Based on the encryption channel, receiving a data acquisition instruction, wherein the data acquisition instruction is issued by a cloud service and forwarded to the vehicle through the target message proxy component; executing the data acquisition instruction to obtain a data acquisition result; And pushing the data acquisition result based on the encryption channel, wherein the data acquisition result is reported to the cloud service through the target message proxy component.
- 2. The method of claim 1, wherein performing mutual authentication on the target message broker component and the vehicle based on the address information to obtain a mutual authentication result comprises: receiving first identity information sent by the target message proxy component based on the address information; Based on a first electronic certificate stored by the vehicle, authenticating the first identity information to obtain a first authentication result, wherein the first authentication result is used for representing whether the first identity information is successfully authenticated or not; transmitting second identity information of the vehicle to the target message proxy component based on the address information under the condition that the first authentication result represents that the authentication of the first identity information is successful, wherein the second identity information is authenticated by the target message proxy component based on a locally stored second electronic certificate to obtain a second authentication result, and the second authentication result is used for representing whether the authentication of the second identity information is successful or not; And under the condition that an authentication response message returned by the target message proxy component is received, determining that the bidirectional authentication result represents that the target message proxy component and the vehicle are successfully authenticated in a bidirectional manner, wherein the authentication response message is sent by the target message proxy component under the condition that the second identity information is successfully authenticated.
- 3. The method of claim 1, wherein constructing an encrypted channel between the vehicle and the target message broker component comprises: Under the condition that a key exchange request message sent by the target message proxy component is received, the key exchange request message is analyzed to obtain a first communication key of the target message proxy component, wherein the key exchange request message is sent by the target message proxy component under the condition that the key exchange with the vehicle is required; Constructing a key exchange response message based on a second communication key of the vehicle, wherein the key exchange response message is used for feeding back the second communication key to the target message broker component; sending the key exchange response message to the target message broker component; the encrypted channel is constructed based on the first communication key and the second communication key.
- 4. The method of claim 1, wherein receiving data acquisition instructions based on the encrypted channel comprises: Based on the identification information of the vehicle, constructing a session request message, and based on the encryption channel, sending the session request message to the target message proxy component, wherein the session request message is used for establishing a session with the target message proxy component, the session at least comprises an instruction issuing subject corresponding to the vehicle, and the instruction issuing subject is used for issuing the data acquisition instruction to the vehicle; Under the condition that a session response message sent by the target message proxy component is received, a topic subscription message is sent to the target message proxy component based on the encrypted channel, wherein the session response message is sent by the target message proxy component under the condition that a session is successfully established with the vehicle, and the topic subscription message is used for subscribing to the instruction issuing topic; Under the condition that the cloud service pushes the data acquisition instruction to the instruction issuing theme, acquiring the data acquisition instruction based on the instruction issuing theme; Preferably, executing the data acquisition instruction to obtain a data acquisition result includes: Based on the data acquisition instruction, adjusting initial data acquisition parameters of the vehicle to obtain target data acquisition parameters; data acquisition is carried out based on the target data acquisition parameters, and the data acquisition result is obtained; Preferably, the session further includes a data reporting theme corresponding to the vehicle, where the data reporting theme is configured to report data collected by the vehicle to the cloud service, and based on the encrypted channel, push the data collection result, where the pushing includes: And pushing the data acquisition result to the data reporting subject based on the encryption channel.
- 5. A data collection method, characterized by being applied to a target message broker component, the target message broker component being a message broker component allocated to a vehicle among at least one message broker component, the vehicle being configured to execute data collection instructions, the method comprising: performing mutual authentication on the target message proxy component and the vehicle to obtain a mutual authentication result; Under the condition that the bidirectional authentication result represents that the bidirectional authentication of the target message proxy component and the vehicle is successful, an encryption channel between the vehicle and the target message proxy component is constructed; based on the encryption channel, sending the data acquisition instruction, wherein the data acquisition instruction is issued by a cloud service and forwarded to the vehicle through the target message proxy component; and under the condition that the vehicle executes the data acquisition instruction to obtain a data acquisition result, reporting the data acquisition result based on the encryption channel, wherein the data acquisition result is reported to the cloud service through the target message proxy component.
- 6. The method of claim 5, wherein performing mutual authentication of the target message broker component and the vehicle to obtain a mutual authentication result comprises: Sending first identity information of the target message proxy component to the vehicle, wherein the first identity information is authenticated by the vehicle based on a locally stored first electronic certificate to obtain a first authentication result, and the first authentication result is used for representing whether the first identity information is successfully authenticated or not; Under the condition that second identity information sent by the vehicle is received, authenticating the second identity information based on a second electronic certificate stored by the target message proxy component to obtain a second authentication result, wherein the second authentication result is used for representing whether the second identity information is successfully authenticated or not, and the second identity information is sent by the vehicle under the condition that the first identity information is successfully authenticated; and under the condition that the second authentication result represents that the second identity information authentication is successful, sending an authentication response message to the vehicle, and determining that the bidirectional authentication result represents that the target message proxy component and the vehicle bidirectional authentication is successful.
- 7. The method of claim 5, wherein constructing an encrypted channel between the vehicle and the target message broker component comprises: constructing a key exchange request message based on a first communication key of the target message broker component, and sending the key exchange request message to the vehicle, wherein the key exchange request message is used for exchanging keys with the vehicle; Under the condition that a key exchange response message sent by the vehicle is received, the key exchange response message is analyzed to obtain a second communication key of the vehicle, wherein the key exchange response message is sent by the vehicle under the condition that the first communication key is obtained; the encrypted channel is constructed based on the first communication key and the second communication key.
- 8. The method of claim 5, wherein transmitting the data acquisition instructions based on the encrypted channel comprises: Analyzing the session request message to obtain the identification information of the vehicle under the condition that the session request message sent by the vehicle is received, and establishing a session with the vehicle under the condition that the identification information is matched with second identity information, wherein the session request message is sent by the vehicle under the condition that the session needs to be established with the target message agency component, and the session at least comprises an instruction issuing theme corresponding to the vehicle, and the instruction issuing theme is used for issuing the data acquisition instruction to the vehicle; Transmitting a session response message to the vehicle based on the encrypted channel, wherein the session response message is used for characterizing that the session establishment is successful; binding the instruction issuing theme with the vehicle under the condition that the theme subscription message sent by the vehicle is received; Under the condition that the cloud service pushes the data acquisition instruction to the instruction issuing theme, sending the data acquisition instruction based on the instruction issuing theme; preferably, the session further includes a data reporting theme corresponding to the vehicle, where the data reporting theme is configured to report data collected by the vehicle to the cloud service, and the reporting the data collection result based on the encrypted channel includes: and under the condition that the vehicle pushes the data acquisition result to the data reporting subject based on the encryption channel, reporting the data acquisition result based on the data reporting subject.
- 9. A vehicle, characterized by comprising: a memory storing an executable program; A processor for executing the program, wherein the program when run performs the method of any one of claims 1 to 8.
- 10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored executable program, wherein the executable program when run controls a device in which the storage medium is located to perform the method of any one of claims 1 to 8.
Description
Data acquisition method, vehicle and computer readable storage medium Technical Field The embodiment of the application relates to the fields of Internet of vehicles and data processing, in particular to a data acquisition method, a vehicle and a computer readable storage medium. Background With the rapid development of the technology of Vehicle-to-evaluation (V2X for short), especially the continuous innovation of automatic driving vehicles, the data interaction between the vehicles and the cloud becomes particularly important. On one hand, the cloud end needs to send a data acquisition instruction to the vehicle so as to guide the vehicle to acquire data, and on the other hand, the vehicle needs to feed back the acquired data to the cloud end. However, the current data collection strategy may result in poor security when the cloud and the vehicle interact with each other. There is currently no good solution to the above problems. Disclosure of Invention The embodiment of the application provides a data acquisition method, a vehicle and a computer readable storage medium, which at least solve the technical problem of poor safety of data interaction of the vehicle in the data acquisition process in the related technology. According to one aspect of the embodiment of the application, a data acquisition method is provided and applied to a vehicle, and the method comprises the steps of obtaining address information of a target message proxy component, wherein the target message proxy component is a message proxy component distributed for the vehicle in at least one message proxy component, performing bidirectional authentication on the target message proxy component and the vehicle based on the address information to obtain a bidirectional authentication result, constructing an encryption channel between the vehicle and the target message proxy component under the condition that the bidirectional authentication result represents that the target message proxy component and the vehicle are successfully authenticated in the bidirectional authentication mode, receiving a data acquisition instruction based on the encryption channel, wherein the data acquisition instruction is issued by cloud service and forwarded to the vehicle through the target message proxy component, executing the data acquisition instruction to obtain a data acquisition result, and pushing the data acquisition result to the cloud service based on the encryption channel. Further, based on the address information, performing mutual authentication on the target message agency component and the vehicle to obtain a mutual authentication result, wherein the mutual authentication result comprises receiving first identity information sent by the target message agency component based on the address information, authenticating the first identity information based on a first electronic certificate stored by the vehicle to obtain a first authentication result, wherein the first authentication result is used for representing whether the first identity information is successfully authenticated, sending second identity information of the vehicle to the target message agency component based on the address information when the first authentication result represents that the first identity information is successfully authenticated, wherein the second identity information is authenticated by the target message agency component based on a locally stored second electronic certificate to obtain a second authentication result, the second authentication result is used for representing whether the second identity information is successfully authenticated, and determining that the mutual authentication result represents that the target message agency component and the vehicle are successfully mutually authenticated when an authentication response message returned by the target message agency component is received, wherein the authentication response message is sent by the target message agency component when the second identity information is successfully authenticated. Further, constructing an encryption channel between the vehicle and the target message broker component comprises the steps of analyzing a key exchange request message under the condition that the key exchange request message sent by the target message broker component is received, obtaining a first communication key of the target message broker component, wherein the key exchange request message is sent by the target message broker component under the condition that key exchange with the vehicle is needed, constructing a key exchange response message based on a second communication key of the vehicle, wherein the key exchange response message is used for feeding back the second communication key to the target message broker component, sending the key exchange response message to the target message broker component, and constructing the encryption channel based on the first communication key and the sec