An OTA upgrade method, storage medium, cloud and vehicle-side upgrade system

By layering and positioning the firmware library, it is possible to upgrade only in the App partition in OTA upgrade, solving the problems of low efficiency and high cost of OTA upgrade in the existing technology, and improving the upgrade efficiency and system stability.

CN114741109BActive Publication Date: 2024-11-15AUTOCHIPS WUHAN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210437119.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-20
Publication Date
2024-11-15
Estimated Expiration
2042-04-20

AI Technical Summary

Technical Problem

The existing OTA upgrade technology has problems that affect system functions, are difficult to maintain and are costly, making it difficult to achieve efficient and rapid OTA upgrades.

Method used

By layering the firmware library, the parameter transfer layer and the parameterless function layer are determined, and they are positioned to the App partition and Lib partition of the OTA architecture respectively during compilation. The parameter transfer layer is used to achieve the upgrade of the changing program and avoid all partitions Program upgrade shortens OTA upgrade time.

Benefits of technology

It effectively shortens the OTA upgrade time, improves the upgrade efficiency, reduces the impact on system functions and maintenance difficulty, and reduces the cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114741109B_ABST
    Figure CN114741109B_ABST
Patent Text Reader

Abstract

The present invention relates to an OTA upgrade method, storage medium, cloud and vehicle-side upgrade system, including: obtaining a firmware library; layering the firmware library to determine a parameter transfer layer for implementing a change program and a parameter-free function layer for implementing a fixed program; during compilation, locating the parameter transfer layer and the parameter-free function layer to the App partition and the Lib partition of the OTA architecture respectively; running the change program generated after compilation in the App partition to achieve the upgrade. The present invention utilizes layering technology to locate the change program and the fixed program in different partitions of the OTA architecture, so that during the upgrade, the upgrade and update of different partitions can be completed for the change program and the fixed program, thereby effectively shortening the OTA upgrade time and increasing the upgrade efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of OTA technology, and in particular to an OTA upgrade method, storage medium, cloud and vehicle-side upgrade system. Background Art

[0002] OTA (Over the Air) technology connects to the terminal through the server and mobile communication network to push data updates in the terminal. Simply put, it is like sending a courier, "flash delivery" of optimized functions to every car in the world. Among them, the upgrade of functions such as APP, in-vehicle map, human-computer interaction interface, and the update of device firmware all fall within the scope of OTA technology. OTA technology was widely used in the mobile phone industry in the early days, ending the complicated operation of connecting to a computer, downloading software, and then installing updates for mobile phone software upgrades. In recent years, with the continuous development of automotive networking technology, automotive OTA has also become a hot word in the industry.

[0003] The automotive industry is working hard to reduce the time for OTA technology upgrades and improve the efficiency of updates. In the existing technology, the compilation optimization level is improved by deleting non-essential functions of the car, thereby reducing the size of the generated program and achieving the rapidity of OTA upgrades. However, the deleted functions are not completely unnecessary, and direct deletion will more or less have a certain impact on the entire system function; there are also methods that solidify the firmware library into the ROM area of ​​the chip to perform OTA upgrades in a fixed area, but once there is a problem with the firmware library, the impact is very wide and the losses caused are huge; some other solutions use large-capacity FLASH chips to burn all possible car models into the program, and later only need to change the configuration to select different functions, but the cost of large-capacity FLASH chips is very huge, resulting in a weakening of product market competitiveness.

[0004] In summary, the existing OTA upgrade technology has many disadvantages, such as affecting system functions, difficult maintenance and high cost. Therefore, how to perform efficient and fast OTA upgrade is an urgent problem to be solved. Summary of the invention

[0005] In view of this, it is necessary to provide an OTA upgrade method, storage medium, cloud and vehicle-side upgrade system to overcome the problem that the existing technology cannot complete OTA upgrades efficiently and quickly.

[0006] In order to solve the above technical problems, the present invention provides an OTA upgrade method, comprising:

[0007] Get the firmware library;

[0008] The firmware library is layered to determine a parameter transfer layer for implementing a variable program and a parameter-free function layer for implementing a fixed program;

[0009] During compilation, the parameter transfer layer and the parameter-free function layer are located in the App partition and the Lib partition of the OTA architecture respectively;

[0010] The compiled changed program is run in the App partition to implement the upgrade.

