CN114115965A - OTA system dynamic differential upgrading method - Google Patents
OTA system dynamic differential upgrading method Download PDFInfo
- Publication number
- CN114115965A CN114115965A CN202010901113.4A CN202010901113A CN114115965A CN 114115965 A CN114115965 A CN 114115965A CN 202010901113 A CN202010901113 A CN 202010901113A CN 114115965 A CN114115965 A CN 114115965A
- Authority
- CN
- China
- Prior art keywords
- upgraded
- software
- version number
- target
- packet
- 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.)
- Pending
Links
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
- G06F8/658—Incremental updates; Differential updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
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)
- Stored Programmes (AREA)
Abstract
The invention provides a dynamic differential upgrading method of an OTA system, which comprises the steps of obtaining a full upgrading packet of software to be upgraded, and issuing an upgrading task of a target ECU (electronic control unit) controller to a target vehicle on line according to the full upgrading packet of the software to be upgraded, wherein the upgrading task comprises an identification of the target vehicle, an identification of the target ECU controller and a target version number of the software to be upgraded; receiving a current version number of the target ECU controller assembled on the target vehicle reported by the target vehicle, and according to a full upgrade package corresponding to the current version number and a full upgrade package of the software to be upgraded, making a difference package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded; and issuing the differential packet or the link address of the differential packet to the target vehicle. The invention solves the problems of high vehicle mobile data flow cost, long downloading time and poor user experience caused by overlarge existing installation package.
Description
Technical Field
The invention relates to the technical field of automobile networking, in particular to a dynamic differential upgrading method for an OTA system.
Background
With the development of intelligent internet of automobiles, the internet of vehicles is becoming more and more important, and compared with conventional vehicles, Electronic Control Units (ECU) of automobiles, such as IVI (In-Vehicle Infotainment), TBOX, ADAS (Advanced Driving Assistance System), and new energy ECU, software update iterations are increasing and more, so as to provide better user experience for users. OTA (Over The Air) provides an online upgrading mode, can click The upgrading on The interface to complete vehicle system upgrading like mobile phone system upgrading, and is more efficient, convenient, cost-saving and better in user experience compared with The traditional offline 4S shop after-sale upgrading software.
The traditional automobile software upgrading is to upgrade software by a 4S after-sale store when a user returns to the store or an after-sale activity user returns to the store after software is released by an automobile factory, and if the ECU software of an individual automobile has serious safety problems, the automobile recalling event can be caused if the ECU software cannot be upgraded and repaired in time.
Software upgrading is carried out through a traditional after-sale mode, and therefore the problem of software recall of a vehicle is difficult to solve; the second-come activity is expanded, which consumes a great deal of manpower and financial resources; and the requirement of improving the user experience by fast iteration of the Internet of vehicles in the era of intelligent networking cannot be met.
OTA remote upgrade, it is through online mode of networking with the server communication and download upgrade package, the upgrade package needs the flow while downloading, according to upgrading the difference of the content, upgrade the size of the package probably to vary from dozens of kb to several G once, to the upgrading of relevant content such as the vehicle-mounted entertainment system of the car, instrument, ADAS external member, generally install the package and have several hundred M to several G, install the package too big will cause the mobile data flow demand with high costs, download time is long and influence the problem that user experience.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a dynamic differential upgrade method for an OTA system, which is used for solving the problems that the mobile data flow requirement cost is high and the user experience is influenced by long download time due to the large vehicle upgrade installation package in the prior art.
The invention provides a dynamic differential upgrading method of an OTA system, which comprises the following steps:
step S11, acquiring a full upgrade package of the software to be upgraded, and issuing an upgrade task of a target ECU to a target vehicle on line according to the full upgrade package of the software to be upgraded, wherein the upgrade task comprises an identifier of the target vehicle, an identifier of the target ECU and a target version number of the software to be upgraded;
step S12, receiving the current version number of the target ECU controller assembled by the target vehicle reported by the target vehicle, and according to the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded, making a difference package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded;
and step S13, issuing the differential packet or the link address of the differential packet to the target vehicle.
Further, in step S12, according to the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded, making a differential package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded specifically includes:
step S21, comparing the difference between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded, wherein the difference comprises difference content and the position of the difference content;
step S22, recording the difference content between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded and the position of the difference content, and forming a difference package between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded.
Further, after the obtaining of the full upgrade package of the software to be upgraded in step S11, the method further includes:
and signing and encrypting the whole upgrade package of the software to be upgraded.
The invention provides a dynamic differential upgrading method of an OTA system, which comprises the following steps:
step S31, the target vehicle acquires an upgrade task on line, wherein the upgrade task comprises the identification of the target vehicle, the identification of the target ECU controller and the target version number of the software to be upgraded;
step S32, feeding back the current version number of the target ECU controller according to the identifier of the target ECU controller;
step S33, receiving a differential packet which is made by a server according to a full upgrade packet corresponding to the current version number of the target ECU and the full upgrade packet of the software to be upgraded, or receiving a link address of the differential packet, and downloading the differential packet according to the link address of the differential packet;
and step S34, restoring and generating a full upgrade package of the software to be upgraded according to the differential package and a full upgrade package corresponding to the current version number of the target ECU controller, and upgrading the target ECU controller from the current version number to the target version number of the software to be upgraded by using the full upgrade package of the software to be upgraded.
Further, step 34 specifically includes:
the TBOX of the target vehicle acquires the differential packet, and the full upgrade packet of the software to be upgraded is generated by restoration according to the differential packet and the full upgrade packet corresponding to the current version number of the target ECU controller;
and the TBOX transmits the full upgrade package of the software to be upgraded to the target ECU controller of the target vehicle, and the target ECU controller upgrades the target ECU controller from the current version number to the target version number of the software to be upgraded by using the full upgrade package of the software to be upgraded.
Further, step 34 specifically includes:
the TBOX of the target vehicle acquires the differential packet and sends the differential packet to the target ECU controller corresponding to the differential packet;
and the target ECU controller corresponding to the differential packet restores and generates a full upgrade packet of the software to be upgraded according to the differential packet and a full upgrade packet corresponding to the current version number of the target ECU controller, and the target ECU controller is upgraded from the current version number to the target version number of the software to be upgraded by using the full upgrade packet of the software to be upgraded.
Further, before upgrading the target ECU controller from the current version number to the target version number of the software to be upgraded by using the full upgrade package of the software to be upgraded in step S34, the method further includes:
decrypting and checking the whole upgrading packet of the software to be upgraded, and judging whether the whole upgrading packet of the software to be upgraded on the target vehicle is consistent with the whole upgrading packet of the software to be upgraded on the server or not;
if the software to be upgraded is consistent with the software to be upgraded, judging that the target vehicle successfully obtains the full upgrade package of the software to be upgraded, and continuing the upgrading step;
if the number of the upgrade packages is inconsistent with the number of the upgrade packages, judging that the target vehicle fails to acquire the full upgrade packages of the software to be upgraded, acquiring the full upgrade packages of the software to be upgraded from the server again until the acquisition succeeds or the acquisition fails to reach the preset maximum failure times, and abandoning the upgrading step.
The invention provides a dynamic differential upgrading method of an OTA system, which comprises the following steps:
step S41, the server acquires a full upgrade package of the software to be upgraded, and issues an upgrade task of a target ECU controller to a target vehicle on line according to a first full upgrade package of the software to be upgraded, wherein the upgrade task comprises an identifier of the target vehicle, an identifier of the target ECU controller and a target version number of the software to be upgraded;
step S42, the target vehicle acquires an upgrade task on line, wherein the upgrade task comprises the identification of the target vehicle, the identification of the target ECU controller and the target version number of the software to be upgraded;
step S43, the target vehicle feeds back the current version number of the target ECU controller to the server according to the identification of the target ECU controller;
step S44, the server receives the current version number of the target ECU carried by the target vehicle reported by the target vehicle, and according to the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded, a difference package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded is manufactured;
step S45, the server sends the differential packet or the link address of the differential packet to the target vehicle;
step S46, the target vehicle receives the differential packet or receives the link address of the differential packet, and downloads the differential packet according to the link address of the differential packet;
and step S47, the target vehicle restores and generates the full upgrade package of the software to be upgraded according to the difference package and the full upgrade package corresponding to the current version number of the target ECU controller, and the full upgrade package of the software to be upgraded is utilized to upgrade the target ECU controller from the current version number to the target version number of the software to be upgraded.
Further, in the step S44, according to the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded, the manufacturing of the differential package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded specifically includes:
the server compares the difference between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded, wherein the difference comprises the difference content and the position of the difference content;
and recording the difference content between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded and the position of the difference content to form a difference package between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded.
Further, the step S47 specifically includes:
the TBOX of the target vehicle acquires the differential packet, and the full upgrade packet of the software to be upgraded is generated by restoration according to the differential packet and the full upgrade packet corresponding to the current version number of the target ECU controller;
and the TBOX transmits the full upgrade package of the software to be upgraded to the target ECU controller of the target vehicle, and the target ECU controller upgrades the target ECU controller from the current version number to the target version number of the software to be upgraded by using the full upgrade package of the software to be upgraded.
Further, the step S47 specifically includes:
the TBOX of the target vehicle acquires the differential packet and sends the differential packet to the target ECU controller corresponding to the differential packet;
and the target ECU controller corresponding to the differential packet restores and generates a full upgrade packet of the software to be upgraded according to the differential packet and a full upgrade packet corresponding to the current version number of the target ECU controller, and the target ECU controller is upgraded from the current version number to the target version number of the software to be upgraded by using the full upgrade packet of the software to be upgraded.
The implementation of the invention has the following beneficial effects:
according to the invention, the server issues an upgrade task to the target vehicle, the target vehicle feeds back the current version number of the target ECU controller to the server, and the server makes a differential packet according to the full upgrade packet of the software to be upgraded and the full upgrade packet corresponding to the current version number of the target ECU controller, so that the target vehicle downloads and upgrades the target ECU controller, the downloaded differential packet is restored and then upgraded, the transmission data volume of the upgrade packet is reduced, and meanwhile, the download time is reduced; the problem of under the current vehicle network environment, the too big vehicle that causes of installation package removes data flow with high costs, download time is long and influence user experience is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a dynamic differential upgrade method for an OTA system according to an embodiment of the present invention.
Fig. 2 is a flowchart of a dynamic differential upgrade method for an OTA system according to an embodiment of the present invention.
Fig. 3 is a flowchart of a dynamic differential upgrade method for an OTA system according to an embodiment of the present invention.
Fig. 4 is a flowchart of a dynamic differential upgrade method for an OTA system according to an embodiment of the present invention.
Detailed Description
In this patent, the following description will be given with reference to the accompanying drawings and examples.
As shown in fig. 1, an embodiment of the present invention provides a method for dynamically and differentially upgrading an OTA system, where the method includes:
and S11, acquiring a full upgrade package of the software to be upgraded, and issuing an upgrade task of the target ECU to the target vehicle on line according to the full upgrade package of the software to be upgraded, wherein the upgrade task comprises an identifier of the target vehicle, an identifier of the target ECU and a target version number of the software to be upgraded.
In this embodiment, the execution subject of all the steps is a server or a hardware device for issuing a full upgrade package of software to be upgraded; the identification of the target vehicle may include a vehicle model and a vehicle off-rack lot, or may only include the vehicle model, for example, the vehicle model of the target vehicle is a certain model of a certain brand, and the certain model of the certain brand may be used as the identification of the target vehicle.
Step S12, receiving the current version number of the target ECU controller assembled by the target vehicle reported by the target vehicle, and according to the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded, making a difference package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded.
In this embodiment, assuming that the target version number of the software to be upgraded is V4.0 and the current version number of the target ECU controller reported by the target vehicle is V2.0, the server or the hardware device for issuing the full upgrade package of the software to be upgraded makes the differential package of V2.0-V4.0, so the number of the differential packages to be made is directly determined by the number of the current version number of the target ECU controller reported by the target vehicle.
The differential packet is made in the server, so that the cost of the vehicle and the server for transmitting the upgrade packet in a networking manner is reduced, and the speed and the efficiency of data transmission are improved; as an example, a binary differencing tool, bsdiff, may be invoked on the server to produce a differencing packet, or FOTA may be invoked to produce a differencing packet. The present embodiment does not limit the tool for making the differential packet.
Specifically, in step S12, according to the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded, making a differential package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded includes:
step S21, comparing the difference between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded, wherein the difference comprises difference content and the position of the difference content;
step S22, recording the difference content between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded and the position of the difference content, and making a difference package between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded.
It should be noted that the difference package is to record the difference content for adding the difference content during subsequent upgrade, and also to record the position of the difference content to ensure that the difference content is added at the correct position.
And step S13, issuing the differential packet or the link address of the differential packet to the target vehicle.
It should be noted that, the issuing of the differential packet to the target vehicle is performed in two ways, one way is to directly push the differential packet after directly detecting that the target vehicle is networked, and the other way is to push a link address of the differential packet to the target vehicle, and the target vehicle downloads the differential packet according to the link address, and the latter way is obviously more preferable, and the vehicle can determine the downloading time according to the network state of the vehicle.
Further, after acquiring the full upgrade package of the software to be upgraded in step S11, the method further includes:
and signing and encrypting the whole upgrade package of the software to be upgraded.
It should be noted that the above signing and encryption are performed to ensure the security of the whole upgrade package of the software to be upgraded and prevent the hacker or network intruder from using the upgrade package to destroy the integrity and accuracy of the vehicle networking downloaded software.
As shown in fig. 2, an embodiment of the present invention provides a method for dynamically and differentially upgrading an OTA system, where the method includes:
and step S31, the target vehicle acquires an upgrade task on line, wherein the upgrade task comprises the identification of the target vehicle, the identification of the target ECU controller and the target version number of the software to be upgraded.
It should be noted that the upgrade task includes upgraded vehicle identity information, identity information of the upgrade ECU controller, and a target version number; and if the software version number of the target ECU controller of the target vehicle is consistent with the target version number of the software to be upgraded, the target ECU controller of the target vehicle is upgraded to the highest version and does not need to be upgraded.
And step S32, feeding back the current version number of the target ECU controller according to the identification of the target ECU controller.
It should be noted that, in this step, the current version number of the target ECU controller is fed back to the server, so that the server can compare the full upgrade package corresponding to the current version number of the target ECU controller with the full upgrade package of the software to be upgraded, find a difference between the two, and create a difference package according to the difference.
And step S33, receiving a differential packet which is produced by the server according to the total upgrade packet corresponding to the current version number of the target ECU controller and the total upgrade packet of the software to be upgraded, or receiving a link address of the differential packet, and downloading the differential packet according to the link address of the differential packet.
In this embodiment, the target vehicle directly receives the differential packet or the link address of the differential packet corresponding to the server issuing the differential packet or the link address of the differential packet to the target vehicle, and downloads the differential packet according to the link address of the differential packet.
And step S34, restoring and generating a full upgrade package of the software to be upgraded according to the differential package and a full upgrade package corresponding to the current version number of the target ECU controller, and upgrading the target ECU controller from the current version number to the target version number of the software to be upgraded by using the full upgrade package of the software to be upgraded.
As an example, in the present embodiment, a binary difference tool, such as bsdiff, is called on the server to produce a difference package, and bspatch is called on the target vehicle to restore and generate a full upgrade package of software to be upgraded.
In the present embodiment, an implementation manner of step S34 is provided:
the TBOX of the target vehicle acquires the differential packet, and the full upgrade packet of the software to be upgraded is generated by restoration according to the differential packet and the full upgrade packet corresponding to the current version number of the target ECU controller;
and the TBOX transmits the full upgrade package of the software to be upgraded to the target ECU controller of the target vehicle, and the target ECU controller upgrades the target ECU controller from the current version number to the target version number of the software to be upgraded by using the full upgrade package of the software to be upgraded.
In one implementation manner, the TBOX of the target vehicle performs the step of converting the differential packet into the full packet uniformly, and transmits the full packet to the corresponding target ECU, and the TBOX performs uniform processing without providing different differential packet recovery modules based on various vehicle-side operating systems.
In the present embodiment, another implementation manner of step S34 is provided:
the TBOX of the target vehicle acquires the differential packet and sends the differential packet to the target ECU controller corresponding to the differential packet;
and the target ECU controller corresponding to the differential packet restores and generates a full upgrade packet of the software to be upgraded according to the differential packet and a full upgrade packet corresponding to the current version number of the target ECU controller, and the target ECU controller is upgraded from the current version number to the target version number of the software to be upgraded by using the full upgrade packet of the software to be upgraded.
In another implementation mode, the TBOX directly sends the differential packet to the target ECU controller, the target ECU controller automatically restores the whole upgrade packet of the software to be upgraded and upgrades the upgrade packet, and the mode of directly transmitting the differential packet saves transmission cost and has higher efficiency.
Further, before upgrading the target ECU controller from the current version number to the target version number of the software to be upgraded by using the full upgrade package of the software to be upgraded in step S34, the method further includes:
decrypting and checking the whole upgrading packet of the software to be upgraded, and judging whether the whole upgrading packet of the software to be upgraded on the target vehicle is consistent with the whole upgrading packet of the software to be upgraded on the server or not;
if the software to be upgraded is consistent with the software to be upgraded, judging that the target vehicle successfully obtains the full upgrade package of the software to be upgraded, and continuing the upgrading step;
if the number of the upgrade packages is inconsistent with the number of the upgrade packages, judging that the target vehicle fails to acquire the full upgrade packages of the software to be upgraded, acquiring the full upgrade packages of the software to be upgraded from the server again until the acquisition succeeds or the acquisition fails to reach the preset maximum failure times, and abandoning the upgrading step.
In this embodiment, a server is corresponding to sign and encrypt a full upgrade package of software to be upgraded, a target vehicle is corresponding to decrypt and verify the full upgrade package of the software to be upgraded, and when the target vehicle is judged to successfully acquire the full upgrade package of the software to be upgraded, the target ECU controller is upgraded from the current version number to the target version number of the software to be upgraded by using the full upgrade package of the software to be upgraded; in the step, decryption and signature verification are matched with the server to ensure the safety of software transmission between the server and the server.
As shown in fig. 3, an embodiment of the present invention provides a method for dynamically and differentially upgrading an OTA system, where the method includes:
and step S41, the server acquires a full upgrade package of the software to be upgraded, and issues an upgrade task of the target ECU controller to the target vehicle on line according to the first full upgrade package of the software to be upgraded, wherein the upgrade task comprises the identification of the target vehicle, the identification of the target ECU controller and the target version number of the software to be upgraded.
Referring to fig. 4, in step S41, the server obtains the full upgrade package of the software to be upgraded, and the specific manner corresponds to uploading the full upgrade package in step s.001 in fig. 4, so the server receives the full upgrade package of the upgrade software.
And step S42, the target vehicle acquires an upgrade task on line, wherein the upgrade task comprises the identification of the target vehicle, the identification of the target ECU controller and the target version number of the software to be upgraded.
Corresponding to fig. 4, the step s.004 corresponds to the step s.004 of obtaining the upgrade task online, if the target vehicle is always in a non-networking state, the upgrade task cannot be obtained, and the target vehicle can check the identifier of the target vehicle included in the upgrade task, and determine whether the upgrade task is the upgrade task of itself.
And step S43, the target vehicle feeds back the current version number of the target ECU controller to the server according to the identification of the target ECU controller.
This step corresponds to step s.005 in fig. 4, where the target vehicle provides the current version number of the target ECU controller to the server to provide the necessary information for the server to make the differential package.
Step S44, the server receives the current version number of the target ECU carried by the target vehicle reported by the target vehicle, and according to the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded, a difference package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded is manufactured.
Specifically, in step S44, according to the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded, the step of manufacturing the differential package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded specifically includes:
according to the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded, the specific step of manufacturing the difference package between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded comprises the following steps:
the server compares the difference between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded, wherein the difference comprises the difference content and the position of the difference content;
and recording the difference content between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded and the position of the difference content, and manufacturing a difference package between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded.
And step S45, the server issues the differential packet or the link address of the differential packet to the target vehicle.
Step S46, the target vehicle receives the differential packet, or receives the link address of the differential packet, and downloads the differential packet according to the link address of the differential packet.
And step S47, the target vehicle restores and generates the full upgrade package of the software to be upgraded according to the difference package and the full upgrade package corresponding to the current version number of the target ECU controller, and the full upgrade package of the software to be upgraded is utilized to upgrade the target ECU controller from the current version number to the target version number of the software to be upgraded.
Specifically, the step S47 specifically includes:
the TBOX of the target vehicle acquires the differential packet, and the full upgrade packet of the software to be upgraded is generated by restoration according to the differential packet and the full upgrade packet corresponding to the current version number of the target ECU controller;
and the TBOX transmits the full upgrade package of the software to be upgraded to the target ECU controller of the target vehicle, and the target ECU controller upgrades the target ECU controller from the current version number to the target version number of the software to be upgraded by using the full upgrade package of the software to be upgraded.
Specifically, the step S47 specifically includes:
the TBOX of the target vehicle acquires the differential packet and sends the differential packet to the target ECU controller corresponding to the differential packet;
and the target ECU controller corresponding to the differential packet restores and generates a full upgrade packet of the software to be upgraded according to the differential packet and a full upgrade packet corresponding to the current version number of the target ECU controller, and the target ECU controller is upgraded from the current version number to the target version number of the software to be upgraded by using the full upgrade packet of the software to be upgraded.
The implementation of the invention has the following beneficial effects:
according to the invention, the server issues an upgrade task to the target vehicle, the target vehicle feeds back the current version number of the target ECU controller to the server, and the server makes a differential packet according to the full upgrade packet of the software to be upgraded and the full upgrade packet corresponding to the current version number of the target ECU controller, so that the target vehicle downloads and upgrades the target ECU controller, the downloaded differential packet is restored and then upgraded, the transmission data volume of the upgrade packet is reduced, and meanwhile, the download time is reduced; the problem of under the current vehicle network environment, the too big vehicle that causes of installation package removes data flow with high costs, download time is long and influence user experience is solved.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.
Claims (11)
1. A dynamic differential upgrade method for an OTA system is characterized by comprising the following steps:
step S11, acquiring a full upgrade package of the software to be upgraded, and issuing an upgrade task of a target ECU to a target vehicle on line according to the full upgrade package of the software to be upgraded, wherein the upgrade task comprises an identifier of the target vehicle, an identifier of the target ECU and a target version number of the software to be upgraded;
step S12, receiving the current version number of the target ECU controller assembled by the target vehicle reported by the target vehicle, and according to the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded, making a difference package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded;
and step S13, issuing the differential packet or the link address of the differential packet to the target vehicle.
2. The method according to claim 1, wherein the step S12, according to the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded, of making a difference package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded specifically includes:
step S21, comparing the difference between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded, wherein the difference comprises difference content and the position of the difference content;
step S22, recording the difference content between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded and the position of the difference content, and making a difference package between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded.
3. The method as claimed in claim 1, wherein said step S11, after said obtaining the full upgrade package of the software to be upgraded, further comprises:
and signing and encrypting the whole upgrade package of the software to be upgraded.
4. A dynamic differential upgrade method for an OTA system is characterized by comprising the following steps:
step S31, the target vehicle acquires an upgrade task on line, wherein the upgrade task comprises the identification of the target vehicle, the identification of the target ECU controller and the target version number of the software to be upgraded;
step S32, feeding back the current version number of the target ECU controller according to the identifier of the target ECU controller;
step S33, receiving a differential packet which is made by a server according to a full upgrade packet corresponding to the current version number of the target ECU and the full upgrade packet of the software to be upgraded, or receiving a link address of the differential packet, and downloading the differential packet according to the link address of the differential packet;
and step S34, restoring and generating a full upgrade package of the software to be upgraded according to the differential package and a full upgrade package corresponding to the current version number of the target ECU controller, and upgrading the target ECU controller from the current version number to the target version number of the software to be upgraded by using the full upgrade package of the software to be upgraded.
5. The method of claim 4, wherein step 34 comprises:
the TBOX of the target vehicle acquires the differential packet, and the full upgrade packet of the software to be upgraded is generated by restoration according to the differential packet and the full upgrade packet corresponding to the current version number of the target ECU controller;
and the TBOX transmits the full upgrade package of the software to be upgraded to the target ECU controller of the target vehicle, and the target ECU controller upgrades the target ECU controller from the current version number to the target version number of the software to be upgraded by using the full upgrade package of the software to be upgraded.
6. The method of claim 4, wherein step 34 comprises:
the TBOX of the target vehicle acquires the differential packet and sends the differential packet to the target ECU controller corresponding to the differential packet;
and the target ECU controller corresponding to the differential packet restores and generates a full upgrade packet of the software to be upgraded according to the differential packet and a full upgrade packet corresponding to the current version number of the target ECU controller, and the target ECU controller is upgraded from the current version number to the target version number of the software to be upgraded by using the full upgrade packet of the software to be upgraded.
7. The method according to claim 4, wherein before upgrading the target ECU controller from the current version number to the target version number of the software to be upgraded using the full upgrade package of the software to be upgraded in step S34, further comprising:
decrypting and checking the whole upgrading packet of the software to be upgraded, and judging whether the whole upgrading packet of the software to be upgraded on the target vehicle is consistent with the whole upgrading packet of the software to be upgraded on the server or not;
if the software to be upgraded is consistent with the software to be upgraded, judging that the target vehicle successfully obtains the full upgrade package of the software to be upgraded, and continuing the upgrading step;
if the number of the upgrade packages is inconsistent with the number of the upgrade packages, judging that the target vehicle fails to acquire the full upgrade packages of the software to be upgraded, acquiring the full upgrade packages of the software to be upgraded from the server again until the acquisition succeeds or the acquisition fails to reach the preset maximum failure times, and abandoning the upgrading step.
8. A dynamic differential upgrade method for an OTA system is characterized by comprising the following steps:
step S41, the server acquires a full upgrade package of the software to be upgraded, and issues an upgrade task of a target ECU controller to a target vehicle on line according to a first full upgrade package of the software to be upgraded, wherein the upgrade task comprises an identifier of the target vehicle, an identifier of the target ECU controller and a target version number of the software to be upgraded;
step S42, the target vehicle acquires an upgrade task on line, wherein the upgrade task comprises the identification of the target vehicle, the identification of the target ECU controller and the target version number of the software to be upgraded;
step S43, the target vehicle feeds back the current version number of the target ECU controller to the server according to the identification of the target ECU controller;
step S44, the server receives the current version number of the target ECU carried by the target vehicle reported by the target vehicle, and according to the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded, a difference package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded is manufactured;
step S45, the server sends the differential packet or the link address of the differential packet to the target vehicle;
step S46, the target vehicle receives the differential packet or receives the link address of the differential packet, and downloads the differential packet according to the link address of the differential packet;
and step S47, the target vehicle restores and generates the full upgrade package of the software to be upgraded according to the difference package and the full upgrade package corresponding to the current version number of the target ECU controller, and the full upgrade package of the software to be upgraded is utilized to upgrade the target ECU controller from the current version number to the target version number of the software to be upgraded.
9. The method according to claim 8, wherein the step S44, according to the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded, the making of the differential package between the full upgrade package corresponding to the current version number and the full upgrade package of the software to be upgraded specifically includes:
the server compares the difference between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded, wherein the difference comprises the difference content and the position of the difference content;
and recording the difference content between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded and the position of the difference content, and manufacturing a difference package between the total upgrade package corresponding to the current version number and the total upgrade package of the software to be upgraded.
10. The method according to claim 8, wherein the step S47 specifically includes:
the TBOX of the target vehicle acquires the differential packet, and the full upgrade packet of the software to be upgraded is generated by restoration according to the differential packet and the full upgrade packet corresponding to the current version number of the target ECU controller;
and the TBOX transmits the full upgrade package of the software to be upgraded to the target ECU controller of the target vehicle, and the target ECU controller upgrades the target ECU controller from the current version number to the target version number of the software to be upgraded by using the full upgrade package of the software to be upgraded.
11. The method according to claim 8, wherein the step S47 specifically includes:
the TBOX of the target vehicle acquires the differential packet and sends the differential packet to the target ECU controller corresponding to the differential packet;
and the target ECU controller corresponding to the differential packet restores and generates a full upgrade packet of the software to be upgraded according to the differential packet and a full upgrade packet corresponding to the current version number of the target ECU controller, and the target ECU controller is upgraded from the current version number to the target version number of the software to be upgraded by using the full upgrade packet of the software to be upgraded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010901113.4A CN114115965A (en) | 2020-09-01 | 2020-09-01 | OTA system dynamic differential upgrading method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010901113.4A CN114115965A (en) | 2020-09-01 | 2020-09-01 | OTA system dynamic differential upgrading method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114115965A true CN114115965A (en) | 2022-03-01 |
Family
ID=80360472
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010901113.4A Pending CN114115965A (en) | 2020-09-01 | 2020-09-01 | OTA system dynamic differential upgrading method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114115965A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114443111A (en) * | 2022-04-11 | 2022-05-06 | 长安新能源南京研究院有限公司 | Method and system for local differential flashing of controller |
CN114745369A (en) * | 2022-04-08 | 2022-07-12 | 北京汽车集团越野车有限公司 | Remote upgrading method and device |
CN116954657A (en) * | 2023-07-19 | 2023-10-27 | 红石阳光(深圳)科技有限公司 | Policy control method and system for upgrading automobile OTA |
CN117667178A (en) * | 2024-02-02 | 2024-03-08 | 北京云驰未来科技有限公司 | Whole vehicle software updating method and system based on differential upgrading |
-
2020
- 2020-09-01 CN CN202010901113.4A patent/CN114115965A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114745369A (en) * | 2022-04-08 | 2022-07-12 | 北京汽车集团越野车有限公司 | Remote upgrading method and device |
CN114443111A (en) * | 2022-04-11 | 2022-05-06 | 长安新能源南京研究院有限公司 | Method and system for local differential flashing of controller |
CN116954657A (en) * | 2023-07-19 | 2023-10-27 | 红石阳光(深圳)科技有限公司 | Policy control method and system for upgrading automobile OTA |
CN116954657B (en) * | 2023-07-19 | 2024-04-12 | 红石阳光(深圳)科技有限公司 | Policy control method and system for upgrading automobile OTA |
CN117667178A (en) * | 2024-02-02 | 2024-03-08 | 北京云驰未来科技有限公司 | Whole vehicle software updating method and system based on differential upgrading |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11662991B2 (en) | Vehicle-mounted device upgrade method and related device | |
CN114115965A (en) | OTA system dynamic differential upgrading method | |
US11985238B2 (en) | Vehicle-mounted device upgrade method and related device | |
CN111510485B (en) | OTA upgrade package downloading method, device, vehicle end and server | |
CN109787774B (en) | Upgrade downloading method and device based on digital signature verification, server and terminal | |
US20180183605A1 (en) | Software distribution processing device, software distribution processing method, and vehicle | |
CN111949288A (en) | Intelligent element remote upgrading method and system based on vehicle-mounted Ethernet | |
Ekatpure | Challenges Associated with the Deployment of Software Over-the-Air (SOTA) Updates in the Automotive Industry | |
CN114301596A (en) | OTA (over the air) secure communication method and device for vehicle intranet, vehicle-mounted system and storage medium | |
CN113778498A (en) | Vehicle data updating method, OTA cloud and vehicle data updating system | |
CN111722861A (en) | Application program upgrading method, device, equipment and storage medium | |
CN113282310A (en) | Application management method and system, vehicle-mounted device, server and readable storage medium | |
CN115643564A (en) | FOTA upgrading method, device, equipment and storage medium for automobile safety | |
WO2020182685A1 (en) | Vehicle controller | |
CN113037850A (en) | Application program upgrading method and device, electronic equipment and storage medium | |
CN115240298B (en) | Vehicle digital key acquisition method, device, computer equipment and storage medium | |
CN110737457A (en) | Vehicle-mounted software processing method, system and terminal | |
CN114928602A (en) | Encryption method, decryption method and OTA (over the air) upgrading system | |
CN111338681A (en) | Firmware upgrading method and system for equipment | |
CN116193436B (en) | OTA upgrade package issuing method and system for vehicle-mounted equipment | |
CN114978949B (en) | Key writing test method and system based on Ethernet and CAN communication | |
CN115828324A (en) | Software package inspection method and device and electronic equipment | |
CN116578315A (en) | Method and device for safely brushing vehicle ECU | |
CN115129354A (en) | Vehicle-mounted locator upgrading system and method | |
CN117597683A (en) | Center device, vehicle-side system, content protection method, and content protection program |
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 |