CN117251194A - OTA upgrade package generation method, device, equipment and storage medium - Google Patents

OTA upgrade package generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN117251194A
CN117251194A CN202311401945.XA CN202311401945A CN117251194A CN 117251194 A CN117251194 A CN 117251194A CN 202311401945 A CN202311401945 A CN 202311401945A CN 117251194 A CN117251194 A CN 117251194A
Authority
CN
China
Prior art keywords
upgrade package
ecu
generating
ota upgrade
ota
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311401945.XA
Other languages
Chinese (zh)
Inventor
马利丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Human Horizons Shandong Technology Co Ltd
Original Assignee
Human Horizons Shandong Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Human Horizons Shandong Technology Co Ltd filed Critical Human Horizons Shandong Technology Co Ltd
Priority to CN202311401945.XA priority Critical patent/CN117251194A/en
Publication of CN117251194A publication Critical patent/CN117251194A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version 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 discloses a method, a device, equipment and a storage medium for generating an OTA upgrade package, wherein the method comprises the following steps: basic information and an original upgrade package of the vehicle ECU are acquired; identifying and classifying the basic information to obtain core parameters required by generating a configuration file; carrying out integrity check on the original upgrade package, and generating a corresponding OTA upgrade package according to the type of the ECU; generating a configuration file according to the core parameters, the OTA upgrade package, the upgrade sequence of the ECU and the association relation of the ECU; and packing and compressing the OTA upgrade package and the configuration file, and then encrypting to obtain a target OTA upgrade package. According to the invention, the logic strategy of the vehicle-end ECU upgrade is integrated into the target OTA upgrade package, so that the iteration cost and the times of vehicle-end software can be reduced, the trivial process of vehicle-cloud interaction in the whole vehicle OTA upgrade process can be reduced, and the whole upgrade time can be shortened. Meanwhile, a plurality of OTA upgrade packages are uniformly packaged, so that the number of vehicle end verification times is effectively reduced, and the upgrade efficiency is improved.

Description