[0011] Further, the firmware library includes a general function library for realizing general functions and a positioning algorithm library for realizing application functions; the firmware library is layered to determine a parameter transfer layer for realizing a variable program and a parameter-free function layer for realizing a fixed program, including:

[0012] The general function library is layered to determine a first parameter transfer layer and a first parameter-free function layer;

[0013] The positioning algorithm library is layered to determine a second parameter transfer layer and a second parameter-free function layer.

[0014] Furthermore, during the compiling process, the parameter transfer layer and the parameter-free function layer are located in the Lib partition and the App partition of the OTA architecture respectively, including:

[0015] During compilation, the first parameter passing layer and the second parameter passing layer are positioned to the App partition, and the first parameterless function layer and the second parameterless function layer are positioned to the Lib partition.

[0016] Furthermore, during OTA upgrade, the first parameter delivery layer and the second parameter delivery layer provide parameter delivery functions, and are connected with upper-layer functional logic to implement OTA upgrade of the program of the App partition.

[0017] Furthermore, during OTA upgrade, the program of the Lib partition does not need to be upgraded OTA, and the first parameter-free function layer and the second parameter-free function layer receive the parameters passed by the parameter passing layer through global variables with fixed addresses.

[0018] Furthermore, the OTA upgrade method further includes:

[0019] Get the version number of the firmware library;

[0020] According to the version number, it is determined whether to upgrade the programs of each partition of the firmware library to complete the maintenance of the firmware library.

[0021] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the OTA upgrade method as described above is implemented.

[0022] The present invention also provides a cloud upgrade system, including a cloud server, wherein the cloud server is used to send a firmware library to the vehicle-side upgrade system upon receiving an upgrade request from the vehicle-side upgrade system, wherein in the vehicle-side upgrade system, the processor in the on-board chip obtains the firmware library from the cloud server and implements the OTA upgrade method as described above.

[0023] The present invention also provides a vehicle-side upgrade system, including a vehicle-mounted chip, wherein a processor in the vehicle-mounted chip is used to obtain a firmware library from a cloud server and implement the OTA upgrade method as described above.

[0024] Compared with the prior art, the beneficial effects of the present invention include: first, the firmware library is effectively acquired; then, the firmware library is layered by using layering technology, which is divided into a parameter transfer layer and a parameterless function layer, and the variable program is implemented through the parameter transfer layer, and the fixed program of the system is implemented through the parameterless function layer; then, when compiling, the parameter transfer layer and the parameterless function layer are respectively located to the App partition and the Lib partition, so as to run the corresponding programs in different partitions respectively; finally, the variable program and the fixed program generated after compilation are located to different partitions, so that during the upgrade process, the variable program of the parameter transfer layer is used to implement the upgrade only in a certain partition, without the need to upgrade all partition programs, which greatly shortens the OTA upgrade time. In summary, the present invention uses layering technology to locate the variable program and the fixed program in different partitions of the OTA architecture, so that when upgrading, the upgrade and update of different partitions can be completed for the variable program and the fixed program, thereby effectively shortening the OTA upgrade time and increasing the upgrade efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A flow chart of an embodiment of an OTA upgrade method provided by the present invention;

[0026] Figure 2 A flow chart of an embodiment of an OTA maintenance method provided by the present invention;

[0027] Figure 3 The present invention provides Figure 2 A flow chart of an embodiment of step S202;

[0028] Figure 4 A schematic diagram of positioning different partitions according to an embodiment of the present invention;

[0029] Figure 5 A schematic diagram of the structure of an OTA upgrade device according to an embodiment of the present invention;

[0030] Figure 6 A schematic diagram of the structure of an embodiment of an OTA maintenance device provided by the present invention;

[0031] Figure 7 A schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0033] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0034] In the description of the present invention, reference to an "embodiment" means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the described embodiments may be combined with other embodiments.

[0035] The present invention provides an OTA upgrade method, a storage medium, a cloud-end and a vehicle-end upgrade system. Based on the layered technology, the firmware library is divided into multiple layers and located in different partitions. The upgrade processing of different partitions is realized during the upgrade, which provides a new idea for further improving the speed of OTA upgrade.

[0036] Before describing the embodiments, the following definitions are given for the relevant terms:

[0037] OTA upgrade: Connect to the terminal through the server and mobile communication network to push data updates in the terminal. Remotely upgrading the car through OTA technology can not only continuously improve the terminal functions and services for the vehicle, allowing car owners to have a more convenient and smarter car experience, but also can be used to quickly fix vulnerabilities and help implement car recalls. It is gradually becoming an important measure for companies to solve software and hardware system problems;

[0038] Tire pressure monitoring system (TPMS) is a technology that automatically monitors tire pressure in real time while the car is driving and issues an alarm for tire leakage and low pressure to ensure driving safety.

[0039] Firmware library: also known as Lib library, is a library file in the operating system, which plays the role of linking programs and functions (or sub-processes). It can be used only after compilation. Compilation can be divided into static and dynamic.

[0040] FLASH flash memory: It is a type of memory device that can retain data for a long time even without current supply. Its storage characteristics are equivalent to those of a hard disk. This characteristic is the basis for flash memory to become the storage medium for various portable digital devices.

[0041] Based on the description of the above technical terms, the existing OTA upgrade technology has the problem of low upgrade efficiency. Specifically, in the tire pressure monitoring system, the tire pressure monitoring transmitter is required to have OTA function, which can be pre-installed or post-installed. However, during the pressure monitoring process, OTA upgrade may lead to high cost, incomplete functions, and difficult maintenance. Therefore, the present invention aims to propose a method for effectively improving the efficiency of OTA function upgrades.

[0042] The specific embodiments are described in detail below:

[0043] The embodiment of the present invention provides an OTA upgrade method, combining Figure 1 Come and see, Figure 1 The flowchart of an embodiment of the OTA upgrade method provided by the present invention includes steps S101 to S103, wherein:

[0044] In step S101, a firmware library is obtained;

[0045] In step S102, the firmware library is layered to determine a parameter transfer layer for implementing a variable program and a parameter-free function layer for implementing a fixed program;

[0046] In step S103, during compilation, the parameter transfer layer and the parameterless function layer are located in the App partition and the Lib partition of the OTA architecture respectively;

[0047] In step S104, the compiled changed program is run in the App partition to implement the upgrade.

[0048] In an embodiment of the present invention, first, the firmware library is effectively acquired; then, the firmware library is layered by utilizing the layering technology, and is divided into a parameter transfer layer and a parameter-free function layer, the changing program is implemented through the parameter transfer layer, and the fixed program of the system is implemented through the parameter-free function layer; further, when compiling, the parameter transfer layer and the parameter-free function layer are located to the App partition and the Lib partition, respectively, so as to run the corresponding programs in different partitions respectively; finally, the changing program and the fixed program generated after compilation are located to different partitions, so that during the upgrade process, the changing program of the parameter transfer layer can be used to implement the upgrade only in a certain partition, without the need to upgrade all partition programs, thereby greatly shortening the OTA upgrade time.

[0049] It should be further explained that the present invention divides the firmware library into two layers: a parameter transfer layer (also called LibStub) and a parameterless function layer (also called LibCode) through layered technology. The parameter transfer layer carries parameters and interfaces with the upper functional logic. The parameterless function layer is based on parameterless functions and receives the parameters of the parameter transfer layer through global variables with fixed addresses to complete the specific functions of the system. The above-mentioned layered technology achieves two effects: on the one hand, the parameter transfer layer carries parameters and can be very friendly for upper logical application calls. On the other hand, the parameterless function layer does not need to be upgraded during the OTA upgrade process, which effectively shortens the OTA upgrade time.

[0050] Among them, the different partitions of the above OTA architecture include Boot partition, Lib partition and App partition. The overall architecture for implementing OTA is divided into three parts: Boot, Lib and App. Each part corresponds to a FLASH partition (see the previous description for detailed explanation), and the FLASH partition of each part is called Boot partition, Lib partition and App partition respectively.

[0051] As a preferred embodiment, the firmware library includes a general function library for realizing general functions and a positioning algorithm library for realizing application functions, the parameter transfer layer includes a first parameter transfer layer and a second parameter transfer layer, and the parameterless function layer includes a first parameterless function layer and a second parameterless function layer;

[0052] The above step S102 specifically includes:

[0053] The general function library is layered to determine the first parameter transfer layer and the first parameter-free function layer;

