OTA partition upgrading method

Through partition detection and memory isolation technology, the impact of OTA upgrade on user experience is solved, the accuracy and stability of the upgrade process is ensured, and the smooth upgrade and version consistency of the device is achieved.

CN120469708APending Publication Date: 2025-08-12SHENZHEN ANST TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510554170.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

The existing OTA upgrade technology requires the vehicle to be stationary during upgrade, which affects the user experience and cannot guarantee the accuracy and stability of the upgrade.

Method used

Partition detection and memory isolation technology are used to divide the device into available zones and spare zones, allowing users to continue to use the device during the upgrade, and identify process permissions through CRC checksum NLP models, prioritize the upgrade package, and version calibration ensures consistency through blockchain signatures.

Benefits of technology

It realizes a smooth transition of the equipment during the upgrade period, reduces the impact on user usage, ensures the accuracy and stability of the upgrade, and improves user experience and upgrade quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120469708A_ABST
    Figure CN120469708A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of intelligent automobiles, and provides an OTA partition upgrading method and system aiming at the problems that a vehicle needs to be static during upgrading in an existing OTA upgrading technology, user experience is affected, and upgrading accuracy and stability cannot be guaranteed. The method comprises the following steps: firstly, carrying out partition detection on equipment to divide an available area and a standby area, maintaining the equipment to work by the standby area during operation, and upgrading the available area by using an upgrade package; after finishing, migrating the standby area cache to the available area, switching the working area, and upgrading the standby area; and performing version calibration when the equipment is idle. Wherein the partition detection is checked by CRC (Cyclic Redundancy Check), the upgrade package is written according to priority, the region switching relates to process migration and authority management, and the version calibration is checked and signed through a block chain. The system comprises a partition detection module, an upgrade module, a region switching module and a verification module. According to the method, accurate partitioning, efficient upgrading and smooth region switching are ensured, the version consistency is guaranteed, and the user experience and the upgrading quality are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent vehicles and relates to an OTA partition upgrade method and system. Background Art

[0002] Currently, OTA upgrade technology can safely and conveniently upgrade device firmware or software, significantly reducing costs and conserving resources, making it a key technology for new energy vehicle manufacturers. Existing OTA solutions require the vehicle to be stationary during upgrades, which can easily prevent the owner from using the vehicle in an emergency.

[0003] The existing technology cannot ensure that the upgrade process is both efficient and does not affect the user experience. Summary of the Invention

[0004] In order to solve the problems existing in the background technology, the present invention proposes an OTA partition upgrade method and system.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows: An OTA partition upgrade method, comprising: Perform partition detection on the currently upgraded equipment and divide it into available areas and spare areas based on the available areas and occupied areas; Use the currently running zone as a standby zone and upgrade it using the upgrade package in the selected available zone. After the upgrade of the availability zone is complete, the cache, including processes, in the standby zone is moved to the availability zone, and the availability zone takes over the work of the standby zone. The process migration includes identifying the compatibility of the new and old versions and avoiding processing based on permission levels. After the standby area has moved all caches of the current task, it is upgraded using the upgrade package; When the currently upgraded device is idle, version calibration is performed, and the upgrade is completed after the version calibration is correct.

[0006] Furthermore, the specific method of dividing the available area and the occupied area into the available area and the spare area is as follows: Retrieve the task progress, perform integrity check through CRC, and complete the division of available area and occupied area.

[0007] Furthermore, the specific method for selecting an availability zone for upgrade is as follows: Split the upgrade package into multiple data packages and write them to the available zones in order of priority; The priority of multiple data packets in the upgrade package is determined by the NLP model, and the data packets with higher priority are written first; During the writing process, users are allowed to use the spare area to avoid resource conflicts through memory isolation.

[0008] Furthermore, the priority of the data packet is determined by a logic control layer corresponding to the data packet.

[0009] Furthermore, the cache in the standby zone is moved to the available zone. The specific method for the available zone to take over the work of the standby zone is as follows: Save all processes in the standby zone and load them into the available zone; Use the NLP model to identify each process in the availability zone and distinguish between old and new versions. Also identify the permission level of each process running in the standby zone. Based on the new and old version distinction and permission level of each process, modify the old version of the process to a temporary process that can run in the availability zone. The low-privilege-level process needs to perform compatibility avoidance for the high-privilege-level process to avoid the low-privilege-level process from interfering with the high-privilege-level process; Monitor user input events in the standby zone, overwrite the network connection and current user data of the standby zone to the corresponding process in the available zone, and complete the switch from the standby zone to the available zone.

[0010] Furthermore, the specific method for performing version calibration when the current upgrade device is idle is as follows: Compare the signatures of the cloud version number, availability zone, and backup zone to see if they are consistent; If the three signatures are inconsistent, the available zone and the backup zone will automatically trigger a rollback and upload the error log to the cloud for analysis.

