Method for Obtaining Read, Write, and Erase Operation Timeout

By setting up a delay module in the read, write and erase path of the eMMC, the delay time is gradually increased until the host has a timeout error, thus solving the problem of difficulty in obtaining the timeout time of the eMMC operation in the prior art, and achieving fast and accurate timeout time acquisition.

CN116168752BActive Publication Date: 2025-07-01ARTMEM TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310168447.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2025-07-01
Estimated Expiration
2043-02-24

AI Technical Summary

Technical Problem

The prior art is difficult to quickly and accurately obtain the timeout time of write, read and erase operation of eMMC, and it is necessary to analyze the Linux code of the SOC manufacturer, making it difficult to obtain the code.

Method used

Set up a delay module in the read, write and erase paths of the eMMC. By gradually increasing the delay time until the host has a timeout error, the timeout time is obtained.

Benefits of technology

There is no need to obtain the code of the SOC manufacturer, and it can quickly and accurately obtain the timeout time of read, write and erase operations, making it easy to operate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116168752B_ABST
    Figure CN116168752B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for obtaining read, write, and erase operation timeout times, which relates to the technical field of hardware testing. The method for obtaining the read operation timeout time includes the following steps: setting a read delay module in the read path of the eMMC of the product to be tested; connecting the serial ports of the host and the eMMC of the product to be tested to the PC side; performing power-on initialization on the eMMC, and when the number of times the eMMC is read by the host reaches a first preset value, turning on the read delay switch to activate the read delay module; after the eMMC delays according to the read delay time in the read delay module, it responds to the read operation of the host until the host encounters a timeout error; by comparing the print logs of the eMMC and the host, the read timeout time of the host is obtained. According to the method for obtaining the read operation timeout time of the embodiment of the present invention, the read operation timeout time can be obtained quickly and accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of hardware testing, and more particularly to a method for obtaining read, write, and erase operation timeout times. Background Art

[0002] As an excellent storage device, eMMC (Embedded Multi Media Card) is more and more widely used in occasions such as tablet computers, TV boxes, mobile phones, vehicle-mounted navigation, etc. With the country's emphasis on semiconductor companies, more and more SOC (System on Chip) main control manufacturers have emerged. At the same time, there are various differences in the Linux software used by different SOC manufacturers, and SOC manufacturers will customize and optimize the eMMC code of Linux, which will bring many compatibility problems to eMMC manufacturers. For example, there are three basic types of operations for SOC to operate eMMC: write, read, and erase, and each manufacturer's definition of the operation time for write, read, and erase will be different. In order to obtain the timeout times for write, read, and erase of eMMC, the current common method is to obtain the eMMC code of Linux of the SOC manufacturer, and analyze through the code how much the timeout time for the write, read, and erase operations of SOC on eMMC is. This method has the following problems: 1. It is difficult, and it is necessary to analyze the code of each manufacturer and calculate to obtain the value of the timeout time; 2. The obtained timeout time value is only a theoretical value, and some actual measurements are still required; 3. The code of the SOC manufacturer is usually difficult to obtain. Summary of the Invention

[0003] The present invention aims to at least solve one of the technical problems existing in the prior art. For this purpose, the present invention provides a method for obtaining read, write, and erase operation timeout times, which can quickly and accurately obtain the timeout times.

[0004] On the one hand, the read operation timeout time obtaining method according to an embodiment of the present invention includes the following steps:

[0005] Set a read delay module in the read path of the eMMC of the product to be tested, the read delay module is provided with multiple different gears of read delay times, and the read delay time of each gear gradually increases. The opening and closing of the read delay module are controlled by a read delay switch;

[0006] Connect the host of the product to be tested and the serial port of the eMMC to the PC side to print the logs of the host and the eMMC on the PC side;

[0007] Power on and initialize the eMMC. When the number of times the eMMC is read by the host reaches a first preset value, turn on the read delay switch to activate the read delay module;

