Command Processing Method, Device, and Storage Device
The command processing method with integrated detection modules addresses error propagation by stopping faulty modules, enhancing detection flexibility and troubleshooting efficiency.
Patent Information
- Application Number
- CN202211686520.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2042-12-27
AI Technical Summary
During the hardware command processing process, if the previous command processing module fails to execute the corresponding command, the subsequent command module receives the wrong command, which may trigger the wrong action and spread, making it difficult to locate the error scenario.
The command execution detection module is introduced into the command processing link, and the parsing error of each command processing module is detected through the detection command, and the corresponding module is controlled to stop working when an error is detected.
Real-time detection of hardware command processing flow is realized, and the flexibility of command detection is increased, which facilitates debugging after errors, avoids the spread of error commands, and improves the efficiency and reliability of command processing.
Smart Images

Figure CN116166323B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of flash memory performance management, and particularly to a command processing method, apparatus, and storage device. Background Art
[0002] Currently, the hardware command processing link can be divided into three stages. That is, issuing instructions, the processing module processes the instructions, and the subsequent processing module processes the instructions. The task of issuing instructions is: according to the value in the program counter, read a number of current instructions from the program storage medium, and issue a number of current instructions to a number of command processing modules on the hardware platform for execution. The task of the processing module to process the instructions is: the first-level command processing module analyzes a number of specified commands among a number of current instructions, and issues the remaining command instructions to the subsequent command processing module for analysis. The task of the subsequent processing module to process the instructions is: the second-level command processing module analyzes a number of specified commands among a number of current instructions, and issues the remaining command instructions to the subsequent command processing module for analysis, ……, in this way to implement the execution operation of all current instructions.
[0003] Since multiple commands are processed by multiple command processing modules respectively, if the previous command processing module fails to execute the corresponding command, causing the subsequent command execution module to receive an incorrect command, it may lead to the parsing of an incorrect command, thereby triggering an incorrect action. Moreover, the incorrect action may spread to subsequent command processing modules, and the incorrect command may exist at any position in the command sequence, resulting in the inability to locate the error scenario. Summary of the Invention
[0004] Embodiments of the present application provide a command processing method, apparatus, and storage device to solve the problem that when a command processing error occurs, it causes the command processing module to parse an incorrect command, thereby triggering an incorrect action and spreading the incorrect command to subsequent modules.
[0005] To solve the above problems, the embodiments of the present application provide the following technical solutions:
[0006] In a first aspect, the present application provides a command processing method, applied to a storage device. The storage device includes: a hardware command processing link, and the hardware command processing link includes multiple command processing modules and multiple command execution detection modules. The method includes:
[0007] Obtain a command sequence, where the command sequence includes a number of hardware commands and a number of detection commands, and the number of hardware commands are processed by multiple command processing modules in a preset order;
[0008] After each command processing module executes a number of hardware commands in the command sequence, send a detection command to the command execution detection module;
[0009] If any command execution detection module determines, based on a detection command, that a command parsing error has occurred in the command processing module corresponding to the command execution detection module, then the command processing module corresponding to the command execution detection module is controlled to stop working.
[0010] In some embodiments, the method further includes:
[0011] After any command processing module executes several hardware commands in a command sequence, and after the command execution detection module executes a detection command, the remaining several hardware commands and / or several detection commands in the command sequence are sent to the next command processing module in the hardware command processing link.
[0012] In some embodiments, after each command processing module executes several hardware commands in a command sequence, sending a detection command to the command execution detection module includes:
[0013] After each command processing module executes the previous hardware command in the command sequence, determining whether the next command is a detection command;
[0014] If the next command is a detection command, then sending the detection command to the command execution detection module;
[0015] If the next command is not a detection command, then determining that the next detection command is a hardware command, and the command processing module continues to execute the hardware command.
[0016] In some embodiments, the method further includes:
[0017] After any command processing module executes several hardware commands in a command sequence, obtaining the enabling state of the command execution detection module corresponding to the command processing module;
[0018] If the enabling state of the command execution detection module is enabled, then sending a detection command to the command execution detection module, and after the command execution detection module receives the detection command, executing a command detection function;
[0019] If the enabling state of the command execution detection module is disabled, then the command execution detection module sends the command execution information generated by the command processing module to the next command processing module.
[0020] In some embodiments, the command execution detection module includes:
[0021] A command execution status recording module, configured to obtain command execution information generated by the command processing module;
[0022] A judgment module, connected to a command execution status recording module, is configured to receive a detection command, obtain command execution information of the command execution status recording module, compare the command execution information with the detection command to obtain a comparison result, and if the comparison result is a command parsing error, generate a module stop signal to control the corresponding command processing module of the command execution detection module to stop working.
[0023] In some embodiments,
[0024] The detection command includes a detection type and detection judgment information corresponding one-to-one to the detection type;
[0025] The detection types include an execution order detection type and a command parsing detection type. Among them, the execution order detection type corresponds to execution order information, and the command parsing detection type corresponds to parsing result information;
[0026] The command execution information includes the execution order of at least two hardware commands and the command parsing results of the hardware commands. Comparing the command execution information with the detection command to obtain a comparison result, including:
[0027] If the execution order of at least two hardware commands is the same as the execution order information corresponding to the execution order detection type, and the command parsing results of the hardware commands are the same as the parsing result information corresponding to the command parsing detection type, then it is determined that the comparison result is correct command parsing;
[0028] If the execution order of at least two hardware commands is different from the execution order information corresponding to the execution order detection type, and / or the command parsing results of the hardware commands are different from the parsing result information corresponding to the command parsing detection type, then it is determined that the comparison result is a command parsing error.
[0029] In some embodiments, before obtaining the command sequence, the method further includes:
[0030] Configuring the enable status of each command execution detection module, where the enable status includes enabled or disabled.
[0031] In a second aspect, the present application provides a command processing device, including:
[0032] A plurality of command processing modules, each command processing module is configured to process several hardware commands in a command sequence to obtain command execution information, where the command sequence includes several hardware commands and several detection commands;
[0033] A plurality of command execution detection modules, each command execution detection module is configured to obtain the detection commands in the command sequence and compare the command execution information with the detection commands to obtain a comparison result;
[0034] Among them, multiple command processing modules and multiple command execution detection modules form a hardware command processing link.
[0035] In some embodiments, the command execution detection module includes:
[0036] A command execution status recording module, configured to obtain command execution information generated by the command processing module;
[0037] A judgment module, connected to the command execution status recording module, configured to receive a detection command, obtain the command execution information of the command execution status recording module, compare the command execution information with the detection command to obtain a comparison result, and if the comparison result is a command parsing error, generate a module stop signal to control the corresponding command processing module of the command execution detection module to stop working.
[0038] In a third aspect, the present application provides a storage device, including:
[0039] At least one processor; and,
[0040] A storage medium communicatively connected to the at least one processor; wherein,
[0041] The storage medium stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute some or all of the methods described in the first aspect.
[0042] The beneficial effects of the embodiments of the present application are: different from the prior art: a command processing method, device and storage device provided by the embodiments of the present application, the command processing method includes: obtaining a command sequence, the command sequence includes a number of hardware commands and a number of detection commands, and the number of hardware commands is processed by multiple command processing modules in a preset order; after each command processing module executes a number of hardware commands in the command sequence, sending a detection command to the command execution detection module; if any command execution detection module determines that a command parsing error occurs in the corresponding command processing module of the command execution detection module according to the detection command, controlling the corresponding command processing module of the command execution detection module to stop working. The present application adds a command execution detection module between each command processing module, and realizes the detection of the hardware command processing process with the cooperation of the detection command, increases the flexibility of the command detection requirements, facilitates real-time debugging after the command goes wrong, and does not affect the parsing and execution of the original normal commands. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] One or more embodiments are illustrated by corresponding drawings. These illustrative descriptions do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements, unless otherwise stated, and the drawings in the drawings do not constitute a scale limitation.
[0044] Figure 1 It is a schematic structural diagram of a command processing device provided by an embodiment of the present application;
[0045] Figure 2 It is a schematic diagram of the processing of a command sequence provided by an embodiment of the present application;
[0046] Figure 3 It is a schematic flowchart of a command processing method provided by an embodiment of the present application;
[0047] Figure 4 It is a schematic flowchart of the processing of a command sequence provided by an embodiment of the present application;
[0048] Figure 5 It is a schematic flowchart of the processing of a hardware command and a detection command provided by an embodiment of the present application;
[0049] Figure 6 It is a schematic flowchart of the processing of an enable state provided by an embodiment of the present application;
[0050] Figure 7a It is a schematic flowchart of comparing command execution information with a detection command provided by an embodiment of the present application;
[0051] Figure 7b It is another schematic flowchart of comparing command execution information with a detection command provided by an embodiment of the present application;
[0052] Figure 8 It is a schematic diagram of a command processing method applied to a command execution detection module provided by an embodiment of the present application;
[0053] Figure 9 It is a schematic structural diagram of a command execution detection module provided by an embodiment of the present application;
[0054] Figure 10 It is a schematic structural diagram of a storage device provided by an embodiment of the present application. Detailed implementation manners
[0055] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0056] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, and all are within the protection scope of the present application. Additionally, although functional module division is performed in the device schematic diagram and the logical sequence is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the device or the sequence in the flowchart. Furthermore, the terms "first", "second", "third", etc. used herein do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects. To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts belong to the protection scope of the present invention.
[0057] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, and all are within the protection scope of the present application. Additionally, although functional module division is performed in the device schematic diagram and the logical sequence is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the device or the sequence in the flowchart. Furthermore, the terms "first", "second", "third", etc. used herein do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.
[0058] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by those skilled in the technical field to which the present invention belongs. The terms used in this specification in the description of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.
[0059] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0060] The technical solution of the present application will be specifically described below in conjunction with the accompanying drawings of the specification:
[0061] Please refer to Figure 1 , Figure 1 which is a schematic structural diagram of a command processing device provided by an embodiment of the present application;
[0062] As Figure 1As shown in the figure, the command processing device 100 includes a plurality of command processing modules 110 and a plurality of command execution detection modules 120 connected to the plurality of command processing modules 110 for realizing data interaction. Among them, each command processing module 110 can correspond to a command execution detection module 120, or if some command processing modules have been verified through multiple uses, at this time, some command processing modules 110 may not correspond to command execution detection modules 120. The command execution detection module 120 is cascaded after the command processing module 110, and several previous-level command execution detection modules 120 are connected to the next-level command processing module 110. Among them, the plurality of command processing modules 110 and the plurality of command execution detection modules 120 form a hardware command processing link.
[0063] Please refer to again Figure 2 , Figure 2 is a schematic diagram of the processing of a command sequence provided by an embodiment of the present application;
[0064] As Figure 2 shown, the hardware command processing link includes a plurality of command processing modules and a plurality of command execution detection modules. For example, the plurality of command processing modules include: command processing module 0, command processing module 1, command processing module 2, and the plurality of command execution detection modules include: command execution detection module 0, command execution detection module 1, command execution detection module 2. Among them, each command processing module corresponds to a command execution detection module one by one, and each command processing module is connected to a command execution detection module corresponding to it one by one for realizing data interaction, and each previous-level command execution detection module is connected to the next-level command processing module of the command execution detection module.
[0065] Among them, the command sequence is composed of several hardware commands and several detection commands. For example, the several hardware commands include: hardware command 0 (CMD0), hardware command 1 (CMD1), hardware command 2 (CMD2), hardware command 3 (CMD3), hardware command 4 (CMD4), hardware command 5 (CMD5). Among them, the several hardware commands are processed by a plurality of command processing modules one by one according to a preset order. The several detection commands include: detection command 0 (CHK0), detection command 1 (CHK1), detection command 2 (CHK2). Among them, the several detection commands are processed by a plurality of command execution detection modules one by one according to a preset order. It can be understood that a command execution detection module only executes a corresponding detection command to determine whether a command parsing error occurs in the command processing module corresponding to the command execution detection module.
[0066] Specifically, during the initialization process, the functions of each command execution detection module are configured, and the command sequence to be executed is issued, and detection commands are inserted as needed in the command sequence.
[0067] Specifically, a command sequence with a detection command is sent down, such as Figure 2 the command sequence shown, which is arranged in the order of CMD0, CMD1, CMD2, CHK0, CMD3, CMD4, CMD5, CHK1, CHK2; the command processing module 0 processes CMD0 / 2 in the sequence, and sends the CMD1, CHK0, CMD3, CMD4, CMD5, CHK1, and CHK2 commands to the subsequent module. In the embodiments of the present application, the subsequent module can be a command execution module or a command execution detection module; after receiving the detection command CHK0, the command execution detection module 0 performs command detection. If an error is detected, the command processing module 0 is stopped from working. If no error is detected, the remaining command sequence is sent to the subsequent module corresponding to the command execution detection module 0; the command processing module 1 processes CMD3 / 5 in the sequence, and sends the CMD1, CMD4, CHK1, and CHK2 commands to the subsequent module; after receiving the detection command CHK1, the command execution detection module 1 performs command detection. If an error is detected, the command processing module 1 is stopped from working. If no error is detected, the remaining command sequence is sent to the subsequent module corresponding to the command execution detection module 1; the command processing module 2 processes CMD1 / 4 in the command sequence and sends the CHK2 command to the subsequent module; after receiving the detection command CHK2, the command execution detection module 2 performs command detection. If an error is detected, the command processing module 2 is stopped from working.
[0068] It should be noted that when the command processing module processes the corresponding preset hardware command in the command sequence, the command execution detection module records in real time the command information parsed and executed by the command processing module. Among them, the command information includes the detection command. After receiving the detection command, it is judged whether there is an error in the command execution. If an error occurs, the command execution module is stopped from working, and an error status notification is sent to wait for exception handling; if no error occurs, the command execution situation is continued to be recorded.
[0069] In the embodiments of the present application, by adding a command execution detection module between each command processing module on the original hardware command processing link, and with the cooperation of the detection command, the detection of the hardware command processing process is realized, effectively solving the problem of data loss caused by data writing errors, increasing the flexibility of the command detection requirements, and facilitating debugging after a command error.
[0070] Please refer to Figure 3 , Figure 3 which is a schematic flowchart of a command processing method provided by an embodiment of the present application. This command processing method is applied to a storage device. The storage device includes: a hardware command processing link, and the hardware command processing link includes multiple command processing modules and multiple command execution detection modules.
[0071] As Figure 3 shown, the command processing method includes:
[0072] Step S31: Obtain a command sequence, where the command sequence includes several hardware commands and several detection commands, and the several hardware commands are processed by multiple command processing modules in a preset order.
[0073] The hardware command processing link obtains the issued command sequence. Among them, the hardware command processing link includes multiple command processing modules and multiple command execution detection modules. The command sequence includes several hardware commands and several detection commands, and the several hardware commands are processed by multiple command processing modules in a preset order.
[0074] Specifically, during the initialization process of the computer program, several command execution detection modules are configured, and the command sequence to be executed is issued to the hardware command processing link. In some embodiments, the command sequence only includes several hardware commands. In the embodiments of the present application, by initializing and inserting several detection commands into the original several hardware command sequences during the initialization process, the command sequence is obtained.
[0075] Step S32: After each command processing module executes several hardware commands in the command sequence, send a detection command to the command execution detection module.
[0076] Specifically, the command sequence includes several hardware commands and several detection commands. When the command sequence is issued to the hardware command processing link, several command processing modules on the hardware command processing link process the corresponding several hardware commands one by one according to the preset order, and after each command processing module executes several hardware commands in the command sequence, send the detection command corresponding to this command processing module to the subsequent module corresponding to this command processing module. In this step, the subsequent module corresponding to the command processing module is the command execution detection module.
[0077] For example, issue a command sequence with detection commands, where the command sequence includes hardware command 0, hardware command 1, hardware command 2, detection command 0, detection command 1, and detection command 2. Among them, each of hardware command 0, hardware command 1, and hardware command 2 also includes several hardware commands. For example, as Figure 2As shown: Hardware command 0 (CMD0) and hardware command 2 (CMD2) are processed by command processing module 0, hardware command 3 (CMD3) and hardware command 5 (CMD5) are processed by command processing module 1, hardware command 1 (CMD1) and hardware command 4 (CMD4) are processed by command processing module 2, and detection command 0 (CHK0) is processed by command execution detection module 0, detection command 1 (CHK1) is processed by command execution detection module 1, and detection command 2 (CHK2) is processed by command execution detection module 2.
[0078] The hardware command processing link includes multiple command processing modules and multiple command execution detection modules. Among them, several command processing modules on the hardware command processing link process corresponding several hardware commands according to a preset order. For example, as Figure 2 shown: Command processing module 0 processes hardware commands CMD0 and CMD2 in the command sequence, command processing module 1 processes hardware commands CMD3 and CMD5 in the command sequence, and command processing module 2 processes hardware commands CMD1 and CMD4 in the command sequence.
[0079] In the embodiment of the present application, when the command processing module finishes processing the corresponding hardware command in the command sequence, the command execution module will send the executed command information to the command execution detection module, and the sent command information contains the detection command corresponding to the command processing module. For example, as Figure 2 shown: The command information contains detection commands CHK0, CHK1, and CHK2 corresponding to each command processing module. Command execution detection module 0 processes detection command CHK0 in the command sequence, command execution detection module 1 processes detection command CHK1 in the command sequence, and command execution detection module 2 processes detection command CHK2 in the command sequence.
[0080] It should be noted that several command processing modules processing corresponding several hardware commands and detection commands are determined during initialization configuration.
[0081] Step S33: If any command execution detection module determines that a command parsing error has occurred in the command processing module corresponding to the command execution detection module according to the detection command, then control the command processing module corresponding to the command execution detection module to stop working.
[0082] When the command execution detection module in the subsequent module corresponding to the command processing module receives the command information, it performs command detection. Specifically, the command information contains the command received by the current command processing module, where the command received by the current command processing module includes the detection command and the command execution information after parsing and execution.
[0083] Specifically, the command execution detection module includes a command execution status recording module and a judgment module. Among them, the command execution status recording module is used to obtain the command execution information generated by the command processing module. Among them, the judgment module is connected to the command execution status recording module, and is used to receive the detection command, obtain the command execution information of the command execution status recording module, and compare the command execution information with the detection command to obtain the command parsing result.
[0084] Among them, the command execution information includes the execution order of at least two hardware commands among several hardware commands, and the command parsing results of at least two hardware commands among several hardware commands.
[0085] Among them, the detection command includes a detection type and detection judgment information corresponding to the detection type one by one. Among them, the detection type includes an execution order detection type and a command parsing detection type. Among them, the execution order detection type corresponds to execution order information, and the command parsing detection type corresponds to parsing result information.
[0086] Specifically, the execution command detection includes: judging whether the execution order of at least two hardware commands is the same as the execution order information corresponding to the execution order detection type, and / or whether the command parsing result of the hardware command is the same as the parsing result information corresponding to the command parsing detection type.
[0087] If the execution order of at least two hardware commands is different from the execution order information corresponding to the execution order detection type, and / or the command parsing result of the hardware command is different from the parsing result information corresponding to the command parsing detection type, it is determined that the command parsing is incorrect, and the command processing module corresponding to the command execution detection module is controlled to stop working.
[0088] It should be noted that after the command processing module finishes processing the previous hardware command, when it detects that the current command is a detection command, it does not process it and sends the detection command to the subsequent module. At this time, the command execution detection module will receive this detection command and execute the judgment detection. If an error occurs, the command processing module is stopped. At this time, the subsequent module will not receive the subsequent command information, thus avoiding the spread of incorrect commands.
[0089] In an embodiment of the present application, by obtaining a command sequence, the command sequence includes a number of hardware commands and a number of detection commands, and the number of hardware commands is processed by multiple command processing modules in a preset order; after each command processing module executes the number of hardware commands in the command sequence, a detection command is sent to the command execution detection module; if any command execution detection module determines, according to the detection command, that a command parsing error has occurred in the command processing module corresponding to the command execution detection module, the command processing module corresponding to the command execution detection module is controlled to stop working. In the present application, by adding a command execution detection module between each command processing module, the detection of the hardware command processing flow is realized with the cooperation of the detection command, and the flexibility of the command detection requirements is increased to facilitate the debugging after a command error occurs.
[0090] Please refer to Figure 4 , Figure 4 which is a schematic flowchart of the processing of a command sequence provided by an embodiment of the present application;
[0091] As Figure 4 shown, the processing flow of the command sequence includes:
[0092] Step S41: Any command processing module executes a number of hardware commands in the command sequence, and after the command execution detection module corresponding to the command processing module executes the detection command, the remaining number of hardware commands and / or a number of detection commands in the command sequence are sent to the next command processing module in the hardware command processing link.
[0093] In an embodiment of the present application, through the command execution detection module, it is detected that if the execution order of at least two hardware commands in the number of hardware commands executed by any command processing module is the same as the execution order information corresponding to the execution order detection type, and the command parsing result of the hardware command corresponding to the command processing module is the same as the parsing result information corresponding to the command parsing detection type, it is determined that the command parsing is correct, and the remaining number of hardware commands and / or a number of detection commands in the command sequence are sent to the subsequent module corresponding to the command execution detection module, that is, the next command processing module.
[0094] For example, the command sequence includes hardware command 0, hardware command 1, hardware command 2, detection command 0, detection command 1, and detection command 2. Among them, the number of hardware commands is processed by multiple command processing modules in a preset order.
[0095] The hardware command processing link includes multiple command processing modules and multiple command execution detection modules. For example, as Figure 2As shown: The multiple command processing modules include command processing module 0, command processing module 1, and command processing module 2. The multiple command execution detection modules include command execution detection module 0, command execution detection module 1, and command execution detection module 2. Among them, several command processing modules on the hardware command processing link process corresponding several hardware commands one by one according to a preset order. Command processing module 0 processes hardware commands 0 and 2 in the command sequence, command processing module 1 processes hardware commands 3 and 5 in the command sequence, and command processing module 2 processes hardware commands 1 and 4 in the command sequence.
[0096] For example, as Figure 2 shown: The command sequence includes hardware commands CMD0 - CMD5 and detection commands CHK0 - CHK2, and the arrangement order is CMD0, CMD1, CMD2, CHK0, CMD3, CMD4, CMD5, CMD1, CMD2. It can be understood that there is a working mechanism similar to an assembly line among the command processing modules. For example, when the command sequence is sent to command processing module 0, command processing module 0 is used to process hardware commands CMD0 / CMD2 in the command sequence, and sends hardware commands CMD1 / CMD3 / CMD4 / CMD5 and detection commands CHK0 / CHK1 / CHK2 to command execution detection module 0. When command execution detection module 0 receives the above command information, it detects detection command CHK0 in the command sequence, executes command detection, and determines whether there is a command parsing error in command processing module 0 corresponding to this command execution detection module 0 according to the detection command. If a parsing error occurs, it controls command processing module 0 corresponding to command execution detection module 0 to stop working. At the same time, when command execution detection module 0 executes this detection command 0, it sends the remaining hardware commands CMD1 / CMD3 / CMD4 / CMD5 and detection command CHK1 / CHK2 to command processing module 1 on the hardware command processing link, and so on, to complete the processing of this command sequence.
[0097] In the embodiment of the present application, when the command processing module finishes processing the previous command, if it detects that the current command is a detection command, it does not process it and sends the detection command to the command execution detection module of the subsequent module. At this time, the command execution detection module will receive this detection command and execute judgment detection. If an error occurs, it stops this command processing module. At this time, the subsequent module will not receive subsequent command information, thus avoiding the spread of incorrect commands.
[0098] Please refer to Figure 5 , Figure 5 which is a schematic flowchart of the processing of hardware commands and detection commands provided by the embodiment of the present application;
[0099] As Figure 5As shown, the process of processing hardware commands and detection commands includes:
[0100] Step S51: Each command processing module executes the previous hardware command in the command sequence.
[0101] Specifically, the command sequence contains several hardware commands and several detection commands. It should be noted that the several hardware commands and several detection commands in the command sequence are inserted into the sequence in an unordered manner. Therefore, when each command processing module executes the commands in the command sequence, it is necessary to judge the type of the next command after this command. The command types include hardware commands and detection commands.
[0102] Step S52: Judge whether the next command is a detection command.
[0103] Specifically, after each command processing module executes the previous hardware command in the command sequence, judge whether the next command is a detection command. For example, as Figure 2 shown: The hardware command processing link includes command processing module 0 and command processing module 1, and command execution detection module 0 and command execution detection module 1 corresponding to the two command processing modules one by one. Among them, the hardware commands corresponding to command processing module 0 include hardware commands CMD0 / CMD2, and the detection commands corresponding to command execution detection module 0 include CHK0; the hardware commands corresponding to command processing module 1 include hardware commands CMD3 / CMD5, and the detection commands corresponding to command execution detection module 1 include detection command CHK1; the hardware commands corresponding to command processing module 2 include hardware commands CMD1 / CMD4, and the detection commands corresponding to command execution detection module 2 include detection command CHK2. Among them, the detection commands CHK0, CHK1, and CHK2 are inserted into the command sequence irregularly. It should be noted that the command sequence contains at least two hardware commands, and at least one hardware command is before the first detection command.
[0104] When command processing module 0 processes the command sequence, command processing module 0 detects the command type and command information in the command sequence in real time. Specifically, starting from the starting position, judge one by one whether the command type in the command sequence is the hardware command CMD0 or CMD2 that this command processing module 0 needs to execute, or the detection command CHK0 that needs to be detected. Assume that the starting command in the command sequence is the hardware command CMD0. When the hardware command CMD0 is detected, control command processing module 0 to execute the hardware command CMD0 in the command sequence, and after command processing module 0 executes the hardware command CMD0, judge the command type of the next command, such as Figure 2As shown, when it is detected that the subsequent hardware command CMD1 is not the hardware command that the command processing module 0 needs to execute, continue to determine the detection type of the subsequent command until a detection command is detected.
[0105] If the subsequent command is a detection command, then enter step S53: Send the detection command to the command execution detection module.
[0106] Specifically, if it is detected that the subsequent command is a detection command, then determine that the command type of the subsequent detection command is a detection command, and at the same time determine whether the detection command is the detection command corresponding to the command execution detection module corresponding to the command processing module. If so, send the detection command to the command execution detection module corresponding to the command processing module.
[0107] If the subsequent command is not a detection command, then enter step S54: Determine that the subsequent detection command is a hardware command, and the command processing module continues to execute the hardware command.
[0108] Specifically, if the subsequent command is not a detection command, then determine that the subsequent detection command is a hardware command, and at the same time determine whether the hardware command is the hardware command corresponding to the command processing module. If so, control the command processing module to execute the hardware command.
[0109] In the embodiment of the present application, after each command processing module executes the previous hardware command in the command sequence, it is determined whether the subsequent command is a detection command. If the subsequent command is a detection command, then send the detection command to the command execution detection module corresponding to the command processing module; if the subsequent command is not a detection command, then determine that the subsequent detection command is a hardware command, and the command processing module continues to execute the hardware command, which can facilitate the timely detection of the command execution state and the debugging after errors, and improve the detection efficiency of command processing without affecting the original hardware command execution path.
[0110] Please refer to Figure 6 , Figure 6 which is a schematic flowchart of the processing of an enable state provided by an embodiment of the present application;
[0111] As Figure 6 shown, the process of the processing of the enable state includes:
[0112] Step S61: Configure the enable state of each command execution detection module.
[0113] Configure the enable state of each command execution detection module during initialization, where the enable state includes enabled or disabled. Specifically, complete the configuration through relevant registers in the command execution detection module before issuing commands, mainly configuring whether the command execution detection module is enabled and the recording depth of the command execution status recording module.
[0114] Step S62: After several hardware commands in the command sequence are executed by any one command processing module, obtain the enabling state of the command execution detection module corresponding to the command processing module.
[0115] Specifically, after several hardware commands in the command sequence are executed by any one command processing module, obtain the enabling state of the command execution detection module corresponding to this command processing module.
[0116] Step S63: Determine whether the enabling state of the command execution detection module corresponding to the command processing module is enabled.
[0117] Specifically, before sending a detection command to the command execution detection module corresponding to the command processing module, it further includes: determining whether the enabling state of the command execution detection module corresponding to this command processing module is enabled.
[0118] If the enabling state of the command execution detection module corresponding to the command processing module is enabled, then proceed to Step S64: Send a detection command to the command execution detection module corresponding to the command processing module.
[0119] Specifically, after sending a detection command to the command execution detection module corresponding to the command processing module, it further includes: determining whether the enabling state of the command execution detection module corresponding to this command processing module is enabled. If the enabling state of the command execution detection module corresponding to the command processing module is enabled, then send a detection command to the command execution detection module corresponding to the command processing module.
[0120] If the enabling state of the command execution detection module corresponding to the command processing module is not enabled, then proceed to Step S65: Send the command execution information generated by the command processing module to the next command processing module.
[0121] Specifically, after sending a detection command to the command execution detection module corresponding to the command processing module, it further includes: determining whether the enabling state of the command execution detection module corresponding to this command processing module is enabled. If the enabling state of the command execution detection module corresponding to the command processing module is not enabled, then send the command execution information generated by the command processing module to the next command processing module.
[0122] It can be understood that when not enabled, the command execution detection module is transparent, and the command information generated by the previous-level command processing module is directly sent to the next-level command processing module; when enabled, the command execution detection module executes the command detection function, and after an error, it will stop the work of the previous-level command processing module.
[0123] In the embodiments of the present application, by configuring the enable state of each command execution detection module, and after a plurality of hardware commands in the command sequence are executed by any command processing module, obtaining the enable state of the command execution detection module corresponding to the command processing module, and determining to send the detection command to the command execution detection module corresponding to the command processing module by judging the enable state of the command execution detection module corresponding to the command processing module, it is possible to facilitate the timely detection of the command execution state and the debugging after an error, and improve the detection efficiency of command processing without affecting the original hardware command execution path.
[0124] Please refer to Figure 7a , Figure 7a which is a schematic flow chart for comparing command execution information with a detection command provided by an embodiment of the present application;
[0125] Among them, the command execution detection module includes a command execution status recording module and a judgment module, and the judgment module is connected to the command execution status recording module.
[0126] As Figure 7a shown, the process of comparing the command execution information with the detection command includes:
[0127] Step S701: Receive a detection command and obtain the command execution information of the command execution status recording module.
[0128] Specifically, the command execution detection module receives the detection command. When the command execution detection module receives the detection command, the command execution status recording module in the command execution detection module obtains the command execution information generated by the command processing module.
[0129] Step S702: Compare according to the command execution information and the detection command.
[0130] Specifically, the command execution detection module receives the detection command, that is, the judgment module in the command execution detection module receives the detection command. When the judgment module in the command execution detection module receives the detection command, the judgment module obtains the command execution information of the command execution status recording module and compares it with the detection command to obtain a comparison result.
[0131] Among them, the detection command includes a detection type and detection judgment information corresponding to the detection type one by one;
[0132] The detection type includes an execution order detection type and a command parsing detection type. Among them, the execution order detection type corresponds to execution order information, and the command parsing detection type corresponds to parsing result information;
[0133] The command execution information includes the execution order of at least two hardware commands and the command parsing result of the hardware command.
[0134] Step S703: Determine whether the execution order of at least two hardware commands is the same as the execution order information corresponding to the execution order detection type;
[0135] Specifically, if the execution order of at least two hardware commands is the same as the execution order information corresponding to the execution order detection type, then proceed to Step S706;
[0136] If the execution order of at least two hardware commands is different from the execution order information corresponding to the execution order detection type, then proceed to Step S704: Determine that the comparison result is a command parsing error;
[0137] Step S704: Determine that the comparison result is a command parsing error.
[0138] Specifically, if the execution order of at least two hardware commands is different from the execution order information corresponding to the execution order detection type, then determine that the comparison result is a command parsing error. At this time, proceed to Step S705.
[0139] Step S705: Generate a module stop signal.
[0140] Specifically, determine that the module generates a module stop signal, and send the module stop signal to the command processing module corresponding to the command execution detection module to control the command processing module corresponding to the command execution detection module to stop working; and, send an error status notification to wait for exception handling.
[0141] Among them, the exception handling includes stopping the work of the command processing module and obtaining information for debugging, where the debugging process is analyzed and solved according to specific problems. For example: debugging the command parsing function of the flash controller of the flash device.
[0142] Step S706: Determine that the comparison result is correct command parsing.
[0143] Specifically, if the execution order of at least two hardware commands is the same as the execution order information corresponding to the execution order detection type, then determine that the comparison result is correct command parsing.
[0144] Please refer to Figure 7b , Figure 7b which is another schematic diagram of the process of comparing command execution information with a detection command provided by an embodiment of the present application;
[0145] As Figure 7b shown, the process of comparing the command execution information with the detection command includes:
[0146] Step S701: Receive a detection command and obtain the command execution information of the command execution status record module.
[0147] Step S702: Compare the command execution information with the detection command.
[0148] Step S708: Determine whether the command parsing result of the hardware command is the same as the parsing result information corresponding to the command parsing detection type;
[0149] Specifically, if the command parsing result of the hardware command is the same as the parsing result information corresponding to the command parsing detection type, then proceed to Step S711: Determine that the comparison result is that the command parsing is correct;
[0150] If the command parsing result of the hardware command is different from the parsing result information corresponding to the command parsing detection type, then proceed to Step S709: Determine that the comparison result is that the command parsing is incorrect.
[0151] Step S709: Determine that the comparison result is that the command parsing is incorrect.
[0152] Specifically, if the command parsing result of the hardware command is different from the parsing result information corresponding to the command parsing detection type, then determine that the comparison result is that the command parsing is incorrect. At this time, proceed to Step S710: Generate a module stop signal.
[0153] Step S710: Generate a module stop signal.
[0154] Specifically, determine that the module generates a module stop signal, and send the module stop signal to the command processing module corresponding to the command execution detection module to control the command processing module corresponding to the command execution detection module to stop working; and, send an error status notification to wait for exception handling.
[0155] Among them, the exception handling includes stopping the work of the command processing module and obtaining information for debugging (debug). Among them, the debugging process is analyzed and solved according to specific problems. For example: debugging the command parsing function of the flash controller of the flash device.
[0156] Step S711: Determine that the comparison result is that the command parsing is correct.
[0157] Specifically, if the command parsing result of the hardware command is the same as the parsing result information corresponding to the command parsing detection type, then determine that the comparison result is that the command parsing is correct.
[0158] It can be understood that if the execution order of at least two hardware commands is the same as the execution order information corresponding to the execution order detection type, and the command parsing result of the hardware command is the same as the parsing result information corresponding to the command parsing detection type, then determine that the comparison result is that the command parsing is correct.
[0159] If the execution order of at least two hardware commands is different from the execution order information corresponding to the execution order detection type, and / or the command parsing result of the hardware command is different from the parsing result information corresponding to the command parsing detection type, then it is determined that the comparison result is a command parsing error.
[0160] Specifically, if the execution order of at least two hardware commands is different from the execution order information corresponding to the execution order detection type, and / or the command parsing result of at least one hardware command is different from the parsing result information corresponding to the command parsing detection type, then it is determined that the comparison result is a command parsing error.
[0161] In the embodiments of the present application, the command execution status recording module is used to obtain the command execution information generated by the command processing module, and the judgment module is used to obtain the command execution information of the command execution status recording module, and judge whether the execution order of the hardware command is the same as the execution order information corresponding to the execution order detection type, and / or whether the command parsing result of the hardware command is the same as the parsing result information corresponding to the command parsing detection type. If they are the same, it is determined that the comparison result is a correct command parsing; if they are different, it is determined that the comparison result is a command parsing error. At this time, the judgment module generates a module stop signal to control the command processing module corresponding to the command execution detection module to stop working, which can facilitate the timely detection of the command execution status and the debugging after an error, improve the detection efficiency of the command processing, and does not affect the parsing and execution of the original normal commands without affecting the original hardware command execution path.
[0162] Please refer to Figure 8 , Figure 8 which is a schematic diagram of a command processing method applied to a command execution detection module provided by an embodiment of the present application;
[0163] As Figure 8 shown, this command processing method is used for a command execution detection module and includes:
[0164] The command execution detection module includes a command execution status recording module and a judgment module. The command execution status recording module is used to record the received command information. After receiving the detection command, the judgment module obtains information from the command execution status recording module according to the detection type and compares it with the detection judgment conditions in the detection command to obtain a detection result. When the comparison result is incorrect, a module stop signal is generated to stop the command processing module from working.
[0165] Specifically, the command information includes the type of command to be executed and the information after the command processing module parses the command. The command execution status recording module will record several pieces of command information, and the execution order detection can be realized through the recording order of the several pieces of command information.
[0166] Specifically, when performing the execution order detection, multiple command information is obtained, and the order of command execution is judged based on the recording order of these command information. When performing the command parsing detection, the information corresponding to the command is obtained, and the command parsing is judged correct by comparing the recorded command information.
[0167] Specifically, the comparison refers to comparing the execution order information and command parsing information recorded in the command execution status recording module with the preset execution order information and command parsing information in the detection command respectively.
[0168] Detection command: A new command type added outside the command types parsed by the original module, used to notify the command execution detection module to detect the command execution status. This command is not parsed and executed by the command processing module. The detection command includes a detection type and a detection judgment condition.
[0169] Among them, the detection type is used to represent different detection types, including the execution order detection for detecting whether the execution order of multiple commands is correct, and the command parsing detection for detecting whether the parsing result of a specified command is correct.
[0170] Among them, the detection judgment condition is the judgment condition under the corresponding detection type. Under the execution order detection type, the judgment condition includes the execution order information of the previously issued commands; under the command parsing detection type, the judgment condition includes the result information that should be generated when the command is correctly parsed.
[0171] Specifically, during the working process, the command execution detection module records in real time the command information parsed and executed by the command processing module. After receiving the detection command, it judges whether there is an error in the command execution. If an error occurs, it stops the work of the command execution module and notifies the waiting abnormal handling of the error status; if there is no error, it continues to record the command execution situation.
[0172] Please refer to Figure 9 , Figure 9 which is a schematic structural diagram of a command execution detection module provided by an embodiment of the present application;
[0173] As Figure 9 shown, the command execution detection module 900 includes:
[0174] A command execution status recording module 901 and a judgment module 902, where the command execution status recording module 901 is used to obtain the command execution information generated by the command processing module;
[0175] The determination module 902 is connected to the command execution status recording module 901, and is configured to receive a detection command, obtain the command execution information of the command execution status recording module 901, compare the command execution information with the detection command to obtain a comparison result, and if the comparison result is a command parsing error, generate a module stop signal to control the command processing module corresponding to the command execution detection module to stop working.
[0176] Please refer to Figure 10 , Figure 10 which is a schematic structural diagram of a storage device provided by an embodiment of the present application;
[0177] As Figure 10 shown, the storage device 1000 includes: at least one processor 1001; and a storage medium 1002 communicatively connected to the at least one processor 1001. Figure 10 In Figure 3 to FIG. 7, one processor 1001 is taken as an example. The storage medium 1002 stores instructions executable by the at least one processor 1001, and the instructions are executed by the at least one processor 1001 so that the at least one processor 1001 can execute the above Figure 10 command processing method to FIG. 7. The processor 1001 and the storage medium 1002 can be connected by a bus or other means.
[0178] The processor 1001 can be of any type and is a processor with one or more processing cores. It can perform single-threaded or multi-threaded operations, and is used to parse instructions to execute operations such as obtaining data, performing logical operation functions, and issuing operation processing results.
[0179] The processor 1001 is configured to obtain a command sequence, the command sequence includes a number of hardware commands and a number of detection commands, and the number of hardware commands are processed by multiple command processing modules in a preset order; after each command processing module executes the number of hardware commands in the command sequence, send a detection command to the command execution detection module; if any command execution detection module determines that the command processing module corresponding to the command execution detection module has a command parsing error according to the detection command, control the command processing module corresponding to the command execution detection module to stop working. By adding a command execution detection module between each command processing module and realizing the detection of the hardware command processing flow with the cooperation of the detection command, the flexibility of the command detection requirements is increased to facilitate debugging after a command error and does not affect the parsing and execution of the original normal commands.
[0180] The storage medium 1002, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the command processing method in the embodiments of the present application. The processor 1001 realizes the command processing method in the above method embodiments by running the non-transitory software programs, instructions, and modules stored in the storage medium 1002.
[0181] The storage medium 1002 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the remote control device, etc. In addition, the storage medium 1002 may include a high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
[0182] The storage medium 1002 stores instructions executable by at least one processor 1001; at least one processor 1001 is configured to execute the instructions to implement the command processing method in any of the above method embodiments.
[0183] Furthermore, the embodiments of the present application further provide a non-transitory computer-readable storage medium. The non-transitory computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by one or more processors 1001, the one or more processors 1001 can be caused to execute the command processing method in any of the above method embodiments.
[0184] Furthermore, the embodiments of the present application further provide a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the command processing method in any of the above method embodiments. The computer program product can be a software installation package.
[0185] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0186] Through the description of the above embodiments, those of ordinary skill in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by a computer program in a computer program product to instruct relevant hardware. The computer program can be stored in a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by relevant devices, the relevant devices can execute the processes of the above method embodiments. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.
[0187] The above product can execute the command processing method provided in the embodiments of the present application and has corresponding functional modules and beneficial effects for executing the command processing method. For technical details not described in detail in this embodiment, reference can be made to the command processing method provided in the embodiments of the present application.
[0188] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them. Under the idea of the present application, the technical features in the above embodiments or different embodiments can also be combined, and the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above. For the sake of brevity, they are not provided in detail. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments or equivalently replace some of the technical features. And these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A command processing method, characterized in that, Applied to a storage device, the storage device includes: a hardware command processing link, the hardware command processing link includes a plurality of command processing modules and a plurality of command execution detection modules, and the method includes: During the initialization process, a number of detection commands are initialized and inserted into the original number of hardware command sequences to obtain a command sequence, the command sequence includes a number of hardware commands and a number of detection commands, and the number of hardware commands are processed by a plurality of the command processing modules in a preset order; After each of the command processing modules executes a number of hardware commands in the command sequence, a detection command is sent to the command execution detection module; If any one of the command execution detection modules determines, according to the detection command, that a command parsing error has occurred in the command processing module corresponding to the command execution detection module, then control the command processing module corresponding to the command execution detection module to stop working; The step of, after each of the command processing modules executes a number of hardware commands in the command sequence, sending a detection command to the command execution detection module includes: After each command processing module executes the previous hardware command in the command sequence, determine whether the next command is a detection command; If the next command is a detection command, then send the detection command to the command execution detection module; If the next command is not a detection command, then determine that the next command is a hardware command, and the command processing module continues to execute the hardware command.
2. The method according to claim 1, characterized in that The method further includes: After any one of the command processing modules executes a number of hardware commands in the command sequence, and the command execution detection module executes the detection command, the remaining number of hardware commands and / or a number of detection commands in the command sequence are sent to the next command processing module in the hardware command processing link.
3. The method according to claim 1 or 2, characterized in that, The method further includes: After any one of the command processing modules executes a number of hardware commands in the command sequence, obtain the enable state of the command execution detection module; If the enable state of the command execution detection module is enabled, then send a detection command to the command execution detection module, and after the command execution detection module receives the detection command, execute the command detection function; If the enable state of the command execution detection module is disabled, then the command execution detection module sends the command execution information generated by the command processing module to the next command processing module.
4. The method according to claim 1 or 2, characterized in that The command execution detection module includes: A command execution status recording module, configured to obtain the command execution information generated by the command processing module; A judgment module, connected to the command execution status recording module, configured to receive a detection command, obtain the command execution information of the command execution status recording module, and compare the command execution information with the detection command to obtain a comparison result. If the comparison result is a command parsing error, then generate a module stop signal to control the command processing module corresponding to the command execution detection module to stop working.
5. The method according to claim 4, wherein, The detection command includes a detection type and detection judgment information corresponding one-to-one to the detection type; The detection types include an execution order detection type and a command parsing detection type. Among them, the execution order detection type corresponds to execution order information, and the command parsing detection type corresponds to parsing result information; The command execution information includes the execution order of at least two of the hardware commands and the command parsing results of the hardware commands. Comparing the command execution information with the detection command to obtain a comparison result, including: If the execution order of at least two of the hardware commands is the same as the execution order information corresponding to the execution order detection type, and the command parsing result of the hardware command is the same as the parsing result information corresponding to the command parsing detection type, then it is determined that the comparison result is that the command parsing is correct; If the execution order of at least two of the hardware commands is different from the execution order information corresponding to the execution order detection type, and / or the command parsing result of the hardware command is different from the parsing result information corresponding to the command parsing detection type, then it is determined that the comparison result is that the command parsing is incorrect.
6. The method according to claim 1 or 2, characterized in that, Before obtaining the command sequence, the method further includes: Configuring the enable state of each command execution detection module, where the enable state includes enabled or disabled.
7. A command processing device, characterized in that, Including: Multiple command processing modules, each command processing module is used to initialize and insert several detection commands into the original several hardware command sequences during the initialization process to obtain a command sequence. The command sequence includes several hardware commands and several detection commands, and the several hardware commands are processed by the multiple command processing modules in a preset order; Processing several hardware commands in the command sequence to obtain command execution information, where the command sequence includes several hardware commands and several detection commands; after executing several hardware commands in the command sequence, sending a detection command to the command execution detection module; the sending a detection command to the command execution detection module after executing several hardware commands in the command sequence includes: after each command processing module executes the previous hardware command in the command sequence, determining whether the next command is a detection command; if the next command is a detection command, then sending the detection command to the command execution detection module; if the next command is not a detection command, then determining that the next command is a hardware command, and the command processing module continues to execute the hardware command; Multiple command execution detection modules, each command execution detection module is used to obtain the detection commands in the command sequence, and compare the command execution information with the detection commands to obtain a comparison result; if it is determined according to the detection command that a command parsing error occurs in the command processing module corresponding to the command execution detection module, then controlling the command processing module corresponding to the command execution detection module to stop working; Among them, the multiple command processing modules and the multiple command execution detection modules form a hardware command processing link.
8. The device according to claim 7, characterized in that, The command execution detection module includes: A command execution status recording module, which is used to obtain the command execution information generated by the command processing module; A judgment module, connected to the command execution status recording module, is configured to receive a detection command, obtain the command execution information of the command execution status recording module, compare the command execution information with the detection command to obtain a comparison result. If the comparison result indicates a command parsing error, a module stop signal is generated to control the corresponding command processing module of the command execution detection module to stop working.
9. A storage device, characterized in that, Comprising: At least one processor; And, A storage medium communicatively connected to the at least one processor; wherein, The storage medium stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the command processing method according to any one of claims 1-6.
Citation Information
Patent Citations
Redis transaction rollback method and device, computer equipment and storage medium
CN113420011A
Test system for information processor
JP1993066957A