An OTA upgrade method, system, electronic device, and storage medium
By parsing vehicle packets to obtain a list of package names on the UCM master node and utilizing multi-threaded parallel transmission, the slow OTA upgrade speed in the AUTOSAR specification is solved, achieving a faster OTA upgrade speed.
Patent Information
- Application Number
- CN202311784626.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-12-21
AI Technical Summary
The slow OTA upgrade speed in the existing AUTOSAR specification is mainly due to the fact that all software packages of the slave nodes need to be forwarded through the UCM master node, which limits the upgrade speed.
After the UCM master node parses the vehicle packets to obtain the list of package names, it transmits the packages directly to the UCM slave nodes in parallel through multi-threading, reducing the complex forwarding process of the master node.
The software package transfer speed has been improved, the OTA upgrade process has been optimized, and the overall upgrade speed has been increased.
Smart Images

Figure CN117632196B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of automotive technology, and particularly relates to an OTA upgrade method, system, electronic device, and storage medium. Background Technology
[0002] In AUTOSAR (Automotive Open Systems Architecture), the UCM (Update and Configuration Management) is a component specifically responsible for OTA (Over-The-Air) updates. It consists of a UCM master node and UCM slave nodes. The master node orchestrates upgrade activities, while the slave nodes execute the upgrade operations. The OTA client calls the UCM master node to transmit the vehicle software package, which is then forwarded to the slave nodes via the master node. Although the AUTOSAR specification allows for parallel transmission of software packages, the fact that all slave nodes' packages must pass through the master node significantly limits the software upgrade speed, resulting in slow vehicle OTA upgrades. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide an OTA upgrade method, system, electronic device, and storage medium to solve the problem of slow OTA upgrade speed in existing systems.
[0004] In a first aspect of the present invention, an OTA upgrade method is provided, comprising:
[0005] The OTA node receives the cloud upgrade package and stores the upgrade package in a predetermined location. The upgrade package includes a vehicle package and a software package.
[0006] The API is called to send the vehicle package from the OTA node to the UCM master node. The UCM master node parses the vehicle package and reads the list of package names.
[0007] The OTA node calls the transmission start function, passing the storage path of the software package as the input parameter to the transmission start function;
[0008] The UCM master node reads the packages from the corresponding storage path based on the package name list and storage path, and sets up multi-threaded parallel transmission to transfer the packages from the UCM master node to the UCM slave node.
[0009] In a second aspect of the present invention, an OTA upgrade system is provided, comprising:
[0010] The OTA node processing module is used to receive cloud upgrade packages, store the upgrade packages in a predetermined location, call the API to send the vehicle package from the OTA node to the UCM master node, and call the transmission start function, taking the storage path of the software package as the input parameter of the transmission start function; wherein, the upgrade package includes a vehicle package and a software package;
[0011] The UCM master node processing module is used to receive and parse the vehicle package, read the package name list, read the package in the corresponding storage path according to the package name list and the storage path passed in the transmission start function, and set up multi-threaded parallel transmission of the package.
[0012] The UCM slave node processing module is used to receive and store software packages transmitted in a multi-threaded manner.
[0013] In a third aspect of the present invention, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor executes the computer program to implement the steps of the method as described in the first aspect of the present invention.
[0014] In a fourth aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method provided in the first aspect of the present invention.
[0015] In this embodiment of the invention, the UCM master node parses the vehicle package to obtain the package name list, and then directly passes the storage path of the package to the UCM master node. The UCM master node initiates multi-threaded data transmission to transmit the package to the UCM slave node, thereby effectively improving the transmission speed of the package to the UCM master node, reducing the complex forwarding process of the package, and thus improving the OTA upgrade speed. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a flowchart illustrating an OTA upgrade method according to an embodiment of the present invention;
[0018] Figure 2 This is a schematic diagram of the structure of an OTA upgrade system according to an embodiment of the present invention;
[0019] Figure 3 This is a schematic diagram of the structure of an electronic device provided in one embodiment of the present invention. Detailed Implementation
[0020] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0021] It should be understood that the terms "comprising" and other similar expressions in the specification, claims, and accompanying drawings of this invention are intended to cover a non-exclusive inclusion, such as a process, method, system, or apparatus that includes a series of steps or units and is not limited to the listed steps or units. Furthermore, "first" and "second" are used to distinguish different objects and are not intended to describe a specific order.
[0022] Please see Figure 1 The present invention provides a flowchart of an OTA upgrade method, comprising:
[0023] S101, the OTA node receives the cloud upgrade package and stores the upgrade package in a predetermined location. The upgrade package includes a vehicle package and a software package.
[0024] The OTA node is used to implement remote wireless upgrades and can be the vehicle's ECU. Upgrade packages downloaded from the cloud are stored on the OTA node, and the OTA node records the storage path.
[0025] The vehicle package is typically assembled by the OEM backend and contains a list of software packages extracted from the backend database. The vehicle package also includes information such as software dependencies, repositories, vehicle descriptions, activity orchestration, and UCM identifiers. The software package is an upgrade installation package installed on the vehicle side, and it includes executable files, data to be added or modified, configuration data, and package information. The package is generally processed and installed by the target UCM.
[0026] After the OTA node stores the upgrade package, it can provide the package storage address to the UCM (Update and Configuration Management) so that the UCM can access and read it from the node.
[0027] In this approach, the OTA node and the UCM master node are deployed in the same ECU.
[0028] S102. Call the API to send the vehicle package from the OTA node to the UCM master node. The UCM master node parses the vehicle package and reads the list of package names.
[0029] By calling the three APIs TransferVehiclePackage, TransferData, and TransferExit, vehicle packages can be transferred from the OTA node to the UCM master node. The UCM master node can parse the vehicle package to obtain a list of package names, and then perform the corresponding operations on the appropriate packages.
[0030] S103. The OTA node calls the transmission start function, taking the storage path of the software package as the input parameter of the transmission start function;
[0031] The OTA node calls the transmission start function to begin the package transmission. This function takes the package storage path as an input parameter so that the UCM master node can directly obtain the package storage path when starting the transmission operation.
[0032] S104. The UCM master node reads the software packages from the corresponding storage path according to the list of software package names and storage paths, and sets up multi-threaded parallel transmission to transfer the software packages from the UCM master node to the UCM slave node.
[0033] Based on the list of package names and package storage paths, the packages to be distributed can be directly read from the UCM master node. By creating multiple threads, the packages read from the UCM master node can be directly sent to the slave nodes.
[0034] Each thread transfers the software package from the UCM master node to the UCM slave node by calling the three interfaces: TransferStart, TransferData, and TransferExit.
[0035] In this embodiment, the OTA node directly passes the package storage address to the UCM master node. The master node then creates multiple threads to transmit the package to the UCM slave nodes, effectively improving package transmission efficiency, reducing the complex distribution process of the UCM master node, and thus accelerating the OTA upgrade speed. Since the OTA node and the UCM master node are deployed on the same device, the transmission process from the OTA node to the UCM master node can be optimized, allowing the UCM master node to directly read the package, thereby improving the overall upgrade speed.
[0036] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0037] Figure 2 This is a schematic diagram of an OTA upgrade system provided in an embodiment of the present invention. The system includes:
[0038] OTA node processing module 210 is used to receive cloud upgrade packages, store the upgrade packages in a predetermined location, call API to send the vehicle package from the OTA node to the UCM master node, and call the transmission start function, taking the storage path of the software package as the input parameter of the transmission start function; wherein, the upgrade package includes a vehicle package and a software package;
[0039] The process of receiving the cloud upgrade package and storing it in a predetermined location also includes:
[0040] Deploy the OTA node and the UCM master node in the same ECU.
[0041] The UCM master node processing module 220 is used to receive and parse the vehicle package, read the package name list, read the package in the corresponding storage path according to the package name list and the storage path passed in the transmission start function, and set up multi-threaded parallel transmission of the package.
[0042] UCM slave node processing module 230 is used to receive and store software packages transmitted in a multi-threaded manner.
[0043] Specifically, each thread transfers the software package from the UCM master node to the UCM slave node by calling the three interfaces: TransferStart, TransferData, and TransferExit.
[0044] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the systems and modules described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0045] Figure 3 This is a schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device is used for vehicle OTA (Over-The-Air) upgrades. Figure 3 As shown, the electronic device 3 of this embodiment includes: a memory 310, a processor 320, and a system bus 330. The memory 310 includes an executable program 3101 stored thereon. As those skilled in the art will understand, Figure 3 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0046] The following is combined Figure 3 A detailed introduction to each component of the electronic device:
[0047] The memory 310 can be used to store software programs and modules. The processor 320 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 310. The memory 310 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as cached data), etc. In addition, the memory 310 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0048] The memory 310 contains an executable program 3101 for network request methods. This executable program 3101 can be divided into one or more modules / units, which are stored in the memory 310 and executed by the processor 320 for purposes such as OTA upgrades. Each module / unit can be a series of computer program instruction segments capable of performing a specific function, describing the execution process of the computer program 3101 in the electronic device 3. For example, the computer program 3101 can be divided into functional modules such as an OTA node processing module, a UCM master node processing module, and a UCM slave node processing module.
[0049] The processor 320 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 310, and by calling data stored in the memory 310, it performs various functions and processes data, thereby monitoring the overall status of the electronic device. Optionally, the processor 320 may include one or more processing units; preferably, the processor 320 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, application programs, etc., and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor 320.
[0050] The system bus 330 is used to connect various functional components within the computer, transmitting data, address, and control information. Its type can be, for example, a PC I bus, an ISA bus, or a CAN bus. Instructions from the processor 320 are transmitted to the memory 310 via the bus, and the memory 310 sends data back to the processor 320. The system bus 330 is responsible for data and instruction exchange between the processor 320 and the memory 310. Of course, the system bus 330 can also connect to other devices, such as network interfaces and display devices.
[0051] In this embodiment of the invention, the executable program executed by the processor 320 included in the electronic device includes:
[0052] The OTA node receives the cloud upgrade package and stores the upgrade package in a predetermined location. The upgrade package includes a vehicle package and a software package.
[0053] The API is called to send the vehicle package from the OTA node to the UCM master node. The UCM master node parses the vehicle package and reads the list of package names.
[0054] The OTA node calls the transmission start function, passing the storage path of the software package as the input parameter to the transmission start function;
[0055] The UCM master node reads the packages from the corresponding storage path based on the package name list and storage path, and sets up multi-threaded parallel transmission to transfer the packages from the UCM master node to the UCM slave node.
[0056] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0057] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0058] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An OTA upgrade method, characterized by, include: The OTA node receives the cloud upgrade package and stores the upgrade package in a predetermined location. The upgrade package includes a vehicle package and at least one software package. The process includes, before the OTA node receives the cloud upgrade package and stores it in a predetermined location, the following steps: Deploy the OTA node and the UCM master node in the same ECU; The API is called to send the vehicle package from the OTA node to the UCM master node. The UCM master node parses the vehicle package to obtain a list of package names, which includes the name of at least one package. The OTA node calls the transmission start function provided by the UCM master node, taking the storage path of the software package as the input parameter of the transmission start function; The UCM master node reads the corresponding software package from the corresponding storage path based on the correspondence between each software package name and storage path, and sets up multi-threaded parallel transmission to transfer the software package from the UCM master node to the UCM slave node.
2. The method of claim 1, wherein, The configuration of multi-threaded parallel transmission, transferring the software package from the UCM master node to the UCM slave node, includes: Each thread transfers the software package from the UCM master node to the UCM slave node by calling the three interfaces: TransferStart, TransferData, and TransferExit.
3. An OTA upgrade system characterized by, include: The OTA node processing module is used to receive cloud upgrade packages, store the upgrade packages in a predetermined location, call the API to send the vehicle package from the OTA node to the UCM master node, and call the transmission start function provided by the UCM master node, taking the storage path of the software package as the input parameter of the transmission start function; wherein, the upgrade package includes a vehicle package and at least one software package; The OTA node and the UCM master node are deployed in the same ECU; The UCM master node processing module is used to receive and parse the vehicle package to obtain a list of package names, which includes the name of at least one package. Based on the correspondence between each package name and the storage path, the module reads the corresponding package from the corresponding storage path and sets up multi-threaded parallel transmission of the package. The UCM slave node processing module is used to receive and store software packages transmitted via multi-threading.
4. The system of claim 3, wherein, The multi-threaded parallel transmission software package includes: Each thread transfers the software package from the UCM master node to the UCM slave node by calling the three interfaces: TransferStart, TransferData, and TransferExit.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of an OTA upgrade method as described in any one of claims 1 to 2.
6. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 5. When the computer program is executed, it implements the steps of an OTA upgrade method as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Data transmission system, data transmission method, intelligent vehicle and device
CN112673609A
Diagnostic flashing system, method and device in automobile OTA upgrading process and medium
CN116866172A