[0008] After the eMMC delays according to the read delay time of the first gear in the read delay module, it responds to the read operation of the host; if the host does not experience a timeout error, the eMMC delays according to the read delay time of the next gear in the read delay module; repeat this process until the host experiences a timeout error;

[0009] By comparing the print logs of the eMMC and the host, obtain the read timeout time of the host.

[0010] According to some embodiments of the present invention, the following steps are further included:

[0011] After the host experiences a timeout error, reset the eMMC.

[0012] According to some embodiments of the present invention, setting a read delay module in the read path of the eMMC of the product to be tested includes:

[0013] Modify the firmware of the eMMC and set the read delay module in the read path of the firmware of the eMMC.

[0014] According to some embodiments of the present invention, the value of the first preset value is 2000 times.

[0015] The method for obtaining the read operation timeout time proposed by the present invention has at least the following beneficial effects: by setting a read delay module in the read path of the eMMC, the read operation timeout time of the host can be obtained by gradually increasing the read delay time, without obtaining the code of the SOC manufacturer, and the read operation timeout time can be obtained quickly and accurately, and the operation is convenient and time-saving.

[0016] On the other hand, according to the method for obtaining the write operation timeout time of the embodiment of the present invention, the following steps are included:

[0017] Set a write delay module in the write path of the eMMC of the product to be tested. The write delay module is provided with multiple different gears of write delay times, and the write delay time of each gear gradually increases. The opening and closing of the write delay module are controlled by a write delay switch;

[0018] Connect the serial ports of the host and the eMMC of the product to be tested to the PC side to print the logs of the host and the eMMC on the PC side;

[0019] Power on and initialize the eMMC. When the number of times the eMMC is read by the host reaches the first preset value, turn on the write delay switch to activate the write delay module;

[0020] After the eMMC is delayed according to the write delay time of the first gear in the write delay module, it responds to the write operation of the host. If the host does not time out and error, the eMMC is delayed according to the write delay time of the next gear in the write delay module; repeat this process until the host times out and errors;

[0021] Obtain the write timeout time of the host by comparing the print logs of the eMMC and the host.

[0022] According to some embodiments of the present invention, the method further includes the following steps:

[0023] After the host times out and errors, reset the eMMC.

[0024] According to some embodiments of the present invention, setting a write delay module in the write path of the eMMC of the product to be tested includes:

[0025] Modify the firmware of the eMMC and set the write delay module in the write path of the firmware of the eMMC.

[0026] The method for obtaining the write operation timeout time proposed by the present invention has at least the following beneficial effects: By setting a write delay module in the write path of the eMMC, the write operation timeout time of the host is obtained by gradually increasing the write delay time, without obtaining the code of the SOC manufacturer, and the write operation timeout time can be obtained quickly and accurately, and the operation is convenient and time-saving.

[0027] On the other hand, the method for obtaining the erase operation timeout time according to the embodiment of the present invention includes the following steps:

[0028] Set an erase delay module in the erase path of the eMMC of the product to be tested. The erase delay module is provided with multiple different gears of erase delay times, and the erase delay time of each gear gradually increases. The opening and closing of the erase delay module are controlled by an erase delay switch;

[0029] Connect the serial ports of the host and the eMMC of the product to be tested to the PC side to print the logs of the host and the eMMC on the PC side;

[0030] Power on and initialize the eMMC. When the number of read operations performed by the host on the eMMC reaches a first preset value, turn on the erase delay switch to activate the erase delay module;

[0031] After the eMMC delays according to the erase delay time of the first gear in the erase delay module, it responds to the erase operation of the host; if the host does not encounter a timeout error, the eMMC delays according to the erase delay time of the next gear in the erase delay module; repeat this process until the host encounters a timeout error;

[0032] By comparing the print logs of the eMMC and the host, obtain the erase timeout time of the host. On the other hand, according to an embodiment of the present invention, the storage medium stores computer-executable instructions for causing a computer to execute the above-described method for obtaining the read operation timeout time.

[0033] According to some embodiments of the present invention, the method further includes the following steps:

[0034] After the host encounters a timeout error, reset the eMMC.

[0035] According to some embodiments of the present invention, setting an erase delay module in the erase path of the eMMC of the product under test includes:

[0036] Modify the firmware of the eMMC and set the erase delay module in the erase path of the firmware of the eMMC.

[0037] The method for obtaining the erase operation timeout time proposed by the present invention has at least the following beneficial effects: By setting an erase delay module in the erase path of the eMMC, the erase operation timeout time of the host is obtained by gradually increasing the erase delay time, without the need to obtain the code of the SOC manufacturer, and the erase operation timeout time can be obtained quickly and accurately, and the operation is convenient and trouble-saving.

[0038] Some of the additional aspects and advantages of the present invention will be given in the following description, some will become apparent from the following description, or will be understood through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The above and / or additional aspects and advantages of the present invention will become apparent and be readily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0040] Figure 1 is a flowchart of the steps of the method for obtaining the read operation timeout time according to an embodiment of the present invention;

[0041] Figure 2 Schematic diagram of connecting the serial ports of the host and eMMC of the product to be tested to the PC side;

[0042] Figure 3 Flowchart of steps of the method for obtaining the write operation timeout time according to an embodiment of the present invention;

[0043] Figure 4 Flowchart of steps of the method for obtaining the erase operation timeout time according to an embodiment of the present invention. Detailed implementation manners

[0044] This part will describe in detail the specific embodiments of the present invention. The preferred embodiments of the present invention are shown in the drawings. The function of the drawings is to supplement the description in the text part of the specification, enabling people to intuitively and vividly understand each technical feature and the overall technical solution of the present invention, but it should not be construed as a limitation on the protection scope of the present invention.

[0045] In the description of the present invention, unless otherwise clearly defined, words such as "set", "installed", "connected", etc. should be understood in a broad sense. Those skilled in the art can reasonably determine the specific meanings of the above words in the present invention in combination with the specific content of the technical solution.

[0046] On the one hand, as Figure 1 shown, an embodiment of the present invention provides a method for obtaining the read operation timeout time. The method includes the following steps:

[0047] Step S100: Set a read delay module in the read path of the eMMC of the product to be tested. The read delay module is provided with read delay times of multiple different gears, and the read delay time of each gear gradually increases. The opening and closing of the read delay module are controlled by a read delay switch;

[0048] Step S200: Connect the serial ports of the host and eMMC of the product to be tested to the PC side to print the logs of the host and eMMC on the PC side;

[0049] Step S300: Power on and initialize the eMMC. When the number of times the eMMC is read by the host reaches a first preset value, turn on the read delay switch to turn on the read delay module;

[0050] Step S400: After the eMMC delays according to the read delay time of the first gear in the read delay module, respond to the read operation of the host; if the host does not have a timeout error, the eMMC delays according to the read delay time of the next gear in the read delay module; repeat this process until the host has a timeout error;

[0051] Step S500: Obtain the read timeout time of the host by comparing the printed logs of the eMMC and the host.

[0052] Among them, the product to be tested can be common intelligent devices such as mobile phones, tablets, and in-vehicle infotainment systems, and the host refers to the main controller of the product to be tested.

[0053] Specifically, in order to set a read delay module in the read path of the eMMC, the firmware of the eMMC can be modified; for the normal firmware of the eMMC, it has many functions, such as basic functions like Read, Write, and Erase. Under normal circumstances, when the host sends read, write, and erase operations, the eMMC side needs to respond and process as soon as possible; after modifying the firmware of the eMMC, a read delay module can be set in the read path of the eMMC to deliberately increase the delay, so that the eMMC performs the read operation sent by the host after the delay.

[0054] Before testing the product to be tested, as Figure 2 shown, first connect the serial ports of the host and eMMC of the product to be tested to the PC side, so that the logs of the host and eMMC can be printed on the PC side; when the host encounters a timeout error, the error information and the corresponding time will be displayed in the log of the host. By comparing the logs of the host and eMMC, the read timeout time of the host can be obtained.

