Soft decoding control method and device, storage medium and electronic equipment

By entering the soft decoding initialization process after powering on the solid-state hard disk, traversing the reading instruction link list and parsing the instructions, the problem of improper timing control of soft decoding applications in the solid-state hard disk is solved, the decoding efficiency and accuracy are improved, and data reading and error processing are ensured. stability.

CN118939467APending Publication Date: 2024-11-12SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410939281.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing technology cannot effectively control the application timing of soft decoding of solid-state drives, resulting in low decoding efficiency and reduced accuracy.

Method used

After powering on the solid-state hard disk, it enters the soft decoding initialization process, traverses the reading instruction list, filters out the instructions that require soft decoding, parses the instructions to obtain key information, calls the original data for soft decoding, and generates queryable soft decoding information, including Decode data and process prompt information.

Benefits of technology

It realizes efficient and accurate driving control, improves the decoding efficiency of solid-state drives and the stability of data reading, and promptly detects and handles errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939467A_ABST
    Figure CN118939467A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a soft decoding control method and device, a storage medium and electronic equipment, and the method comprises the steps: controlling a solid state disk to enter a soft decoding initialization process after the solid state disk is powered on; under the condition that it is determined that the initialization process is successfully executed, traversing a read instruction chain table in the solid state disk, and screening out a first read instruction needing soft decoding from the read instruction chain table; analyzing the first read instruction, determining key information in the first read instruction based on an analysis result, and calling original data from the solid state disk according to the key information to obtain a target soft data set to be subjected to soft decoding; and performing soft decoding on the target soft data set, and generating inquirable soft decoding information. The technical problems that the application opportunity of soft decoding cannot be effectively controlled, so that the decoding process in which the soft decoding participates is low in efficiency and low in precision are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of solid-state hard disks, and in particular to a control method, device, storage medium and electronic device for soft decoding. Background Art

[0002] Soft decoding of solid-state drives is an important method in LDPC (Low-Density Parity-Check) error correction technology. Compared with hard decoding, soft decoding has stronger error correction capabilities, but may cause higher latency.

[0003] The principle of soft decoding is mainly to adjust different read levels, determine the probability of a bit being 1 or 0 based on the read results, and then implement soft decoding based on these probabilities. This process involves reading the flash memory multiple times and fine-tuning the read parameters according to the situation to obtain multiple sets of different "soft data". These soft data will then be combined with the log-likelihood ratio for multiple iterations to finally complete the LDPC soft decoding, thereby providing a more accurate and closer to the real error correction effect. However, in actual applications, a soft decoding method for a solid-state drive will first determine the storage area that needs to be soft-decoded and obtain the number of erases and writes to the area. Then, the corresponding number of reads is set for the storage area based on the number of erases and writes. Data is read from the flash memory multiple times according to the set number of reads, and corresponding soft decoding is performed based on the read data. It should be noted that soft decoding and hard decoding are not mutually exclusive, but can complement each other. In some cases, if hard decoding cannot obtain correct data after a preset number of iterations, the system will switch to soft decoding to try error correction. However, since soft decoding may bring higher delay and computational complexity, the control efficiency of the solid-state drive will be reduced, and the decoding efficiency and accuracy of the solid-state drive will be low.

[0004] In the related art, there is no effective solution to the technical problem that the application timing of soft decoding cannot be effectively controlled, resulting in low efficiency and reduced accuracy in the decoding process involving soft decoding. Summary of the invention

[0005] The embodiments of the present invention provide a control method, device, storage medium and electronic device for soft decoding, so as to at least solve the technical problem in the related art that the application timing of soft decoding cannot be effectively controlled, resulting in low efficiency and reduced accuracy in the decoding process involving soft decoding.

[0006] According to one embodiment of the present invention, a control method for soft decoding is provided, which is applied to a solid-state hard disk, and includes: after the solid-state hard disk is powered on, controlling the solid-state hard disk to enter an initialization process of soft decoding; when it is determined that the initialization process is successfully executed, traversing a read instruction linked list inside the solid-state hard disk, and filtering out a first read instruction that needs to be soft-decoded from the read instruction linked list; parsing the first read instruction, determining key information in the first read instruction based on the parsing result, and calling original data from the solid-state hard disk according to the key information to obtain a target soft data set to be soft-decoded; soft-decoding the target soft data set, and generating queryable soft decoding information, wherein the soft decoding information at least includes: decoded data obtained by soft-decoding the target soft data set, and process prompt information corresponding to the soft decoding.

