Capacity expansion detection method of memory card and card reader with capacity expansion detection function
A detection method and memory card technology, applied in the field of memory cards, can solve problems such as 'Windows cannot complete formatting, freeze', value appreciation, etc.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2017-06-09
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
Technical field
[0001] The invention belongs to the technical field of memory cards, and more specifically, relates to a memory card expansion detection method and a card reader with expansion detection function. Background technique
[0002] Memory card expansion is a profit-making method often used by copycat memory card manufacturers, but there is currently a lack of independent devices on the market that specifically detect the quality of memory cards. Consumers can only use some software on the Windows operating system to identify the quality of memory cards. , The dependence on the operating system is strong, and the operation process is slow, which is easy to cause crashes; the test results can only be obtained after the memory card is purchased, and the test is of little significance. At present, most of the detection software on the market scans and detects in a certain increasing order. This gives some unscrupulous merchants the opportunity to use this increasing order ...
Examples
Embodiment
[0018] figure 1 It is a flowchart of a specific implementation manner of the method for detecting capacity expansion of a memory card of the present invention. Such as figure 1 As shown, the expansion detection method of the memory card of the present invention mainly adopts three-step detection, including the following steps:
[0019] S101: Read the DBR (DOS BOOT RECORD, partition boot sector) sector data of the memory card, get the total number of sectors, and get the memory capacity C of the memory card according to the total number of sectors 1 .
[0020] According to the specification of the FAT file system, if there is an MBR (Main Boot Record) in the memory card, the MBR data is stored in the lowest address space of the memory card, occupying 512 bytes of memory, which is the first sector; if The memory card has no MBR, so the first sector data is DBR. Therefore, first read the information of the first sector of the memory card by calling the single block read function SD_R...