Method and device for updating data

A data update and data technology, applied in the field of data processing, to achieve the effect of reducing the number of write operations

Inactive Publication Date: 2010-09-01
BEIJING WATCH DATA SYST
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In the process of realizing the above-mentioned data update, the inventor found that when updating data in the prior art, although there is no need to back up the data to be updated, effective marking is still required as a part of the entire data update, and the method in the prior art is still required make a backup

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for updating data
  • Method and device for updating data
  • Method and device for updating data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] The embodiment of the present invention provides a method for updating data. Each area in the data structure used in the method includes a data area, an area valid flag, and area verification data, such as figure 1 As shown, the method includes the following steps:

[0025] 101. Determine an invalid area according to the area validity flag and area verification data. It can be judged whether this area is a valid area or an invalid area through the valid flag of the area and the area verification data.

[0026] 102. Update the data area of ​​the invalid area and the area valid flag and area check data of the invalid area. The data area in each area is used to store data to be updated. The updated area valid flag and area verification data of the invalid area make the updated invalid area a valid area, and the unupdated area becomes an invalid area. This ensures that the data to be updated can be correctly updated to the invalid area during the next data update process...

Embodiment 2

[0032] The embodiment of the present invention provides a method for updating data. The data structure used in the method includes two areas, as shown in Table 2 below, and each area includes a data area, an area valid flag, and an area verification data .

[0033] Table 2

[0034]

[0035] The method of data update, such as image 3 shown, including the following steps:

[0036] 301. Determine an invalid area according to the area validity flag and area verification data.

[0037] In the specific implementation process, determining the invalid area according to the area valid flag and the area verification data can be realized in the following manner:

[0038] Firstly, it is checked whether the area verification data of the two areas are correct. The area verification algorithm can be used to calculate the verification value of the data stored in the current area and the area valid flag, and compare the obtained verification value with the area verification data stored...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for updating data, relating to the technical field of data processing, and realizing the target that data updating can be directly performed without backup operations. The method comprises the following steps: determining an invalid region according to a regional valid flag and regional verification data; and updating a data region in the invalid region, the regional valid flag and the regional verification data, wherein the invalid region is changed into a valid region by the updated regional valid flag. The embodiment of the invention is mainly applied to data updating.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a method and device for updating data. Background technique [0002] At present, there are a large amount of data that needs to be updated with protection during the transaction process of the smart card. In the process of updating the data, if abnormal conditions such as power failure occur, the data in the updated area will either maintain the original state or the updated state, which does not exist. other status. Before this type of data is updated, the original data is usually backed up. If an abnormal situation such as power failure occurs during the update process, the backup data will be used for recovery at the next smart card power-on stage. When this method implements data update, at least two identical write operations are required, namely: backing up original data and updating data. As a result, there are too many write operations when updating data, and th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F11/10
Inventor 齐同心
Owner BEIJING WATCH DATA SYST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products