[0007] In an exemplary embodiment, original data is called from the solid state drive according to the key information to obtain a target soft data set to be soft-decoded, including: identifying target address information and data length information contained in the key information, wherein the target address information includes one or more specified addresses, and the data length information includes the data length to be read for each of the one or more specified addresses; determining row data corresponding to the target address information and the data length information in the solid state drive; when the row data is read, adjusting the voltage axis according to the working state and voltage requirement of the solid state drive; reading the original sub-data corresponding to the one or more specified addresses through the adjusted voltage axis to obtain a target reading result; when the target reading result indicates that the original sub-data is XOR data, performing data operation processing on the target reading result to obtain target soft data; when it is determined that the acquisition of the target soft data is completed, reading at least two adjacent data pages related to the key information; summarizing the target soft data and the data pages to obtain the target soft data set to be soft-decoded.

[0008] In an exemplary embodiment, the target soft data set is soft-decoded and queryable soft decoding information is generated, including: obtaining a preset decoding operation corresponding to the solid-state drive; using the preset decoding operation to soft-decode the target soft data set and recording decoding status information; when the status information indicates that the decoding is completed, generating queryable soft decoding information corresponding to the target soft data set according to the decoding result.

[0009] In an exemplary embodiment, queryable soft decoding information corresponding to the target soft data set is generated based on the decoding result, and also includes: when the decoding result indicates that the decoding is successful, generating queryable soft decoding information corresponding to the target soft data set; when the decoding result indicates that the decoding fails, sending a prompt message to the user of the solid-state drive, wherein the prompt message is used to indicate that a decoding error has occurred in the solid-state drive and needs to be re-decoded.

[0010] In an exemplary embodiment, after the solid-state drive is powered on and the solid-state drive is controlled to enter the initialization process of soft decoding, the above method also includes: determining to start logging of soft decoding, wherein the log record is used to record the source of instructions for soft decoding on the solid-state drive, as well as decoding process information; and sending the log record to the target application corresponding to the instruction source.

[0011] In an exemplary embodiment, after the target soft data set is soft-decoded and queryable soft-decoding information is generated, the method further includes: while the solid-state drive is in a continuously powered-on state, traversing the read instruction linked list inside the solid-state drive again; filtering out a second read instruction that needs to be soft-decoded from the read instruction linked list, and performing soft decoding based on the second read instruction.

[0012] In an exemplary embodiment, after the solid-state drive is powered on and before the solid-state drive is controlled to enter the initialization process of soft decoding, the above method also includes: when other applications send data to be processed to the solid-state drive, identifying a third read instruction that requires soft decoding in the data to be processed; adding the third read instruction to a read instruction linked list inside the solid-state drive, and updating the read instruction linked list.

[0013] According to another embodiment of the present invention, there is provided a control device for soft decoding, which is applied to a solid-state hard disk, and includes: a control module, which is used to control the solid-state hard disk to enter an initialization process of soft decoding after the solid-state hard disk is powered on; a screening module, which is used to traverse a read instruction chain list inside the solid-state hard disk and screen out a first read instruction that needs to be soft-decoded from the read instruction chain list when it is determined that the initialization process is successfully executed; a calling module, which is used to parse the first read instruction, determine key information in the first read instruction based on the parsing result, and call original data from the solid-state hard disk according to the key information to obtain a target soft data set to be soft-decoded; and a generating module, which is used to soft-decode the target soft data set and generate queryable soft decoding information, wherein the soft decoding information at least includes: decoded data obtained by soft-decoding the target soft data set, and process prompt information corresponding to the soft decoding.

[0014] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.

