Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for writing data

A data writing and data technology, applied in the field of communications, can solve the problems of wasting the storage performance of the rewritable memory and failing to give full play to the storage capacity of the rewritable memory, so as to effectively utilize the storage performance and avoid excessive wear and tear. Effect

Inactive Publication Date: 2013-04-24
이노피데이인코포레이티드 +1
View PDF5 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The present invention provides a data writing method and a data writing device to solve the problem that when a FAT file system is used to write data into a rewritable memory, the entire BLOCK where the area is located is blocked due to repeated operations. It is judged as a bad block, which wastes the storage performance of the rewritable memory and cannot fully utilize the potential storage capacity of the rewritable memory

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 writing data
  • Method and device for writing data
  • Method and device for writing data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] refer to figure 1 , shows a flow chart of steps of a data writing method according to Embodiment 1 of the present invention.

[0028] The data writing method of the present embodiment includes the following steps:

[0029] Step S102: Receive a data write instruction for writing data into the rewritable memory, and determine a first data block in the rewritable memory to write data according to the data write instruction.

[0030] The data write instruction usually includes the address of the data block to be written, such as the logical address of the data block to be written, and then the physical address of the corresponding data block can be determined according to the logical address.

[0031] Step S104: Obtain the number of times of erasing / writing of the first data block, and when the number of times of erasing / writing of the first data block reaches the set threshold, select the eraser from other data blocks of the rewritable memory The second data block whose ...

Embodiment 2

[0040] refer to figure 2 , shows a flow chart of steps of a data writing method according to Embodiment 2 of the present invention.

[0041] In this embodiment, taking the rewritable NAND memory as an example, the data blocks of the NAND memory are linked in the form of a linked list, and the erasure of the data block is recorded in the OOB (Out Of Band, out-of-band data) area of ​​each data block. Number of times to divide / write. According to the number of erasing / writing of each data block of the NAND memory, use a linked list to link each data block of the NAND memory from small to large; after writing data to the data block, according to the erasure of the data block of the written data / times of writing, move the data block in which the data is written to after the data block whose erasing / writing times is less than or equal to the erasing / writing times of the data block in which the data is written.

[0042] The following is a simple example to illustrate the linked l...

Embodiment 3

[0058] refer to image 3 , shows a flow chart of steps of a data writing method according to Embodiment 3 of the present invention.

[0059] In this embodiment, the file description sector stored in the NAND memory is taken as an example. The 512 bytes of this sector will be frequently erased and written, and the wear will be serious. In this embodiment, in the OOB area of ​​the data block corresponding to the sector, the number of times of erasing / writing the data block is recorded, and when the number of times exceeds the set threshold, this data block is exchanged with other available data blocks, so that It becomes a "new data block".

[0060] The data writing method of the present embodiment includes the following steps:

[0061] Step S302: the LTE data card outputs LOG information, the device where the LTE data card is located sends a data write command, and the corresponding software module of the device where the LTE data card is located prepares to write data into t...

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 provides a method and device for writing data. The data writing method includes: receiving data writing commands for writing data to a repeatedly erasable memory, and determining a first data block of data to be written in the repeatedly erasable memory according to the data writing commands; obtaining erasing / writing times of the first data block, when the erasable / writing times of the first data block reach a set threshold, selecting a second data block from other data blocks of the repeatedly erasable memory, wherein the erasable / writing times of the second data block do not reach the set threshold; exchanging data in the first data block and data in the second data block; and writing the data to the second data block after data exchange according to the data writing commands. By means of the method and device, an effect of effectively using memory performance of the repeatedly erasable memory is achieved.

Description

technical field [0001] The present invention relates to the technical field of communications, in particular to a data writing method and device. Background technique [0002] When the data card is working and debugging, it will output a lot of information. Take the LTE (Long Term Evolution, long-term evolution) data card as an example. When the LTE data card is working and debugging, there will be a lot of LOG (log) information output for R&D personnel to analyze and debug. In most cases, the LOG information can be exported through the virtual serial port through the HOST (PC / development board). However, in some cases, if the development board does not have an operable interface (such as MIFI equipment), or when it is used for external unit instrument testing, the test unit does not provide services to assist in extracting LOG information, it is necessary to transfer the LOG information to Save as a file. [0003] At present, in various systems, the compatibility of the ...

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
IPC IPC(8): G06F12/02
Inventor 施纯良
Owner 이노피데이인코포레이티드