# US 2022/0283894 A1 · Detection method and system applied to intelligent analysis and detection for flash, intelligent terminal, and computer-readable storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0283894 A1
- Document ID: US20220283894A1
- Status: Published application
- Kind: A1
- Application number: 17/651,054
- Filed: 2022-02-14
- Published: 2022-09-08
- Earliest claimed: 2021-03-05
- Assignees: Shenzhen Sandiyixin Electronic Co., Ltd.
- Applicants: Shenzhen SanDiYiXin Electronic Co., Ltd
- Inventors: Ruhong Zhang; Laisheng Hu; Xiangbin Chen; Hui Zhang
- Web page: https://patentgrep.com/patent/US20220283894A1

## CPC

- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G11C 29/76: {using address translation or modifications}
- G06F 11/0727: {in a storage system, e.g. in a DASD or network based storage system (drivers for digital recording or reproducing units G06F3/06; circuits for error detection or correction within digital recording or reproducing units G11B20/18; for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS], H04L67/1097)}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G11C 29/42: using error correcting codes [ECC] or parity check
- G11C 29/4401: {for self repair}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

An intelligent terminal, and a computer-readable storage medium is provided. The detection method includes: obtaining a column set, a page set, and a block set, and presetting a bad column set, a bad page set, an error threshold, and an initial bad block template; alternately obtaining bad page elements and bad column elements from the block set in sequence based on the error threshold, and alternately updating the bad page set and the bad column set in sequence; based on the bad column sets and the bad page sets corresponding to different error thresholds, updating the error threshold, obtaining a final column set from the bad column sets, and obtaining a final page set from the bad page sets; and obtaining a final bad block template. The present invention can reduce the impact of a bad page on a subsequent operation of selecting a bad column element.

## Claims

### Claim 1

A detection method applied to intelligent analysis and detection for flash, comprising:
step S1: obtaining a column set, a page set, and a block set comprising the column set and the page set, and presetting a bad column set, a bad page set, an error threshold that can be updated for each iteration, and an initial bad block template comprising the bad column set and the bad page set;
step S2: according to a bad page selection strategy and a bad column selection strategy, alternately obtaining bad page elements and bad column elements from the block set in sequence based on the error threshold, and alternately updating the bad page set and the bad column set in sequence;
step S3: based on the bad column sets and the bad page sets corresponding to different error thresholds, updating the error threshold according to a bad template iteration strategy, obtaining a final column set from the bad column sets, and obtaining a final page set from the bad page sets; and
step S4: obtaining a final bad block template by updating the initial bad block template based on the final column set and the final page set.

### Claim 2 (depends on 1)

The method of claim 1, wherein step S2 comprises:
step S21: obtaining to-be-detected page subsets from the page set based on the bad column set according to a bad column interference elimination strategy, analyzing the to-be-detected page subsets in sequence based on the error threshold according to a bad page determining strategy, obtaining the bad page elements from the block set, and updating the bad page set based on the bad page elements; and
step S22: obtaining to-be-detected column subsets from the column set based on the bad page set according to a bad page interference elimination strategy, analyzing the to-be-detected column subsets in sequence based on the error threshold according to a bad column determining strategy, obtaining the bad column elements from the block set, and updating the bad column set based on the bad column elements.

### Claim 3 (depends on 2)

The method of claim 2, wherein
step S1 further comprises: obtaining original column subsets and original page subsets, wherein the column set contains the original column subsets, and the page set contains the original page subsets;
step S21 comprises:
step S211: obtaining interference page subsets by mapping the bad column set to the original page subsets;
step S212: obtaining complements of the interference page subsets within corresponding original page subsets in sequence, and generating the to-be-detected page subsets; and
step S213: according to the bad page determining strategy, analyzing the to-be-detected page subsets in sequence based on the error threshold, obtaining the bad page elements from the block set, and updating the bad page set based on the bad page elements; and
step S22 comprises:
step S221: obtaining interference column subsets by mapping the bad page set to the original column subsets;
step S222: obtaining complements of the interference column subsets within corresponding original column subsets in sequence, and taking the complements as the to-be-detected column subsets; and
step S223: according to the bad column determining strategy, obtaining the bad column elements from the to-be-detected column subsets based on the error threshold, and updating the bad column set.

### Claim 4 (depends on 3)