[0015] According to another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0016] According to yet another embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0017] Through the present invention, after the solid state drive is powered on, the solid state drive is controlled to enter the initialization process of soft decoding; when it is determined that the initialization process is successfully executed, the read instruction chain list inside the solid state drive is traversed, and the first read instruction that needs to be soft decoded is screened out from the read instruction chain list; the first read instruction is parsed, and the key information in the first read instruction is determined based on the parsing result, and the original data is called from the solid state drive according to the key information to obtain the target soft data set to be soft decoded; the target soft data set is soft-decoded, and queryable soft decoding information is generated, wherein the soft decoding information at least includes: the decoded data obtained by soft decoding the target soft data set, and the process prompt information corresponding to the soft decoding. That is, by querying the read instruction chain list that needs to be soft-decoded, parsing the read instruction, preparing the soft data set, starting the soft decoding module, and querying the soft decoding result, efficient and accurate drive control is achieved. Therefore, the above-mentioned technical solution can solve the technical problem that the application timing of soft decoding cannot be effectively controlled in the related technology, resulting in low efficiency and reduced accuracy in the decoding process involving soft decoding. It can achieve clearer control of the soft decoding process, improve the stability and efficiency of the corresponding drive control of the solid-state hard disk, thereby improving the decoding efficiency of the solid-state hard disk soft decoding, and can effectively detect data reading and error processing of the solid-state hard disk. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a hardware structure block diagram of a solid state hard disk of a soft decoding control method according to an embodiment of the present invention;

[0019] Figure 2 is a flow chart of a control method for soft decoding according to an embodiment of the present invention;

[0020] Figure 3 is a flow chart of state changes of a finite state machine model according to an embodiment of the present invention;

[0021] Figure 4is a schematic diagram of a process for preparing data according to an embodiment of the present invention;

[0022] Figure 5 is a schematic diagram of the relationship between the entire soft decoding driving device and other applications according to an embodiment of the present invention;

[0023] Figure 6 It is a structural block diagram of a soft decoding control device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0026] The method embodiments provided in the embodiments of the present invention can be executed in a solid state drive or a similar computing device. Taking running on a solid state drive as an example, Figure 1 FIG. 1 is a hardware structure diagram of a solid-state hard disk of a soft decoding control method according to an embodiment of the present invention. Figure 1 As shown, the solid state drive may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the solid state drive may also include a transmission device 106 for communication functions and an input / output device 108. A person skilled in the art will understand that Figure 1 The structure shown is for illustration only and does not limit the structure of the solid state drive. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0027] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of soft decoding in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to a solid-state hard disk via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0028] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by the communication provider of the solid state drive. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0029] In this embodiment, a control method for soft decoding is provided. Figure 2 is a flow chart of a control method for soft decoding according to an embodiment of the present invention. Figure 2 As shown, the control method of the soft decoding is applied to a solid state drive, and specifically includes the following steps:

[0030] Step S202, after the solid state drive is powered on, controlling the solid state drive to enter a software decoding initialization process;

[0031] It is understandable that the initialization process is that when the power is turned on, the device where the solid-state hard disk is located will automatically enter an initial state, which is a preset starting point, mainly used to prepare for the next operation. When the soft decoding initialization process is successfully completed, the drive control system of the solid-state hard disk will smoothly transition to the instruction list query state. At this time, the instruction list query module will start running and continuously query the instructions that need to be soft decoded. Once the target soft decoding instruction is queried, the drive control system will switch to the instruction parsing state.

[0032] Step S204, when it is determined that the initialization process is successfully executed, traverse the read instruction chain list inside the solid state drive, and filter out the first read instruction that needs to be soft-decoded from the read instruction chain list;

[0033] Step S206, parsing the first read instruction, determining key information in the first read instruction based on the parsing result, and calling original data from the solid state drive according to the key information to obtain a target soft data set to be soft-decoded;

[0034] Step S208, soft-decoding the target soft data set and generating queryable soft-decoding information, wherein the soft-decoding information at least includes: decoded data obtained by soft-decoding the target soft data set and process prompt information corresponding to the soft-decoding.

[0035] Through the above steps, after the solid state drive is powered on, the solid state drive is controlled to enter the initialization process of soft decoding; when it is determined that the initialization process is successfully executed, the read instruction chain list inside the solid state drive is traversed, and the first read instruction that needs to be soft decoded is screened out from the read instruction chain list; the first read instruction is parsed, and the key information in the first read instruction is determined based on the parsing result, and the original data is called from the solid state drive according to the key information to obtain the target soft data set to be soft decoded; the target soft data set is soft-decoded, and queryable soft decoding information is generated, wherein the soft decoding information at least includes: the decoded data obtained by soft decoding the target soft data set, and the process prompt information corresponding to the soft decoding. That is, efficient and accurate drive control is achieved by querying the read instruction chain list that needs to be soft-decoded, parsing the read instruction, preparing the soft data set, starting the soft decoding module, and querying the soft decoding results. Therefore, the above-mentioned technical solution can solve the technical problem that the application timing of soft decoding cannot be effectively controlled in the related technology, resulting in low efficiency and reduced accuracy in the decoding process involving soft decoding. It can achieve clearer control of the soft decoding process, improve the stability and efficiency of the corresponding drive control of the solid-state hard disk, thereby improving the decoding efficiency of the solid-state hard disk soft decoding, and can effectively detect data reading and error processing of the solid-state hard disk.