OTA upgrade package generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of software upgrade technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating an OTA upgrade package.
Background
With the rapid development of vehicle intellectualization, more and more controllers (i.e., ECU, electronic Control Unit) are provided on new energy vehicles, and it is often necessary to write programs or update programs to a plurality of controller ECU in the vehicle during the production or use of the vehicle. Since the function of each ECU is different, the application program built in it is also not used, and thus it is necessary to write different application programs to each ECU. At present, when an OTA upgrade package of an ECU is generated, format conversion or simple compression packaging is only carried out on the software package, and the difference between different ECUs before upgrade and in the process of refreshing is realized through a vehicle end code, so that the change cost is high. In the OTA vehicle-to-cloud interaction process, a plurality of configuration information such as upgrading sequences, target versions and the like are required to be issued through a plurality of interfaces agreed in a protocol, so that the vehicle-to-cloud interaction information amount is large, and the logic is complex. For a plurality of software packages, the software packages are generally divided into a plurality of URL links, and multiple downloads and checks are needed, so that the upgrading process is relatively long.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method, a device, equipment and a storage medium for generating an OTA upgrade package, wherein logic strategies of vehicle-end ECU upgrade are integrated into a target OTA upgrade package uniformly, the operation threshold is low and flexible, the iteration cost and the number of times of vehicle-end software are reduced, the trivial flow of vehicle-cloud interaction in the whole vehicle OTA upgrade process is reduced, and the whole upgrade time is shortened. Meanwhile, a plurality of OTA upgrade packages are uniformly packaged, so that the number of vehicle end verification times is effectively reduced, and the upgrade efficiency is improved.
In order to achieve the above object, an embodiment of the present invention provides a method for generating an OTA upgrade package, including:
basic information and an original upgrade package of the vehicle ECU are acquired;
identifying and classifying the basic information to obtain core parameters required by generating a configuration file;
carrying out integrity check on the original upgrade package, and generating a corresponding OTA upgrade package according to the type of the ECU;
generating a configuration file according to the core parameters, the OTA upgrade package, the upgrade sequence of the ECU and the association relation of the ECU;
and packing and compressing the OTA upgrade package and the configuration file, and then encrypting to obtain a target OTA upgrade package.
As an improvement of the above, the ECU includes a first ECU and a second ECU; the first original upgrade package of the first ECU comprises a driving file, an application file and a calibration parameter file; the second original upgrade package of the second ECU includes a plurality of partition files.
As an improvement of the above solution, the generating a corresponding OTA upgrade package according to the type of the ECU specifically includes:
for a first original upgrade package of the first ECU, carrying out format conversion on a file of the first original upgrade package, and generating an OTA upgrade package according to the first original upgrade package after format conversion;
and compressing a plurality of partition files of the second original upgrade package for the second original upgrade package of the second ECU, and generating an OTA upgrade package according to the compressed second original upgrade package.
As an improvement of the above solution, the method further includes:
and generating differential packets of different versions according to whether the second ECU supports the differential or not for a second original upgrade packet of the second ECU.
As an improvement of the above solution, the generating a configuration file according to the core parameter, the OTA upgrade package, the upgrade order of the ECU, and the association relationship of the ECU specifically includes:
if the ECU to be upgraded is one, generating a configuration file according to the core parameters and the OTA upgrade package and the standard format;
and if a plurality of ECUs to be upgraded are provided, generating configuration files according to the core parameters, the OTA upgrade package, the upgrade sequence and the association relation and the standard format.
As an improvement of the above scheme, if the number of the ECU to be upgraded is multiple, the multiple OTA upgrade packages and the configuration file are packaged and compressed and then encrypted, and a URL link is configured for the target OTA upgrade package.
As an improvement of the scheme, the core parameters comprise a vehicle-mounted Ethernet communication address, a vehicle communication routing address, a security algorithm, a verification algorithm, a brushing sequence parameter and a rollback mode.
The embodiment of the invention also provides a device for generating the OTA upgrade package, which comprises the following steps:
the acquisition module is used for acquiring basic information of the vehicle ECU and an original upgrade package;
the classification module is used for identifying and classifying the basic information to obtain core parameters required by generating a configuration file;
the first generation module is used for carrying out integrity check on the original upgrade package and generating a corresponding OTA upgrade package according to the type of the ECU;
the second generation module is used for generating a configuration file according to the core parameters, the OTA upgrade package, the upgrade sequence of the ECU and the association relation of the ECU;
and the third generation module is used for encrypting the OTA upgrade package and the configuration file after packing and compressing to obtain a target OTA upgrade package.
The embodiment of the invention also provides a terminal device, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the generation method of the OTA upgrade package is realized when the processor executes the computer program.
The embodiment of the invention also provides a computer readable storage medium, which comprises a stored computer program, wherein when the computer program runs, the equipment where the computer readable storage medium is located is controlled to execute the method for generating the OTA upgrade package.
Compared with the prior art, the method, the device, the equipment and the storage medium for generating the OTA upgrade package provided by the embodiment of the invention have the beneficial effects that: acquiring basic information and an original upgrade package of a vehicle ECU; identifying and classifying the basic information to obtain core parameters required by generating a configuration file; carrying out integrity check on the original upgrade package, and generating a corresponding OTA upgrade package according to the type of the ECU; generating a configuration file according to the core parameters, the OTA upgrade package, the upgrade sequence of the ECU and the association relation of the ECU; and packing and compressing the OTA upgrade package and the configuration file, and then encrypting to obtain a target OTA upgrade package. According to the embodiment of the invention, the logic strategy of the vehicle-end ECU upgrade is integrated into the target OTA upgrade package, the operation threshold is low and flexible, the iteration cost and the number of times of vehicle-end software are reduced, the trivial process of vehicle-cloud interaction in the whole OTA upgrade process is reduced, and the whole upgrade time is shortened. Meanwhile, a plurality of OTA upgrade packages are uniformly packaged, so that the number of vehicle end verification times is effectively reduced, and the upgrade efficiency is improved.
Drawings
Fig. 1 is a flow chart of a preferred embodiment of a method for generating an OTA upgrade package according to the present invention;
fig. 2 is a schematic structural diagram of a preferred embodiment of an apparatus for generating an OTA upgrade package according to the present invention;
fig. 3 is a schematic structural diagram of a preferred embodiment of a terminal device according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. 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.
Referring to fig. 1, fig. 1 is a flowchart of a preferred embodiment of a method for generating an OTA upgrade package according to the present invention. The method for generating the OTA upgrade package comprises the following steps:
s1, acquiring basic information and an original upgrade package of a vehicle ECU;
s2, identifying and classifying the basic information to obtain core parameters required by generating a configuration file;
s3, carrying out integrity check on the original upgrade package, and generating a corresponding OTA upgrade package according to the type of the ECU;
s4, generating a configuration file according to the core parameters, the OTA upgrade package, the upgrade sequence of the ECU and the association relation of the ECU;
s5, packing and compressing the OTA upgrade package and the configuration file, and then encrypting to obtain a target OTA upgrade package.
Specifically, the method for generating the OTA upgrade package provided by the embodiment of the invention is applied to an OTA upgrade package generating system, and a platform implementation mode is provided for vehicle-end ECU (electronic control Unit) flashing through the OTA upgrade package generating system. And inputting the ECU package information and related parameter information required for generating the target OTA upgrade package into an OTA upgrade package generating system, and identifying and classifying basic information of the ECU by the OTA upgrade package generating system to obtain core parameters required for generating the configuration file. When information is recorded, the software and hardware version information, the original upgrade package and the basic information of the ECU are recorded into an OTA upgrade package generating system. In addition, when a plurality of ECUs are upgraded at the same time, OTA preconditions (for example, electric quantity, temperature, gear, vehicle speed, etc.) and upgrade order, association relation of the plurality of ECUs need to be entered. It should be noted that, the input of the OTA precondition is because the vehicle state needs to be judged before upgrading: vehicle speed, electric quantity and the like, and the vehicle is ensured to be in a controllable or safe state. And carrying out integrity check on the input original upgrade package, and generating a corresponding OTA upgrade package according to the type of the ECU. And generating configuration files required by refreshing strategy parameters required before, during and after upgrading according to the core parameters, the OTA upgrade package, the upgrade sequence of the ECU and the association relation of the ECU. Wherein the configuration file is typically a json format file. And after the configuration file is generated, packing and compressing the OTA upgrade package and the configuration file, and encrypting to obtain the target OTA upgrade package.
The embodiment of the invention is compatible with the differences of different ECU (electronic control unit) pre-upgrading condition judgment, communication routing, refreshing sequence, refreshing interaction, rollback capability, differential capability and the like in the whole-vehicle OTA, the system identifies core parameters according to flexible information input, and makes the required strategies before, during and after the vehicle-end ECU is upgraded into standard configuration files, and directly packages the standard configuration files into a target OTA upgrade package. When the upgrade task is issued, only the current target OTA upgrade package information issued by the cloud can meet the upgrade requirement, and the vehicle-end master can identify the upgrade flow only by analyzing the configuration file. The vehicle-cloud interaction of the whole vehicle OTA upgrade is simplified, policy parameters of the vehicle-end ECU upgrade are integrated to a target OTA upgrade package in a unified mode of information input, the operation threshold is low and flexible, the iteration cost and the number of times of vehicle-end software are reduced, the trivial flow of the vehicle-cloud interaction in the whole vehicle OTA upgrade process is reduced, and the whole upgrade time is shortened. Meanwhile, a plurality of OTA upgrade packages are uniformly packaged, so that the number of vehicle end verification times is effectively reduced, and the upgrade efficiency is improved.
In another preferred embodiment, the ECU includes a first ECU and a second ECU; the first original upgrade package of the first ECU comprises a driving file, an application file and a calibration parameter file; the second original upgrade package of the second ECU includes a plurality of partition files.
Specifically, the embodiments of the present invention divide ECUs into class a (i.e., the first ECU) and class B (i.e., the second ECU) for the complexity of the software-hardware design of the vehicle-side ECU.
Class a: the ECU of the relatively simple main control chip compiles common file formats [ hex, s19, bin and mot ]. The embodiment of the invention aims at the class A ECU to perform file format conversion so as to ensure the uniformity of the brushing flow. The class a ECU upgrade package is typically composed of three parts, namely a driver, an application file app, and a calibration parameter file calibration.
Class B: for a multi-core chip ECU upgrade package of a complex system, the upgrade package is composed of a plurality of partition files (mpu side-a plurality of img files, mcu side files). Because the class B ECU supports file transmission during the refreshing process, the file format does not need to be converted, and a plurality of partition files need to be compressed uniformly.
In another preferred embodiment, the generating the corresponding OTA upgrade package according to the type of the ECU specifically includes:
for a first original upgrade package of the first ECU, carrying out format conversion on a file of the first original upgrade package, and generating an OTA upgrade package according to the first original upgrade package after format conversion;
and compressing a plurality of partition files of the second original upgrade package for the second original upgrade package of the second ECU, and generating an OTA upgrade package according to the compressed second original upgrade package.
Specifically, when the corresponding OTA upgrade package is generated according to the type of the ECU, because the ECU comprises the first ECU and the second ECU in the embodiment of the invention, for the first original upgrade package of the first ECU, format conversion is performed on the file of the first original upgrade package, and the OTA upgrade package is generated according to the first original upgrade package after format conversion. And compressing a plurality of partition files of the second original upgrade package for the second original upgrade package of the second ECU, and generating an OTA upgrade package according to the compressed second original upgrade package.
In a further preferred embodiment, the method further comprises:
and generating differential packets of different versions according to whether the second ECU supports the differential or not for a second original upgrade packet of the second ECU.
Specifically, for the second original upgrade package of the second ECU, the embodiment of the invention can also generate the differential package of different versions according to whether the second ECU supports the differential, so as to reduce the data transmission quantity and the power consumption.
In another preferred embodiment, the generating a configuration file according to the core parameter, the OTA upgrade package, the upgrade order of the ECU, and the association relationship of the ECU specifically includes:
if the ECU to be upgraded is one, generating a configuration file according to the core parameters and the OTA upgrade package and the standard format;
and if a plurality of ECUs to be upgraded are provided, generating configuration files according to the core parameters, the OTA upgrade package, the upgrade sequence and the association relation and the standard format.
Specifically, when the configuration file required by the refreshing is generated, if the ECU to be upgraded is one, the configuration file can be generated according to the core parameters and the OTA upgrade package and the standard format. If a plurality of ECUs to be upgraded are needed, the upgrading sequence and the association relation of the ECUs are additionally added, and at the moment, a configuration file is generated according to the core parameters, the OTA upgrading packet, the upgrading sequence and the association relation and the standard format. It should be noted that, in the embodiment of the present invention, the configuration file includes an upgrade precondition judgment item, a whole vehicle communication configuration (DOCAN/DOIP/DOLIN and a communication address) during writing, a data transmission policy during writing, a vehicle control (high-low voltage, gate control, etc.) policy before writing, a security check algorithm (27 services), an integrity check algorithm (for example, crc32 or SHA256, etc.), a signature verification algorithm (sign value, etc.), and a rollback policy (re-writing or AB rollback). When a plurality of ECUs are packaged, the configuration file comprises the upgrade sequence of the plurality of ECUs, grouping information and association relation among the ECUs besides the configuration parameters of the single ECU. Furthermore, the target OTA upgrade package finally packaged by the embodiment of the invention is wholly divided into two types: a single ECU upgrade package and a multi-ECU software package.
The single ECU upgrade package includes two types: class A (OTA upgrade package composed of configuration file x and converted format of the flash file; class B (OTA upgrade composed of configuration file x and compressed multi-partition compression package);
multiple ECU upgrade package: the configuration file and the upgrade package of a plurality of ECUs form an OTA upgrade package (one URL link).
In another preferred embodiment, if the number of the ECU to be upgraded is multiple, the multiple OTA upgrade packages and the configuration file are packaged and compressed and then encrypted, and a URL link is configured for the target OTA upgrade package.
Specifically, in the embodiment of the invention, if a plurality of ECUs to be upgraded are provided, a plurality of OTA upgrade packages and generated configuration files are packed and compressed and then encrypted, and a URL link is configured for the target OTA upgrade package, so that vehicle cloud interaction and vehicle end logic are reduced, vehicle end verification times are reduced, and upgrading efficiency is improved.
As a preferable scheme, the core parameters comprise a vehicle-mounted Ethernet communication address, a vehicle communication routing address, a security algorithm, a verification algorithm, a brushing sequence parameter and a rollback mode.
Specifically, the core parameters required for generating the OTA configuration file in the embodiment of the present invention mainly include: the communication parameters (car-mounted Ethernet communication address ip address, whole car communication route address and the like), security algorithm, verification algorithm, brushing sequence parameters, rollback mode and the like write strategy parameters required before, during and after upgrading into configuration files according to standard format convention.
Correspondingly, the invention also provides a device for generating the OTA upgrade package, which can realize all the flows of the method for generating the OTA upgrade package in the embodiment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a generating device of an OTA upgrade package according to an embodiment of the present invention. The generating device of the OTA upgrade package comprises:
an acquisition module 201, configured to acquire basic information of a vehicle ECU and an original upgrade package;
the classification module 202 is configured to identify and classify the basic information to obtain core parameters required for generating a configuration file;
the first generating module 203 is configured to perform integrity check on the original upgrade package, and generate a corresponding OTA upgrade package according to the type of the ECU;
a second generating module 204, configured to generate a configuration file according to the core parameter, the OTA upgrade package, the upgrade order of the ECU, and the association relationship of the ECU;
and a third generating module 205, configured to package and compress the OTA upgrade package and the configuration file, and encrypt the OTA upgrade package to obtain a target OTA upgrade package.
Preferably, the ECU includes a first ECU and a second ECU; the first original upgrade package of the first ECU comprises a driving file, an application file and a calibration parameter file; the second original upgrade package of the second ECU includes a plurality of partition files.
Preferably, the generating a corresponding OTA upgrade package according to the type of the ECU specifically includes:
for a first original upgrade package of the first ECU, carrying out format conversion on a file of the first original upgrade package, and generating an OTA upgrade package according to the first original upgrade package after format conversion;
and compressing a plurality of partition files of the second original upgrade package for the second original upgrade package of the second ECU, and generating an OTA upgrade package according to the compressed second original upgrade package.
Preferably, the device is further for:
and generating differential packets of different versions according to whether the second ECU supports the differential or not for a second original upgrade packet of the second ECU.
Preferably, the generating a configuration file according to the core parameter, the OTA upgrade package, the upgrade order of the ECU, and the association relationship of the ECU specifically includes:
if the ECU to be upgraded is one, generating a configuration file according to the core parameters and the OTA upgrade package and the standard format;
and if a plurality of ECUs to be upgraded are provided, generating configuration files according to the core parameters, the OTA upgrade package, the upgrade sequence and the association relation and the standard format.
Preferably, if the number of the ECUs to be upgraded is multiple, the multiple OTA upgrade packages and the configuration file are packaged and compressed and then encrypted, and a URL link is configured for the target OTA upgrade package.
Preferably, the core parameters include a vehicle-mounted ethernet communication address, a vehicle communication routing address, a security algorithm, a verification algorithm, a brushing order parameter and a rollback mode.
In a specific implementation, the working principle, the control flow and the technical effects of implementation of the generating device of the OTA upgrade package provided by the embodiment of the invention are the same as those of the generating method of the OTA upgrade package in the above embodiment, and are not repeated here.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a preferred embodiment of a terminal device according to the present invention. The terminal device includes a processor 301, a memory 302, and a computer program stored in the memory 302 and configured to be executed by the processor 301, where the generation method of the OTA upgrade package described in any one of the above embodiments is implemented when the processor 301 executes the computer program.
Preferably, the computer program may be divided into one or more modules/units (e.g. computer program 1, computer program 2, … …) stored in the memory 302 and executed by the processor 301 to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used for describing the execution of the computer program in the terminal device.
The processor 301 may be a central processing unit (Central Processing Unit, CPU), it may be a further general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic devices, discrete hardware components, etc., or the processor 301 may be any conventional processor, the processor 301 being a control center of the terminal device, with various interfaces and lines connecting the various parts of the terminal device.
The memory 302 mainly includes a program storage area, which may store an operating system, application programs required for at least one function, and the like, and a data storage area, which may store related data and the like. In addition, the memory 302 may be a high-speed random access memory, a nonvolatile memory such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), etc., or the memory 302 may be other volatile solid-state memory devices.
It should be noted that the above-mentioned terminal device may include, but is not limited to, a processor, a memory, and those skilled in the art will understand that the schematic structural diagram of fig. 3 is merely an example of the above-mentioned terminal device, and does not limit the above-mentioned terminal device, and may include more or fewer components than those shown, or may combine some components or different components.
The embodiment of the invention also provides a computer readable storage medium, which comprises a stored computer program, wherein when the computer program runs, the equipment where the computer readable storage medium is located is controlled to execute the method for generating the OTA upgrade package according to any one of the embodiments.
The embodiment of the invention provides a method, a device, equipment and a storage medium for generating an OTA upgrade package, which are used for acquiring basic information and an original upgrade package of a vehicle ECU; identifying and classifying the basic information to obtain core parameters required by generating a configuration file; carrying out integrity check on the original upgrade package, and generating a corresponding OTA upgrade package according to the type of the ECU; generating a configuration file according to the core parameters, the OTA upgrade package, the upgrade sequence of the ECU and the association relation of the ECU; and packing and compressing the OTA upgrade package and the configuration file, and then encrypting to obtain a target OTA upgrade package. According to the embodiment of the invention, the logic strategy of the vehicle-end ECU upgrade is integrated into the target OTA upgrade package, the operation threshold is low and flexible, the iteration cost and the number of times of vehicle-end software are reduced, the trivial process of vehicle-cloud interaction in the whole OTA upgrade process is reduced, and the whole upgrade time is shortened. Meanwhile, a plurality of OTA upgrade packages are uniformly packaged, so that the number of vehicle end verification times is effectively reduced, and the upgrade efficiency is improved.
It should be noted that the system embodiments described above are merely illustrative, and that the units described as separate units may or may not be physically separate, and that units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the system embodiment of the present invention, the connection relationship between the modules represents that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the invention, such changes and modifications are also intended to be within the scope of the invention.