[0011] Furthermore, the signature is verified through the blockchain.

[0012] In addition, the present invention also provides an OTA partition upgrade system, which executes the above-mentioned OTA partition upgrade method at runtime, including: The partition detection module performs partition detection on the currently upgraded device and divides it into available areas and spare areas based on the available areas and occupied areas; Upgrade module and select the corresponding area to upgrade; The regional switching module moves the cache in the standby zone to the available zone, and the available zone takes over the work of the standby zone; Verification module, performs version calibration when the current upgrade device is idle.

[0013] Compared with the prior art, the present invention has the following beneficial effects: The present invention ensures the accuracy of the partition and the integrity of the data by retrieving the task process and performing integrity check using CRC.

[0014] The present invention splits the upgrade package in a priority sorting manner and utilizes memory isolation technology to allow the user to continue using the device during the upgrade.

[0015] The present invention achieves smooth transition and non-interference by saving and migrating processes and adjusting compatibility settings based on authority levels.

[0016] The present invention can perform version calibration when the device is idle, and ensure version consistency by comparing signatures in the cloud, available zone and spare zone; if a problem is found, it will automatically roll back and record an error log. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flow chart of the method of the present invention; Figure 2 It is a system structure diagram of the present invention. DETAILED DESCRIPTION

[0018] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0019] like Figure 1-Figure 2 As shown, the technical solution adopted by the present invention is as follows: An OTA partition upgrade method, comprising: Perform partition detection on the currently upgraded equipment and divide it into available areas and spare areas based on the available areas and occupied areas; Use the currently running zone as a standby zone and upgrade it using the upgrade package in the selected available zone. After the upgrade of the availability zone is complete, the cache, including processes, in the standby zone is moved to the availability zone, and the availability zone takes over the work of the standby zone. The process migration includes identifying the compatibility of the new and old versions and avoiding processing based on permission levels. After the standby area has moved all caches of the current task, it is upgraded using the upgrade package; When the currently upgraded device is idle, version calibration is performed, and the upgrade is completed after the version calibration is correct.

[0020] The OTA partition upgrade method provided by this invention aims to achieve smooth device upgrades, minimize the impact of upgrades on users, and ensure the accuracy and stability of upgrades. The main steps include partition detection, selecting the upgrade zone, cache migration and zone switching, upgrading the backup zone, and version calibration.

[0021] Perform partition detection on the currently upgraded device, retrieve task progress, perform integrity verification using CRC, and divide the partition into available and spare areas based on available and occupied areas. CRC verification ensures the integrity of partition data. Accurately dividing available and spare areas provides clear space planning for subsequent upgrade operations, avoiding data overwriting or conflicts during the upgrade process and ensuring a smooth upgrade.

[0022] The upgrade package is split into multiple data packets and written to the availability zones in order of priority. NLP is used to prioritize multiple data packets within the upgrade package, with higher-priority packets written first. Splitting the upgrade package and writing it by priority prioritizes critical data packets, improving upgrade efficiency and system stability. NLP technology intelligently prioritizes data packets, ensuring that upgrades are more aligned with actual needs.

[0023] The priority of the data packet is determined by the logic control layer corresponding to the data packet. This ensures that the control logic of the currently upgraded device is adjusted in order during the upgrade, avoiding the situation where the upper-layer application cannot adapt to the underlying control logic due to the reconstruction of the underlying control logic, resulting in the process being unusable.

[0024] Allowing users to use the spare area during the write process, and avoiding resource conflicts through memory isolation. Allowing users to use the spare area during the upgrade process, while also performing memory isolation, reduces the impact of the upgrade on users' normal use of the device and improves the user experience.

[0025] All processes in the standby zone are saved and loaded into the available zone. Saving and migrating processes in the standby zone ensures that users can continue their previous operations after the zone switch, minimizing data loss and work interruption.

[0026] The NLP model is used to identify each process in the availability zone and distinguish between old and new versions. The permission level of each process running in the standby zone is also identified. Based on the new and old version distinction and permission level of each process, the old version of the process is modified into a temporary process that can run in the availability zone.

[0027] Low-privilege processes must yield to high-privilege processes to prevent interference. The NLP model identifies process versions and privilege levels and modifies older versions to ensure compatibility in new areas. By yielding to high-privilege processes, low-privilege processes avoid interference and improve system stability.

[0028] Monitor user input events in the backup zone, overwrite the backup zone's network connections and current user data to the corresponding processes in the available zone, and complete the switch from the backup zone to the available zone. Migrating network connections and user data allows users to seamlessly continue using their devices after switching zones, improving the user experience.

