CN115220750B - Automobile OTA upgrading method, front-row host and system - Google Patents
Automobile OTA upgrading method, front-row host and system Download PDFInfo
- Publication number
- CN115220750B CN115220750B CN202111415487.6A CN202111415487A CN115220750B CN 115220750 B CN115220750 B CN 115220750B CN 202111415487 A CN202111415487 A CN 202111415487A CN 115220750 B CN115220750 B CN 115220750B
- Authority
- CN
- China
- Prior art keywords
- row
- host
- upgrade package
- upgrade
- upgrading
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000012795 verification Methods 0.000 claims description 62
- 230000006870 function Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 4
- 230000007547 defect Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process 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
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 (over the air) upgrading method, a front-end host and a system, wherein the automobile OTA upgrading method is applied to the front-end host which is connected with an on-vehicle intelligent terminal and a rear-end host, and the front-end host downloads a front-end upgrading packet and a rear-end upgrading packet from a preset cloud platform after the on-vehicle intelligent terminal provides an external network access function for the front-end host; and the front-row host performs 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 performs OTA upgrading according to the back-row upgrading packet. The invention is based on the structure that the front host is connected with the vehicle-mounted intelligent terminal and the rear host, so that the front host acts as a routing function to transmit data to the rear host through the front host, the connection harness and the connection interface of the rear host and the vehicle-mounted intelligent terminal are reduced, and the effectiveness and the efficiency of OTA upgrading are improved.
Description
Technical Field
The invention relates to the technical field of automobile OTA (over the air technology), in particular to an automobile OTA upgrading method, a front-end host and a system.
Background
With the development of the automobile industry, more and more nodes in the 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, a vehicle-mounted intelligent terminal is often used as a main terminal, and each internal node of an automobile needs to be added with a new interface and a 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 after being connected with the vehicle-mounted intelligent terminal. According to the method, when each new node needs to be upgraded by OTA, 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-end host and a system, which are used for solving the problems of higher cost and lower efficiency of automobile OTA upgrading in the prior art.
An automobile OTA upgrading method is applied to a front-row host connected with an on-vehicle intelligent terminal and a rear-row host;
the automobile OTA upgrading method comprises the following steps:
after the vehicle-mounted intelligent terminal provides an external network access function for the front-end host, the front-end host downloads a front-end upgrade package and a rear-end upgrade package from a preset cloud platform;
and the front-row host performs 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 performs OTA upgrading according to the back-row upgrading packet.
In an embodiment, a front-end host is provided, where the front-end host is configured to implement the above-mentioned method for upgrading an OTA.
In an embodiment, an automobile OTA upgrade system is provided, which comprises an on-board intelligent terminal, a back host and the front host.
According to the automobile OTA upgrading method, the front-end host and the system, based on the structure that the front-end host is connected with the vehicle-mounted intelligent terminal and the rear-end host, the front-end host plays a role in routing so as to transmit data (such as the rear-end upgrade package) to the rear-end host through the front-end host, so that the connection harness and the connection interface of the rear-end host and the vehicle-mounted intelligent terminal are reduced, the OTA upgrading cost is reduced, and the communication efficiency between the front-end host and the rear-end host is improved. Further, based on the connection structure, version association upgrade can be performed between the front-row host and the back-row host, so that version adaptation of upgrade packages of the front-row host and the back-row host is achieved, and effectiveness and efficiency of OTA upgrade are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an OTA upgrade system for an automobile in accordance with one embodiment of the present invention;
fig. 2 is a flowchart of an automobile OTA upgrading method according to an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment provides an automobile OTA upgrading method, which can be applied to a front host in an automobile OTA upgrading system as shown in fig. 1, wherein the front host is connected with a vehicle-mounted intelligent terminal and a rear host. The vehicle-mounted intelligent terminal and the front-row host are connected through an interface connection mode, and the interface connection mode can be a USB (Universal Serial Bus ) mode, for example. The front-row hosts and the back-row hosts are connected through a network connection mode, and the network connection mode can be an Ethernet connection mode, for example.
Further, the vehicle-mounted intelligent terminal is a T-BOX end, and after the vehicle-mounted intelligent terminal is communicated with the front host through USB connection (the communication protocol adopts a private 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. In this embodiment, the back host is not directly connected to the vehicle-mounted intelligent terminal in a connection manner such as USB, but is connected to the front host in a connection manner such as ethernet, so that the back host does not have an external network access function, but acts as a routing effect through the front host, so that after the front host performs operations such as data downloading through the external network access function, the downloaded data is transmitted to the back host. The front-row host and the back-row host are nodes with version association.
In an embodiment, as shown in fig. 2, an automobile OTA upgrading method is provided, which is applied to a front-end host of the automobile OTA upgrading system as shown in fig. 1, and includes the following steps:
after the vehicle-mounted intelligent terminal provides an external network access function for the front-end host, the front-end host downloads a front-end upgrade package and a rear-end upgrade package from a preset cloud platform.
It can be appreciated that the premise of the vehicle-mounted intelligent terminal that the vehicle-mounted intelligent terminal can provide the front-end host with the external network access function is that the communication connection between the vehicle-mounted intelligent terminal and the front-end host is successful, so that the correctness of the time and time zone of the front-end host and the rear-end host (the time and time zone need to be consistent with the time and time zone of the vehicle-mounted intelligent terminal) needs to be ensured after the front-end host and the rear-end host start to operate. When the time and time zone of the front-row host and the rear-row host are incorrect, certificates (such as certificates of the private protocol of x14bus in the description) used by the communication connection between the front-row host and the vehicle-mounted intelligent terminal are invalid, and the communication connection between the front-row host and the vehicle-mounted intelligent terminal is failed. Because the front host is provided with the GPS (Global Positioning System ) chip, the front host can be corrected according to the time and the time zone of the vehicle-mounted intelligent terminal, in the embodiment, the front host and the rear host are connected in an Ethernet mode, so that the rear host can share the time and the time zone of the front host, the GPS chip is not required to be arranged in the rear host, and the cost is saved.
Further, the preset cloud platform can be any third party platform, and further after the vehicle-mounted intelligent terminal and the front-row host are successfully connected in a communication mode and an external network access function is provided for the front-row host, the front-row host can download the front-row upgrade package and the rear-row upgrade package from the preset cloud platform. When downloading the front-row upgrade package and the rear-row upgrade package, it is necessary to download any one upgrade package and check the downloaded upgrade package successfully before downloading another upgrade package. Therefore, when the first downloaded upgrade package fails to download or the verification fails, another upgrade package can be temporarily not downloaded, so that the waste of flow can be avoided, and the storage pressure of the system is reduced.
And the front-row host performs 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 performs OTA upgrading according to the back-row upgrading packet.
It will be appreciated that the present embodiment has preconditions prior to an OTA upgrade, including but not limited to: the speed of the automobile (the automobile to which the front-row host machine and the rear-row host machine belong) is 0, the remaining SOC value of the storage battery of the automobile is greater than a set SOC threshold value (the set SOC threshold value may be, for example, 70%,80%, etc.), the gear of the automobile is the P gear, the motor rotation speed of the automobile is 0, etc. After the preconditions are met, the front-end hosts can carry out OTA upgrading according to the front-end upgrade package, and the back-end upgrade package is sent to the back-end hosts, so that the back-end hosts carry out OTA upgrading according to the back-end upgrade package. Further, in this embodiment, an HMI (Human Machine Interface, human-computer interface) corresponding to the front-end host is provided, and then when the front-end host performs OTA upgrade or the rear-end host performs OTA upgrade, the OTA upgrade progress and the OTA upgrade result are displayed in the HMI.
In this embodiment, through communicating front-row host computer and on-vehicle intelligent terminal through interface connection, back-row host computer passes through ethernet and front-row host computer to be connected, and then makes front-row host computer act as the route effect, in passing data (like the upgrade package) to back-row host computer through front-row host computer, reduced the connection pencil and the interface of back-row host computer and on-vehicle intelligent terminal, reduced the cost of OTA upgrading, improved the efficiency of communication between front-row host computer and the back-row host computer. Based on the connection structure, version association judgment can be carried out 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 adapted, 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 upgrade instruction comprises upgrade package information.
It can be appreciated that the OTA upgrade instruction may be automatically generated when the preset cloud platform detects that an upgrade package associated with a front-row host or a back-row host exists. The upgrade package information includes information such as an upgrade package, a version number associated with the upgrade package, a label of a 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.
It can be understood that the number of the upgrade packages included in the preset cloud platform is also represented in the upgrade package information, and further, the number of the upgrade packages stored in the preset cloud platform can be determined through the upgrade package information, and when the number of the upgrade packages exceeds 2, the preset cloud platform may include a front upgrade package and a rear upgrade package at the same time, or only include a front upgrade package, or only include a rear upgrade package.
If the preset cloud platform comprises at least two upgrade packages, a first part number corresponding to the front-row host computer and a second part number corresponding to the rear-row host computer are obtained.
It will be appreciated that the first part number is the unique identifier of the front-end host, and the second part number is the unique identifier of the back-end host, so that it can be determined whether the upgrade package is the front-end upgrade package or the back-end upgrade package through the first part number and the second part number.
Specifically, after determining whether the preset cloud platform contains at least two upgrade packages according to the upgrade package information, if determining that the preset cloud platform contains at least two upgrade packages according to the upgrade package information, characterizing that the preset cloud platform may contain a front-row upgrade package and a rear-row upgrade package at the same time, so as to obtain a first part number corresponding to a front-row host and a second part number corresponding to a rear-row host, and further distinguish the upgrade packages according to the first part number and the second part number, thereby determining whether the upgrade packages contain the front-row upgrade package and the rear-row upgrade package at the same time.
And determining whether the front-row upgrade package and the rear-row upgrade package are simultaneously contained in the preset cloud platform according to the first part number, the second part number and the upgrade package information.
It may be understood that, in the foregoing description, the upgrade package information includes a label of a host to which the upgrade package belongs, and further after the first part number corresponding to the front-row host and the second part number corresponding to the rear-row host are obtained, the first part number may be matched with the label of each upgrade package, and the second part number may be matched with the label of each upgrade package, and further when the first part number is successfully matched with the label of any upgrade package, and the second part number is successfully matched with the label of each upgrade package, it is determined that the front-row upgrade package and the rear-row upgrade package are included in the cloud platform at the same time.
Further, when only the first part number is successfully matched with the labels of the upgrade packages and the second part number is failed to be matched with the labels of all the upgrade packages, determining that only the front upgrade packages are contained in the preset cloud platform; and when only the second part number is successfully matched with the labels of the upgrade packages and the first part number is failed to be matched with the labels of all the upgrade packages, determining that the preset cloud platform only comprises the rear upgrade packages.
When the preset cloud platform simultaneously comprises a front-row upgrade package and a 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 the sequence.
Specifically, after determining whether the front-row upgrade package and the rear-row upgrade package are simultaneously included in the preset cloud platform according to the first part number, the second part number and the upgrade package information, if the front-row upgrade package and the rear-row upgrade package are simultaneously included in the preset cloud platform, the front-row upgrade package and the rear-row upgrade package are sequentially downloaded from the preset cloud platform according to the sequence, namely, the rear-row upgrade package is downloaded and checked after the front-row upgrade package is downloaded and checked successfully, or the front-row upgrade package is downloaded and checked after the rear-row upgrade package is downloaded and checked successfully.
In this embodiment, the upgrade package in the preset cloud platform is classified by the first part number of the front-row host and the second part number of the rear-row host, so that whether the preset cloud platform simultaneously contains the front-row upgrade package and the rear-row upgrade package can be determined, and the downloading accuracy of the upgrade package is improved. After the fact that the front-row upgrade package and the rear-row upgrade package are contained in the preset cloud platform at the same time is determined, the front-row upgrade package and the rear-row upgrade package are downloaded in sequence, and the second upgrade package is downloaded after the first upgrade package is downloaded and checked successfully, so that the downloading burden and downloading flow of a front-row host can be reduced, and the downloading effectiveness and efficiency of the upgrade package are improved.
In an embodiment, the downloading the front-row upgrade package and the rear-row upgrade package from the preset cloud platform sequentially according to a sequence includes:
and downloading the front-row upgrade package from the preset cloud platform, storing the front-row upgrade package into a front-row buffer area associated with the front-row host, and checking the front-row upgrade package to obtain a first check result.
As can be appreciated, since the vehicle-mounted intelligent terminal cannot store the complete front-row upgrade package and the rear-row upgrade package, after the front-row host downloads the front-row upgrade package, the front-row upgrade package is stored in the front-row buffer area associated with the front-row host, so as to reduce the storage pressure of the vehicle-mounted intelligent terminal, and further, after the front-row upgrade package is stored in the front-row buffer area, the front-row upgrade package is checked, so that a first check result is obtained. The first check result characterizes whether the front-end upgrade package meets the requirement, for example, whether the version is adapted (if not, the front-end upgrade package is higher than the current version of the front-end host), and whether the front-end upgrade package is safe. The first verification result comprises a result representing verification success and a result representing verification failure.
And when the first verification result represents that verification is successful, downloading the back-row upgrade package from the preset cloud platform.
It can be understood that the first verification result represents that verification is successful, that is, the front-row upgrade package meets the version requirement, meets all upgrade package verification requirements such as the safety requirement, and the front-row upgrade package is represented to be downloaded and verified, and then the rear-row upgrade package can be downloaded from the preset cloud platform. If the first verification result represents verification failure, temporarily not downloading the back-row upgrade package from the preset cloud platform, deleting the front-row upgrade package from the front-row buffer area, downloading a new front-row upgrade package from the preset cloud platform, and further downloading the back-row upgrade package from the preset cloud platform after the new front-row upgrade package is downloaded and the new front-row upgrade package is successfully verified. It should be noted that, if the verification result of the front-row upgrade package is always a result representing verification failure, the number of times of verification failure needs to be counted, and then when the number of times of verification failure reaches a certain threshold (for example, 3 times, 4 times), a front-row host upgrade failure instruction is sent to the preset cloud platform, so that the preset cloud platform verifies each front-row upgrade package, whether the stored front-row upgrade package has errors is determined, after the front-row upgrade package is updated, the preset cloud platform sends a front-row upgrade package downloading instruction to the front-row host, and at the moment, the front-row host downloads the front-row upgrade package from the preset cloud platform and performs verification.
And transmitting the back-row upgrade package to the back-row host, so that the back-row host stores the back-row upgrade package into a back-row buffer area associated with the back-row host, and checks the back-row upgrade package.
Specifically, after downloading the back-row upgrade package 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 in a back-row cache area associated with the back-row host, check the back-row upgrade package to obtain a second check result, and the back-row host feeds back the second check result to the front-row host. Similarly, the second verification result also includes a result of verification success, and a result representing verification failure.
After receiving a second verification result obtained by verifying the back-row upgrade package fed back by the back-row host, if the second verification result represents that verification is successful, confirming that downloading of both the front-row upgrade package and the back-row upgrade package is completed.
Specifically, after 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 buffer area associated with the back-row host and checks the back-row upgrade package, a second check result fed back by the back-row host is received, and if the second check result represents that the check is successful, it is determined that both the front-row upgrade package and the back-row upgrade package are downloaded.
Similarly, if the second verification result indicates that verification fails, deleting the back-row upgrade package from the back-row cache area, downloading a new back-row upgrade package from a preset cloud platform, further after the new back-row upgrade package is verified and the verification is successful, confirming that both the front-row upgrade package and the back-row upgrade package are downloaded, if the verification is still unsuccessful, determining that the verification is not repeated and comparing the verification with a set threshold (such as 3 times and 4 times), if the verification is not successful, no longer downloading the back-row upgrade package, sending a back-row upgrade failure instruction to the preset cloud platform, verifying each back-row upgrade package by the preset cloud platform, determining whether the stored back-row upgrade package has errors, and after the back-row upgrade package is updated, sending a back-row upgrade package downloading instruction to a back-row host by the preset cloud platform, and at the moment, downloading the back-row upgrade package from the preset cloud platform and verifying.
Further, the above-mentioned downloading order is only an example, and the later upgrade package may be downloaded preferentially, and the front upgrade package may be downloaded and checked after the later upgrade package is downloaded and checked successfully.
In this embodiment, the upgrade package is stored in the buffer area associated with the corresponding host, 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 again, so that when the verification of the first upgrade package fails, the second upgrade package can not be downloaded temporarily, so that the data flow can be saved, the operation pressure of the vehicle-mounted intelligent system is reduced, and the validity of OTA upgrade is improved.
In an embodiment, after determining whether the preset cloud platform includes the front-row upgrade package and the back-row upgrade package at the same time, the method further includes:
when the preset cloud platform only comprises a front-row upgrade package, downloading the front-row upgrade package from the preset cloud platform, storing the front-row upgrade package in a front-row cache area associated with the front-row host, and checking the front-row upgrade package to obtain a third check result.
Specifically, after determining whether the front-row upgrade package and the rear-row upgrade package are included in the preset cloud platform according to the first part number, the second part number and the upgrade package information, if the preset cloud platform only includes the front-row upgrade package, downloading the front-row upgrade package from the preset cloud platform, storing the front-row upgrade package in a front-row cache area associated with a front-row host, and checking the front-row upgrade package to obtain a third checking result. The third verification result comprises a result representing verification success or a result representing verification failure.
And deleting the front-row upgrade package from the front-row buffer area when the third verification result represents verification failure, and accumulating the downloading failure times by one.
It may be appreciated that, when the third verification result indicates that the verification fails, at least one of the following defects may exist in characterizing the front 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 upgrade package can be deleted from the front buffer area, and the downloading failure times are accumulated by one. The downloading failure times represent times of unqualified verification of the front-row upgrade package.
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 area when the download failure times are smaller than the preset download failure threshold.
The preset download failure threshold may be set according to the download requirement, for example, the preset download failure threshold may be set to 3 times, 4 times, etc. Specifically, after deleting the front-row upgrade package from the front-row buffer area and accumulating the download failure times by one, comparing the download failure times with a preset download failure threshold value, and if the download failure times are smaller than the preset download failure threshold value, indicating that the download times of the front-row upgrade package still exist, so that a new front-row upgrade package can be downloaded from the preset cloud platform and stored in the front-row buffer area.
It should be noted that, the new front-end upgrade package only characterizes the front-end upgrade package re-downloaded by the front-end host, and the front-end upgrade package corresponding to the third verification result may be the same front-end upgrade package stored in the preset cloud platform, for example, when the front-end upgrade package is downloaded incompletely due to a defect of the front-end host (such as network interruption or abnormality of the front-end host in the downloading process), the same complete front-end upgrade package is downloaded again from the preset cloud platform; or the new front-row upgrade package is another front-row upgrade package in the preset cloud platform (the front-row upgrade package corresponding to the third verification result is not the same upgrade package stored in the preset cloud platform), for example, when the version of the front-row upgrade package corresponding to the third verification result is wrong, the new front-row upgrade package different from the front-row upgrade package corresponding to the third verification result can be downloaded from the preset cloud platform.
Further, after deleting the front-row upgrade package from the front-row buffer area and accumulating one download failure frequency, comparing the download failure frequency with a preset download failure threshold, if the download failure frequency is greater than or equal to the preset download failure threshold, characterizing that the download failure frequency is excessive, possibly because the front-row upgrade package in the preset cloud platform has update errors, sending a front-row host upgrade failure instruction to the preset cloud platform, further enabling the preset cloud platform to detect whether the front-row upgrade package has errors, and if so, when the front-row upgrade package has errors, downloading and checking the front-row upgrade package after the updated front-row upgrade package exists in the preset cloud platform.
And checking the new front-row upgrade package to obtain a fourth check result, and determining that the front-row upgrade package is downloaded when the fourth check result represents successful check.
Specifically, comparing the download failure times with a preset download failure threshold, 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 buffer area, checking the new front-row upgrade package to obtain a fourth check result, and if the fourth check result represents that the check is successful, determining that the upgrade package corresponding to the front-row host is downloaded. Further, if the fourth verification result indicates failure, the above steps are executed, that is, the number of times of downloading failure is accumulated by one and compared with the preset downloading failure threshold, if the number of times of downloading failure is smaller than the preset downloading failure threshold, downloading is performed again, and further, the fifth verification result, the sixth verification result and the like may be further included, which are not described herein.
It can be understood that the above description is described in terms of the downloading process of the front-row upgrade package, and if only the back-row upgrade package exists in the preset cloud platform, the downloading and verification execution steps are the same as the downloading and verification execution steps of the front-row upgrade package, which are not described herein.
In an embodiment, the verifying the front-row upgrade package to obtain a third verification result includes:
and acquiring a current version corresponding to the front-row host and an upgrade version of the front-row upgrade package.
It will be appreciated that the current version is an existing version of the front-end hosts, which can be detected. The upgrade version is the version of the front upgrade package, and the upgrade version can be determined from the version label of the front upgrade package.
And determining whether the front-row upgrade package meets the version requirement according to the current version and the upgrade version, and simultaneously, carrying out safety check on the front-row upgrade package to determine whether the front-row upgrade package meets the safety requirement.
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-row host and the upgrade version of the front-row upgrade package, it can be determined whether the upgrade version is higher than the current version, if the upgrade version is higher than the current version, it is determined that the front-row upgrade package meets the version requirement; if the upgrade version is lower than the current version, determining that the front upgrade package does not meet the version requirement. Meanwhile, the front-end upgrade package is subjected to safety verification, whether the front-end upgrade package meets safety requirements or not is determined, namely whether the front-end upgrade package is safe or not is determined, and dangers (such as loopholes) caused to the front-end hosts when OTA upgrade is carried out on the front-end hosts according to the front-end upgrade package are avoided.
And when the front-row upgrade package meets the version requirement and the safety requirement at the same time, determining that the third verification result representation verification corresponding to the front-row upgrade package is successful.
And when the front-row upgrade package does not meet the version requirement and/or the safety requirement, determining that a third check result corresponding to the front-row upgrade package represents check failure.
Specifically, if the front-row upgrade package meets the version requirement and the safety requirement at the same time, the third verification result representation verification success corresponding to the front-row upgrade package can be determined. If the front-row upgrade package does not meet the version requirement and/or the safety requirement, determining that the third check result of the front-row upgrade package represents check failure.
It will be appreciated that the above process of checking the front-row upgrade package is equally applicable when checking the back-row upgrade package, and the above checking process is only an example and not a limiting method, and limiting conditions such as checking whether the front-row upgrade package or the back-row upgrade package is complete may be added in addition to the above checking method, so that the downloaded front-row upgrade package or the back-row upgrade package can be safely and successfully used for performing OTA upgrade on the front-row host or the back-row host.
In an embodiment, the performing OTA upgrade according to the front-row upgrade packet and sending the back-row upgrade packet to the back-row host, so that the back-row host performs OTA upgrade according to the back-row upgrade packet, including:
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.
It can be understood that the front-end self-upgrade interface of the front-end host is an interface arranged in the front-end host and used for performing OTA self-upgrade on the front-end host, so that the self-upgrade interface can perform OTA upgrade on the front-end host according to the front-end upgrade package by calling the front-end self-upgrade interface of the front-end host, and a front-end upgrade result is obtained. The front-end upgrade result comprises a result representing successful upgrade of the front-end host and a result representing failure of upgrade of the front-end host.
And when the front-row upgrading result represents that the front-row host is successfully upgraded, sending 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 through a back-row self-upgrading interface of the back-row host.
Specifically, after invoking the front-end self-upgrading interface of the front-end host to perform OTA upgrading according to the front-end upgrading packet to obtain a front-end upgrading result, if the front-end upgrading result represents that the front-end host is successfully upgraded, sending a back-end upgrading packet to the back-end host, so that the back-end host performs OTA upgrading according to the back-end upgrading packet through the back-end self-upgrading interface of the back-end host.
Further, if the front-end upgrade result indicates that the front-end host fails to upgrade, at this time, the back-end host is not subjected to OTA upgrade temporarily (but the front-end host can still send a back-end upgrade packet to the back-end host), and the front-end host is subjected to OTA upgrade again, and if the front-end host is successfully upgraded as indicated by the result of the OTA upgrade, an OTA upgrade instruction is sent to the back-end host, so that the back-end host can perform OTA upgrade according to the back-end upgrade packet through a back-end self-upgrade interface of the back-end host. If the OTA upgrading result still represents that the front-end host upgrading fails, sending a front-end host upgrading failure instruction to a preset cloud platform, and; the back host is not subjected to OTA upgrading, so that the effect of synchronously carrying out OTA upgrading on the front host and the back host is achieved, and the accuracy of version adaptation between the front host and the back host is improved.
In an embodiment, after the enabling the back-end host to perform OTA upgrade according to the back-end upgrade packet through a back-end self-upgrade interface of the back-end host, the method further includes:
receiving a first back-row upgrading result sent by the back-row host; the first backward upgrade result is generated after the backward host performs OTA upgrade according to the backward upgrade package through a backward self-upgrade interface of the backward host.
It can be understood that, when the front-end upgrade result indicates that the front-end host upgrade is successful, the back-end upgrade packet is sent to the back-end host, so that after the back-end host performs OTA upgrade according to the back-end upgrade packet through the back-end self-upgrade interface of the back-end host, the back-end host obtains a first back-end upgrade result, where the first back-end upgrade result indicates an OTA upgrade condition of the back-end host, and the first back-end upgrade result includes a result indicating that the back-end host upgrade is successful and also includes a result indicating that the back-end host upgrade fails.
When the first backward upgrade result represents that the backward host upgrade fails, enabling the backward host to carry out OTA upgrade again according to the backward upgrade package through a backward self-upgrade interface of the backward host, and obtaining a second backward upgrade result.
It can be understood that if the first backward upgrade result indicates that the backward upgrade of the backward host fails, that is, the version of the backward host is not changed, the backward host is allowed to perform OTA upgrade again according to the backward upgrade package through the backward self-upgrade interface of the backward host, so as to obtain a second backward upgrade result. Similarly, the second backward upgrade result may be a result indicating that the upgrade was successful or a result indicating that the upgrade failed.
And when the second backward upgrade result represents that the backward host upgrade fails, performing version backtracking on the front host and sending a backward host upgrade failure instruction to the preset cloud platform.
It can be understood that, before performing OTA upgrade on the front-row host and the back-row host, version matching requirements are met between the front-row host and the back-row host (i.e., the version of the front-row host and the version of the back-row host are mutually matched), if the second back-row upgrade result indicates that the back-row host fails to upgrade, i.e., the version of the back-row host is still not upgraded, and in the above steps, it is determined that the front-row upgrade result indicates that the front-row host is successfully upgraded, i.e., the version of the front-row host is already upgraded, and then the version of the front-row host and the version of the back-row host are not adapted, so that it is required to perform version backtracking on the front-row host, i.e., roll back the version of the front-row host to the version adapted to the back-row host before performing OTA upgrade, and send a back-row host cloud upgrade failure instruction to the preset platform, so that the preset platform detects a back-row upgrade packet in a back-row cache region of the back-row host (the cloud upgrade packet is also stored in the preset platform), and thus the preset platform can directly obtain the front-row host upgrade packet, and if the back-row upgrade packet fails, and the subsequent upgrade packet has a defect is generated after the update packet.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
In an embodiment, a front-end host is provided, where the front-end host is configured to implement the above-mentioned method for upgrading an OTA.
In an embodiment, an automobile OTA upgrade system is provided, which comprises an on-board intelligent terminal, a back host and the front host. The vehicle-mounted intelligent terminal and the front-row host are connected through an interface connection mode, and the interface connection mode can be a USB (Universal Serial Bus ) mode, for example. The front-row hosts and the back-row hosts are connected through a network connection mode, and the network connection mode can be an Ethernet connection mode, for example.
Further, the vehicle-mounted intelligent terminal is a T-BOX end, and after the vehicle-mounted intelligent terminal is communicated with the front host through USB connection (the communication protocol adopts a private 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. In this embodiment, the back host is not directly connected to the vehicle-mounted intelligent terminal in a connection manner such as USB, but is connected to the front host in a connection manner such as ethernet, so that the back host does not have an external network access function, but acts as a routing effect through the front host, so that after the front host performs operations such as data downloading through the external network access function, the downloaded data is transmitted to the back host.
Further, the front-row host and the back-row host are nodes with version association. The front-row host and the back-row host comprise an SOC (System on Chip) and an MCU (Microcontroller Unit, micro control unit), and the SOCs and the MCUs in the front-row host or the back-row host are connected through an SPI protocol (Serial Peripheral Interface ). The front host also comprises an HMI, and when the front host carries out OTA upgrading or the rear host carries out OTA upgrading, the OTA upgrading progress and the OTA upgrading result are displayed in the HMI.
Those skilled in the art will appreciate that implementing all or part of the above-described embodiments of the method for upgrading an OTA may be accomplished by instructing the associated hardware by a computer program stored on a non-volatile computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.
Claims (10)
1. The automobile OTA upgrading method is characterized by being applied to front-row hosts connected with an on-vehicle intelligent terminal and a rear-row host; the front-row host and the back-row host are nodes with version association;
the automobile OTA upgrading method comprises the following steps:
after the vehicle-mounted intelligent terminal provides an external network access function for the front-end host, the front-end host downloads a front-end upgrade package and a rear-end upgrade package from a preset cloud platform;
and the front-row host performs 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 performs OTA upgrading according to the back-row upgrading packet.
2. The method as set forth in claim 1, wherein the downloading the front-row upgrade package and the back-row upgrade package from the preset cloud platform comprises:
receiving an OTA upgrading instruction sent by the preset cloud platform; the OTA upgrade instruction comprises upgrade 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, a first part number corresponding to the front-row host computer and a second part number corresponding to the rear-row host computer are obtained;
determining whether a front-row upgrade package and a rear-row upgrade package are simultaneously contained in the preset cloud platform according to the first part number, the second part number and the upgrade package information;
when the preset cloud platform simultaneously comprises a front-row upgrade package and a 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 the sequence.
3. The method as set forth in claim 2, wherein the downloading the front-row upgrade package and the rear-row upgrade package from the preset cloud platform sequentially in order of sequence includes:
downloading the front-row upgrade package from the preset cloud platform, storing the front-row upgrade package into a front-row cache area associated with the front-row host, and checking the front-row upgrade package to obtain a first check 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 upgrade package to the back-row host, so that the back-row host stores the back-row upgrade package into a back-row cache area associated with the back-row host and checks the back-row upgrade package;
after receiving a second verification result obtained by verifying the back-row upgrade package fed back by the back-row host, if the second verification result represents that verification is successful, confirming that downloading of both the front-row upgrade package and the back-row upgrade package is completed.
4. The method as set forth in claim 2, wherein after determining whether the preset cloud platform includes a front-row upgrade package and a rear-row upgrade package at the same time, the method further includes:
when the preset cloud platform only comprises a front-row upgrade package, downloading the front-row upgrade package from the preset cloud platform and storing the front-row upgrade package into a front-row cache area associated with the front-row host, and checking the front-row upgrade package to obtain a third check result;
deleting the front-row upgrade package from the front-row buffer area when the third verification result represents verification failure, and accumulating the downloading failure times 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 area when the download failure times are smaller than the preset download failure threshold;
and checking the new front-row upgrade package to obtain a fourth check result, and determining that the front-row upgrade package is downloaded when the fourth check result represents successful check.
5. The method of upgrading an OTA of claim 4 wherein said comparing said number of download failures to a preset download failure threshold further comprises:
and when the download failure times are greater than or equal to the preset download failure threshold, sending a front host upgrade failure instruction to the preset cloud platform.
6. The method of upgrading an OTA for an automobile of claim 4 wherein said checking the front-row upgrade package to obtain a third check result comprises:
acquiring a current version corresponding to the front-row host and an upgrade version of the front-row upgrade package;
determining whether the front-row upgrade package meets the version requirement according to the current version and the upgrade version, and simultaneously carrying out safety check on the front-row upgrade package to determine whether the front-row upgrade package meets the safety requirement;
when the front-row upgrade package meets the version requirement and the safety requirement at the same time, determining that a third verification result corresponding to the front-row upgrade package represents successful verification;
and when the front-row upgrade package does not meet the version requirement and/or the safety requirement, determining that a third check result corresponding to the front-row upgrade package represents check failure.
7. The method of OTA upgrade for an automobile according to claim 1 wherein said performing OTA upgrade according to said front-row upgrade package and transmitting said back-row upgrade package to said back-row host to cause said back-row host to perform OTA upgrade according to said back-row upgrade package comprises:
invoking 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, sending 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 through a back-row self-upgrading interface of the back-row host.
8. The method of OTA upgrade for an automobile of claim 7 wherein after the enabling the back-end host to perform OTA upgrade according to the back-end upgrade package through a back-end self-upgrade interface of the back-end host, further comprises:
receiving a first back-row upgrading result sent by the back-row host; the first backward upgrade result is generated after the backward host performs OTA upgrade according to the backward upgrade package through the backward self-upgrade interface;
when the first backward upgrade result represents that the backward host upgrade fails, enabling the backward host to carry out OTA upgrade again according to the backward upgrade package through the backward self-upgrade interface to obtain a second backward upgrade result;
and when the second backward upgrade result represents that the backward host upgrade fails, performing version backtracking on the front host and sending a backward host upgrade failure instruction to the preset cloud platform.
9. A front-end host for implementing the car OTA upgrade method according to any one of claims 1 to 8.
10. An automobile OTA upgrading system comprising a vehicle-mounted intelligent terminal, a back host and a front 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 CN115220750A (en) | 2022-10-21 |
CN115220750B true 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 |
---|
Secure Over-The-Air Software Updates in Connected Vehicles: A Survey;Subir Halder等;Journal Pre-proof;1-43 * |
车载通信终端 OTA 升级方案;王兰等;智能网联汽车(第6期);11-12 * |
Also Published As
Publication number | Publication date |
---|---|
CN115220750A (en) | 2022-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108132795B (en) | Software updating method and device of electronic control unit | |
US20220156057A1 (en) | In-vehicle update device, update processing program, and program update method | |
US20210004221A1 (en) | Method and apparatus for updating devices in a remote network | |
CN108334331B (en) | Safe electric vehicle battery management system software upgrading method | |
CN114064080A (en) | Vehicle software upgrading method, device, equipment and storage medium | |
CN114895947A (en) | Software upgrading method, device, equipment and storage medium of vehicle-mounted controller | |
CN115220750B (en) | Automobile OTA upgrading method, front-row host and system | |
CN113315797A (en) | Method, system and node for remote upgrading of local area network in batches | |
CN108845823B (en) | Software online upgrading method based on F2812 chip | |
CN114567552A (en) | Vehicle-mounted V2X equipment upgrading method and device, computer equipment and storage medium | |
CN113093694A (en) | Vehicle-mounted electronic control unit data flashing method and system based on UDS | |
JP2016139399A (en) | Control means, and on-vehicle program rewriting device and method including the same | |
CN117201038A (en) | Data transmission verification method, system, electronic equipment and storage medium | |
CN110704076A (en) | Data processing method and device, vehicle-mounted controller and computer-readable storage medium | |
CN110990046A (en) | Upgrading method based on dynamic file | |
CN116633780A (en) | Gateway upgrading method and device for vehicle, vehicle and storage medium | |
CN115225481B (en) | Gateway diagnosis route configuration method and device, vehicle-mounted gateway, vehicle and medium | |
CN114553764B (en) | Automobile gateway route configuration system | |
CN115202679A (en) | ECU (electronic control Unit) upgrading method and device based on vehicle-mounted Ethernet | |
CN109358981B (en) | Memory read error correction method, system, computer device, and storage medium | |
CN114760322A (en) | Vehicle information association method, Internet of vehicles terminal and Internet of vehicles platform | |
CN107967160B (en) | Method and device for updating operating system file through Boot Loader | |
CN114268624B (en) | Version file transmission method and device and server | |
CN112312213A (en) | Upgrading method of digital television system and related device | |
CN118265083A (en) | Data processing method, vehicle-mounted mobile terminal and vehicle |
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 |