[0036] In an exemplary embodiment, original data is called from a solid-state drive according to key information to obtain a target soft data set to be soft-decoded, including: identifying target address information and data length information contained in the key information, wherein the target address information includes one or more specified addresses, and the data length information includes the data length to be read for each of the one or more specified addresses; determining row data corresponding to the target address information and the data length information in the solid-state drive; when the row data is read, adjusting the voltage axis according to the working state and voltage requirements of the solid-state drive; reading the original sub-data corresponding to the one or more specified addresses through the adjusted voltage axis to obtain a target reading result; when the target reading result indicates that the original sub-data is XOR data, performing data operation processing on the target reading result to obtain target soft data; when it is determined that the acquisition of the target soft data is completed, reading at least two adjacent data pages related to the key information; summarizing the target soft data and data pages to obtain a target soft data set to be soft-decoded.

[0037] In summary, through the above-mentioned integration of instruction parsing and data preparation, the read instruction parsing and soft data preparation are closely combined, and the address and length information of the data to be decoded are obtained by parsing the read instruction, and the data and parameters required for soft decoding are prepared accordingly. This integrated processing method reduces the intermediate links and improves the speed and accuracy of data processing.

[0038] In an exemplary embodiment, a target soft data set is soft-decoded and queryable soft decoding information is generated, including: obtaining a preset decoding operation corresponding to a solid-state drive; using the preset decoding operation to soft-decode the target soft data set and recording decoding status information; when the status information indicates that the decoding is completed, generating queryable soft decoding information corresponding to the target soft data set according to the decoding result.

[0039] In summary, by dividing the soft decoding process into multiple states, such as the initial state, data reading state, soft decoding state, result query state, etc., and switching between different states according to the state transition conditions, this state machine-based processing method makes the soft decoding process clearer and more controllable, and improves the stability and reliability of the system.

[0040] In an exemplary embodiment, queryable soft decoding information corresponding to the target soft data set is generated based on the decoding result, and also includes: when the decoding result indicates that the decoding is successful, generating queryable soft decoding information corresponding to the target soft data set; when the decoding result indicates that the decoding fails, sending a prompt message to the user of the solid-state hard disk, wherein the prompt message is used to indicate that a decoding error has occurred in the solid-state hard disk and needs to be re-decoded.

[0041] In an exemplary embodiment, after the solid-state drive is powered on and the solid-state drive is controlled to enter the initialization process of soft decoding, the above method also includes: determining to start logging of soft decoding, wherein the logging is used to record the source of instructions for soft decoding on the solid-state drive, as well as decoding process information; and sending the logging to the target application corresponding to the source of the instruction.

[0042] In summary, through log recording and interaction with the target application, the processing results of the processing instructions sent by the target application to the SSD can be fed back to the target application in a timely manner, thereby improving the decoding efficiency of the overall instructions of the target application using the SSD.

[0043] In an exemplary embodiment, after soft decoding the target soft data set and generating queryable soft decoding information, the above method also includes: while the solid-state drive is in a continuously powered-on state, traversing the read instruction linked list inside the solid-state drive again; filtering out a second read instruction that needs to be soft decoded from the read instruction linked list, and performing soft decoding based on the second read instruction.

[0044] In summary, by querying the linked list of read instructions that need soft decoding, efficient management and positioning of read instructions that need soft decoding is achieved. This method is more flexible and efficient than the traditional method of traversing all read instructions or using a fixed decoding strategy, especially when processing a large number of read instructions, it can significantly improve the decoding efficiency.

[0045] In an exemplary embodiment, after the solid-state drive is powered on and before the solid-state drive is controlled to enter the initialization process of soft decoding, the above method also includes: when other applications send data to be processed to the solid-state drive, identifying a third read instruction that requires soft decoding in the data to be processed; adding the third read instruction to a read instruction linked list inside the solid-state drive, and updating the read instruction linked list.

