Data writing method and device

A data writing and data technology, which is used in the input/output process of data processing, electrical digital data processing, and redundant data error detection in operations. , to achieve the effect of ensuring completeness and accuracy

Active Publication Date: 2020-01-17
SHENZHEN EXCELSECU DATA TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of the present invention provides a data writing method and device, which aims to solve the problem that the existing data writing method may cause abnormal results in the target area when the power is cut off, and even cause the smart card to fail due to the disorder of the internal data structure. Or the problem of USBKey scrapping

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
  • Data writing method and device
  • Data writing method and device
  • Data writing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 A flow chart of a data writing method provided by the first embodiment of the present invention is shown, and the details are as follows:

[0026] Step S11, when the storage device is powered on, it is judged whether the backup completion flag is set.

[0027] like figure 2 As shown, the backup completion mark can be stored in the backup information record table of the backup area. The content of the backup information recording table may include not only the backup completion mark, but also the data block address, data size, and check digit of the target area, wherein the check bit is used to verify the backup completion mark, data block address, and data size. integrity.

[0028] Storage devices include: contact or contactless smart card, Bluetooth smart card or Bluetooth shield, USBKey, etc. In the embodiment of the present invention, the storage device includes a backup area and a target area.

[0029] When the storage device is powered on (such as th...

Embodiment 2

[0060] Figure 5 It shows a structural diagram of a data writing device provided by the second embodiment of the present invention, and the data writing device can be applied to various storage devices, for example, applied to contact or non-contact smart cards, Bluetooth smart cards or Bluetooth Shield, USBKey. For ease of description, only parts related to the embodiments of the present invention are shown.

[0061] The data writing device includes: a backup complete flag state judging unit 61 , a target area data writing unit 62 , a data to be written comparing unit 63 , and a data writing selecting unit 64 . in:

[0062] The backup completion flag state judging unit 61 is configured to judge whether the backup completion flag is set when the storage device is powered on.

[0063] When the storage device is powered on (such as the storage device communicates with the mobile terminal or PC terminal), when data needs to be transferred from the mobile terminal or PC termina...

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 is applicable to the field of communication, and provides a data write-in method and device. The method comprises the following steps of when storage equipment is electrified, judging whether a backup completion mark is set or not; after the backup completion mark is set, writing data in a backup region of the storage equipment into a target region of the storage equipment; when the backup completion mark is not set and a data write-in request is received, reading the data in the target region of the storage equipment, and comparing the read data of the target region of the storage equipment with data to be written in; selecting whether to write the data to be written into the storage equipment or not according to the comparison result. By using the method, the completeness of the data written into the target region can be improved.

Description

technical field [0001] The embodiments of the present invention belong to the communication field, and in particular relate to a data writing method and device. Background technique [0002] In the user's daily life, various storage devices may be required to store additional data, for example, storing data through a smart card or USBKey. However, when the smart card or USBKey on the market stores data, it directly stores the data into the target area of ​​the storage unit of the smart card or USBKey. However, if a power failure occurs during the process of storing data into the target area of ​​the storage unit of the smart card or USBKey, it may cause abnormal results in the target area of ​​the storage unit, such as data disorder, or even cause the smart card to fail due to the disorder of the internal data structure. Or the USBKey is scrapped. Contents of the invention [0003] The embodiment of the present invention provides a data writing method and device, aiming ...

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 Patents(China)
IPC IPC(8): G06F3/06G06F11/14
CPCG06F3/0619G06F3/0638G06F11/1458
Inventor 陈柳章
Owner SHENZHEN EXCELSECU DATA TECH
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