[0055] When testing the product to be tested, power on the product to be tested and enter the Android system. At this time, the eMMC is powered on and initialized; the eMMC internally records the number of times of read operations by the host. When this number reaches the first preset value, the read delay switch will be turned on, thus enabling the read delay module. In this example, the value of the first preset value is 2000 times, because for the product to be tested, the average value of powering on and entering the Android system is 2000 times; it should be noted that the value of the first preset value can be set according to actual needs, such as 3000 times, 4000 times or other values, and no specific limitation is made here.

[0056] After the read delay module is enabled, the eMMC automatically adjusts the delay of the read operation according to multiple different levels of read delay times set internally. By gradually increasing the read delay time until the host encounters a read operation timeout error (ReadTimeout). For example, assume the read delay time of the first level is 10 ms, but the host does not encounter a read operation timeout error; then the read delay time needs to be increased. Assume the read delay time of the second level is 50 ms. If the host still does not encounter a timeout error, continue to gradually increase the read delay time until the host encounters a read operation timeout error. At this time, it can be seen from the log printed by the PC that the error message and its corresponding time appear in the host's log. By comparing the eMMC's log, it can be known how much the read delay time set by the eMMC is at this time. Once the two are matched, the read operation timeout time of the host of the product under test can be obtained. At the same time, after the host encounters a read operation timeout error, the eMMC also needs to be reset.

[0057] According to the method for obtaining the read operation timeout time of the embodiment of the present invention, the read operation timeout time of the host can be obtained quickly and accurately without obtaining the original code of the SOC manufacturer, and the operation is convenient and time-saving.

[0058] On the other hand, as Figure 3 shown, the embodiment of the present invention also proposes a method for obtaining the write operation timeout time, and the method includes the following steps:

[0059] Step S600: Set a write delay module in the write path of the eMMC of the product under test. The write delay module is set with multiple different levels of write delay times, and the write delay time of each level gradually increases. The opening and closing of the write delay module are controlled by a write delay switch;

[0060] Step S700: Connect the serial ports of the host and the eMMC of the product under test to the PC to print the logs of the host and the eMMC on the PC;

[0061] Step S800: Power on and initialize the eMMC. When the number of times the eMMC is read by the host reaches the first preset value, turn on the write delay switch to enable the write delay module;

[0062] Step S900: After the eMMC delays according to the write delay time of the first level in the write delay module, then respond to the write operation of the host; if the host does not encounter a timeout error, the eMMC delays according to the write delay time of the next level in the write delay module; repeat this process until the host encounters a timeout error;

[0063] Step S1000: Obtain the write timeout of the host by comparing the print logs of the eMMC and the host.

[0064] Among them, the product to be tested can be common intelligent devices such as mobile phones, tablets, and in-vehicle infotainment systems, and the host refers to the main controller of the product to be tested.

[0065] Specifically, in order to set a write delay module in the write path of the eMMC, the firmware of the eMMC can be modified; for the normal firmware of the eMMC, it has many functions, such as basic functions like Read, Write, and Erase. Under normal circumstances, when the host sends read, write, and erase operations, the eMMC side needs to respond and process as soon as possible; after modifying the firmware of the eMMC, a write delay module can be set in the write path of the eMMC to deliberately increase the delay, so that the eMMC performs the write operation sent by the host after the delay.

[0066] Before testing the product to be tested, as Figure 2 shown, first connect the serial ports of the host and the eMMC of the product to be tested to the PC side, so that the logs of the host and the eMMC can be printed on the PC side; when the host has a timeout error, the error message and the corresponding time will be displayed in the log of the host. By comparing the logs of the host and the eMMC, the write timeout of the host can be obtained.

[0067] When testing the product to be tested, power on the product to be tested and enter the Android system. At this time, the eMMC is powered on and initialized; the eMMC internally records the number of times of read operations by the host. When this number reaches the first preset value, the write delay switch will be turned on, thereby enabling the write delay module. In this example, the value of the first preset value is 2000 times, because for the product to be tested, the average value when powering on and entering the Android system is 2000 times; it should be noted that the value of the first preset value can be set according to actual needs, such as 3000 times, 4000 times or other values, which are not specifically limited here.