[0054] The positioning algorithm library is layered to determine the second parameter transfer layer and the second parameter-free function layer.

[0055] In the embodiment of the present invention, the general function library and the positioning algorithm library are layered to determine the corresponding upgradeable parts and non-upgradeable parts, so as to facilitate subsequent positioning of different partitions.

[0056] It should be further explained that the firmware library includes the common function library (also called Common_Lib) and the positioning algorithm library (also called Aps_Lib). The positioning algorithm library is separated to facilitate maintenance and upgrades, to achieve certain specific functions, and to generate variable programs after compilation. This part needs to be upgraded; the common function library is a peripheral and system basic function library that can achieve the common basic functions of the entire system. After compilation, it generates fixed programs, and this part does not need to be upgraded.

[0057] As a preferred embodiment, different partitions include a Lib partition and an App partition. The above step S103 specifically includes: during compilation, locating the first parameter passing layer and the second parameter passing layer to the App partition, and locating the first parameterless function layer and the second parameterless function layer to the Lib partition.

[0058] In an embodiment of the present invention, during compilation, the first parameter passing layer and the second parameter passing layer for generating the variable program are located in the App partition, and the first parameterless function layer and the second parameterless function layer for generating the fixed program are located in the Lib partition, thereby ensuring that the Lib partition does not need to be updated during the upgrade process, saving OTA upgrade time.

[0059] As a preferred embodiment, during OTA upgrade, the first parameter transfer layer and the second parameter transfer layer provide parameter transfer functions, connect with the upper layer function logic, and implement OTA upgrade of the program of the App partition.

[0060] As a preferred embodiment, during OTA upgrade, the program in the Lib partition does not need to be upgraded OTA, and the first parameter-free function layer and the second parameter-free function layer receive the parameters passed by the parameter passing layer through global variables with fixed addresses to implement specific system functions.

[0061] In an embodiment of the present invention, during OTA upgrade, the first parameter-free function layer and the second parameter-free function layer do not participate in the upgrade, saving upgrade time, and receive the parameters transmitted by the parameter transmission layer to effectively implement the specific functions of the system.

[0062] It needs to be further explained that if only the App partition program is upgraded during the OTA upgrade process, it is necessary to ensure that the Lib partition program compiled by all projects must be the same. To ensure that the Lib partition program is the same, it is necessary to ensure that the Lib partition program cannot have local variables and parameters. Therefore, the general function library and the positioning algorithm library need to be layered, which are divided into a parameter passing layer (also called LibStub) and a parameterless function layer (also called LibCode). The parameter passing layer has the parameter passing function and connects to the upper-level application and functional logic. The parameterless function layer completes specific functions and is a parameterless function. It receives the parameter passing of the parameter passing layer through global variables with fixed addresses to achieve specific functions.

[0063] As a preferred embodiment, the firmware library also includes a basic function library, and the above method further includes: during compilation, locating the basic function library to the Lib partition.

[0064] In the embodiment of the present invention, the basic function library is actively imported into the Lib partition, and the Lib partition does not need to be upgraded. Therefore, the basic function library does not need to be upgraded during the OTA upgrade, which can further shorten the OTA upgrade time.

[0065] It should be further explained that the firmware library also includes a basic function library (also known as C51_Lib), and the basic function library is preferably a 51 core basic operation library. Among them, due to the 51 core and low-cost characteristics, basically all 51 core microcontrollers have small RAM space, so the RAM space allocated to the stack is also very small, usually just a few dozen bytes (32 bytes or 48 bytes). Therefore, when compiling, Keil C51 IDE uses a technology called overlay: even for local variables or parameters, their space will not be allocated in the stack, but based on the overlay technology, a call tree (CallTree), that is, the call relationship between functions, is generated, and then a RAM address is allocated for each local variable or parameter based on the call relationship between functions. The RAM address is an absolute address, but the RAM address allocated after different projects are compiled may be different. Among them, the basic function library actively imports various C51 operation libraries. The C51 operation library is a parameterless function, so it can also be actively imported and located in the corresponding Lib partition.

[0066] The technical solution of the present invention is more clearly described below with a specific embodiment. Figure 2 Come and see, Figure 2 The positioning schematic diagram of an embodiment of positioning different partitions provided by the present invention is applied to a tire pressure monitoring system, wherein the tire pressure monitoring transmitter has an OTA function. In the case of OTA upgrade, the specific upgrade process includes:

[0067] The different partitions of the overall OTA architecture include Boot partition, Lib partition and App partition;

[0068] The firmware library is divided into three parts, including the common function library (also called Common_Lib), the positioning algorithm library (also called Aps_Lib) and the basic function library (also called C51_Lib). Through the layering technology, the common function library is divided into the first parameter transfer layer (also called CommonLibStub) and the first parameter-free function layer (also called CommonLibCode), and the positioning algorithm library is divided into the second parameter transfer layer (also called ApsLibStub) and the second parameter-free function layer (also called ApsLibCode);

[0069] During compilation, the first parameterless function layer, the second parameterless function layer, and the basic function library are all located in the Lib partition, and the first parameter transfer layer and the second parameter transfer layer are all located in the App partition. In this way, the unchanged programs are located in the Lib partition (and the programs in the Lib partition will not vary with different engineering applications), and the changed programs are located in the App partition. During OTA upgrade, only the App partition needs to be upgraded, and there is no need to upgrade the Lib partition program, which greatly shortens the OTA upgrade time.

[0070] As a preferred embodiment, Figure 3 Come and see, Figure 3 The flowchart of an embodiment of the OTA maintenance method provided by the present invention includes steps S301 to S302, wherein:

[0071] In step S301, the version number of the firmware library is obtained;

[0072] In step S302, according to the version number, it is determined whether to upgrade the programs of different partitions to complete the maintenance of the firmware library;

[0073] The positioning of the firmware library in different partitions is determined according to the OTA upgrade method described above.

[0074] In the embodiment of the present invention, when there is a bug in the program of the Lib partition, it can be determined by judging the version number that all programs of different partitions need to be upgraded, thereby accurately determining the situation that requires maintenance and performing effective maintenance on the firmware library.

[0075] As a preferred embodiment, Figure 4 Come and see, Figure 4 The present invention provides Figure 3 The flowchart of an embodiment of step S302 in the embodiment includes steps S401 to S402, wherein:

[0076] In step S401, it is determined whether the version number of the general function library and / or the version number of the positioning algorithm library meets a preset condition;

[0077] In step S402, if the conditions are met, the programs in the Lib partition and the App partition are upgraded to complete the maintenance of the firmware library.

[0078] In the embodiment of the present invention, effective judgment is made through the version number of the general function library and the version number of the positioning algorithm library. As long as one of the version numbers is different from the version number to be upgraded, all the programs in the Lib partition and the App partition are upgraded to complete the maintenance of the firmware library.

[0079] As a preferred embodiment, the above-mentioned preset condition includes: the version number of the general function library and / or the version number of the positioning algorithm library is different from the preset version number to be upgraded.

[0080] In the embodiment of the present invention, by setting appropriate preset conditions, the situation where the version numbers are different is determined. When the version numbers are different, it means that both need to be updated in order to effectively perform the upgrade.

[0081] The technical solution of the present invention is more clearly described below with a specific embodiment. Figure 2 From the above, the firmware library maintenance process includes:

[0082] During OTA upgrade, first determine the version numbers of the general function library and positioning algorithm library in the firmware library. As long as one of the version numbers is different from the version number to be upgraded, all programs in the Lib partition and App partition are upgraded to complete the maintenance of the firmware library.

[0083] It should be further explained that the firmware library is compiled and burned into the chip following the customer project. If there is a bug in the firmware library, the versions of the general function library and the positioning algorithm library in the firmware library can be compared to determine whether they need to be upgraded, thereby completing sustainable maintenance of the firmware library.

[0084] The embodiment of the present invention also provides an OTA upgrade device, combined with Figure 5 Come and see, Figure 5 This is a structural diagram of an embodiment of an OTA upgrade device provided by the present invention. The OTA upgrade device 500 includes:

[0085] A first acquisition unit 501 is used to acquire a firmware library;

[0086] The first processing unit 502 is used to layer the firmware library, determine the parameter transfer layer for implementing the variable program and the parameter-free function layer for implementing the fixed program; and is also used to locate the parameter transfer layer and the parameter-free function layer to the App partition and the Lib partition of the OTA architecture respectively during compilation;

[0087] The upgrading unit 503 is used to run the changed program generated after compilation in the App partition to achieve upgrading.

[0088] The more specific implementation methods of each unit of the OTA upgrade device can be found in the description of the above-mentioned OTA upgrade method, and have similar beneficial effects, which will not be repeated here.

[0089] The embodiment of the present invention also provides an OTA maintenance device, combined with Figure 6 Come and see, Figure 6 This is a schematic diagram of the structure of an embodiment of an OTA maintenance device provided by the present invention. The OTA maintenance device 600 includes:

[0090] The second acquisition unit 601 is used to acquire the version number of the firmware library;

[0091] The second processing unit 602 is used to determine whether to upgrade the programs of different partitions according to the version number, and complete the maintenance of the firmware library;

[0092] The positioning of the firmware library in different partitions is determined according to the OTA upgrade method described above.

[0093] The more specific implementation of each unit of the OTA maintenance device can refer to the description of the above-mentioned OTA maintenance method, and has similar beneficial effects, which will not be repeated here.

[0094] An embodiment of the present invention also provides a cloud upgrade system, including a cloud server, wherein the cloud server is used to send a firmware library to the vehicle-side upgrade system upon receiving an upgrade request from the vehicle-side upgrade system, wherein in the vehicle-side upgrade system, the processor of the on-board chip obtains the firmware library from the cloud server and implements the OTA upgrade method as described above.

[0095] An embodiment of the present invention also provides a vehicle-side upgrade system, including a vehicle-mounted chip, wherein a processor in the vehicle-mounted chip obtains a firmware library from a cloud server and implements the OTA upgrade method as described above.

[0096] An embodiment of the present invention also provides an upgrade system, including a cloud upgrade system and a vehicle-side upgrade system. The vehicle-side upgrade system includes an on-board chip. The processor in the on-board chip obtains a firmware library from the cloud server, and the processor implements the OTA upgrade method as described above.

[0097] The more specific implementation methods of the cloud upgrade system, the vehicle-side upgrade system, and each unit of the upgrade system can be found in the description of the above-mentioned OTA maintenance method, and have similar beneficial effects, so they will not be repeated here.

[0098] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the OTA upgrade method as described above is implemented.

[0099] Generally speaking, the computer instructions for implementing the method of the present invention can be carried by any combination of one or more computer-readable storage media. Non-transitory computer-readable storage media can include any computer-readable media except for the signal itself that is temporarily propagating.

[0100] Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device.

[0101] Computer program code for performing the operation of the present invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages, in particular, Python language suitable for neural network computing and platform frameworks based on TensorFlow, PyTorch, etc. can be used. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0102] The embodiment of the present invention further provides an electronic device, Figure 7 Come and see, Figure 7 This is a structural diagram of an electronic device according to an embodiment of the present invention. The electronic device 700 includes a processor 701, a memory 702, and a computer program stored in the memory 702 and executable on the processor 701. When the processor 701 executes the program, the OTA upgrade method described above and / or the OTA maintenance method described above are implemented.

[0103] As a preferred embodiment, the electronic device 700 further includes a display 703 for displaying the data processing result after the processor 701 executes the OTA upgrade method.

[0104] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 702, and executed by the processor 701 to complete the present invention. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device 700. For example, the computer program may be divided into the first acquisition unit 501, the first processing unit 502, and the partition unit 503 in the above-mentioned embodiment, and / or the second acquisition unit 601 and the second processing unit 602 in the above-mentioned embodiment. The specific functions of each unit are as described in the above-mentioned embodiment, and are not described one by one here.

[0105] The electronic device 700 may be a desktop computer, a notebook, a PDA or a smart phone with an adjustable camera module.

[0106] Among them, the processor 701 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor 701 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0107] The memory 702 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 702 is used to store programs, and the processor 701 executes the program after receiving an execution instruction. The process definition method disclosed in any of the embodiments of the present invention may be applied to the processor 701 or implemented by the processor 701.

[0108] The display 703 may be an LCD display screen or an LED display screen, for example, a display screen on a mobile phone.

[0109] Understandably, Figure 7 The structure shown is only a schematic diagram of the structure of the electronic device 700. The electronic device 700 may also include Figure 7 More or fewer components as shown. Figure 7 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0110] The computer-readable storage medium and electronic device provided according to the above embodiments of the present invention can be implemented with reference to the specific description of the OTA upgrade method as described above and / or the OTA maintenance method as described above according to the present invention, and have similar beneficial effects as the OTA upgrade method as described above and / or the OTA maintenance method as described above, which will not be repeated here.

[0111] The present invention discloses an OTA upgrade method, a storage medium, a cloud-end and a vehicle-end upgrade system. Firstly, a firmware library is effectively acquired; then, the firmware library is layered by using a layering technology to be divided into a parameter transfer layer and a parameterless function layer, a variable program is implemented by the parameter transfer layer, and a fixed program of the system is implemented by the parameterless function layer; further, when compiling, the parameter transfer layer and the parameterless function layer are respectively located to an App partition and a Lib partition, so as to respectively run corresponding programs in different partitions; finally, the variable program and the fixed program generated after compilation are located to different partitions, so that during the upgrade process, the variable program of the parameter transfer layer is used to implement the upgrade only in a certain partition, without upgrading all partition programs, thereby greatly shortening the OTA upgrade time.

[0112] The technical solution of the present invention utilizes layering technology to locate changing programs and fixed programs in different partitions of the OTA architecture, so that during the upgrade, the upgrade and update of different partitions can be completed for the changing programs and fixed programs, thereby effectively shortening the OTA upgrade time and increasing the upgrade efficiency.

[0113] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. An OTA upgrade method, characterized in that: include: Get the firmware library; The firmware library is layered to determine a parameter transfer layer for implementing a variable program and a parameter-free function layer for implementing a fixed program. The parameter transfer layer provides a parameter transfer function and interfaces with the upper-layer function logic to implement OTA upgrades of programs in App partitions. The parameter-free function layer receives parameters transferred by the parameter transfer layer through global variables at fixed addresses. During compilation, the parameter transfer layer and the parameter-free function layer are located in the App partition and the Lib partition of the OTA architecture respectively; The compiled changed program is run in the App partition to achieve the upgrade; The firmware library includes a general function library for realizing general functions and a positioning algorithm library for realizing application functions; The firmware library is layered to determine a parameter transfer layer for implementing a variable program and a parameter-free function layer for implementing a fixed program, including: The general function library is layered to determine a first parameter transfer layer and a first parameter-free function layer; The positioning algorithm library is layered to determine a second parameter transfer layer and a second parameter-free function layer; During compilation, the parameter transfer layer and the parameterless function layer are located in the Lib partition and the App partition of the OTA architecture respectively, including: During compilation, the first parameter passing layer and the second parameter passing layer are positioned in the Lib partition, and the first parameterless function layer and the second parameterless function layer are positioned in the App partition.

2. The OTA upgrade method according to claim 1, characterized in that: During OTA upgrade, the first parameter delivery layer and the second parameter delivery layer provide parameter delivery functions, and are connected with the upper-layer functional logic to implement OTA upgrade of the program of the App partition.

3. The OTA upgrade method according to claim 1, characterized in that: During OTA upgrade, the program of the Lib partition does not need to be upgraded OTA, and the first parameter-free function layer and the second parameter-free function layer receive the parameters passed by the parameter passing layer through global variables with fixed addresses.

4. The OTA upgrade method according to claim 1, characterized in that: The firmware library also includes a basic function library; the method also includes: during compilation, locating the basic function library to the Lib partition.

5. The OTA upgrade method according to claim 1, characterized in that: The OTA upgrade method further includes: Get the version number of the firmware library; According to the version number, it is determined whether to upgrade the programs of each partition of the firmware library to complete the maintenance of the firmware library.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the OTA upgrade method according to any one of claims 1 to 5 is implemented.

7. A cloud upgrade system, comprising a cloud server, characterized in that: The cloud server is used to send a firmware library to the vehicle-side upgrade system upon receiving an upgrade request from the vehicle-side upgrade system, wherein in the vehicle-side upgrade system, the processor of the on-board chip obtains the firmware library from the cloud server and implements the OTA upgrade method according to any one of claims 1 to 5.

8. A vehicle-side upgrade system, comprising a vehicle-mounted chip, characterized in that: The processor of the vehicle-mounted chip is used to obtain a firmware library from a cloud server and implement the OTA upgrade method according to any one of claims 1 to 5.