Search

CN-122027469-A - Automobile OTA upgrading coordination method and terminal

CN122027469ACN 122027469 ACN122027469 ACN 122027469ACN-122027469-A

Abstract

The invention discloses an automobile OTA upgrading coordination method and a terminal, which are characterized in that a data packet is sent to each sub-terminal in the automobile terminal according to received automobile terminal preparation upgrading information, the round trip time of the data packet is measured, the network speed evaluation value of each sub-terminal is determined based on the round trip time, the size and the transmission time of the data packet are obtained, the network bandwidth of each sub-terminal is calculated according to the size and the transmission time of the data packet, the proper data block size of each sub-terminal is determined based on the network speed evaluation value and the network bandwidth, the transmission rate of each sub-terminal is determined based on the network bandwidth, and the OTA upgrading is carried out on the sub-terminal based on the data block size and the transmission rate, so that before each OTA upgrading preparation, accurate network speed evaluation is carried out by sending the data packet, the proper data block size and the transmission rate of the sub-terminal are determined, and OTA upgrading is carried out based on the data block size and the transmission rate, thereby effectively improving the OTA upgrading efficiency.

Inventors

  • ZHANG FENG
  • KE WEI
  • YU JIANCHENG
  • WU XIAOQIAN

Assignees

  • 厦门雅迅智联科技股份有限公司

Dates

Publication Date
20260512
Application Date
20241112

Claims (10)

  1. 1. An automobile OTA upgrade coordination method is characterized by comprising the following steps: Receiving preparation upgrading information of a vehicle end, sending a data packet to each sub-terminal in the vehicle end according to the preparation upgrading information, and measuring the round trip time of the data packet; determining a network speed evaluation value of each sub-terminal based on the round trip time; acquiring the size and the transmission time of the data packet, and calculating the network bandwidth of each sub-terminal according to the size and the transmission time of the data packet; determining a suitable data block size for each sub-terminal based on the network speed assessment value and the network bandwidth, and determining a transmission rate for each sub-terminal based on the network bandwidth; and carrying out OTA upgrading on the sub-terminal based on the data block size and the transmission rate.
  2. 2. The method of claim 1, wherein said determining a network speed estimate for each sub-terminal based on the round trip time comprises: if the round trip time is smaller than a preset threshold value, determining the network speed evaluation value of the sub-terminal as a first preset value; If the round trip time is greater than or equal to a preset threshold value, determining that the network speed evaluation value of the sub-terminal is a second preset value; The first preset value is greater than the second preset value.
  3. 3. The method of claim 1, wherein the calculating the network bandwidth of each sub-terminal according to the size of the data packet and the transmission time comprises: ; In the formula, Representing the bandwidth of the network, Indicating the size of the data packet and, Representing the transmission time.
  4. 4. The method of claim 1, wherein the determining the appropriate data block size for each sub-terminal based on the network speed assessment value and the network bandwidth comprises: Calculating the network grade of each sub-terminal according to the network bandwidth and the network speed evaluation value; acquiring a preset minimum data block size, a preset maximum data block size and a preset highest network level; and calculating the proper data block size of each sub-terminal according to the network grade, the preset minimum data block size, the preset maximum data block size and the preset highest network grade.
  5. 5. The method of claim 4, wherein the OTA upgrade of the sub-terminals based on the data block size and the transmission rate comprises: determining a sub-terminal needing no collaborative upgrade and a sub-terminal needing collaborative upgrade from a plurality of sub-terminals; Determining a first upgrading task corresponding to the sub-terminal without cooperative upgrading, and transmitting the first upgrading task to the sub-terminal without cooperative upgrading in blocks based on the data block size and the transmission rate so as to complete the first upgrading task; and determining a second upgrading task corresponding to the sub-terminal to be upgraded cooperatively, and dynamically distributing the second upgrading task to the sub-terminal to be upgraded cooperatively based on the network grade and the transmission rate so as to complete the second upgrading task.
  6. 6. The method of claim 5, wherein dynamically allocating the second upgrade task to the sub-terminal requiring collaborative upgrade based on the network level and the transmission rate to complete the second upgrade task comprises: dividing the second upgrading task into a upgrading task with large data volume and a upgrading task with small data volume; Respectively assigning priorities to the upgrading task with large data volume and the upgrading task with small data volume; Sequencing the sub-terminals to be cooperatively upgraded according to the network grade and the transmission rate from high to low to obtain sequenced sub-terminals to be cooperatively upgraded; And sequentially distributing the upgrade tasks with large data quantity to the ordered sub-terminals needing collaborative upgrade according to the order of the priority from high to low, and sequentially distributing the upgrade tasks with small data quantity to the ordered sub-terminals needing collaborative upgrade according to the order of the priority from high to low after the distribution is completed so as to complete the second upgrade task.
  7. 7. The method for coordinating upgrades by an automobile OTA of claim 6, characterized by further comprising: judging whether the upgrade tasks with large data volume and the upgrade tasks with small data volume exist or not, if so, determining the sub-terminal allocated to the upgrade tasks needing to be synchronously completed, and acquiring the actual scheduling time of the sub-terminal allocated to the upgrade tasks needing to be synchronously completed; Calculating a synchronous time window according to the actual scheduling time; And sending the synchronous time window to the sub-terminal to which the upgrade task to be synchronously completed is allocated.
  8. 8. The method of claim 5, wherein the transmitting the first upgrade task to the sub-terminal without collaborative upgrade in blocks based on the data block size and the transmission rate to complete the first upgrade task comprises: Partitioning the first upgrading task based on the data block size and the transmission rate to obtain a plurality of first upgrading subtasks; Acquiring JSON format data content, user identification, task generation time stamp, task identification number and encryption key in the first upgrading subtask; generating a signature value of the first upgrade sub-task based on the JSON-format data content, the user identification, the task generation timestamp, the task identification number, and the encryption key; and transmitting the plurality of first upgrading sub-tasks and the signature values corresponding to the first upgrading sub-tasks to the sub-terminals which do not need collaborative upgrading according to the transmission rate so as to complete the first upgrading tasks.
  9. 9. The method for coordinating upgrades by an automobile OTA of claim 8, characterized by further comprising: In the OTA upgrading process, monitoring whether data verification fails or data is lost in real time, if yes, acquiring the packet loss rate of a sub-terminal with the data verification failure or the data loss, and determining the data retransmission times according to the packet loss rate; triggering data retransmission according to the data retransmission times.
  10. 10. An automobile OTA upgrade coordination terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of an automobile OTA upgrade coordination method according to any one of claims 1 to 9.

