OTA upgrading method and system and vehicle
By obtaining the current version information of each module on the on-board terminal and downloading the upgrade package from the cloud for independent upgrade, the problem of cumbersome and unstable upgrade process in the existing technology is solved, and the stability and security of the upgrade are improved.
Patent Information
- Application Number
- CN202510036307.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-04-18
AI Technical Summary
The existing OTA upgrade technology is difficult to finely manage and upgrade the complex configuration information and data in the vehicle-mounted system, resulting in cumbersome upgrade process and system instability and security risks.
The current version information of each module is obtained through the on-board terminal, and based on this information, download and apply the corresponding upgrade package from the cloud server to independently upgrade each module.
The independent upgrade of each module of the vehicle system has been achieved, the stability and security of system upgrades have been improved, and the instability caused by the overall system upgrade has been avoided.
Smart Images

Figure CN119854777A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of OTA upgrade technology, and in particular to an OTA upgrade method, system and vehicle. Background Art
[0002] In the field of smart cars, OTA (Over the Air) upgrade technology has become an important means to improve vehicle functions and performance. Through OTA upgrades, not only can applications such as navigation systems and entertainment systems be updated, but also core functions such as vehicle power systems and driver assistance systems can be optimized. There are complex associations and compatibility relationships between the complex and diverse configuration information and data in the vehicle system. At present, the update of this part of the configuration information and data often depends on the overall upgrade of the vehicle system, which has certain limitations.
[0003] Specifically, the configuration information and data in these systems are huge and complex in structure, and traditional OTA upgrade methods make it difficult to manage them in a refined manner and upgrade them individually. This not only makes the upgrade process cumbersome, but may also cause system instability and security risks.
[0004] Therefore, a new OTA upgrade method is urgently needed. Summary of the invention
[0005] In view of the above problems, the embodiments of the present application provide an OTA upgrade method, system and vehicle to overcome the above problems or at least partially solve the above problems.
[0006] In a first aspect of an embodiment of the present application, an OTA upgrade method is provided, which is applied to a vehicle-mounted terminal, wherein the vehicle-mounted terminal is composed of multiple modules, wherein each module includes independent configuration information, and the method includes: After the vehicle is powered on, the vehicle terminal obtains the current version information of each module respectively; The vehicle terminal uploads the current version information of each module to the cloud server respectively, so as to download the upgrade package corresponding to each module from the cloud server; The vehicle-mounted terminal upgrades the versions of the modules respectively according to the downloaded upgrade packages corresponding to the modules.
[0007] Optionally, the vehicle-mounted terminal uploads the current version information of each module to a cloud server respectively, so as to download the upgrade package corresponding to each module from the cloud server, including: The vehicle terminal generates detection update requests corresponding to each module based on the current version information of each module, wherein the detection update request corresponding to each module includes the current version information of the module; The vehicle-mounted terminal sends the generated detection update requests corresponding to each of the modules to the cloud server, so as to download the upgrade packages corresponding to each of the modules from the cloud server.
[0008] Optionally, the vehicle terminal sends the generated detection update requests corresponding to each module to the cloud server to download the upgrade packages corresponding to each module from the cloud server, including: The vehicle terminal sends the detection and update requests corresponding to the modules to the cloud server, so that the cloud server parses the current version information of the modules according to the detection and update requests corresponding to the modules, and generates the differential upgrade packages corresponding to the modules according to the parsed current version information of the modules and the latest version information of the modules; The vehicle-mounted terminal downloads the differential upgrade packages corresponding to the modules from the cloud server, and uses the downloaded differential upgrade packages corresponding to the modules as the upgrade packages corresponding to the modules.
[0009] Optionally, before the vehicle-mounted terminal downloads the upgrade packages corresponding to the modules from the cloud server, the method further includes: The vehicle terminal receives the upgrade tasks corresponding to each module sent by the cloud server; The vehicle terminal generates local upgrade tasks corresponding to the modules respectively in response to the received upgrade tasks corresponding to the modules.
[0010] Optionally, before the vehicle-mounted terminal respectively obtains the current version information corresponding to each of the modules, the method further includes: The vehicle-mounted terminal obtains the current configuration files corresponding to the modules respectively; The vehicle terminal uploads the current configuration files corresponding to the modules to the cloud server, so as to download the latest configuration files corresponding to the modules from the cloud server; The vehicle terminal updates the current configuration files corresponding to the modules respectively according to the downloaded latest configuration files corresponding to the modules; After the vehicle is powered on, the vehicle terminal obtains the current version information of each module respectively, including: After the vehicle is powered on, the vehicle-mounted terminal obtains the current version information of each module respectively according to the updated configuration files corresponding to each module respectively.
[0011] Optionally, the vehicle-mounted terminal obtains the current configuration files corresponding to the modules respectively, including: The vehicle-mounted terminal initializes each module and generates status information corresponding to each module; According to the status information corresponding to each module, the current configuration files corresponding to each module are determined.
[0012] In a second aspect of the embodiment of the present application, an OTA upgrade method is provided, which is applied to a cloud server, and the method includes: The cloud server receives the current version information of each module uploaded by the vehicle terminal; The cloud server generates an upgrade package corresponding to each module according to the received current version information of each module.
[0013] Optionally, the cloud server generates an upgrade package corresponding to each module according to the received current version information of each module, including: The cloud server determines the pre-stored latest version information of each module according to the received current version information of each module; The cloud server determines the content to be upgraded corresponding to each module according to the current version information of each module and the latest version information of each module; The cloud server generates an upgrade package corresponding to each module based on the content to be upgraded corresponding to each module.
[0014] Optionally, the method further comprises: The cloud server receives the current configuration files corresponding to each module uploaded by the vehicle terminal; The cloud server determines the pre-stored latest configuration files corresponding to each of the modules according to the received current configuration files corresponding to each of the modules.
[0015] In a third aspect of the embodiment of the present application, an OTA upgrade system is provided, which is applied to a vehicle-mounted terminal, and the system includes: An acquisition module, used to respectively acquire the current version information of each module after the vehicle is powered on; A download module, used to upload the current version information of each module to the cloud server, so as to download the upgrade package corresponding to each module from the cloud server; The upgrade module is used to upgrade the versions of the modules respectively according to the downloaded upgrade packages corresponding to the modules.
[0016] Optionally, the vehicle terminal uploads the current version information of each module to the cloud server respectively, so as to download the upgrade package corresponding to each module from the cloud server, and the download module includes: A first generating submodule, configured to generate detection update requests corresponding to each module based on the current version information of each module, wherein the detection update request corresponding to each module includes the current version information of the module; The first download submodule is used to send the generated detection and update requests corresponding to each of the modules to the cloud server, so as to download the upgrade packages corresponding to each of the modules from the cloud server.
[0017] Optionally, the vehicle terminal sends the generated detection update requests corresponding to each module to the cloud server to download the upgrade packages corresponding to each module from the cloud server, and the first download submodule includes: A first generating subunit is used to send the detection and update requests corresponding to each module to the cloud server, so that the cloud server can parse the current version information of each module according to the detection and update requests corresponding to each module, and generate the differential upgrade package corresponding to each module according to the parsed current version information of each module and the latest version information of each module; The first downloading subunit is used to download the differential upgrade packages corresponding to the modules from the cloud server, and use the downloaded differential upgrade packages corresponding to the modules as the upgrade packages corresponding to the modules.
[0018] Optionally, before the vehicle-mounted terminal downloads the upgrade packages corresponding to the modules from the cloud server, the system further includes: A first receiving submodule, used for receiving the upgrade tasks corresponding to each module sent by the cloud server; The second generating submodule is used to generate local upgrade tasks corresponding to each module respectively in response to the received upgrade tasks corresponding to each module.
[0019] Optionally, before the vehicle-mounted terminal respectively obtains the current version information corresponding to each module, the system further includes: The first acquisition submodule is used to respectively acquire the current configuration files corresponding to each of the modules; A second download submodule is used to upload the current configuration files corresponding to the modules to the cloud server, so as to download the latest configuration files corresponding to the modules from the cloud server; An update submodule, used to update the current configuration files corresponding to the modules respectively according to the latest configuration files corresponding to the modules downloaded; After the vehicle is powered on, the vehicle-mounted terminal respectively obtains the current version information of each module, and the obtaining module includes: The second acquisition submodule is used to acquire the current version information of each module respectively according to the updated configuration files corresponding to each module after the vehicle is powered on.
[0020] Optionally, the vehicle-mounted terminal obtains the current configuration files corresponding to the modules respectively, and the first obtaining submodule includes: A second generating subunit is used to initialize each module and generate status information corresponding to each module; The determination subunit is used to determine the current configuration files corresponding to each module according to the status information corresponding to each module.
[0021] In a fourth aspect of the present application, an OTA upgrade system is provided, which is applied to a cloud server, and the system includes: A receiving module, used to receive the current version information of each module uploaded by the vehicle terminal; The generation module is used to generate the upgrade packages corresponding to the modules according to the received current version information of the modules.
[0022] Optionally, the cloud server generates an upgrade package corresponding to each module according to the received current version information of each module, and the receiving module includes: A first determining submodule, configured to determine the pre-stored latest version information of each of the modules according to the received current version information of each of the modules; A second determination submodule is used to determine the content to be upgraded corresponding to each module according to the current version information of each module and the latest version information of each module; The third generation submodule is used to generate upgrade packages corresponding to each module based on the content to be upgraded corresponding to each module.
[0023] Optionally, the system further comprises: A first receiving submodule is used to receive the current configuration files corresponding to each module uploaded by the vehicle terminal; The third determining submodule is used to determine the pre-stored latest configuration files corresponding to each of the modules according to the received current configuration files corresponding to each of the modules.
[0024] According to a fifth aspect of the present application, a vehicle is provided, including: one or more processors; and One or more computer-readable media having instructions stored thereon, when executed by the one or more processors, enable the vehicle to execute the OTA upgrade method as described in the first aspect of the present application, and / or execute the OTA upgrade method as described in the second aspect of the present application.
[0025] Beneficial effects of this application: The present application provides an OTA upgrade method, which is applied to a vehicle-mounted terminal, wherein the vehicle-mounted terminal is composed of multiple modules, wherein each module contains independent configuration information, and the method comprises: after the vehicle is powered on, the vehicle-mounted terminal obtains the current version information of each module respectively; the vehicle-mounted terminal uploads the current version information of each module to a cloud server respectively, so as to download the upgrade package corresponding to each module from the cloud server; the vehicle-mounted terminal performs version upgrades on each module respectively according to the corresponding upgrade package downloaded for each module. The present application obtains the current version information of each module through the vehicle-mounted terminal, and obtains the upgrade package from the cloud server based on the obtained current version information, so as to upgrade each module separately. The present application actively obtains the upgrade package of each module from the cloud server through the vehicle-mounted terminal, and upgrades each module separately based on the upgrade package obtained from the cloud server, so that the upgrade of each module is relatively independent and will not be affected by each other, thereby improving the stability and security of the system upgrade. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 It is a schematic diagram of the steps of an OTA upgrade method applied to a vehicle terminal provided in an embodiment of the present application; Figure 2 It is a flowchart of an OTA upgrade method for a non-pluggable module provided in an embodiment of the present application; Figure 3 It is a schematic diagram of the steps of an OTA upgrade method applied to a cloud server provided in an embodiment of the present application; Figure 4 It is a flowchart of an OTA upgrade method for a pluggable module provided in an embodiment of the present application; Figure 5 is a schematic diagram of an OTA upgrade system applied to a vehicle terminal provided in an embodiment of the present application; Figure 6 It is a schematic diagram of an OTA upgrade system applied to a cloud server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The exemplary embodiments of the present application will be described in more detail below in conjunction with the accompanying drawings in the embodiments of the present application. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to enable the scope of the present application to be fully communicated to those skilled in the art.
[0029] Based on the above problems, in a first aspect of the embodiments of the present application, an OTA upgrade method is provided, which is applied to a vehicle-mounted terminal, wherein the vehicle-mounted terminal is composed of multiple modules, wherein each module contains independent configuration information, such as Figure 1 As shown, the method includes: Step S101, after the vehicle is powered on, the vehicle terminal obtains the current version information of each module respectively; Specifically, in this step, when the vehicle is powered on, the vehicle terminal will automatically start, and start to initialize each module in the system, and obtain the current version information corresponding to each module. In actual applications, the vehicle terminal can be the vehicle controller of the vehicle, or other controllers for vehicle control.
[0030] In a preferred embodiment, before the vehicle-mounted terminal respectively obtains the current version information corresponding to each module, the method further includes: The vehicle-mounted terminal obtains the current configuration files corresponding to the modules respectively; The vehicle terminal uploads the current configuration files corresponding to the modules to the cloud server, so as to download the latest configuration files corresponding to the modules from the cloud server; The vehicle terminal updates the current configuration files corresponding to the modules respectively according to the downloaded latest configuration files corresponding to the modules; After the vehicle is powered on, the vehicle terminal obtains the current version information of each module respectively, including: After the vehicle is powered on, the vehicle-mounted terminal obtains the current version information of each module respectively according to the updated configuration files corresponding to each module respectively.
[0031] Specifically, in this embodiment, before obtaining the current version information of each module, the configuration files of each module are updated first.
[0032] Specifically: after the vehicle terminal is powered on and started, the current configuration files corresponding to each module are first obtained. These configuration files contain the setting information and parameters required for the operation of each module.
[0033] Furthermore, the vehicle terminal uploads the current configuration files corresponding to each module to the cloud server, and the cloud server determines the latest configuration files corresponding to each module that are pre-stored based on the current configuration files corresponding to each module uploaded by the vehicle terminal.
[0034] Furthermore, the vehicle-mounted terminal downloads the latest configuration files corresponding to each module from the cloud server, and updates the current position files corresponding to each module according to the downloaded latest configuration files corresponding to each module.
[0035] Furthermore, after completing the update of the configuration files corresponding to the modules, the vehicle terminal will obtain the current version information of the modules based on the updated configuration files.
[0036] In a preferred embodiment, the vehicle-mounted terminal obtains the current configuration files corresponding to the modules respectively, including: The vehicle-mounted terminal initializes each module and generates status information corresponding to each module; According to the status information corresponding to each module, the current configuration files corresponding to each module are determined.
[0037] Specifically, in this embodiment, the vehicle terminal initializes each module and generates the status information corresponding to each module, that is, generates a system status snapshot of each module. Furthermore, the status information corresponding to each module is continuously scanned to obtain the current configuration file of each module.
[0038] Step S102, the vehicle terminal uploads the current version information of each module to the cloud server, so as to download the upgrade package corresponding to each module from the cloud server; Specifically, in this step, the vehicle terminal will upload the current version information of these modules to the cloud server respectively. The purpose of uploading the version information of each module is to let the cloud server know the version status of each module in the current system.
[0039] Furthermore, after receiving the version information, the cloud server will compare it with the latest version. If it is found that the version information of a module lags behind the latest version, the cloud server will generate or select the corresponding upgrade package. These upgrade packages only contain the content that needs to be updated, thereby reducing the amount of data transmission and speeding up the update process.
[0040] In a preferred embodiment, the vehicle terminal uploads the current version information of each module to the cloud server respectively, so as to download the upgrade package corresponding to each module from the cloud server, including: The vehicle terminal generates detection update requests corresponding to each module based on the current version information of each module, wherein the detection update request corresponding to each module includes the current version information of the module; The vehicle-mounted terminal sends the generated detection update requests corresponding to each of the modules to the cloud server, so as to download the upgrade packages corresponding to each of the modules from the cloud server.
[0041] Specifically, in this embodiment, after the vehicle terminal obtains the current version information of each module, it generates detection update requests corresponding to each module based on the current version information of each module, wherein the detection update request corresponding to each module will include the current version information of the module.
[0042] Furthermore, the vehicle-mounted terminal will send the generated detection and update requests corresponding to each module to the cloud server. After receiving the detection and update requests corresponding to each module, the cloud server will determine the upgrade package corresponding to each module based on the current version information in each detection and update request. The vehicle-mounted terminal will download the upgrade package corresponding to each module from the cloud server.
[0043] In a preferred embodiment, the vehicle terminal sends the generated detection update requests corresponding to each module to the cloud server to download the upgrade packages corresponding to each module from the cloud server, including: The vehicle terminal sends the detection and update requests corresponding to the modules to the cloud server, so that the cloud server parses the current version information of the modules according to the detection and update requests corresponding to the modules, and generates the differential upgrade packages corresponding to the modules according to the parsed current version information of the modules and the latest version information of the modules; The vehicle-mounted terminal downloads the differential upgrade packages corresponding to the modules from the cloud server, and uses the downloaded differential upgrade packages corresponding to the modules as the upgrade packages corresponding to the modules.
[0044] Specifically, in this embodiment, after obtaining the current version information of each module, the vehicle terminal does not directly upload the version information, but first generates a detection update request corresponding to each module. The detection update request corresponding to each module is generated separately according to the version information of each module, ensuring that the cloud server can perform version checks independently for each module.
[0045] Furthermore, after receiving the detection and update requests corresponding to each module sent by the vehicle terminal, the cloud server will first parse these requests and extract the current version information of each module. After parsing the current version information of each module, the cloud server will compare this information with the latest version information of each module stored in it. Through the comparison, it is determined whether a certain module needs to be updated. If an update is required, it is also necessary to determine which specific parts need to be updated.
[0046] Furthermore, if the comparison result shows that the current version of a module lags behind the latest version, the cloud server will generate a differential upgrade package. The core of the differential upgrade package is to only contain the parts that need to be updated, rather than the complete version information of the entire module. The purpose of this is to reduce the amount of data transmission and improve the update efficiency. For example, if only 10% of the content of a module has changed, then the differential upgrade package will only contain that 10%. In practical applications, a binary differential algorithm can be used to ensure the minimization of the differential upgrade package.
[0047] Furthermore, the vehicle-mounted terminal will download the differential upgrade packages of each module from the cloud server, and use the downloaded differential upgrade packages as upgrade packages for upgrading the corresponding modules.
[0048] Step S103 , the vehicle terminal upgrades the versions of the modules respectively according to the downloaded upgrade packages corresponding to the modules.
[0049] In this step, after the vehicle terminal downloads the upgrade packages corresponding to each module, it will process these upgrade packages as upgrade packages for each module. In actual application, the vehicle terminal decompresses and applies these upgrade packages locally to update each module to the latest status. Since the upgrade package only contains the parts that need to be upgraded, the upgrade process is relatively fast, and the delay caused by data transmission is also reduced. In addition, since the upgrade of each module is carried out independently, even if a problem occurs in a module, other modules will not be affected, thereby improving the overall stability and security of the system.
[0050] In a preferred embodiment, before the vehicle-mounted terminal downloads the upgrade packages corresponding to the modules from the cloud server, the method further includes: The vehicle terminal receives the upgrade tasks corresponding to each module sent by the cloud server; The vehicle terminal generates local upgrade tasks corresponding to the modules respectively in response to the received upgrade tasks corresponding to the modules.
[0051] Specifically, in this embodiment, after generating the upgrade packages for each module, the cloud server will generate upgrade tasks corresponding to each module according to the upgrade packages for each module, and send the upgrade tasks corresponding to each module to the vehicle terminal.
[0052] Furthermore, after receiving the upgrade tasks corresponding to each module, the vehicle terminal generates local upgrade tasks corresponding to each module in response to the received upgrade tasks corresponding to each module, and downloads the upgrade packages corresponding to each module from the cloud server based on the local upgrade tasks corresponding to each module.
[0053] In a preferred embodiment, the present application provides a Figure 2 The flowchart of the OTA upgrade method for non-pluggable modules is shown in FIG. Figure 2 As shown: When the module to be upgraded is a non-pluggable module, the vehicle terminal first updates the configuration file, and then collects the current version information of each non-pluggable module according to the configuration file, and sends a detection and update request to the cloud server with the collected current version information of each non-pluggable module, so as to obtain the upgrade package of each non-pluggable module generated by the cloud server. After the cloud server receives the detection and update request sent by the vehicle terminal, if there is a high version upgrade package, it generates a non-pluggable module independent upgrade task file on the cloud server, and sends the task information to the vehicle terminal, and then the vehicle terminal parses the task sent by the cloud, and then the vehicle terminal generates a local non-pluggable module independent upgrade task according to the parsed task information, so as to download and deploy the upgrade package. At this time, the vehicle terminal distinguishes which tasks need to be manually triggered and which tasks can be executed automatically according to whether the single independent upgrade task in the task information supports automatic upgrade. For tasks that do not support automatic upgrade, the user is prompted through a pop-up window when the upgrade conditions are met. After the user confirms the installation, the installation process is executed, and the installation result is finally generated, and the installation result is uploaded to the cloud server.
[0054] In a second aspect of the present application, an OTA upgrade method is provided, which is applied to a cloud server, such as Figure 3 As shown, the method includes: Step S201, the cloud server receives the current version information of each module uploaded by the vehicle terminal; In step S202, the cloud server generates an upgrade package corresponding to each module according to the received current version information of each module.
[0055] Specifically, after the cloud server receives the current version information of each module uploaded by the vehicle terminal, the cloud server parses the received current version information of each module and generates an upgrade package corresponding to each module according to the parsed result.
[0056] In a preferred embodiment, the cloud server generates an upgrade package corresponding to each module according to the received current version information of each module, including: The cloud server determines the pre-stored latest version information of each module according to the received current version information of each module; The cloud server determines the content to be upgraded corresponding to each module according to the current version information of each module and the latest version information of each module; The cloud server generates an upgrade package corresponding to each module based on the content to be upgraded corresponding to each module.
[0057] Specifically, the cloud server determines the latest version information of each module pre-stored therein by scanning according to the received current version information of each module; Furthermore, based on the current version information of each module received and the latest version information of each module pre-stored, the current version information of each module is compared with the latest version information of the module pre-stored to determine the content to be upgraded for each module, and based on the upgraded content of each module, a differential upgrade package corresponding to each module is generated, wherein the differential upgrade package of each module will be used as the upgrade package for upgrading the module.
[0058] In a preferred embodiment, the cloud server receives the current configuration files corresponding to each module uploaded by the vehicle terminal; The cloud server determines the pre-stored latest configuration files corresponding to each of the modules according to the received current configuration files corresponding to each of the modules.
[0059] Specifically, in this embodiment, after the cloud server receives the current configuration files corresponding to each module uploaded by the vehicle-mounted terminal, the cloud server determines the pre-stored latest configuration files corresponding to each module based on the received current configuration files corresponding to each module, downloads the latest configuration files corresponding to each module from the cloud server through the vehicle-mounted terminal, and updates the current configuration files corresponding to each module based on the downloaded latest configuration files corresponding to each module.
[0060] In a preferred embodiment, the present application provides a Figure 4 The flowchart of the OTA upgrade method for the pluggable module is shown in FIG. Figure 4 As shown: The vehicle terminal first updates the configuration file, then sends a request to the device configuration module to collect the current version information of each pluggable module, and collects the current version information of each pluggable module. The device configuration module sends the collected current version information of each pluggable module to the vehicle terminal, and the vehicle terminal then uses the collected current version information of each module to send a detection and update request to the cloud server to obtain the upgrade package information of the cloud server. After the cloud server receives the detection and update request sent by the vehicle terminal, if there is a high-version upgrade package, it generates a pluggable module independent upgrade task file in the cloud, and sends the task information to the vehicle terminal, and then the vehicle terminal parses the task sent by the cloud server, and then the vehicle terminal generates a local pluggable module independent upgrade task based on the parsed task information, so as to download and deploy the upgrade package. The vehicle terminal then sends the pluggable module upgrade task to the device management module. After receiving the task file, the device management module displays which pluggable modules can be upgraded on the interface, and the user triggers the installation. The vehicle terminal then executes the installation process, returns the installation progress during the installation process, and finally returns the installation result. It will also synchronize the installation progress and installation results to the device management module in real time, and finally display the installation results on the device management module.
[0061] In a preferred embodiment, before the vehicle-mounted terminal downloads the upgrade packages of each module from the cloud server, the cloud server encrypts each upgrade package to prevent the data from being stolen or tampered with during transmission.
[0062] After the upgrade package is downloaded, the vehicle terminal will verify the digital signature. The digital signature is an encrypted hash value of the data, which is used to verify the integrity and authenticity of the data. The vehicle terminal uses the pre-stored public key to decrypt the digital signature and compare it with the hash value of the upgrade package. If it matches, it means that the upgrade package has not been tampered with and the data is complete and authentic. During the upgrade process, the vehicle terminal will back up the data regularly. This means that before starting the actual upgrade operation, the vehicle terminal will save the current configuration file and the current version information. If there is a problem during the upgrade process, the vehicle terminal can use the backup data for recovery to ensure that it can be restored to a stable state. In actual applications, the SSL / TLS protocol is used to ensure the security of data transmission. After the download is complete, the integrity of the update package is verified by the SHA-256 digital signature.
[0063] In a preferred embodiment, the vehicle terminal uses an intelligent scheduling algorithm to optimize the download and installation order of the upgrade package to minimize the system load of the vehicle during driving. Specifically, the distribution and installation of the upgrade package will be dynamically adjusted according to the vehicle's usage status (such as driving, parking, etc.). When the vehicle is parked, the download and installation of the upgrade package will be prioritized, while the update operation will be reduced or suspended during the vehicle's driving to avoid adverse effects on the vehicle's operation. This intelligent scheduling mechanism ensures that the impact of the update process on vehicle performance is minimized, improving the system's operating efficiency and user experience.
[0064] In a preferred embodiment, the vehicle terminal monitors various indicators in real time during the version upgrade of each module to ensure the smooth progress of the upgrade. After the upgrade is completed, a detailed feedback report is generated to record the upgrade process and results, and uploaded to the cloud server for the administrator to view. In actual application, the vehicle terminal has a built-in monitoring module to record various parameters during the upgrade process (such as download speed, update progress, system load, etc.) in real time, and generates a log report after the upgrade is completed, recording each step of the operation in detail, which is convenient for subsequent analysis and troubleshooting.
[0065] The present application obtains the current version information of each module through the vehicle-mounted terminal, and based on the obtained current version information, obtains the upgrade package from the cloud server to upgrade each module separately. The present application actively obtains the upgrade package of each module from the cloud server through the vehicle-mounted terminal, and upgrades each module separately based on the upgrade package obtained from the cloud server, so that the upgrade of each module is relatively independent and will not be affected by each other, thereby improving the stability and security of the system upgrade.
[0066] In a third aspect of the present application, an OTA upgrade system is provided, which is applied to a vehicle terminal, such as Figure 5 As shown, the system comprises: The acquisition module 101 is used to respectively acquire the current version information of each module after the vehicle is powered on; The download module 102 is used to upload the current version information of each module to the cloud server, so as to download the upgrade package corresponding to each module from the cloud server; The upgrade module 103 is used to upgrade the versions of the modules respectively according to the downloaded upgrade packages corresponding to the modules.
[0067] Optionally, the vehicle terminal uploads the current version information of each module to the cloud server respectively, so as to download the upgrade package corresponding to each module from the cloud server. The download module 102 includes: A first generating submodule, configured to generate detection update requests corresponding to each module based on the current version information of each module, wherein the detection update request corresponding to each module includes the current version information of the module; The first download submodule is used to send the generated detection and update requests corresponding to each of the modules to the cloud server, so as to download the upgrade packages corresponding to each of the modules from the cloud server.
[0068] Optionally, the vehicle terminal sends the generated detection update requests corresponding to each module to the cloud server to download the upgrade packages corresponding to each module from the cloud server, and the first download submodule includes: A first generating subunit is used to send the detection and update requests corresponding to each module to the cloud server, so that the cloud server can parse the current version information of each module according to the detection and update requests corresponding to each module, and generate the differential upgrade package corresponding to each module according to the parsed current version information of each module and the latest version information of each module; The first downloading subunit is used to download the differential upgrade packages corresponding to the modules from the cloud server, and use the downloaded differential upgrade packages corresponding to the modules as the upgrade packages corresponding to the modules.
[0069] Optionally, before the vehicle-mounted terminal downloads the upgrade packages corresponding to the modules from the cloud server, the system further includes: A first receiving submodule, used for receiving the upgrade tasks corresponding to each module sent by the cloud server; The second generating submodule is used to generate local upgrade tasks corresponding to each module respectively in response to the received upgrade tasks corresponding to each module.
[0070] Optionally, before the vehicle-mounted terminal respectively obtains the current version information corresponding to each module, the system further includes: The first acquisition submodule is used to respectively acquire the current configuration files corresponding to each of the modules; A second download submodule is used to upload the current configuration files corresponding to the modules to the cloud server, so as to download the latest configuration files corresponding to the modules from the cloud server; An update submodule, used to update the current configuration files corresponding to the modules respectively according to the latest configuration files corresponding to the modules downloaded; After the vehicle is powered on, the vehicle-mounted terminal respectively obtains the current version information of each module, and the obtaining module includes: The second acquisition submodule is used to acquire the current version information of each module respectively according to the updated configuration files corresponding to each module after the vehicle is powered on.
[0071] Optionally, the vehicle-mounted terminal obtains the current configuration files corresponding to the modules respectively, and the first obtaining submodule includes: A second generating subunit is used to initialize each module and generate status information corresponding to each module; The determination subunit is used to determine the current configuration files corresponding to each module according to the status information corresponding to each module.
[0072] In a fourth aspect of the present application, an OTA upgrade system is provided, which is applied to a cloud server, such as Figure 6 As shown, the system comprises: The receiving module 201 is used to receive the current version information of each module uploaded by the vehicle terminal; The generating module 202 is used to generate the upgrade packages corresponding to the modules according to the received current version information of the modules.
[0073] Optionally, the cloud server generates an upgrade package corresponding to each module according to the received current version information of each module, and the receiving module 201 includes: A first determining submodule, configured to determine the pre-stored latest version information of each of the modules according to the received current version information of each of the modules; A second determination submodule is used to determine the content to be upgraded corresponding to each module according to the current version information of each module and the latest version information of each module; The third generation submodule is used to generate upgrade packages corresponding to each module based on the content to be upgraded corresponding to each module.
[0074] Optionally, the system further comprises: A first receiving submodule is used to receive the current configuration files corresponding to each module uploaded by the vehicle terminal; The third determining submodule is used to determine the pre-stored latest configuration files corresponding to each of the modules according to the received current configuration files corresponding to each of the modules.
[0075] According to a fifth aspect of the present application, a vehicle is provided, including: one or more processors; and One or more computer-readable media having instructions stored thereon, when executed by the one or more processors, enable the vehicle to execute the OTA upgrade method as described in the first aspect of the present application, and / or execute the OTA upgrade method as described in the second aspect of the present application.
[0076] Each embodiment in this specification focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referenced to each other.
[0077] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0078] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0079] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0080] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0081] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0082] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0083] The above is a detailed introduction to the provided OTA upgrade method, system and vehicle. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An OTA upgrade method, characterized in that: Applied to a vehicle-mounted terminal, the vehicle-mounted terminal is composed of multiple modules, wherein each module contains independent configuration information, and the method includes: After the vehicle is powered on, the vehicle terminal obtains the current version information of each module respectively; The vehicle terminal uploads the current version information of each module to the cloud server respectively, so as to download the upgrade package corresponding to each module from the cloud server; The vehicle-mounted terminal upgrades the versions of the modules respectively according to the downloaded upgrade packages corresponding to the modules.
2. An OTA upgrade method according to claim 1, characterized in that: The vehicle terminal uploads the current version information of each module to the cloud server respectively, so as to download the upgrade package corresponding to each module from the cloud server, including: The vehicle terminal generates detection update requests corresponding to each module based on the current version information of each module, wherein the detection update request corresponding to each module includes the current version information of the module; The vehicle-mounted terminal sends the generated detection update requests corresponding to each of the modules to the cloud server, so as to download the upgrade packages corresponding to each of the modules from the cloud server.
3. An OTA upgrade method according to claim 2, characterized in that: The vehicle terminal sends the generated detection update requests corresponding to each module to the cloud server to download the upgrade packages corresponding to each module from the cloud server, including: The vehicle terminal sends the detection and update requests corresponding to the modules to the cloud server, so that the cloud server parses the current version information of the modules according to the detection and update requests corresponding to the modules, and generates the differential upgrade packages corresponding to the modules according to the parsed current version information of the modules and the latest version information of the modules; The vehicle-mounted terminal downloads the differential upgrade packages corresponding to the modules from the cloud server, and uses the downloaded differential upgrade packages corresponding to the modules as the upgrade packages corresponding to the modules.
4. The OTA upgrade method according to claim 1, characterized in that: Before the vehicle-mounted terminal downloads the upgrade packages corresponding to the modules from the cloud server, the method further includes: The vehicle terminal receives the upgrade tasks corresponding to each module sent by the cloud server; The vehicle terminal generates local upgrade tasks corresponding to the modules respectively in response to the received upgrade tasks corresponding to the modules.
5. An OTA upgrade method according to claim 1, characterized in that: Before the vehicle-mounted terminal obtains the current version information corresponding to each module respectively, the method further includes: The vehicle-mounted terminal obtains the current configuration files corresponding to the modules respectively; The vehicle terminal uploads the current configuration files corresponding to the modules to the cloud server, so as to download the latest configuration files corresponding to the modules from the cloud server; The vehicle terminal updates the current configuration files corresponding to the modules respectively according to the downloaded latest configuration files corresponding to the modules; After the vehicle is powered on, the vehicle terminal obtains the current version information of each module respectively, including: After the vehicle is powered on, the vehicle-mounted terminal obtains the current version information of each module respectively according to the updated configuration files corresponding to each module respectively.
6. An OTA upgrade method according to claim 5, characterized in that: The vehicle-mounted terminal obtains the current configuration files corresponding to the modules respectively, including: The vehicle-mounted terminal initializes each module and generates status information corresponding to each module; According to the status information corresponding to each module, the current configuration files corresponding to each module are determined.
7. An OTA upgrade method, characterized in that: Applied to a cloud server, the method includes: The cloud server receives the current version information of each module uploaded by the vehicle terminal; The cloud server generates an upgrade package corresponding to each module according to the received current version information of each module.
8. An OTA upgrade method according to claim 7, characterized in that: The cloud server generates an upgrade package corresponding to each module according to the received current version information of each module, including: The cloud server determines the pre-stored latest version information of each module according to the received current version information of each module; The cloud server determines the content to be upgraded corresponding to each module according to the current version information of each module and the latest version information of each module; The cloud server generates an upgrade package corresponding to each module based on the content to be upgraded corresponding to each module.
9. An OTA upgrade method according to claim 7, characterized in that: The method further comprises: The cloud server receives the current configuration files corresponding to each module uploaded by the vehicle terminal; The cloud server determines the pre-stored latest configuration files corresponding to each of the modules according to the received current configuration files corresponding to each of the modules.
10. An OTA upgrade system, characterized in that: Applied to a vehicle-mounted terminal, the system includes: A first acquisition module, used to respectively acquire the current version information of each module after the vehicle is powered on; A download module, used to upload the current version information of each module to the cloud server, so as to download the upgrade package corresponding to each module from the cloud server; The upgrade module is used to upgrade the versions of the modules respectively according to the downloaded upgrade packages corresponding to the modules.
11. An OTA upgrade system, characterized in that: Applied to a cloud server, the system includes: A receiving module, used to receive the current version information of each module uploaded by the vehicle terminal; The generation module is used to generate the upgrade packages corresponding to the modules according to the received current version information of the modules.
12. A vehicle, characterized in that: include: one or more processors; and One or more computer-readable media having instructions stored thereon, when executed by the one or more processors, cause the vehicle to execute the OTA upgrade method as described in any one of claims 1-6, and / or execute the OTA upgrade method as described in any one of claims 7-9.