Claims (10)

1. The method for generating the OTA upgrade package is characterized by comprising the following steps:
basic information and an original upgrade package of the vehicle ECU are acquired;
identifying and classifying the basic information to obtain core parameters required by generating a configuration file;
carrying out integrity check on the original upgrade package, and generating a corresponding OTA upgrade package according to the type of the ECU;
generating a configuration file according to the core parameters, the OTA upgrade package, the upgrade sequence of the ECU and the association relation of the ECU;
and packing and compressing the OTA upgrade package and the configuration file, and then encrypting to obtain a target OTA upgrade package.
2. The method of generating an OTA upgrade package of claim 1 wherein the ECU comprises a first ECU and a second ECU; the first original upgrade package of the first ECU comprises a driving file, an application file and a calibration parameter file; the second original upgrade package of the second ECU includes a plurality of partition files.
3. The method of generating an OTA upgrade package according to claim 2, wherein the generating a corresponding OTA upgrade package according to the type of the ECU specifically includes:
for a first original upgrade package of the first ECU, carrying out format conversion on a file of the first original upgrade package, and generating an OTA upgrade package according to the first original upgrade package after format conversion;
and compressing a plurality of partition files of the second original upgrade package for the second original upgrade package of the second ECU, and generating an OTA upgrade package according to the compressed second original upgrade package.
4. The method of generating an OTA upgrade package of claim 3, wherein the method further comprises:
and generating differential packets of different versions according to whether the second ECU supports the differential or not for a second original upgrade packet of the second ECU.
5. The method of generating an OTA upgrade package of claim 4, wherein generating a configuration file according to the core parameters, the OTA upgrade package, the upgrade order of the ECU, and the association relationship of the ECU specifically comprises:
if the ECU to be upgraded is one, generating a configuration file according to the core parameters and the OTA upgrade package and the standard format;
and if a plurality of ECUs to be upgraded are provided, generating configuration files according to the core parameters, the OTA upgrade package, the upgrade sequence and the association relation and the standard format.
6. The method of claim 5, wherein if the number of the ECUs to be upgraded is plural, the plurality of OTA upgrade packages and the configuration file are packed and compressed and then encrypted, and a URL link is configured for the target OTA upgrade package.
7. The method of claim 6, wherein the core parameters include a vehicle ethernet address, a vehicle communication routing address, a security algorithm, a verification algorithm, a swiping order parameter, and a rollback method.
8. An apparatus for generating an OTA upgrade package, comprising:
the acquisition module is used for acquiring basic information of the vehicle ECU and an original upgrade package;
the classification module is used for identifying and classifying the basic information to obtain core parameters required by generating a configuration file;
the first generation module is used for carrying out integrity check on the original upgrade package and generating a corresponding OTA upgrade package according to the type of the ECU;
the second generation module is used for generating a configuration file according to the core parameters, the OTA upgrade package, the upgrade sequence of the ECU and the association relation of the ECU;
and the third generation module is used for encrypting the OTA upgrade package and the configuration file after packing and compressing to obtain a target OTA upgrade package.
9. A terminal device, comprising a processor and a memory, wherein the memory stores a computer program, and the computer program is configured to be executed by the processor, and the processor implements the method for generating an OTA upgrade package according to any one of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium, wherein the computer readable storage medium stores a computer program, and wherein the method for generating an OTA upgrade package according to any one of claims 1 to 7 is implemented when the computer program is executed by a device in which the computer readable storage medium is located.
CN202311401945.XA 2023-10-26 2023-10-26 OTA upgrade package generation method, device, equipment and storage medium Pending CN117251194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311401945.XA CN117251194A (en) 2023-10-26 2023-10-26 OTA upgrade package generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311401945.XA CN117251194A (en) 2023-10-26 2023-10-26 OTA upgrade package generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117251194A true CN117251194A (en) 2023-12-19