[0068] After the write delay module is enabled, the eMMC will automatically adjust the write operation delay according to multiple different levels of write delay times set internally. By gradually increasing the write delay time until the host encounters a write operation timeout error (WriteTimeout). For example, assume the write delay time for the first level is 10 ms, but the host does not encounter a write operation timeout error; then the write delay time needs to be increased. Assume the write delay time for the second level is 50 ms. If the host still does not encounter a timeout error, continue to gradually increase the write delay time until the host encounters a write operation timeout error. At this time, through the log printed on the PC side, it can be seen that the error message and its corresponding time appear in the host's log. By comparing the eMMC's log, it can be known how much the write delay time set by the eMMC is at this time. By matching the two, the write operation timeout time of the host of the product under test can be obtained. At the same time, after the host encounters a write operation timeout error, the eMMC also needs to be reset.

[0069] According to the method for obtaining the write operation timeout time of the embodiment of the present invention, the write operation timeout time of the host can be quickly and accurately obtained without obtaining the source code of the SOC manufacturer, and the operation is convenient and time-saving.

[0070] On the other hand, as Figure 4 shown, the embodiment of the present invention also proposes a method for obtaining the erase operation timeout time, which includes the following steps:

[0071] Step S1100: Set an erase delay module in the erase path of the eMMC of the product under test. The erase delay module is set with multiple different levels of erase delay times, and the erase delay time of each level gradually increases. The opening and closing of the erase delay module are controlled by an erase delay switch;

[0072] Step S1200: Connect the serial ports of the host and the eMMC of the product under test to the PC side to print the logs of the host and the eMMC on the PC side;

[0073] Step S1300: Power on and initialize the eMMC. When the number of times the eMMC is read by the host reaches the first preset value, turn on the erase delay switch to enable the erase delay module;

[0074] Step S1400: After the eMMC delays according to the erase delay time of the first level in the erase delay module, it then responds to the host's erase operation; if the host does not encounter a timeout error, the eMMC delays according to the erase delay time of the next level in the erase delay module; repeat this process until the host encounters a timeout error;

[0075] Step S1500: Obtain the erase timeout of the host by comparing the print logs of the eMMC and the host.

[0076] Among them, the product to be tested can be common intelligent devices such as mobile phones, tablets, and car machines, and the host refers to the main controller of the product to be tested.

[0077] Specifically, in order to set an erase delay module in the erase path of the eMMC, the firmware of the eMMC can be modified; for the firmware of a normal eMMC, it has many functions, such as basic functions like Read, Write, and Erase. Under normal circumstances, when the host sends read, write, and erase operations, the eMMC side needs to respond and process as soon as possible; after modifying the firmware of the eMMC, an erase delay module can be set in the erase path of the eMMC, deliberately increasing the delay so that the eMMC performs the erase operation sent by the host after the delay.

[0078] Before testing the product to be tested, as Figure 2 shown, first connect the serial ports of the host and the eMMC of the product to be tested to the PC side, so that the logs of the host and the eMMC can be printed on the PC side; when the host has a timeout error, the error information and the corresponding time will be displayed in the log of the host. By comparing the logs of the host and the eMMC, the erase timeout of the host can be obtained.

[0079] When testing the product to be tested, power on the product to be tested and enter the Android system. At this time, the eMMC is powered on and initialized; the eMMC internally records the number of times of read operations by the host. When this number reaches the first preset value, the erase delay switch will be turned on, thus enabling the erase delay module. In this example, the value of the first preset value is 2000 times, because for the product to be tested, the average value when powering on and entering the Android system is 2000 times; it should be noted that the value of the first preset value can be set according to actual needs, such as 3000 times, 4000 times, or other values, which are not specifically limited here.

