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

Data reading method and device for storage medium

A technology for storage media and data reading, which is applied in the direction of electrical digital data processing and instruments, and can solve problems such as inability to communicate

Active Publication Date: 2012-12-12
QINGDAO HISENSE MOBILE COMM TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] Embodiments of the present invention provide a method and device for reading data from a storage medium, which are used to solve the problem that the storage medium in the handheld device cannot be used as a USB mount medium to communicate with the host computer because the fat file system cannot be loaded

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 reading method and device for storage medium
  • Data reading method and device for storage medium
  • Data reading method and device for storage medium

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0040] In this embodiment, it is necessary to pre-program the prefabricated content into the relevant mtd partition in the nand flash, and write the address information of the mtd partition into the mtd partition list. like figure 2 As shown, the follow-up process is as follows:

[0041]Step 20: After the handheld device is turned on, read the address of the mtd partition with prefabricated content stored in the nand flash of the handheld device from the maintained mtd partition list, scan the mtd partition corresponding to the address, obtain and record the mtd The bad block information in the partition, specifically, the bad block information can be recorded in a static array;

[0042] Here, the mtd partition is scanned to obtain and record the bad block information in the mtd partition. The specific implementation can be: scan each block of the current partition through the bad block management function of the mtd device, if the current block is a bad block , then add th...

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 embodiment of the invention discloses a data reading method and device for a storage medium, relates to the field of data storage, and is used for solving the problem that a storage medium in a handheld device can not used as a USB (universal serial bus) mounting medium to communicate with an upper computer. According to the method and the device disclosed by the invention, after the handheld device is connected with the upper computer through the USB, information of a block which stores preset contents in an mtd (memory technology device) partition of the storage medium of the handheld device is obtained, after a querying command of the upper computer is received, the information of the block is reported to the upper computer, and after a reading command of the upper computer is received, the block which stores the preset contents and is pointed by LBA (logical block addressing) information generated according to the information of the block and carried in the reading command is determined, the preset contents stored in the block are read, and the read preset contents are transmitted to the upper computer through the USB. According to the data reading method and device for the storage medium disclosed by the invention, the problems can be solved.

Description

technical field [0001] The invention relates to the field of data storage, in particular to a method and device for reading data from a storage medium. Background technique [0002] As an open source code and free operating system, Linux system has been widely used in various embedded fields. Universal Serial Bus (Universal Serial Bus, USB) has become an extremely important method for embedded devices to communicate with other devices due to its high-speed transmission speed and versatility in the industry. [0003] For example, after a handheld device (such as a mobile phone) using the Linux operating system is connected to a host computer (such as a PC) via USB, it can transmit data at high speed and can be used for charging, etc., so that the handheld device can play a role in storage devices, wireless network cards and Debugging and other functions. [0004] At present, after the handheld device is connected to the PC through USB, the process of transferring data to 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
IPC IPC(8): G06F13/38
Inventor 俞茂学
Owner QINGDAO HISENSE MOBILE COMM TECH CO LTD