[0046] In summary, through the above implementation, the read instruction linked list can be updated in time, thereby ensuring the stability and continuity of decoding.

[0047] In order to facilitate understanding of the implementation methods of the present application, relevant scenarios are now explained, but this does not limit the present application.

[0048] The definitions of the relevant abbreviations and key terms mentioned in this application are explained as follows:

[0049] SSD (Solid State Disk): solid state drive.

[0050] NAND: Computer flash memory device, generally used in SSD storage.

[0051] LDPC: (Low-Density Parity-Check Code) is a forward error correction code (FEC) widely used in the field of channel coding, especially in digital communications and data storage.

[0052] Soft decoding: also known as LDPC soft decoding, is a method of decoding LDPC (low-density parity-check code) using soft information of the received signal.

[0053] Raw data: refers to the received bit sequence ready for software decoding.

[0054] Soft data: includes raw data, XOR data, and couple page data read from NAND.

[0055] Couple page: refers to other related pages required for software decoding of the page at the specified address.

[0056] Voltage axis: preset reference voltage.

[0057] XOR data: After adjusting the NAND voltage axis, read the NAND data and perform the XOR operation on the data.

[0058] In the related technology, although the soft decoding of SSD is an efficient error correction technology that can effectively improve the data reliability of SSD, the soft decoding will bring higher delay and computational complexity, so in practical applications, it needs to be weighed and selected according to specific needs.

[0059] In order to avoid the above problems, an optional embodiment of the present invention proposes a method for a soft decoding driving engine for a solid state drive, comprising the following steps:

[0060] Step 1: Query the read instruction list that needs to be soft-decoded: traverse the read instruction list inside the SSD and filter out the read instructions that need to be soft-decoded.

[0061] Step 2: Analyze the read instructions: Analyze the selected read instructions to obtain key information such as the target address and data length in the instructions.

[0062] Step 3: Prepare soft data: Prepare the data required for soft decoding based on the instruction information obtained through analysis. The specific steps include: Read raw data, that is, read the original data related to the instruction from the flash memory chip of the SSD. Adjust the voltage axis, adjust the voltage axis of the SSD unit at the specified address according to the working status and voltage requirements of the SSD. Read XOR data, process the data through XOR operation to improve the accuracy and stability of the data. Couple page data reading, read the couple page data related to the instruction to provide necessary auxiliary information for soft decoding.

[0063] Step 4: Start the soft decoding module: input the prepared soft data into the soft decoding module to start the soft decoding process.

[0064] Step 5: Query the soft decoding result: After the soft decoding is completed, query the soft decoding result and output the corresponding prompt information, including decoding success or failure.

[0065] In summary, efficient and accurate drive control is achieved through the steps of querying the read instruction list that needs to be soft-decoded, parsing the read instruction, preparing soft data, starting the soft decoding module, and querying the soft decoding results.

[0066] Optionally, an optional embodiment of the present invention further provides a device for a solid-state hard disk soft decoding driver, the device comprising: an instruction list query module: used to query a read instruction list that needs to be soft-decoded. An instruction parsing module: parses the filtered read instructions to obtain key information. A data preparation module: prepares data required for soft decoding according to the instruction information obtained by parsing. A soft decoding module: decodes the prepared soft data. A result query module: used to output the decoding result and prompt information.

[0067] In summary, through the above modular design, including the read instruction query module, the read instruction parsing module, the data reading module, the data preparation module, the soft decoding module and the result query module, this modular design makes the functions of each module clear, the coupling degree is low, and it is easy to maintain and expand.

[0068] In addition, the present invention also proposes a solid state hard disk soft decoding drive control method based on a finite state machine model. The model divides the soft decoding process into multiple states, and switches between different states according to state transition conditions, including an initial state, an instruction list query state, an instruction parsing state, a data preparation state, a soft decoding state, a result query state, etc., and switches between different states according to state transition conditions. Through the finite state machine model, the soft decoding process can be described more clearly, and the stability and efficiency of the drive control can be improved.

[0069] It can be understood that through the state division and conversion mechanism: this method divides the soft decoding process into multiple states, such as the initial state, data reading state, soft decoding state, result query state, etc., and switches between different states according to the state transfer conditions. This state machine-based processing method makes the soft decoding process clearer and more controllable, and improves the stability and reliability of the system.