[0080] After the erase delay module is enabled, the eMMC automatically adjusts the delay of the erase operation according to multiple different levels of erase delay time set internally. By gradually increasing the erase delay time until the host encounters an erase operation timeout error (EraseTimeout). For example, assume that the erase delay time of the first level is 10 ms, but the host does not encounter an erase operation timeout error. Then the erase delay time needs to be increased. Assume that the erase delay time of the second level is 50 ms. If the host still does not encounter a timeout error, continue to gradually increase the erase delay time until the host encounters an erase operation timeout error. At this time, through the log printed by the PC, it can be seen that there is an error message and its corresponding time in the host's log. By comparing the eMMC's log, it can be known how much the erase delay time is set by the eMMC at this time. Once the two are matched, the erase operation timeout time of the host of the product to be tested can be obtained. At the same time, after the host encounters an erase operation timeout error, the eMMC also needs to be reset.

[0081] The method for obtaining the erase operation timeout time according to the embodiment of the present invention can quickly and accurately obtain the erase operation timeout time of the host without obtaining the source code of the SOC manufacturer, and the operation is convenient and time-saving.

[0082] Although specific implementation schemes are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative implementation schemes are also within the scope of the present disclosure. For example, any one of the functions and / or processing capabilities described in connection with a specific device or component can be performed by any other device or component. Additionally, although various exemplary specific implementations and architectures have been described in accordance with the embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary specific implementations and architectures described herein are also within the scope of the present disclosure.

[0083] Certain aspects of the present disclosure have been described above with reference to the block diagrams and flowcharts of systems, methods, systems, and / or computer program products according to exemplary embodiments. It should be understood that one or more blocks in the block diagrams and flowcharts, as well as combinations of blocks in the block diagrams and flowcharts, can be implemented respectively by executing computer-executable program instructions. Similarly, according to some embodiments, some blocks in the block diagrams and flowcharts may not need to be executed in the order shown, or may not need to be executed at all. Additionally, additional components and / or operations beyond those shown in the blocks of the block diagrams and flowcharts may exist in certain embodiments.

[0084] Accordingly, the blocks in the block diagrams and flowcharts support combinations of devices for performing specified functions, combinations of elements or steps for performing specified functions, and program instruction devices for performing specified functions. It should also be understood that each block in the block diagrams and flowcharts, and combinations of blocks in the block diagrams and flowcharts, can be implemented by a special-purpose hardware computer system that performs specific functions, elements, or steps, or a combination of special-purpose hardware and computer instructions.

[0085] The program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, upon execution, cause at least a portion of the functions described herein (e.g., one or more operations of the exemplary methods described herein) to be performed.

[0086] Software components can be coded in any of a variety of programming languages. An exemplary programming language can be a low-level programming language, such as an assembly language associated with a particular hardware architecture and / or operating system platform. Software components that include assembly language instructions may need to be converted to executable machine code by an assembler before being executed by the hardware architecture and / or platform. Another exemplary programming language can be a higher-level programming language that can be ported across multiple architectures. Software components that include higher-level programming languages may need to be converted to an intermediate representation by an interpreter or compiler before execution. Other examples of programming languages include, but are not limited to, macro languages, shell or command languages, job control languages, scripting languages, database query or search languages, or report writing languages. In one or more exemplary embodiments, software components that include instructions in one of the above examples of programming languages can be executed directly by the operating system or other software components without first being converted to another form.

[0087] Software components can be stored as files or other data storage constructs. Software components with similar types or related functions can be stored together in, for example, a specific directory, folder, or library. Software components can be static (e.g., pre-set or fixed) or dynamic (e.g., created or modified at execution time).

[0088] The embodiments of the present invention have been described in detail above in conjunction with the accompanying drawings. However, the present invention is not limited to the above embodiments, and various changes can be made without departing from the spirit of the present invention within the scope of knowledge possessed by those of ordinary skill in the art to which the present invention pertains.

Claims