Description

Automobile OTA upgrading coordination method and terminal Technical Field The invention relates to the field of OTA (over the air) upgrading, in particular to an automobile OTA upgrading coordination method and a terminal. Background With the rapid development of automobile intellectualization and networking, the need for OTA (Over-the-Air) upgrade of automobile parts and whole vehicles is increasing. However, the existing automobile OTA upgrading technology has various defects and problems, on one hand, inaccurate network speed evaluation is achieved, and proper transmission strategies are difficult to determine for different automobile terminals, so that data transmission efficiency is low, upgrading efficiency is affected, on the other hand, multi-terminal synchronization is insufficient, the coordination and efficiency of whole automobile upgrading are affected, and meanwhile, safety guarantee measures are not strict enough, so that upgrading data is at risk. Disclosure of Invention The technical problem to be solved by the invention is to provide an automobile OTA upgrading coordination method and terminal, and to improve OTA upgrading efficiency. In order to solve the technical problems, the invention adopts a technical scheme that: an automobile OTA upgrade coordination method comprises the following steps: Receiving preparation upgrading information of a vehicle end, sending a data packet to each sub-terminal in the vehicle end according to the preparation upgrading information, and measuring the round trip time of the data packet; determining a network speed evaluation value of each sub-terminal based on the round trip time; acquiring the size and the transmission time of the data packet, and calculating the network bandwidth of each sub-terminal according to the size and the transmission time of the data packet; determining a suitable data block size for each sub-terminal based on the network speed assessment value and the network bandwidth, and determining a transmission rate for each sub-terminal based on the network bandwidth; and carrying out OTA upgrading on the sub-terminal based on the data block size and the transmission rate. In order to solve the technical problems, the invention adopts another technical scheme that: an automobile OTA upgrade coordination terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: Receiving preparation upgrading information of a vehicle end, sending a data packet to each sub-terminal in the vehicle end according to the preparation upgrading information, and measuring the round trip time of the data packet; determining a network speed evaluation value of each sub-terminal based on the round trip time; acquiring the size and the transmission time of the data packet, and calculating the network bandwidth of each sub-terminal according to the size and the transmission time of the data packet; determining a suitable data block size for each sub-terminal based on the network speed assessment value and the network bandwidth, and determining a transmission rate for each sub-terminal based on the network bandwidth; and carrying out OTA upgrading on the sub-terminal based on the data block size and the transmission rate. The method has the advantages that the data packet is sent to each sub-terminal in the vehicle terminal according to the received vehicle terminal preparation upgrading information, the round trip time of the data packet is measured, the network speed evaluation value of each sub-terminal is determined based on the round trip time, the size and the transmission time of the data packet are obtained, the network bandwidth of each sub-terminal is calculated according to the size and the transmission time of the data packet, the proper data block size of each sub-terminal is determined based on the network speed evaluation value and the network bandwidth, the transmission rate of each sub-terminal is determined based on the network bandwidth, the sub-terminal is subjected to OTA upgrading based on the data block size and the transmission rate, therefore, before each preparation OTA upgrading, accurate network speed evaluation is carried out by sending the data packet, the proper data block size and the transmission rate of the sub-terminal are determined, and OTA upgrading is carried out based on the data block size and the transmission rate, so that the OTA upgrading efficiency is effectively improved. Drawings Fig. 1 is a flowchart illustrating steps of an automobile OTA upgrade coordination method according to an embodiment of the present invention; fig. 2 is a schematic structural diagram of an automobile OTA upgrading coordination terminal according to an embodiment of the invention; fig. 3 is an upgrade flowchart in an automobile OTA upgrade coordination method according to an embodiment of the present in