[0070] Optional, Figure 3 It is a flow chart of the state changes of the finite state machine model according to an embodiment of the present invention, specifically including the following state changes: initial state 32, instruction list query state 34, instruction parsing state 36, data preparation state 38, soft decoding state 40, result query state 42.

[0071] Specifically, when powered on, the device will automatically enter the initial state, which is a preset starting point to prepare for the next operation. When the soft decoding initialization process is successfully completed, the system will smoothly transition to the instruction list query state. At this time, the instruction list query module will start running and continuously query the instructions that need to be soft decoded. Once the target soft decoding instruction is queried, the system will switch to the instruction parsing state. In the instruction parsing state, the instruction parsing module will play its core role and accurately parse out the target address, data length and other key information in the read instruction. These key information are crucial for the next operation, and they indicate the direction of data processing for the system. Then, the system will enter the data preparation state. In this state, the data preparation module will prepare various data required for soft decoding according to the instruction information obtained by the previous parsing. The data preparation process is shown in the figure below. First, read the raw data, then adjust the voltage axis, then read the data after the XOR operation, and finally read the couple page data. The data preparation work in this link ensures that the soft decoding process can proceed smoothly.

[0072] Optional, Figure 4 1 is a schematic diagram of a process for preparing data according to an embodiment of the present invention, comprising the following steps:

[0073] Step S402: read original data.

[0074] Step S404: adjust the voltage axis.

[0075] Step S406, read XOR data.

[0076] Step S408: restore the voltage axis.

[0077] Step S410: read couple page data.

[0078] It should be noted that when all data are ready, the system enters the most critical soft decoding state. In this state, the soft decoding module decodes the prepared soft data. The decoding process may involve complex algorithms and calculations, but the system will complete this task in an efficient manner. After the decoding is completed, the system will enter the result query state. At this time, the result query module will check the decoding result and output the corresponding prompt information. If the decoding is successful, the system will give a successful feedback; if the decoding fails, an error message will be prompted. This link provides the user with intuitive feedback on the decoding result. Finally, regardless of whether the decoding is successful or not, the system will return to the instruction list query state again, continue to query and process the next instruction that needs soft decoding. In this way, the whole process forms a closed loop, ensuring that the system can continuously and stably perform soft decoding operations. In addition, the present invention can also be expanded and optimized according to actual needs, for example: adding monitoring and logging functions for the decoding process to better track and resolve problems in the decoding process.

[0079] Optional, Figure 5 It is a schematic diagram of the relationship between the entire soft decoding driver device according to an embodiment of the present invention and other applications, wherein other applications store the instructions to be soft-decoded in an instruction linked list, the soft-decoding driver engine obtains the instructions and performs soft-decoding, and finally sends the soft-decoding results to the called application.

[0080] In summary, through the above implementation, an efficient and accurate control method and device for the solid-state hard disk soft decoding drive are provided, which provides a new solution for data reading and error handling of the solid-state hard disk, and solves the problems of low decoding efficiency and low accuracy in the prior art.

[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0082] A control device for soft decoding provided in the above embodiments is used to implement the above embodiments and preferred implementation modes, which have been described and will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceivable.

[0083] Figure 6 is a structural block diagram of a control device for soft decoding according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:

[0084] A control module 62, configured to control the solid state drive to enter a software decoding initialization process after the solid state drive is powered on;

[0085] A screening module 64 is used to traverse the read instruction chain list inside the solid state drive and screen out a first read instruction that needs to be soft-decoded from the read instruction chain list when it is determined that the initialization process is successfully executed;

[0086] A calling module 66, configured to parse the first read instruction, determine key information in the first read instruction based on the parsing result, and call original data from the solid state drive according to the key information to obtain a target soft data set to be soft-decoded;

[0087] The generating module 68 is used to perform soft decoding on the target soft data set and generate queryable soft decoding information, wherein the soft decoding information at least includes: decoded data obtained by soft decoding the target soft data set and process prompt information corresponding to the soft decoding.

