CN115220750A - Automobile OTA (over the air) upgrading method, front-row host and system - Google Patents
Automobile OTA (over the air) upgrading method, front-row host and system Download PDFInfo
- Publication number
- CN115220750A CN115220750A CN202111415487.6A CN202111415487A CN115220750A CN 115220750 A CN115220750 A CN 115220750A CN 202111415487 A CN202111415487 A CN 202111415487A CN 115220750 A CN115220750 A CN 115220750A
- Authority
- CN
- China
- Prior art keywords
- row
- host
- upgrading
- upgrade package
- ota
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000012795 verification Methods 0.000 claims description 62
- 230000005540 biological transmission Effects 0.000 claims 1
- 230000006870 function Effects 0.000 description 14
- 238000004891 communication Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 4
- 230000007547 defect Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses an automobile OTA upgrading method, a front-row host and a system, wherein the automobile OTA upgrading method is applied to the front-row host connected with a vehicle-mounted intelligent terminal and a back-row host, and the front-row host downloads a front-row upgrading packet and a back-row upgrading packet from a preset cloud platform after the vehicle-mounted intelligent terminal provides an external network access function for the front-row host; the front-row host carries out OTA upgrading according to the front-row upgrading packet, and sends the back-row upgrading packet to the back-row host, so that the back-row host carries out OTA upgrading according to the back-row upgrading packet. Based on the structure that the front-row host is connected with the vehicle-mounted intelligent terminal and the rear-row host, the front-row host serves as a routing function to transmit data to the rear-row host through the front-row host, so that the connecting wire harness and the connecting interfaces of the rear-row host and the vehicle-mounted intelligent terminal are reduced, and the effectiveness and the efficiency of OTA (over the air technology) upgrading are improved.
Description
Technical Field
The invention relates to the technical field of automobile OTAs, in particular to an automobile OTA upgrading method, a front host and a system.
Background
With the development of the automobile industry, more and more nodes inside an automobile often need to be upgraded by Over The Air (OTA), so that the efficiency of upgrading versions of each node is improved.
In the prior art, the vehicle-mounted intelligent terminal is often used as a main terminal, and each vehicle internal node needs to add a new interface and a new wire harness on a host (such as a front host and a rear host) corresponding to the internal node and the vehicle-mounted intelligent terminal, so that the host corresponding to the internal node can be upgraded through OTA after being connected with the vehicle-mounted intelligent terminal. According to the method, when each new node needs OTA upgrading, a new interface and a wire harness are required to be added, so that the cost is high and the upgrading efficiency is low;
disclosure of Invention
The embodiment of the invention provides an automobile OTA upgrading method, a front-row host and a system, which are used for solving the problems of high cost and low efficiency of automobile OTA upgrading in the prior art.
The OTA upgrading method is applied to a front-row host connected with a vehicle-mounted intelligent terminal and a rear-row host;
the OTA upgrading method for the automobile comprises the following steps:
after the vehicle-mounted intelligent terminal provides an external network access function for the front-row host, the front-row host downloads a front-row upgrade package and a rear-row upgrade package from a preset cloud platform;
the front-row host carries out OTA upgrading according to the front-row upgrading packet, and sends the back-row upgrading packet to the back-row host, so that the back-row host carries out OTA upgrading according to the back-row upgrading packet.
In one embodiment, a front host is provided, and the front host is used for implementing the OTA upgrading method for the automobile.
In one embodiment, an OTA (over the air) upgrading system for an automobile is provided, and comprises an intelligent vehicle-mounted terminal, a back-row host and the front-row host.
According to the automobile OTA upgrading method, the front-row host and the system, the front-row host is used as a routing function based on the structure that the front-row host is connected with the vehicle-mounted intelligent terminal and the rear-row host, so that data (such as the rear-row upgrading packet) are transmitted to the rear-row host through the front-row host, the connecting wire harness and the connecting interface of the rear-row host and the vehicle-mounted intelligent terminal are reduced, the OTA upgrading cost is reduced, and the communication efficiency between the front-row host and the rear-row host is improved. Furthermore, based on the connection structure, version association upgrading can be performed between the front-row host and the back-row host, so that the versions of the upgrading packages of the front-row host and the back-row host are adapted, and the effectiveness and efficiency of OTA upgrading are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a schematic diagram of an OTA upgrade system for a vehicle according to an embodiment of the present invention;
fig. 2 is a flowchart of an OTA upgrading method for a vehicle in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
The embodiment provides an automobile OTA upgrading method, which can be applied to a front-row host in an automobile OTA upgrading system shown in FIG. 1, wherein the front-row host is connected with a vehicle-mounted intelligent terminal and a rear-row host. The vehicle-mounted intelligent terminal and the front host are connected by an interface connection mode, for example, the interface connection mode may be a USB (Universal Serial Bus) mode. The front host and the back host are connected through a network connection, for example, the network connection may be an ethernet connection.
Further, the vehicle-mounted intelligent terminal is a T-BOX terminal, and after the vehicle-mounted intelligent terminal is connected and communicated with the front host through a USB (a communication protocol adopts a proprietary protocol of x14 bus), the vehicle-mounted intelligent terminal provides an external network access function for the front host, so that the front host can access data of other platforms. Because in this embodiment do not pass through connected mode lug connection such as USB between back row host computer and the on-vehicle intelligent terminal, but be connected with the front-seat host computer through connected mode such as ethernet, therefore back row host computer does not have the extranet access function, but acts as the routing effect through the front-seat host computer for the front-seat host computer carries out operation such as data download through the extranet access function who possesses after, with the data of downloading pass through to the back-seat host computer. The front row host and the back row host are nodes with version association.
In an embodiment, as shown in fig. 2, an automotive OTA upgrading method is provided, for example, when the method is applied to the front host of the automotive OTA upgrading system shown in fig. 1, including the following steps:
after the vehicle-mounted intelligent terminal provides an external network access function for the front-row host, the front-row host downloads a front-row upgrade package and a rear-row upgrade package from a preset cloud platform.
It can be understood that, the precondition that the in-vehicle intelligent terminal can provide the external network access function for the front host is that the communication connection between the in-vehicle intelligent terminal and the front host is successful, and therefore, the correctness of the time and the time zone of the front host and the rear host (which need to be consistent with the time and the time zone of the in-vehicle intelligent terminal) needs to be ensured after the front host and the rear host start operating. When the time and the time zone of the front host and the back host are incorrect, a certificate (such as the certificate of the private protocol of x14bus in the above description) used for the communication connection between the front host and the vehicle-mounted intelligent terminal may be invalid, and the communication connection between the front host and the vehicle-mounted intelligent terminal may be failed. Because the front host is provided with a GPS (Global Positioning System) chip, the front host can correct the time and time zone according to the time and time zone of the vehicle-mounted intelligent terminal, and in this embodiment, the front host and the rear host are connected by an ethernet method, so that the rear host can share the time and time zone of the front host, and thus, the rear host does not need to be provided with a GPS chip, and the cost is saved.
Furthermore, the preset cloud platform can be any third-party platform, so that after the communication connection between the vehicle-mounted intelligent terminal and the front-row host computer is successful and the external network access function is provided for the front-row host computer, the front-row host computer can download the front-row upgrade package and the rear-row upgrade package from the preset cloud platform. It should be noted that, when downloading the front-row upgrade package and the back-row upgrade package, it is necessary to download any one upgrade package first and then to verify the downloaded upgrade package successfully, so as to download another upgrade package. Therefore, when the first downloaded upgrade package fails to download or the first downloaded upgrade package fails to verify, another upgrade package is not downloaded temporarily, so that the waste of flow can be avoided, and the storage pressure of the system is reduced.
The front-row host carries out OTA upgrading according to the front-row upgrading packet and sends the back-row upgrading packet to the back-row host so as to enable the back-row host to carry out OTA upgrading according to the back-row upgrading packet.
It is to be understood that the embodiment has a precondition before the OTA upgrade is performed, and the precondition includes but is not limited to: the vehicle speed of the vehicle (the vehicle to which the front host and the rear host belong) is 0, the remaining SOC value of the battery of the vehicle is greater than the set SOC threshold (the set SOC threshold may be 70%,80%, etc.), the shift of the vehicle is P shift, the motor speed of the vehicle is 0, etc. After the precondition is met, the front-row host can perform OTA upgrading according to the front-row upgrading packet and send the back-row upgrading packet to the back-row host, so that the back-row host performs OTA upgrading according to the back-row upgrading packet. Further, in this embodiment, an HMI (Human Machine Interface) corresponding to the front-tier host is set, and when the front-tier host performs OTA upgrade or the back-tier host performs OTA upgrade, the OTA upgrade progress and the OTA upgrade result are displayed in the HMI.
In this embodiment, through communicating front-seat host computer and on-vehicle intelligent terminal through interface connection, the back-seat host computer passes through ethernet and is connected with the front-seat host computer, and then makes the front-seat host computer act as the routing effect, passes through the front-seat host computer with data (like the upgrade package) thoroughly to the back-seat host computer in, has reduced back-seat host computer and on-vehicle intelligent terminal's connection pencil and connection interface, has reduced the cost of OTA upgrading, has improved the efficiency of communication between front-seat host computer and the back-seat host computer. Based on the connection structure, the version association judgment can be performed between the front-row host and the back-row host, so that the versions of the front-row host and the back-row host are adaptive, and the effectiveness and the efficiency of OTA upgrading are improved.
In an embodiment, the downloading the front-row upgrade package and the back-row upgrade package from the preset cloud platform includes:
receiving an OTA upgrading instruction sent by the preset cloud platform; the OTA upgrading instruction comprises upgrading package information.
As can be appreciated, the OTA upgrade instruction can be automatically generated when the preset cloud platform detects that there is an upgrade package associated with the front-line host or the back-line host. The upgrade package information includes information such as the upgrade package, a version number associated with the upgrade package, a tag of the host to which the upgrade package belongs, and the like.
And determining whether the preset cloud platform comprises at least two upgrade packages according to the upgrade package information.
The number of upgrade packages contained in the preset cloud platform is represented in the upgrade package information, the number of upgrade packages stored in the preset cloud platform can be determined through the upgrade package information, when the number of upgrade packages exceeds 2, the preset cloud platform may contain a front upgrade package and a rear upgrade package simultaneously, or only contain the front upgrade package, or only contain the rear upgrade package.
And if the preset cloud platform comprises at least two upgrade packages, acquiring a first part number corresponding to the front-row host and a second part number corresponding to the rear-row host.
It can be understood that the first part number is the unique identifier of the front host, the second part number is the unique identifier of the back host, and whether the upgrade package is the front upgrade package or the back upgrade package can be determined by the first part number and the second part number.
Specifically, after determining whether the preset cloud platform includes at least two upgrade packages according to the upgrade package information, if determining that the preset cloud platform includes at least two upgrade packages according to the upgrade package information, characterizing that the preset cloud platform may include a front-row upgrade package and a back-row upgrade package at the same time, thereby obtaining a first part number corresponding to a front-row host and a second part number corresponding to a back-row host, and further distinguishing the upgrade packages through the first part number and the second part number, thereby determining whether the upgrade packages include the front-row upgrade package and the back-row upgrade package at the same time.
And determining whether the preset cloud platform simultaneously comprises a front-row upgrade package and a rear-row upgrade package according to the first part number, the second part number and the upgrade package information.
It can be understood that, in the above description, it is indicated that the upgrade package information includes the tag of the host to which the upgrade package belongs, and then after acquiring the first part number corresponding to the front-row host and the second part number corresponding to the back-row host, the first part number may be matched with the tag of each upgrade package, and the second part number may be matched with the tag of each upgrade package, and then when the first part number is successfully matched with the tag of any one upgrade package, and the second part number is successfully matched with the tag of each upgrade package, it is determined that the preset cloud platform includes both the front-row upgrade package and the back-row upgrade package.
Further, when only the first part number is successfully matched with the tags of the upgrade package and the second part number is unsuccessfully matched with the tags of all the upgrade packages, determining that the preset cloud platform only contains the front-row upgrade package; and when only the second part number is successfully matched with the tags of the upgrade package and the first part number is unsuccessfully matched with the tags of all the upgrade packages, determining that the preset cloud platform only contains the back-row upgrade package.
When the preset cloud platform simultaneously contains a front-row upgrading package and a rear-row upgrading package, the front-row upgrading package and the rear-row upgrading package are sequentially downloaded from the preset cloud platform according to the sequence.
Specifically, after determining whether the preset cloud platform simultaneously contains a front-row upgrade package and a rear-row upgrade package according to the first part number, the second part number and the upgrade package information, if the preset cloud platform simultaneously contains the front-row upgrade package and the rear-row upgrade package, the front-row upgrade package and the rear-row upgrade package are sequentially downloaded from the preset cloud platform according to a sequence, that is, the rear-row upgrade package can be downloaded and verified after the front-row upgrade package is downloaded and verified successfully, or the front-row upgrade package is downloaded and verified after the rear-row upgrade package is downloaded and verified successfully.
In this embodiment, through the first spare part number of front host computer and the second spare part number of back host computer, classify the upgrading package in predetermineeing the high in the clouds platform to whether can confirm to include front upgrade package and back upgrade package in predetermineeing the high in the clouds platform simultaneously, improve the accuracy that the upgrading package downloaded. After the preset cloud platform is determined to simultaneously contain the front-row upgrade package and the rear-row upgrade package, the front-row upgrade package and the rear-row upgrade package are sequentially downloaded according to the sequence, and the second upgrade package is downloaded after the first upgrade package is downloaded and successfully verified, so that the download burden and the download flow of a front-row host can be reduced, and the download effectiveness and efficiency of the upgrade packages are improved.
In an embodiment, the downloading the front-row upgrade package and the back-row upgrade package in sequence from the preset cloud platform includes:
and downloading the front-row upgrading package from the preset cloud platform, storing the front-row upgrading package into a front-row cache region associated with the front-row host, and verifying the front-row upgrading package to obtain a first verification result.
The vehicle-mounted intelligent terminal can store the front-row upgrade package and the back-row upgrade package completely, so that the front-row upgrade package is stored in a front-row cache region associated with the front-row host after the front-row host downloads the front-row upgrade package, storage pressure of the vehicle-mounted intelligent terminal is reduced, and the front-row upgrade package is verified after being stored in the front-row cache region to obtain a first verification result. The first check result represents whether the front-row upgrade package meets the requirements, for example, whether the version is adapted (if the version is higher than the current version of the front-row host), and whether the front-row upgrade package is safe. The first verification result comprises a result representing successful verification and also comprises a result representing failed verification.
And when the first verification result represents that verification is successful, downloading the back-row upgrade package from the preset cloud platform.
The first verification result represents that verification is successful, namely the front-row upgrade package meets the version requirement, all upgrade package verification requirements such as safety requirements and the like are met, the front-row upgrade package is represented, downloading and verification are completed, and the rear-row upgrade package can be downloaded from the preset cloud platform. If the first verification result represents that verification fails, the back-row upgrade package is not downloaded from the preset cloud platform temporarily, the front-row upgrade package is deleted from the front-row cache region and a new front-row upgrade package is downloaded from the preset cloud platform, and then the back-row upgrade package is downloaded from the preset cloud platform after the new front-row upgrade package is downloaded and the new front-row upgrade package is verified successfully. It should be noted that, if the check result of the front-line upgrade package is a result representing a check failure all the time, the number of times of the check failure needs to be counted, and then when the number of times of the check failure reaches a certain threshold (e.g., 3 times, 4 times), a front-line host upgrade failure instruction is sent to the preset cloud platform, so that the preset cloud platform checks each front-line upgrade package, whether an error exists in the stored front-line upgrade package is determined, after the front-line upgrade package is updated, the preset cloud platform sends a front-line upgrade package download instruction to the front-line host, and at this time, the front-line host downloads the front-line upgrade package from the preset cloud platform and checks the front-line upgrade package.
And transmitting the back-row upgrading packet to the back-row host, so that the back-row host stores the back-row upgrading packet into a back-row cache region associated with the back-row host, and verifying the back-row upgrading packet.
Specifically, after the back-row upgrade package is downloaded from the preset cloud platform, the back-row upgrade package is transmitted to the back-row host, so that the back-row host can store the back-row upgrade package into a back-row cache region associated with the back-row host, the back-row upgrade package is verified, a second verification result is obtained, and the back-row host feeds the second verification result back to the front-row host. Similarly, the second verification result also includes a result of successful verification and a result representing verification failure.
After receiving a second check result obtained by checking the back-row upgrade package and fed back by the back-row host, if the second check result represents that the check is successful, it is determined that the front-row upgrade package and the back-row upgrade package are downloaded completely.
Specifically, the back-row upgrade package is transmitted to the back-row host, so that the back-row host stores the back-row upgrade package in a back-row cache region associated with the back-row host and checks the back-row upgrade package, and then receives a second check result fed back by the back-row host, and if the second check result represents that the check is successful, it is determined that the downloading of both the front-row upgrade package and the back-row upgrade package is completed.
Similarly, if the second check result represents that the check fails, the back-row upgrade package is deleted from the back-row cache region, and a new back-row upgrade package is downloaded from the preset cloud platform, and then after the new back-row upgrade package is checked and successfully checked, it is confirmed that the front-row upgrade package and the back-row upgrade package are downloaded completely, if the check is still unsuccessful, it is determined that the check is not successful and compared with the set threshold (e.g. 3 times and 4 times), if the check is successful, the download is not performed again, and a back-row upgrade package download failure instruction is sent to the preset cloud platform, the preset cloud platform checks each back-row upgrade package, it is determined whether the stored back-row upgrade package has errors, and after the back-row upgrade package is updated, the preset cloud platform sends a back-row upgrade package download instruction to the back-row host, and at this time, the back-row host downloads the back-row upgrade package from the preset cloud platform and performs the check.
Further, the above downloading sequence is only an example, and the back-row upgrade package may be downloaded preferentially, and the front-row upgrade package may be downloaded and verified after the back-row upgrade package is downloaded and verified successfully.
In this embodiment, the upgrade packages are stored in the cache regions associated with the corresponding hosts, so that the storage pressure of the vehicle-mounted intelligent system can be reduced, and after one upgrade package is downloaded and verified successfully, the next upgrade package is downloaded and verified, so that when the verification of the first upgrade package fails, the second upgrade package is not downloaded temporarily, so that the data flow can be saved, the operating pressure of the vehicle-mounted intelligent system is reduced, and the effectiveness of the OTA upgrade is improved.
In an embodiment, after determining whether the preset cloud platform includes a front-line upgrade package and a back-line upgrade package at the same time, the method further includes:
and when the preset cloud platform only contains the front-row upgrade package, downloading the front-row upgrade package from the preset cloud platform, storing the front-row upgrade package into a front-row cache region associated with the front-row host, and verifying the front-row upgrade package to obtain a third verification result.
Specifically, after determining whether the preset cloud platform simultaneously contains a front-line upgrade package and a back-line upgrade package according to the first part number, the second part number and the upgrade package information, if the preset cloud platform only contains the front-line upgrade package, downloading the front-line upgrade package from the preset cloud platform, storing the front-line upgrade package into a front-line cache region associated with a front-line host, and verifying the front-line upgrade package to obtain a third verification result. And the third verification result comprises a result representing successful verification or a result representing failed verification.
And when the third verification result represents that the verification fails, deleting the front-row upgrade package from the front-row cache region, and accumulating the number of times of download failure by one.
It is understood that, when the third verification result indicates that the verification fails, at least one of the following defects may exist in the representation of the front-row upgrade package: the upgrade package version is wrong, the upgrade package is incomplete, the upgrade package is unsafe and the like, so that the front-row upgrade package can be deleted from the front-row cache region, and the download failure times are accumulated by one. And the download failure times represent the times of unqualified check of the front-row upgrade package.
And comparing the download failure times with a preset download failure threshold, and when the download failure times are smaller than the preset download failure threshold, downloading a new front-row upgrade package from the preset cloud platform and storing the new front-row upgrade package in the front-row cache region.
The preset download failure threshold may be set according to a download requirement, for example, the preset download failure threshold may be set to 3 times, 4 times, and the like. Specifically, the front-line upgrade package is deleted from the front-line cache region, the download failure times are compared with a preset download failure threshold value after the download failure times are accumulated to one, and if the download failure times are smaller than the preset download failure threshold value, the download times of the front-line upgrade package still exist are represented, so that a new front-line upgrade package can be downloaded from a preset cloud platform and stored in the front-line cache region.
It should be noted that, the new front-line upgrade package is only characterized by the front-line upgrade package downloaded again by the front-line host, and the new front-line upgrade package may be the same front-line upgrade package stored in the preset cloud platform as the front-line upgrade package corresponding to the third verification result, for example, when the front-line upgrade package downloaded is incomplete due to a defect of the front-line host (e.g., network interruption, or abnormality occurs in the front-line host during the downloading process), the same complete front-line upgrade package is downloaded again from the preset cloud platform; or the new front-line upgrade package is another front-line upgrade package in the preset cloud platform (the front-line upgrade package corresponding to the third verification result is not the same upgrade package stored in the preset cloud platform), and if the version of the front-line upgrade package corresponding to the third verification result is wrong, a new front-line upgrade package different from the front-line upgrade package corresponding to the third verification result can be downloaded from the preset cloud platform.
Further, the front-line upgrade package is deleted from the front-line cache region, the download failure times are accumulated to one, then the download failure times are compared with a preset download failure threshold value, if the download failure times are larger than or equal to the preset download failure threshold value, the representation download failure times are too many, and possibly due to the fact that the front-line upgrade package in the preset cloud platform has an update error, a front-line host upgrade failure instruction is sent to the preset cloud platform, and then the preset cloud platform is made to detect whether the front-line upgrade package has an error, so that when the front-line upgrade package has an error, the front-line upgrade package is downloaded and verified after the updated front-line upgrade package exists in the preset cloud platform.
And checking the new front-row upgrading packet to obtain a fourth checking result, and determining that the downloading of the front-row upgrading packet is finished when the fourth checking result represents that the checking is successful.
Specifically, the download failure times are compared with a preset download failure threshold, when the download failure times are smaller than the preset download failure threshold, a new front-line upgrade package is downloaded from the preset cloud platform and stored in the front-line cache region, the new front-line upgrade package is verified, a fourth verification result is obtained, and if the fourth verification result represents that verification is successful, it is determined that the download of the upgrade package corresponding to the front-line host is completed. Further, if the fourth verification result is characterized by a failure, the above steps are executed, that is, the number of times of the download failure is accumulated by one, and is compared with the preset download failure threshold, if the number of times of the download failure is smaller than the preset download failure threshold, the download is resumed, and further, the fifth verification result, the sixth verification result, and the like may be included subsequently, which is not described herein again.
It can be understood that the above description is made in terms of a downloading process of a front-row upgrade package, and if only a rear-row upgrade package exists in the preset cloud platform, the execution steps of downloading and checking are the same as those of the front-row upgrade package, and are not described herein again.
In an embodiment, the verifying the front-row upgrade package to obtain a third verification result includes:
and acquiring the current version corresponding to the front-row host and the upgrading version of the front-row upgrading packet.
It is understood that the current version is an existing version of the front host, and the current version can be detected. The upgrade version is the version of the front row upgrade package, and the upgrade version can be determined from the version label of the front row upgrade package.
And determining whether the front-row upgrading packet meets the version requirement or not according to the current version and the upgrading version, and simultaneously carrying out safety check on the front-row upgrading packet to determine whether the front-row upgrading packet meets the safety requirement or not.
It can be understood that the version requirement means that the upgrade version should be higher than the current version, so after determining the current version corresponding to the front host and the upgrade version of the front upgrade package, it can be determined whether the upgrade version is higher than the current version, and if the upgrade version is higher than the current version, it is determined that the front upgrade package meets the version requirement; and if the upgrade version is lower than the current version, determining that the front-row upgrade package does not meet the version requirement. Meanwhile, the front-row upgrading packet is subjected to security check to determine whether the front-row upgrading packet meets the security requirement, namely, whether the front-row upgrading packet is safe, so that danger (such as a leak) caused to the front-row host when the front-row host is subjected to OTA upgrading according to the front-row upgrading packet is avoided.
And when the front-row upgrading packet simultaneously meets the version requirement and the safety requirement, determining that the third verification result corresponding to the front-row upgrading packet represents verification success.
And when the front-row upgrading packet does not meet the version requirement and/or the safety requirement, determining that a third verification result corresponding to the front-row upgrading packet represents verification failure.
Specifically, if the front-row upgrade package meets the version requirement and the safety requirement at the same time, it can be determined that the third verification result representation corresponding to the front-row upgrade package is verified successfully. And if the front-row upgrading packet does not meet the version requirement and/or the safety requirement, determining that the third verification result of the front-row upgrading packet represents verification failure.
It can be understood that the above-mentioned process of verifying the front-line upgrade package is also applicable to the process of verifying the back-line upgrade package, and the above-mentioned verification process is only an example and is not a limiting method, and besides the above-mentioned verification method, a limiting condition such as whether the front-line upgrade package or the back-line upgrade package is complete may be added, so that the downloaded front-line upgrade package or the back-line upgrade package may be safely and successfully used for performing OTA upgrade on the front-line host or the back-line host.
In an embodiment, the performing OTA upgrade according to the front-row upgrade package, and sending the back-row upgrade package to the back-row host, so that the back-row host performs OTA upgrade according to the back-row upgrade package, includes:
and calling a front-row self-upgrading interface of the front-row host to carry out OTA upgrading according to the front-row upgrading packet to obtain a front-row upgrading result.
The front-row self-upgrading interface of the front-row host is an interface which is arranged in the front-row host and used for performing OTA self-upgrading on the front-row host, and then the self-upgrading interface can be used for performing OTA upgrading on the front-row host according to the front-row upgrading packet by calling the front-row self-upgrading interface of the front-row host, so that a front-row upgrading result is obtained. The front-row upgrading result comprises a result representing the success of the front-row host upgrading and a result representing the failure of the front-row host upgrading.
And when the front-row upgrading result represents that the front-row host is successfully upgraded, the back-row upgrading packet is sent to the back-row host so that the back-row host can carry out OTA upgrading according to the back-row upgrading packet through a back-row self-upgrading interface of the back-row host.
Specifically, after the front-row self-upgrading interface of the front-row host is called to perform OTA upgrading according to the front-row upgrading packet, and after a front-row upgrading result is obtained, if the front-row upgrading result represents that the front-row host is upgraded successfully, the rear-row upgrading packet is sent to the rear-row host, so that the rear-row host performs OTA upgrading according to the rear-row upgrading packet through the rear-row self-upgrading interface of the rear-row host.
Further, if the front-row upgrading result represents that the front-row host fails to be upgraded, the front-row host is temporarily not upgraded by the OTA (but the front-row host can still send a rear-row upgrading packet to the rear-row host), the front-row host is upgraded by the OTA again, and if the result of the OTA upgrading represents that the front-row host is successfully upgraded, an OTA upgrading instruction is sent to the rear-row host so that the rear-row host can be upgraded by the rear-row self-upgrading interface of the rear-row host according to the rear-row upgrading packet. If the result of the OTA upgrading still represents that the front-row host computer is failed to upgrade, sending a front-row host computer upgrading failure instruction to a preset cloud platform; the back-row host does not perform OTA upgrading, so that the effect of synchronously performing OTA upgrading on the front-row host and the back-row host is achieved, and the accuracy of version adaptation between the front-row host and the back-row host is improved.
In an embodiment, after the back-row host performs OTA upgrade according to the back-row upgrade package through the back-row self-upgrade interface of the back-row host, the method further includes:
receiving a first back row upgrading result sent by the back row host; and the first back-row upgrading result is generated after the back-row host carries out OTA upgrading according to the back-row upgrading packet through a back-row self-upgrading interface of the back-row host.
It can be understood that, when the front-row upgrade result represents that the front-row host is successfully upgraded, the back-row upgrade package is sent to the back-row host, so that the back-row host performs OTA upgrade according to the back-row upgrade package through a back-row self-upgrade interface of the back-row host, and then the back-row host obtains a first back-row upgrade result, where the first back-row upgrade result represents an OTA upgrade condition of the back-row host, and includes a result representing that the back-row host is successfully upgraded and also includes a result representing that the back-row host is failed in upgrading.
And when the first back row upgrading result represents that the back row host fails to be upgraded, enabling the back row host to perform OTA upgrading again according to the back row upgrading packet through a back row self-upgrading interface of the back row host to obtain a second back row upgrading result.
It can be understood that if the first back-row upgrade result represents that the back-row host fails to be upgraded, that is, the version of the back-row host is not changed, the back-row host is allowed to perform OTA upgrade again according to the back-row upgrade package through the back-row self-upgrade interface of the back-row host, and a second back-row upgrade result is obtained. Similarly, the second back-row upgrade result may be a result representing successful upgrade or a result representing failed upgrade.
And when the second back-row upgrading result represents that the back-row host is failed to be upgraded, performing version backtracking on the front-row host and sending a back-row host upgrading failure instruction to the preset cloud platform.
It can be understood that before the front-row host and the back-row host are subjected to OTA upgrade, the front-row host and the back-row host meet version matching requirements (that is, the version of the front-row host and the version of the back-row host are matched with each other), if the second back-row upgrade result represents that the upgrade of the back-row host fails, that is, the version of the back-row host is not upgraded yet, and it has been determined in the above steps that the front-row upgrade result represents that the upgrade of the front-row host is successful, that is, the version of the front-row host is upgraded, and at this time, the version of the front-row host and the version of the back-row host are not matched with each other, so that it is necessary to perform version backtrack on the front-row host, that is to roll back the version of the front-row host to the version which is matched with the back-row host before the OTA upgrade is performed, and send a back-row host upgrade failure instruction to the preset cloud platform, so that the preset cloud platform can directly obtain a cloud database of the preset cloud and detect whether the upgrade package exists after the upgrade defect, and then determine that the upgrade package exists.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In one embodiment, a front host is provided, and the front host is used for implementing the automobile OTA upgrading method.
In an embodiment, an OTA upgrading system for an automobile is provided, which includes a vehicle-mounted intelligent terminal, a back host and the front host. The vehicle-mounted intelligent terminal and the front host are connected by an interface connection mode, for example, the interface connection mode may be a USB (Universal Serial Bus) mode. The front-row host and the back-row host are connected through a network connection mode, for example, the network connection mode may be an ethernet connection mode.
Further, the vehicle-mounted intelligent terminal is a T-BOX terminal, and after the vehicle-mounted intelligent terminal is connected and communicated with the front host through a USB (a communication protocol adopts a proprietary protocol of x14 bus), the vehicle-mounted intelligent terminal provides an external network access function for the front host, so that the front host can access data of other platforms. Because in this embodiment do not pass through connected mode lug connection such as USB between back row host computer and the on-vehicle intelligent terminal, but be connected with the front-seat host computer through connected mode such as ethernet, therefore back row host computer does not have the extranet access function, but acts as the routing effect through the front-seat host computer for the front-seat host computer carries out operation such as data download through the extranet access function who possesses after, with the data of downloading pass through to the back-seat host computer.
Further, the front host and the back host are nodes with version association. The front-row host and the back-row host each include an SOC (System on Chip) and an MCU (micro controller Unit), and the SOC and the MCU in the front-row host or the back-row host are connected by an SPI (Serial Peripheral Interface). The front-row host computer also comprises an HMI, and the OTA upgrading progress and the OTA upgrading result are displayed in the HMI when the front-row host computer carries out OTA upgrading or the back-row host computer carries out OTA upgrading.
It will be understood by those skilled in the art that all or part of the processes in the above-described car OTA upgrading method can be implemented by using a computer program, which can be stored in a non-volatile computer-readable storage medium, to instruct related hardware, and when executed, the computer program can include the processes in the above-described method embodiments. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
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; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein.
Claims (10)
1. The OTA upgrading method is characterized by being applied to a front-row host connected with a vehicle-mounted intelligent terminal and a rear-row host;
the OTA upgrading method for the automobile comprises the following steps:
after the vehicle-mounted intelligent terminal provides an external network access function for the front-row host, the front-row host downloads a front-row upgrade package and a rear-row upgrade package from a preset cloud platform;
the front-row host carries out OTA upgrading according to the front-row upgrading packet, and sends the back-row upgrading packet to the back-row host, so that the back-row host carries out OTA upgrading according to the back-row upgrading packet.
2. The OTA upgrading method of claim 1, wherein the downloading of the front-line upgrade package and the back-line upgrade package from the cloud platform comprises:
receiving an OTA upgrading instruction sent by the preset cloud platform; the OTA upgrading instruction comprises upgrading package information;
determining whether the preset cloud platform comprises at least two upgrade packages according to the upgrade package information;
if the preset cloud platform comprises at least two upgrade packages, acquiring a first part number corresponding to the front-row host and a second part number corresponding to the rear-row host;
determining whether the preset cloud platform simultaneously comprises a front-row upgrade package and a rear-row upgrade package according to the first part number, the second part number and the upgrade package information;
when the preset cloud platform simultaneously contains a front-row upgrading package and a rear-row upgrading package, the front-row upgrading package and the rear-row upgrading package are sequentially downloaded from the preset cloud platform according to the sequence.
3. The OTA upgrade method for a vehicle according to claim 2, wherein the sequentially downloading the front-row upgrade package and the back-row upgrade package from a preset cloud platform comprises:
downloading the front-row upgrade package from the preset cloud platform, storing the front-row upgrade package in a front-row cache region associated with the front-row host, and verifying the front-row upgrade package to obtain a first verification result;
when the first verification result represents that verification is successful, downloading the back-row upgrade package from the preset cloud platform;
transmitting the back-row upgrading packet to the back-row host so that the back-row host stores the back-row upgrading packet into a back-row cache region associated with the back-row host and verifies the back-row upgrading packet;
after receiving a second check result obtained by checking the back-row upgrading packet and fed back by the back-row host, if the second check result represents that the checking is successful, confirming that the front-row upgrading packet and the back-row upgrading packet are downloaded completely.
4. The OTA upgrading method for a vehicle according to claim 2, wherein after determining whether the preset cloud platform includes a front-row upgrade package and a back-row upgrade package, the method further includes:
when the preset cloud platform only contains a front-row upgrade package, downloading the front-row upgrade package from the preset cloud platform, storing the front-row upgrade package into a front-row cache region associated with the front-row host, and verifying the front-row upgrade package to obtain a third verification result;
when the third verification result represents that the verification fails, deleting the front-row upgrading packet from the front-row cache region, and accumulating the number of times of failure in downloading by one;
comparing the download failure times with a preset download failure threshold, and downloading a new front-row upgrade package from the preset cloud platform and storing the new front-row upgrade package in the front-row cache region when the download failure times are smaller than the preset download failure threshold;
and verifying the new front-row upgrading packet to obtain a fourth verification result, and determining that the downloading of the front-row upgrading packet is completed when the fourth verification result represents that the verification is successful.
5. The OTA upgrading method of claim 4, wherein after comparing the number of download failures with a preset download failure threshold, further comprising:
and when the download failure times are greater than or equal to the preset download failure threshold value, sending a front-row host upgrade failure instruction to the preset cloud platform.
6. The OTA upgrading method of claim 4, wherein the verifying the front-row upgrade package to obtain a third verification result comprises:
acquiring a current version corresponding to the front host and an upgrade version of the front upgrade package;
according to the current version and the upgrading version, determining whether the front-row upgrading packet meets the version requirement, and simultaneously performing security check on the front-row upgrading packet to determine whether the front-row upgrading packet meets the security requirement;
when the front-row upgrade package meets the version requirement and the safety requirement at the same time, determining that the representation verification of a third verification result corresponding to the front-row upgrade package is successful;
and when the front-row upgrading packet does not meet the version requirement and/or the safety requirement, determining that a third verification result corresponding to the front-row upgrading packet represents verification failure.
7. The OTA upgrading method for vehicles according to claim 1, wherein the OTA upgrading according to the front-row upgrade package and the transmission of the back-row upgrade package to the back-row host, so that the back-row host performs OTA upgrading according to the back-row upgrade package, comprises:
calling a front row self-upgrading interface of the front row host to carry out OTA upgrading according to the front row upgrading packet to obtain a front row upgrading result;
and when the front-row upgrading result represents that the front-row host is successfully upgraded, the back-row upgrading packet is sent to the back-row host, so that the back-row host can carry out OTA upgrading according to the back-row upgrading packet through a back-row self-upgrading interface of the back-row host.
8. The automotive OTA upgrade method of claim 7, wherein after having the back-row host perform the OTA upgrade according to the back-row upgrade package through the back-row self-upgrade interface of the back-row host, further comprising:
receiving a first back row upgrading result sent by the back row host; the first back row upgrading result is generated after the back row host carries out OTA upgrading according to the back row upgrading packet through the back row self-upgrading interface;
when the first back row upgrading result represents that the back row host fails to be upgraded, enabling the back row host to perform OTA upgrading again according to the back row upgrading packet through the back row self-upgrading interface to obtain a second back row upgrading result;
and when the second back-row upgrading result represents that the back-row host is failed to be upgraded, performing version backtracking on the front-row host and sending a back-row host upgrading failure instruction to the preset cloud platform.
9. A front host, wherein the front host is configured to implement the OTA upgrading method of any of claims 1 to 8.
10. An automotive OTA upgrade system comprising an in-vehicle intelligent terminal, a back-row host and the front-row host as claimed in claim 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111415487.6A CN115220750B (en) | 2021-11-25 | 2021-11-25 | Automobile OTA upgrading method, front-row host and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111415487.6A CN115220750B (en) | 2021-11-25 | 2021-11-25 | Automobile OTA upgrading method, front-row host and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115220750A true CN115220750A (en) | 2022-10-21 |
CN115220750B CN115220750B (en) | 2024-03-15 |
Family
ID=83606358
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111415487.6A Active CN115220750B (en) | 2021-11-25 | 2021-11-25 | Automobile OTA upgrading method, front-row host and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115220750B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017161947A1 (en) * | 2016-03-23 | 2017-09-28 | 广州视睿电子科技有限公司 | Multi-system ota upgrade method and multi-system device |
CN109375939A (en) * | 2018-12-17 | 2019-02-22 | 蜂巢(武汉)微***技术有限公司 | A kind of onboard system firmware on line upgrading method |
CN111225313A (en) * | 2018-11-27 | 2020-06-02 | 广州汽车集团股份有限公司 | Vehicle-mounted sound resource interaction system |
CN111385191A (en) * | 2018-12-28 | 2020-07-07 | 联合汽车电子有限公司 | Vehicle-mounted interconnected gateway, vehicle OTA upgrading system and method and computer storage medium |
CN112165438A (en) * | 2020-09-18 | 2021-01-01 | 北京车和家信息技术有限公司 | Vehicle communication method and communication system |
CN112261614A (en) * | 2020-10-16 | 2021-01-22 | 中国第一汽车股份有限公司 | Vehicle-mounted system time calibration method, system, vehicle and medium |
WO2021129065A1 (en) * | 2019-12-23 | 2021-07-01 | 华为技术有限公司 | Upgrading method and apparatus |
CN113497819A (en) * | 2020-04-02 | 2021-10-12 | 广州汽车集团股份有限公司 | Remote upgrade security guarantee method and system and vehicle-mounted Tbox equipment |
CN113608763A (en) * | 2021-07-30 | 2021-11-05 | 上海华兴数字科技有限公司 | Vehicle-mounted OTA upgrading method, device, equipment and operation machine |
-
2021
- 2021-11-25 CN CN202111415487.6A patent/CN115220750B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017161947A1 (en) * | 2016-03-23 | 2017-09-28 | 广州视睿电子科技有限公司 | Multi-system ota upgrade method and multi-system device |
CN111225313A (en) * | 2018-11-27 | 2020-06-02 | 广州汽车集团股份有限公司 | Vehicle-mounted sound resource interaction system |
CN109375939A (en) * | 2018-12-17 | 2019-02-22 | 蜂巢(武汉)微***技术有限公司 | A kind of onboard system firmware on line upgrading method |
CN111385191A (en) * | 2018-12-28 | 2020-07-07 | 联合汽车电子有限公司 | Vehicle-mounted interconnected gateway, vehicle OTA upgrading system and method and computer storage medium |
WO2021129065A1 (en) * | 2019-12-23 | 2021-07-01 | 华为技术有限公司 | Upgrading method and apparatus |
CN113497819A (en) * | 2020-04-02 | 2021-10-12 | 广州汽车集团股份有限公司 | Remote upgrade security guarantee method and system and vehicle-mounted Tbox equipment |
CN112165438A (en) * | 2020-09-18 | 2021-01-01 | 北京车和家信息技术有限公司 | Vehicle communication method and communication system |
CN112261614A (en) * | 2020-10-16 | 2021-01-22 | 中国第一汽车股份有限公司 | Vehicle-mounted system time calibration method, system, vehicle and medium |
CN113608763A (en) * | 2021-07-30 | 2021-11-05 | 上海华兴数字科技有限公司 | Vehicle-mounted OTA upgrading method, device, equipment and operation machine |
Non-Patent Citations (2)
Title |
---|
SUBIR HALDER等: "Secure Over-The-Air Software Updates in Connected Vehicles: A Survey", JOURNAL PRE-PROOF, pages 1 - 43 * |
王兰等: "车载通信终端 OTA 升级方案", 智能网联汽车, no. 6, pages 11 - 12 * |
Also Published As
Publication number | Publication date |
---|---|
CN115220750B (en) | 2024-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108132795B (en) | Software updating method and device of electronic control unit | |
CN105589719B (en) | system for remotely upgrading whole vehicle-mounted controller software and upgrading method | |
US20210004221A1 (en) | Method and apparatus for updating devices in a remote network | |
EP3623939A1 (en) | Method and apparatus for wirelessly updating software for vehicle | |
CN112988191A (en) | Vehicle over-the-air download upgrade management system and method | |
CN112506536A (en) | Vehicle-mounted controller software updating method, device, equipment and medium | |
CN113377403A (en) | Vehicle remote software upgrading method and device | |
CN104834286A (en) | Reprogramming method, reprogramming system, reprogramming device and electronic control unit | |
US20060218340A1 (en) | Data validity determining method for flash EEPROM and electronic control system | |
CN112181449A (en) | Vehicle-mounted software upgrading method, device, system and storage medium | |
CN114827183A (en) | Vehicle diagnosis method, system, device and storage medium | |
CN112702166A (en) | Data transmission method, data verification device and automobile | |
US20200401484A1 (en) | Backing Up a Software Update of a Control Device of Transport Vehicle | |
CN115220750A (en) | Automobile OTA (over the air) upgrading method, front-row host and system | |
CN103067499A (en) | Data processing method and processing device | |
CN113406944A (en) | Vehicle diagnosis method, apparatus, device and computer readable storage medium | |
CN115225481B (en) | Gateway diagnosis route configuration method and device, vehicle-mounted gateway, vehicle and medium | |
CN113497719A (en) | Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment | |
CN111064630A (en) | Pre-update and post-update vehicle bus traffic fingerprinting | |
CN110704076A (en) | Data processing method and device, vehicle-mounted controller and computer-readable storage medium | |
CN114553764B (en) | Automobile gateway route configuration system | |
CN114281374A (en) | Remote flash method and system for vehicle electronic control unit and storage medium | |
CN115202679A (en) | ECU (electronic control Unit) upgrading method and device based on vehicle-mounted Ethernet | |
CN114691174A (en) | Vehicle-mounted software upgrading method, device and equipment | |
CN107391215A (en) | The system that a kind of ECU embedded softwares refresh and download programming |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |