A unit-level OTA adaptive installation method and system for vehicle end difference states
By collecting data on vehicle-side differences and generating adaptive installation plans, the problem of differing OTA update statuses in intelligent driving vehicles was solved, enabling efficient and secure unit-level OTA installation and ensuring the integrity and security of the update.
Patent Information
- Application Number
- CN202611339841.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-24
AI Technical Summary
Existing OTA solutions cannot effectively handle the differences in state between vehicles in intelligent driving vehicles, which may cause unnecessary replacement or overwriting of vehicle-specific data during the update process. Furthermore, they lack protection for calibration files and operating directories, posing operational risks.
By collecting the differences in vehicle status, parsing the actual Unit set within the package, generating an adaptive installation plan, protecting the calibration file, and performing installation and rollback at the Unit granularity, combined with health checks, the integrity and security of the update are ensured.
It enables efficient and safe software updates under different vehicle conditions, reduces the workload of creating update packages, avoids the replacement of irrelevant files, protects vehicle calibration files, and supports unit-level rollback and fault analysis.
Smart Images

Figure CN123157233A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent driving technology, and in particular to a Unit-level OTA adaptive installation method and system for different vehicle conditions. Background Technology
[0002] The software stack of intelligent driving vehicles typically consists of perception, localization, planning, control, recording, model resources, system services, and several configuration files. Compared to ordinary in-vehicle entertainment systems, this type of software is characterized by a complex directory structure, strong operational dependencies, sensitivity to on-site configuration, and the inability to arbitrarily overwrite calibration files. A single software update for a vehicle involves more than just copying the new version to the target directory; it also requires handling issues such as inconsistencies between the current version on the vehicle, missing modules, service files located in the system directory, invalid model caches, and the need for recovery after update failures.
[0003] Most existing OTA solutions primarily rely on complete image updates, full package overwrites, or fixed module distributions. The typical technical approach involves generating a fixed-format update package in the cloud, downloading it to the vehicle, installing it according to a preset path, and then confirming the update completion via service restart or version number writing. This solution works in scenarios with few modules, fixed target paths, and relatively consistent vehicle states, but it encounters significant limitations when applied to autonomous vehicles.
[0004] The vehicle-side status is not entirely consistent across vehicles. Some vehicles already have release records for certain units, while others only have the running directory; some vehicles are missing a module, while others still retain historical service files. If a complete package overwrite is performed using a uniform path, it could easily lead to unnecessary replacements, or even overwrite vehicle-specific data. Second, the update package may be a complete package or it may only contain a few top-level directories. If the vehicle-side cannot recognize the actual units present within the package, it will misinterpret "missing unit" as "unit needs to be deleted," which poses a significant operational risk. Third, calibration files, vehicle numbers, system service files, etc., have contextual attributes and cannot be treated as ordinary resource files.
[0005] A more recent existing solution is the vehicle-side OTA installation method based on manifest. This type of solution uses a manifest to describe the package file, version number, hash value, and target path. The vehicle downloads the package, verifies it, and then installs it. This method can solve the problem of updating package integrity verification, but the manifest usually only expresses the cloud package structure and does not fully express the current differences on the vehicle side. It also lacks a joint processing mechanism for unit-level runtime directory mapping, calibration file protection, decoupling of release and runtime, and unit-by-unit rollback in case of failure. In other words, it knows "what's in the package," but it may not know "how to install it stably on this vehicle." Summary of the Invention
[0006] In view of the above problems, the present invention provides a unit-level OTA adaptive installation method and system for different vehicle states, which not only reduces the workload of creating update packages for different vehicles, but also avoids replacing adjacent directories or unrelated files.
[0007] To achieve the above and other related objectives, the present invention provides the following technical solution: A unit-level OTA adaptive installation method for vehicle-side differential states, the method comprising: S1. Collect vehicle-side differences in status; S2. Download and verify the manifest; S3. Parse the actual Unit collection within the package; S4. Generate Unit installation plan; S5. Write to the release repository; S6. Synchronize to the runtime directory; S7. Protect calibration and rewrite vehicle-side configuration; S8. Perform a health check; S9. If successful, commit the current pointer; S10. If it fails, roll back to the previous version; S11. Report the final results.
[0008] Furthermore, in step S1, the vehicle-side difference status includes the vehicle's Unit version, release version library, runtime directory, service files, calibration file index, current task status, and remaining space information.
[0009] Furthermore, in step S2, the downloading and signing of the manifest means that if a certain Unit does not appear in the manifest, the vehicle terminal will not perform deletion, clearing, or overwriting actions on that Unit.
[0010] Furthermore, in step S3, the actual Unit set within the parsed package includes, for service class Units, the installation plan is limited to file-level replacement, replacing only the service files with the same name as the update package in the / etc / systemd / system directory; for libs-xavier class Units, the installation plan points to / ota / libs-xavier.
[0011] Furthermore, the actual Unit set within the parsing package also includes, for ordinary business Units, the installation plan pointing to the same directory under / home / nvidia; for scattered files in the root directory, they are included in home-files and file-level replacement is performed.
[0012] Further, in step S5, each Unit is first decompressed and written to the release repository to form a version directory with a manifest record; after the Unit passes verification, it is synchronized from the release repository to the runtime directory; after successful installation, the current pointer points to the current Unit version; if the installation fails, the system rolls back to the previous available version based on the current pointer.
[0013] Furthermore, in step S7, the protection of calibration and rewriting of vehicle-side configuration means that for calibration class files under the config directory, overwriting is skipped during the installation process; for number fields that need to change with the vehicle, the vehicle-side will rewrite them according to the local vehicle identity after installation; and "updatable configuration" and "on-site non-overwriteable configuration" are handled separately.
[0014] Further, in step S8, the health check is performed after the Unit installation is completed, including service and running status checks, such as systemd service status, ROS node status, and ROS topic publication status. If the check passes, the task enters a successful state. If the check fails, a Unit-level rollback is triggered, and the failure stage, error reason, log summary, and rollback result are sent back to the cloud.
[0015] To achieve the above and other related objectives, the present invention also provides a Unit-level OTA adaptive installation system for vehicle-side state differences, used to implement the aforementioned Unit-level OTA adaptive installation method for vehicle-side state differences, the system comprising: The vehicle-side differential status acquisition module is used to collect the unit version, release version library, runtime directory, service files, calibration file index, current task status, and remaining space information of this vehicle. The package list parsing module is connected to the vehicle-side difference status acquisition module. It is used to parse the actual units that exist in the manifest. If a certain unit does not appear in the manifest, the vehicle-side will not perform deletion, clearing or overwriting actions on that unit. An adaptive installation plan generation module, connected to the package list parsing module, is used to generate an installation plan based on the Unit name, target path mapping table, protection file rules, and vehicle-side difference status. The dual-zone temporary installation module is connected to the adaptive installation plan generation module. It is used to decouple the release repository and the runtime directory. Each Unit is first decompressed and written to the release repository to form a version directory with a manifest record. After the Unit passes the verification, it is synchronized from the release repository to the runtime directory. The protection overlay module, connected to the dual-zone temporary storage installation module, is used to process calibration files and vehicle-specific configurations. For calibration-type files in the config directory, the overlay is skipped during the installation process. For numbering fields that need to change with the vehicle, the vehicle terminal rewrites them according to the local vehicle identity after installation. The health verification module, connected to the protection overlay module, is used to perform service and runtime status checks after Unit installation, including systemd service status, ROS node status, and ROS topic publication status.
[0016] Furthermore, the system is divided into a cloud management side and a vehicle execution side. The cloud management side generates a manifest containing a Unit list, version number, hash value, signature value, file cleanup record, and task parameters, and provides the payload and manifest to the vehicle for download. The vehicle execution side does not directly trust the update package, but first verifies the package's integrity through public key signature verification and hash verification, and then generates an installation plan based on the local differences.
[0017] The present invention has the following positive effects: 1. This invention can identify the actual Units within the package through the vehicle end. The complete package and the partial package can share the same set of installation logic, reducing the workload of creating update packages separately for different vehicles.
[0018] 2. This invention uses target path mapping and file-level replacement rules to differentiate between the system service directory, the / ota directory, and the / home / nvidia directory, thus avoiding the replacement of adjacent directories or unrelated files.
[0019] 3. This invention uses a calibration file skip over mechanism, so the vehicle's field calibration file will not be mistakenly modified due to software updates, and the original calibration state can still be retained after the vehicle is updated.
[0020] 4. By decoupling the release repository from the runtime directory, the vehicle can roll back at the unit level, avoiding the need for a whole-vehicle recovery if a module fails.
[0021] 5. This invention can transmit task status, current unit, download or upload speed, installation results, and rollback results back to the cloud, making it easier for R&D and operations personnel to determine at which step the fault occurred.
[0022] 6. This invention uses localized configurations such as vehicle number to automatically process settings on the vehicle side based on local conditions, reducing the chance of omissions in manual configuration. In simpler terms, engineers no longer need to constantly monitor the vehicle number to modify configurations; the system handles this process automatically. Attached Figure Description
[0023] Figure 1 This is a schematic diagram of the method flow of the present invention; Figure 2 This is the release and runtime decoupling rollback state diagram (I) of the present invention; Figure 3 This is the second diagram showing the decoupling and rollback state of the release and runtime of this invention. Figure 4 This is a system module relationship diagram (I) of the present invention; Figure 5 This is a system module relationship diagram (II) of the present invention. Detailed Implementation
[0024] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0025] Example: Figure 1 As shown, a Unit-level OTA adaptive installation method for vehicle-side differential states is described, the method comprising: S1. Collect vehicle-side differences in status; S2. Download and verify the manifest; S3. Parse the actual Unit collection within the package; S4. Generate Unit installation plan; S5. Write to the release repository; S6. Synchronize to the runtime directory; S7. Protect calibration and rewrite vehicle-side configuration; S8. Perform a health check; S9. If successful, commit the current pointer; S10. If it fails, roll back to the previous version; S11. Report the final results.
[0026] In this embodiment, in step S1, the vehicle-side difference status includes the vehicle's Unit version, release version library, runtime directory, service files, calibration file index, current task status, and remaining space information.
[0027] In this embodiment, in step S2, downloading and verifying the manifest means that if a certain unit does not appear in the manifest, the vehicle terminal will not perform deletion, clearing, or overwriting actions on that unit.
[0028] In this embodiment, in step S3, the actual Unit set within the parsed package includes, for service class Units, the installation plan is limited to file-level replacement, replacing only the service files with the same name as the update package in the / etc / systemd / system directory; for libs-xavier class Units, the installation plan points to / ota / libs-xavier.
[0029] In this embodiment, the actual Unit set within the parsing package also includes, for ordinary business Units, the installation plan pointing to the same directory under / home / nvidia; for scattered files in the root directory, they are included in home-files and file-level replacement is performed.
[0030] In this embodiment, as Figure 2 or Figure 3 As shown, in step S5, each Unit is first decompressed and written to the release repository, forming a version directory with a manifest record; after the Unit passes verification, it is synchronized from the release repository to the runtime directory; after successful installation, the current pointer points to the current Unit version; if the installation fails, the system rolls back to the previous available version based on the current pointer.
[0031] In this embodiment, in step S7, the protection of calibration and rewriting of vehicle-side configuration means that for calibration class files under the config directory, the overwriting is skipped during the installation process; for number fields that need to change with the vehicle, the vehicle-side will rewrite them according to the local vehicle identity after installation; and "updatable configuration" and "on-site non-overwriteable configuration" are handled separately.
[0032] In this embodiment, in step S8, the health check is performed after the Unit is installed, including service and running status checks, such as systemd service status, ROS node status, and ROS topic publication status. If the check passes, the task enters a successful state. If the check fails, a Unit-level rollback is triggered, and the failure stage, error reason, log summary, and rollback result are sent back to the cloud.
[0033] In this embodiment, as Figure 4 or Figure 5 As shown, this invention provides a Unit-level OTA adaptive installation system for different vehicle states, used to implement the aforementioned Unit-level OTA adaptive installation method for different vehicle states. The system includes: The vehicle-side differential status acquisition module is used to collect the unit version, release version library, runtime directory, service files, calibration file index, current task status, and remaining space information of this vehicle. The package list parsing module is connected to the vehicle-side difference status acquisition module. It is used to parse the actual units that exist in the manifest. If a certain unit does not appear in the manifest, the vehicle-side will not perform deletion, clearing or overwriting actions on that unit. An adaptive installation plan generation module, connected to the package list parsing module, is used to generate an installation plan based on the Unit name, target path mapping table, protection file rules, and vehicle-side difference status. The dual-zone temporary installation module is connected to the adaptive installation plan generation module. It is used to decouple the release repository and the runtime directory. Each Unit is first decompressed and written to the release repository to form a version directory with a manifest record. After the Unit passes the verification, it is synchronized from the release repository to the runtime directory. The protection overlay module, connected to the dual-zone temporary storage installation module, is used to process calibration files and vehicle-specific configurations. For calibration-type files in the config directory, the overlay is skipped during the installation process. For numbering fields that need to change with the vehicle, the vehicle terminal rewrites them according to the local vehicle identity after installation. The health verification module, connected to the protection overlay module, is used to perform service and runtime status checks after Unit installation, including systemd service status, ROS node status, and ROS topic publication status.
[0034] In this embodiment, the system is divided into a cloud management side and a vehicle execution side. The cloud management side generates a manifest containing a Unit list, version number, hash value, signature value, file cleanup record and task parameters, and provides the payload and manifest to the vehicle for download. The vehicle execution side does not directly trust the update package, but first verifies that the package has not been tampered with by verifying the signature with the public key and hash verification, and then generates an installation plan based on the local difference status.
[0035] (1) The vehicle periodically sends heartbeats to the cloud and reports a summary of the differences in vehicle status. The cloud returns the tasks to be executed and the corresponding manifest download address.
[0036] (2) The vehicle downloads the manifest and payload, and verifies the manifest signature and payload hash value. If the verification fails, the vehicle refuses to install and reports the failure result.
[0037] (3) The vehicle parses the Unit collection in the manifest and compares it with the local Unit status to generate a list of Units to be installed and the target path of each Unit.
[0038] (4) The vehicle writes the payload to the release repository by unit, and records the .ota_manifest.json, file hash and previous pointer.
[0039] (5) The vehicle synchronizes the Unit to the runtime directory according to the mapping rules, and performs skip overwrite on the calibration class file and performs local rewriting on the vehicle number related fields.
[0040] (6) The vehicle loads necessary services and performs a health check. If the check passes, the current pointer is committed; if the check fails, the unit is restored to the previous version.
[0041] (7) The vehicle will send the download speed, installation stage, current unit, final result and log back to the cloud, and the cloud will display them in the vehicle list and task result table.
[0042] In summary, this invention not only reduces the workload of creating separate update packages for different vehicles, but also avoids replacing adjacent directories or unrelated files.
[0043] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A Unit-level OTA adaptive installation method for vehicle-side differential states, characterized in that, The method includes: S1. Collect vehicle-side differences in status; S2. Download and verify the manifest; S3. Parse the actual Unit collection within the package; S4. Generate Unit installation plan; S5. Write to the release repository; S6. Synchronize to the runtime directory; S7. Protect calibration and rewrite vehicle-side configuration; S8. Perform a health check; S9. If successful, commit the current pointer; S10. If it fails, roll back to the previous version; S11. Report the final results.
2. The Unit-level OTA adaptive installation method for vehicle-side differential states according to claim 1, characterized in that, In step S1, the vehicle-side difference status includes the vehicle's Unit version, release version library, runtime directory, service files, calibration file index, current task status, and remaining space information.
3. The Unit-level OTA adaptive installation method for vehicle-side differential states according to claim 1, characterized in that, In step S2, downloading and verifying the manifest means that if a certain unit does not appear in the manifest, the vehicle will not perform deletion, clearing, or overwriting actions on that unit.
4. The Unit-level OTA adaptive installation method for vehicle-side differential states according to claim 1, characterized in that, In step S3, the actual Unit set within the parsed package includes, for service class Units, the installation plan is limited to file-level replacement, replacing only the service files with the same name as the update package in the / etc / systemd / system directory; for libs-xavier class Units, the installation plan points to / ota / libs-xavier.
5. The Unit-level OTA adaptive installation method for vehicle-side differential states according to claim 4, characterized in that, The actual Unit set within the parsing package also includes, for ordinary business Units, the installation plan pointing to the same directory under / home / nvidia; for scattered files in the root directory, they are included in home-files and file-level replacement is performed.
6. The Unit-level OTA adaptive installation method for vehicle-side differential states according to claim 1, characterized in that, In step S5, each Unit is first decompressed and written to the release repository, forming a version directory with a manifest record. After the Unit passes verification, it is synchronized from the release repository to the runtime directory. After successful installation, the current pointer points to the current Unit version. If the installation fails, the system rolls back to the previous available version based on the current pointer.
7. The Unit-level OTA adaptive installation method for vehicle-side differential states according to claim 1, characterized in that, In step S7, the protection of calibration and rewriting of vehicle-side configuration means that for calibration class files under the config directory, the overwriting is skipped during the installation process; for number fields that need to change with the vehicle, the vehicle-side will rewrite them according to the local vehicle identity after installation; and "updatable configuration" and "on-site non-overwriteable configuration" are handled separately.
8. The Unit-level OTA adaptive installation method for vehicle-side differential states according to claim 1, characterized in that, In step S8, the health check is performed after the Unit installation is completed, including service and running status checks, such as systemd service status, ROS node status, and ROS topic publication status. If the check passes, the task enters a successful state. If the check fails, a Unit-level rollback is triggered, and the failure stage, error reason, log summary, and rollback result are sent back to the cloud.
9. A Unit-level OTA adaptive installation system for different vehicle conditions, characterized in that, The system is used to implement the Unit-level OTA adaptive installation method for vehicle-side differential states as described in any one of claims 1-8, the system comprising: The vehicle-side differential status acquisition module is used to collect the unit version, release version library, runtime directory, service files, calibration file index, current task status, and remaining space information of this vehicle. The package list parsing module is connected to the vehicle-side difference status acquisition module. It is used to parse the actual units that exist in the manifest. If a certain unit does not appear in the manifest, the vehicle-side will not perform deletion, clearing or overwriting actions on that unit. An adaptive installation plan generation module, connected to the package list parsing module, is used to generate an installation plan based on the Unit name, target path mapping table, protection file rules, and vehicle-side difference status. The dual-zone temporary installation module is connected to the adaptive installation plan generation module. It is used to decouple the release repository and the runtime directory. Each Unit is first decompressed and written to the release repository to form a version directory with a manifest record. After the Unit passes the verification, it is synchronized from the release repository to the runtime directory. The protection overlay module, connected to the dual-zone temporary storage installation module, is used to process calibration files and vehicle-specific configurations. For calibration-type files in the config directory, the overlay is skipped during the installation process. For numbering fields that need to change with the vehicle, the vehicle terminal rewrites them according to the local vehicle identity after installation. The health verification module, connected to the protection overlay module, is used to perform service and runtime status checks after Unit installation, including systemd service status, ROS node status, and ROS topic publication status.
10. The Unit-level OTA adaptive installation system for vehicle-side differential states according to claim 9, characterized in that: The system is divided into a cloud management side and a vehicle execution side. The cloud management side generates a manifest containing a unit list, version number, hash value, signature value, file cleanup record, and task parameters, and provides the payload and manifest to the vehicle for download. The vehicle execution side does not directly trust the update package, but first verifies the package by verifying the signature with the public key and the hash to confirm that the package has not been tampered with, and then generates an installation plan based on the local differences.
