Data backup method, data backup device, backup item erasing method, backup item erasing device, data recovery method and data recovery device
A data recovery device and data backup technology, which are applied in the direction of data error detection, response error generation, etc., using redundancy in computing, can solve problems such as the performance degradation of smart card applications, and achieve the effect of improving performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0065] In the first embodiment, a data writing process carried out by NANDFLASH of the smart card is described, as image 3 shown, including:
[0066] Step S301, start the current data writing process.
[0067] Step S302, determine the sector corresponding to the current data writing, that is, determine the current sector.
[0068] Step S303 , judging whether the original data stored in the current sector has been backed up, if so, go to step 306 ; otherwise, go to step S304 . Since multiple data write operations may be performed on a sector during a data write process, this step can realize that only when the first data write operation is performed on a sector, the original data stored in the sector can be backup.
[0069] Step S304, find out a free sector in each sector of FAT2 in the FAT32 file system, you can search in order from front to back, and write the data stored in the current sector into the found free sector middle.
[0070] Step S305, creating a backup item...
Embodiment 2
[0076] When creating a backup item corresponding to the current sector in the above step S305, if there is no free backup storage space in the first backup item sector of NORFLASH, then use the invalid second backup item sector of NANDFLASH to create a corresponding backup item , which is described in detail below through the complete flow of backup item creation, such as Figure 4 shown, including:
[0077] Step S401, start the backup item creation.
[0078] Step S402, judging whether there is free backup item storage space in the first backup item sector of NORFLASH, if yes, proceed to step S403; otherwise, proceed to step S404.
[0079] Step S403, creating a backup item corresponding to the current backup item in the first backup item sector. The information of the specifically created backup item can be the same as that of the prior art, for example, as figure 2 As shown, it may include four parts, valid flag, original sector number, target sector number and check code...
Embodiment 3
[0090] In the third embodiment of the present invention, based on the above data backup method, a method for erasing backup items is provided, which can be used in the above step S308, and the process is as follows Figure 5 shown, including:
[0091] Step S501, setting the second flag in the valid second backup item sector of NANNFLASH to be invalid.
[0092] Step S502, erasing the content stored in the first backup item sector of NORFLASH.
[0093] A better specific implementation method is provided below, such as Image 6 shown, including:
[0094] Step S601, start backup item erasure.
[0095] Step S602, judging whether there is a valid second backup item sector in each second backup item sector of NANDFLASH, if yes, go to step S603; otherwise, go to step S604.
[0096] In this step, it may specifically be: determine the valid second backup item sector according to whether the second flag in each second backup item sector is valid; or it may be: the third backup item s...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 