[0029] After the standby zone has moved all caches for the current task, it is upgraded using the upgrade package. Upgrading the standby zone after the availability zone takes over ensures that both partitions of the device are up to date, ensuring future use and upgrades while also improving overall device performance and security.

[0030] Compare the signatures of the cloud version number, availability zone, and backup zone to ensure consistency. These signatures are verified using the blockchain. The blockchain ensures that the cloud version number, availability zone, and backup zone cannot be maliciously tampered with, ensuring data security.

[0031] If the signatures of the three partitions are inconsistent, a rollback is automatically triggered in the availability zone and the backup zone, and error logs are uploaded to the cloud for analysis. Version calibration ensures that the versions on both partitions of the device are consistent with those on the cloud, ensuring upgrade accuracy. The automatic rollback mechanism promptly restores the device status in the event of version inconsistencies, minimizing the impact of upgrade failures. Uploading error logs to the cloud for analysis helps developers identify and resolve issues promptly, increasing the success rate of subsequent upgrades.

[0032] In summary, the OTA partition upgrade method provided by the present invention achieves efficient and stable upgrade of devices while improving the user experience through reasonable partition planning, intelligent upgrade strategy, smooth region switching and strict version calibration.

[0033] In addition, the present invention also provides an OTA partition upgrade system, which executes the above-mentioned OTA partition upgrade method at runtime, including: The partition detection module performs partition detection on the currently upgraded device and divides it into available areas and spare areas based on the available areas and occupied areas; Upgrade module and select the corresponding area to upgrade; The regional switching module moves the cache in the standby zone to the available zone, and the available zone takes over the work of the standby zone; Verification module, performs version calibration when the current upgrade device is idle.

[0034] Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. An OTA partition upgrade method, characterized in that: Includes: Perform partition detection on the currently upgraded equipment and divide it into available areas and spare areas based on the available areas and occupied areas; Use the currently running zone as a standby zone and upgrade it using the upgrade package in the selected available zone. After the upgrade of the availability zone is complete, the cache, including processes, in the standby zone is moved to the availability zone, and the availability zone takes over the work of the standby zone. The process migration includes the identification of the compatibility of the new and old versions and the avoidance processing based on the permission level. After the standby area has moved all caches of the current task, it is upgraded using the upgrade package; When the currently upgraded device is idle, version calibration is performed, and the upgrade is completed after the version calibration is correct.

2. The OTA partition upgrade method according to claim 1, wherein: The specific method of dividing available zones and occupied zones into available zones and standby zones is as follows: Retrieve the task progress, perform integrity check through CRC, and complete the division of available area and occupied area.

3. The OTA partition upgrade method according to claim 1, wherein: The specific method for selecting an availability zone for upgrade is as follows: Split the upgrade package into multiple data packages and write them to the available zones in order of priority; The priority of multiple data packets in the upgrade package is determined by the NLP model, and the data packets with higher priority are written first; During the writing process, users are allowed to use the spare area to avoid resource conflicts through memory isolation.

4. The OTA partition upgrade method according to claim 3, wherein: The priority of the data packet is determined by the logic control layer corresponding to the data packet.

5. The OTA partition upgrade method according to claim 1, wherein: Move the cache in the standby zone to the available zone. The specific method for the available zone to take over the work of the standby zone is as follows: Save all processes in the standby zone and load them into the available zone; Use the NLP model to identify each process in the availability zone and distinguish between old and new versions. Also identify the permission level of each process running in the standby zone. Based on the new and old version distinction and permission level of each process, modify the old version of the process to a temporary process that can run in the availability zone. The low-privilege-level process needs to perform compatibility avoidance for the high-privilege-level process to avoid the low-privilege-level process from interfering with the high-privilege-level process; Monitor user input events in the standby zone, overwrite the network connection and current user data of the standby zone to the corresponding process in the available zone, and complete the switch from the standby zone to the available zone.

6. The OTA partition upgrade method according to claim 1, wherein: The specific method for performing version calibration when the current upgrade device is idle is as follows: Compare the signatures of the cloud version number, availability zone, and backup zone to see if they are consistent; If the three signatures are inconsistent, the available zone and the backup zone will automatically trigger a rollback and upload the error log to the cloud for analysis.

7. The OTA partition upgrade method according to claim 6, characterized in that: The signature is verified through the blockchain.

8. An OTA partition upgrade system, characterized in that: The OTA partition upgrade system executes the OTA partition upgrade method according to claim 1 during operation, including: The partition detection module performs partition detection on the currently upgraded device and divides it into available areas and spare areas based on the available areas and occupied areas; Upgrade module and select the corresponding area to upgrade; The regional switching module moves the cache in the standby zone to the available zone, and the available zone takes over the work of the standby zone; Verification module, performs version calibration when the current upgrade device is idle.