Family

ID=89136913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311401945.XA Pending CN117251194A (en) 2023-10-26 2023-10-26 OTA upgrade package generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117251194A (en)

Similar Documents

Publication Publication Date Title
EP3352080A1 (en) Gateway device, firmware update method, and control program
US11972247B2 (en) Software upgrading method, apparatus, and system
CN108365967A (en) Method, system, terminal and the computer readable storage medium of dynamic configuration communications parameter
US11468329B2 (en) Techniques to manage training or trained models for deep learning applications
CN213715751U (en) Domain controller
CN111291443B (en) Automatic generation method, device and equipment for I/O module model of vehicle control unit software
CN113126590A (en) Vehicle diagnostic communication method, device, computer equipment and storage medium
CN115361667A (en) Electric vehicle data classification variable frequency transmission method, device and system
WO2024109535A1 (en) Communication interaction method and apparatus, device, and storage medium
CN109995548B (en) Device management method and system, data transmission method and system and terminal device
CN109683470A (en) A kind of software and hardware self-adaptive matching method, device and driving device
CN117251194A (en) OTA upgrade package generation method, device, equipment and storage medium
CN117336113A (en) Communication method of vehicle control system and related device
CN108920289B (en) Data processing method of vehicle-mounted controller and vehicle-mounted controller
US12041182B2 (en) Non-reputable vehicle change history
CN113227968B (en) Version management method and device
WO2023092398A1 (en) Vehicle-level testing device and method, and cloud management platform
CN114326503A (en) Vehicle-mounted IO gateway controller and communication method
CN113220317A (en) Vehicle controller parallel refreshing method and device, computer equipment and storage medium
Quigley et al. An investigation into cost modelling for design of distributed automotive electrical architectures
CN114124992B (en) Method, device, equipment and system for monitoring running state of whole vehicle domain controller
CN112565041B (en) Hardware information configuration method, device and medium of FF field bus system
CN112260898B (en) Network card and depth packet detection device
CN114064452A (en) OTA test method, device, electronic equipment and storage medium
WO2021146877A1 (en) Parallel refreshing method and apparatus for vehicle controllers, computer device and storage medium

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