[0088] Through the above device, after the solid state drive is powered on, the solid state drive is controlled to enter the initialization process of soft decoding; when it is determined that the initialization process is successfully executed, the read instruction chain list inside the solid state drive is traversed, and the first read instruction that needs to be soft decoded is screened out from the read instruction chain list; the first read instruction is parsed, and the key information in the first read instruction is determined based on the parsing result, and the original data is called from the solid state drive according to the key information to obtain the target soft data set to be soft decoded; the target soft data set is soft-decoded, and queryable soft decoding information is generated, wherein the soft decoding information at least includes: the decoded data obtained by soft decoding the target soft data set, and the process prompt information corresponding to the soft decoding. That is, by querying the read instruction chain list that needs to be soft-decoded, parsing the read instruction, preparing the soft data set, starting the soft decoding module, and querying the soft decoding results, efficient and accurate drive control is achieved. Therefore, the above-mentioned technical solution can solve the technical problem that the application timing of soft decoding cannot be effectively controlled in the related technology, resulting in low efficiency and reduced accuracy in the decoding process involving soft decoding. It can achieve clearer control of the soft decoding process, improve the stability and efficiency of the corresponding drive control of the solid-state hard disk, thereby improving the decoding efficiency of the solid-state hard disk soft decoding, and can effectively detect data reading and error processing of the solid-state hard disk.

[0089] In an exemplary embodiment, the above-mentioned calling module is also used to identify the target address information and data length information contained in the key information, wherein the target address information includes one or more specified addresses, and the data length information includes the data length that needs to be read for each of the one or more specified addresses; determine the row data corresponding to the target address information and the data length information in the solid-state hard disk; when the row data is read, adjust the voltage axis according to the working state and voltage requirements of the solid-state hard disk; read the original sub-data corresponding to the one or more specified addresses through the adjusted voltage axis to obtain the target reading result; when the target reading result indicates that the original sub-data is XOR data, perform data calculation processing on the target reading result to obtain target soft data; when it is determined that the acquisition of the target soft data is completed, read at least two adjacent data pages related to the key information; summarize the target soft data and the data pages to obtain the target soft data set to be soft-decoded.

[0090] In an exemplary embodiment, the above-mentioned generation module is also used to obtain a preset decoding operation corresponding to the solid-state hard disk; use the preset decoding operation to soft-decode the target soft data set, and record the decoding status information; when the status information indicates that the decoding is completed, generate queryable soft decoding information corresponding to the target soft data set according to the decoding result.

[0091] In an exemplary embodiment, the above-mentioned generation module is also used to generate queryable soft decoding information corresponding to the target soft data set when the decoding result indicates that the decoding is successful; and to send a prompt message to the user of the solid-state hard disk when the decoding result indicates that the decoding fails, wherein the prompt message is used to indicate that a decoding error has occurred in the solid-state hard disk and needs to be re-decoded.

[0092] In an exemplary embodiment, the above-mentioned device also includes: a log module, which is used to determine to start the log record of soft decoding after the solid-state hard disk is powered on and controls the solid-state hard disk to enter the initialization process of soft decoding, wherein the log record is used to record the source of instructions for soft decoding on the solid-state hard disk and decoding process information; and send the log record to the target application corresponding to the instruction source.

[0093] In an exemplary embodiment, the above-mentioned device also includes: a traversal module, which is used to soft-decode the target soft data set and generate queryable soft decoding information. After that, when the solid-state hard disk is in a continuously powered-on state, the read instruction linked list inside the solid-state hard disk is traversed again; a second read instruction that needs to be soft-decoded is filtered out from the read instruction linked list, and soft decoding is performed based on the second read instruction.

[0094] In an exemplary embodiment, the above-mentioned device also includes: an update module, which is used to identify a third read instruction that requires soft decoding in the data to be processed when other applications send data to be processed to the solid-state drive after the solid-state drive is powered on and before the solid-state drive enters the initialization process of soft decoding; add the third read instruction to the read instruction linked list inside the solid-state drive, and update the read instruction linked list.

[0095] It should be noted that the implementation methods not shown or described in the drawings or the main body of the specification are all forms known to ordinary technicians in the relevant technical field and are not described in detail. In addition, the above definitions of each element and method are not limited to the various methods mentioned in the embodiments, and ordinary technicians in this field can simply change or replace them. For example: the directional terms mentioned in the embodiments, such as "up", "down", "front", "back", "left", "right", etc., are only reference to the directions of the drawings and are not used to limit the scope of protection of the present invention; the above embodiments can be mixed and matched with each other based on design and reliability considerations, or mixed and matched with other embodiments, that is, the technical features in different embodiments can be freely combined to form more embodiments.