The method of claim 3, wherein
step S213 comprises:
step S2131: obtaining page error values of the to-be-detected page subsets in sequence according to an instruction error correction strategy;
step S2132: based on the error threshold and the page error values, according to a bad page screening strategy, sequentially selecting, from the to-be-detected page subsets, those subsets not meeting a page validity condition as invalid page subsets; and
step S2133: obtaining bad page elements based on the original page subsets corresponding to the invalid page subsets, and obtaining a set containing all the bad page elements as the bad page set; and
step S223 comprises:
step S2231: obtaining column error values of the to-be-detected column subsets in sequence according to the instruction error correction strategy;
step S2232: based on the error threshold and the column error values, according to a threshold comparison strategy, selecting, from the to-be-detected column subsets, those not meeting a column precision condition as invalid column subsets; and
step S2233: obtaining the bad column elements based on the original column subsets corresponding to the invalid column subsets, and obtaining a set containing all the bad column elements as the bad column set.

### Claim 5 (depends on 1)

The method of claim 1, wherein
step S3 comprises:
step S31: establishing a template library used for storing to-be-compared templates corresponding to different error thresholds;
step S32: according to a template comparison strategy, determining whether complete error thresholds in the current template library have a minimum value meeting an available capacity condition, and if yes, performing step S34, and if no, performing step S33;
step S33: updating the error thresholds, updating the to-be-compared template based on the bad column set and the bad page set, storing the updated error thresholds and updated to-be-compared template into the template library, and returning to step S2; and
step S34: generating the final column set and the final page set based on the determining result.

### Claim 6 (depends on 5)

The method of claim 5, wherein step S32 comprises:
step S321: determining whether the to-be-compared template exists in the current template library, and if yes, performing step S322, and if no, performing step S323;
step S322: determining whether the to-be-compared template meets an iteration termination condition, and if yes, performing step S34, and if no, performing step S33; and
step S323: obtaining a to-be-compared template containing the current bad column set and the current bad page set, and storing the to-be-compared template into the template library; and
step S34 further comprises: obtaining the bad column set in the to-be-compared template as the final column set, and obtaining the bad page set in the to-be-compared template as the final page set.

### Claim 7 (depends on 6)

The method of claim 6, wherein step S322 comprises:
step S3221: presetting a column validity threshold, determining, based on the column validity threshold, whether the bad column set in the current to-be-compared template meets the available capacity condition, and if yes, performing step S3222, and if no, performing step S33;
step S3222: presetting a column iteration threshold, analyzing the to-be-compared template and the bad column set based on the column iteration threshold, determining whether the to-be-compared template meets a capacity change condition, and if yes, performing step S3223, and if no, performing step S33;
step S3223: presetting a page validity threshold, determining, based on the page validity threshold, whether the bad page set in the current to-be-compared template meets the available capacity condition, and if yes, performing step S3224, and if no, performing step S33; and
step S3224: presetting a page iteration threshold, analyzing the to-be-compared template and the bad page set based on the page iteration threshold, determining whether the to-be-compared template meets the capacity change condition, and if yes, performing step S34, and if no, performing step S33.

### Claim 8

A detection system applied to intelligent analysis and detection for flash, comprising:
an initial template establishment module (1), configured to obtain a column set, a page set, and a block set comprising the column set and the page set, and preset a bad column set, a bad page set, an error threshold that can be updated for each iteration, and an initial bad block template comprising the bad column set and the bad page set;
a template update module (2), configured to: according to a bad page selection strategy and a bad column selection strategy, alternately obtain bad page elements and bad column elements from the block set in sequence based on the error threshold, and alternately update the bad page set and the bad column set in sequence;
a template iteration module (3), configured to: based on the bad column sets and the bad page sets corresponding to different error thresholds, update the error threshold according to a bad template iteration strategy, obtain a final column set from the bad column sets, and obtain a final page set from the bad page sets; and
a final template generation module (4), configured to obtain a final bad block template by updating the initial bad block template based on the final column set and the final page set.

### Claim 9 (depends on 1)

An intelligent terminal, comprising a memory and a processor, wherein the memory stores a computer program, which can be loaded and executed by the processor to implement the detection method of claim 1.

### Claim 10 (depends on 1)

A computer-readable storage medium, comprising a computer program, which can be loaded and executed by a processor to implement the detection method of claim 1.