1. A method for obtaining a read operation timeout time, characterized in that, Including the following steps: Set a read delay module in the read path of the eMMC of the product to be tested. The read delay module is set with read delay times of multiple different gears, and the read delay time of each gear gradually increases. The on and off of the read delay module are controlled by a read delay switch; Link the host of the product to be tested and the serial port of the eMMC to the PC side to print the logs of the host and the eMMC on the PC side; Power on and initialize the eMMC. When the number of times the eMMC is read by the host reaches a first preset value, turn on the read delay switch to activate the read delay module; After the eMMC delays according to the read delay time of the first gear in the read delay module, it responds to the read operation of the host; If the host does not have a timeout error, the eMMC delays according to the read delay time of the next gear in the read delay module; Repeat this process until the host has a timeout error; Obtain the read timeout time of the host by comparing the printed logs of the eMMC and the host.

2. The method for obtaining the read operation timeout time according to claim 1, wherein It also includes the following steps: Reset the eMMC after the host has a timeout error.

3. The method for obtaining the read operation timeout time according to claim 1, wherein Setting a read delay module in the read path of the eMMC of the product to be tested includes: Modify the firmware of the eMMC and set the read delay module in the read path of the firmware of the eMMC.

4. The read operation timeout time acquisition method according to claim 1, characterized in that The value of the first preset value is 2000 times.

5. A method for obtaining a write operation timeout time, characterized in that, Including the following steps: Set a write delay module in the write path of the eMMC of the product to be tested. The write delay module is set with write delay times of multiple different gears, and the write delay time of each gear gradually increases. The on and off of the write delay module are controlled by a write delay switch; Link the host of the product to be tested and the serial port of the eMMC to the PC side to print the logs of the host and the eMMC on the PC side; Power on and initialize the eMMC. When the number of times the eMMC is read by the host reaches a first preset value, turn on the write delay switch to activate the write delay module; After the eMMC delays according to the write delay time of the first gear in the write delay module, it responds to the write operation of the host; if the host does not have a timeout error, the eMMC delays according to the write delay time of the next gear in the write delay module; Repeat this process until the host has a timeout error; Obtain the write timeout time of the host by comparing the printed logs of the eMMC and the host.

6. The method for obtaining the write operation timeout time according to claim 5, wherein It also includes the following steps: Reset the eMMC after the host has a timeout error.

7. The method for obtaining the write operation timeout time according to claim 5, wherein Setting a write delay module in the write path of the eMMC of the product to be tested includes: Modify the firmware of the eMMC and set the write delay module in the write path of the firmware of the eMMC.

8. A method for obtaining an erasure operation timeout time, characterized in that Including the following steps: An erase delay module is set in the erase path of the eMMC of the product to be tested. The erase delay module is provided with multiple erase delay times at different gears, and the erase delay time of each gear gradually increases. The on and off of the erase delay module are controlled by an erase delay switch; Link the serial ports of the host and the eMMC of the product to be tested to the PC side to print the logs of the host and the eMMC at the PC side; Power on and initialize the eMMC. When the number of times the eMMC is read by the host reaches a first preset value, turn on the erase delay switch to turn on the erase delay module; After the eMMC delays according to the erase delay time of the first gear in the erase delay module, it responds to the erase operation of the host; if the host does not have a timeout error, the eMMC delays according to the erase delay time of the next gear in the erase delay module; Repeat this process until the host has a timeout error; By comparing the printed logs of the eMMC and the host, obtain the erase timeout time of the host.

9. The method for obtaining the erasure operation timeout time according to claim 8, wherein It further includes the following steps: Reset the eMMC after the host has a timeout error.

10. The method for obtaining the erasure operation timeout time according to claim 8, wherein The step of setting an erase delay module in the erase path of the eMMC of the product to be tested includes: Modify the firmware of the eMMC and set the erase delay module in the erase path of the firmware of the eMMC.

Citation Information

Patent Citations

  • Storage device capable of increasing its life cycle and operating method thereof

    CN103513937A

  • Method and device for acquiring delay value of data path

    CN115048251A