[0096] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0097] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0098] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0099] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0100] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0101] An embodiment of the present invention further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0102] An embodiment of the present invention further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0103] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in any one of the above method embodiments.

[0104] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0105] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0106] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A control method for soft decoding, characterized in that: Applied to solid state drives, including: After the solid state drive is powered on, controlling the solid state drive to enter a software decoding initialization process; When it is determined that the initialization process is successfully executed, traversing the read instruction chain list inside the solid state drive, and filtering out the first read instruction that needs to be soft-decoded from the read instruction chain list; Parsing the first read instruction, determining key information in the first read instruction based on the parsing result, and calling original data from the solid state drive according to the key information to obtain a target soft data set to be soft-decoded; The target soft data set is soft-decoded, and queryable soft-decoding information is generated, wherein the soft-decoding information at least includes: decoded data obtained by soft-decoding the target soft data set, and process prompt information corresponding to the soft-decoding.

2. The method according to claim 1, characterized in that Retrieving original data from the solid state drive according to the key information to obtain a target soft data set to be soft-decoded includes: Identify target address information and data length information contained in the key information, wherein the target address information includes one or more designated addresses, and the data length information includes the data length to be read for each of the one or more designated addresses; Determine row data corresponding to the target address information and the data length information in the solid state drive; When the row data is read, adjusting the voltage axis according to the working state and voltage requirement of the solid state drive; Reading the original sub-data corresponding to the one or more designated addresses through the adjusted voltage axis to obtain a target reading result; When the target reading result indicates that the original sub-number is XOR data, performing data operation processing on the target reading result to obtain target soft data; When it is determined that the acquisition of the target soft data is completed, reading at least two adjacent data pages related to the key information; The target soft data and the data page are aggregated to obtain the target soft data set to be soft-decoded.

3. The method according to claim 1, characterized in that Soft decoding is performed on the target soft data set, and queryable soft decoding information is generated, including: Obtaining a preset decoding operation corresponding to the solid state drive; Using the preset decoding operation to soft-decode the target soft data set, and recording decoding status information; When the status information indicates that decoding is completed, queryable soft decoding information corresponding to the target soft data set is generated according to the decoding result.

4. The method according to claim 3, characterized in that Generating queryable soft decoding information corresponding to the target soft data set according to the decoding result, further comprising: When the decoding result indicates that the decoding is successful, generating queryable soft decoding information corresponding to the target soft data set; When the decoding result indicates that the decoding fails, a prompt message is sent to a user of the solid state drive, wherein the prompt message is used to indicate that a decoding error occurs in the solid state drive and the decoding needs to be repeated.

5. The method according to claim 1, characterized in that After the solid state drive is powered on and the solid state drive is controlled to enter an initialization process of software decoding, the method further includes: Determine to enable logging of soft decoding, wherein the logging is used to record the source of instructions for soft decoding on the solid state drive and information about the decoding process; The log record is sent to a target application corresponding to the instruction source.

6. The method according to claim 1, characterized in that After soft decoding the target soft data set and generating queryable soft decoding information, the method further includes: When the solid state drive is in a continuously powered-on state, traversing the read instruction linked list inside the solid state drive again; A second read instruction that needs to be soft-decoded is screened out from the read instruction linked list, and soft-decoding is performed based on the second read instruction.

7. The method according to claim 1, characterized in that After the solid state drive is powered on and before the solid state drive is controlled to enter an initialization process of software decoding, the method further includes: In the case where other applications send data to be processed to the solid state drive, identifying a third read instruction that needs to be soft-decoded in the data to be processed; The third read instruction is added to the read instruction linked list inside the solid state drive, and the read instruction linked list is updated.

8. A control device for soft decoding, characterized in that: Applied to solid state drives, including: A control module, used for controlling the solid state drive to enter a software decoding initialization process after the solid state drive is powered on; A screening module, configured to, when determining that the initialization process is successfully executed, traverse a read instruction chain list inside the solid state drive, and screen out a first read instruction that needs to be soft-decoded from the read instruction chain list; A calling module, configured to parse the first read instruction, determine key information in the first read instruction based on the parsing result, and call original data from the solid state drive according to the key information to obtain a target soft data set to be soft-decoded; The generating module is used to soft-decode the target soft data set and generate queryable soft decoding information, wherein the soft decoding information at least includes: decoded data obtained by soft-decoding the target soft data set and process prompt information corresponding to the soft decoding.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.