Virtual Directory Merge for Robust File Updates on Low-Storage IoT
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing software update methods, particularly Firmware Over-The-Air (FOTA) upgrades, face challenges in ensuring robustness without requiring additional storage space, as they often need extra disk space for backup partitions, which is not feasible for low-capacity IoT devices.
Innovation Solution
A file update method that virtually merges the directories of the update data package and the to-be-updated file package to create a temporary package, allowing verification and merging only when successful, thus eliminating the need for additional storage space.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If main/standby switching or recovery mode is used to ensure robustness, then system reliability is improved, but storage space requirement increases
Solution Approach 1:
The update package is nested within the existing file package directory structure. The update package is placed in the same target disk partition as the to-be-updated file package, and the directories are virtually merged, allowing the update package to be stored within the space already occupied by the file package without requiring additional dedicated storage space.
Solution Approach 2:
The patent introduces a virtual dimension by merging directories virtually rather than physically allocating separate storage spaces. The virtual merge creates a temporary file package that combines the to-be-updated file package and update package in a unified directory structure, allowing robustness without additional physical storage overhead.
2Reliability
If additional storage space is allocated for update packages, then update robustness is improved, but device complexity increases
Solution Approach 1:
The patent merges the storage locations of the to-be-updated file package and the update package into a single target disk partition. The directories are virtually merged to create a temporary file package, eliminating the need for separate storage structures and reducing overall system complexity while maintaining update robustness.
Data Source
AI summary
The present application provides a file update method, a file update apparatus, a device and a storage medium. The method includes: downloading an update data package to a target disk partition where a file package to be updated is located, the update data package being used for updating the file package; performing virtual combination on a directory of the file package and a directory of the update data package to obtain a temporary file package; and in cases where the verification of the temporary file package is successful, incorporating the update data package into the directory of the file package.


