Data transmission method, controller, medium and product

The data transmission method addresses inefficiencies in flash memory module testing by using interrupt requests and data verification techniques to ensure reliable and efficient data storage and integrity.

CN120066872AInactive Publication Date: 2025-05-30ARTMEM TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510355202.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2025-05-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing data storage methods for flash memory module testing, such as serial port printing and internal flash memory storage, are inefficient and limited in capacity, leading to slow and unstable data transfer, especially in extreme temperatures, and lack real-time data integrity verification.

Method used

A data transmission method that involves storing test data in a preset location, sending interrupt requests to a host based on storage space and data conditions, and using data packet numbering and CRC checksums for verification.

Benefits of technology

Enables efficient and reliable data storage and verification, ensuring data integrity and overcoming capacity limitations and instability issues in flash memory modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066872A_ABST
    Figure CN120066872A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method, a controller, a medium and a product, which are applied to the technical field of data transmission, and comprise the following steps: performing a test in response to a test command to obtain test data; processing the test data, and storing the processed test data in a preset storage position; obtaining a current storage space of the preset storage position; sending an interrupt request to the host end according to the current storage space and / or the test data, so that the host end reads the test data; receiving data reading information returned by the host end and obtaining the completion progress of the test command; and performing test control operation according to the data reading information and / or the completion progress. Therefore, the interruption request is sent to the host end through the current storage space and / or the test data so that the host end can read the test data, and the host end can detect the correctness of the test data through the data packet number and the crc verification value of the test data. Therefore, the test data can be read and stored, and the correctness of the test data can be detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of data transmission, and particularly to a data transmission method, a controller, a medium, and a product. Background Art

[0002] In the related art, in the field of flash memory module testing, the testing method based on the eMMC protocol occupies an important position. In the module development and mass production stages, in order to ensure the product quality and performance, a large number of special tests must be carried out. These tests will generate a huge amount of data, which is usually saved through the following two schemes: one is to print and output through the serial port; the other is to save the test data on the flash memory medium inside the flash memory module. However, both of these data saving schemes have some drawbacks. Printing and outputting through the serial port has problems of slow speed and instability. Especially in extreme temperature environments, its performance is even more greatly reduced, and it cannot meet the requirements of batch testing. By saving the test data on the flash memory medium inside the flash memory module, limited by the capacity of the flash memory module, the amount of data saved is limited, and additional steps are required to read the test data inside the flash memory module, and the correctness of the test data cannot be detected in real time. Therefore, how to save the huge test data is the main problem faced by the industry at present. Summary of the Invention

[0003] This application aims to at least solve one of the technical problems existing in the prior art. For this reason, this application provides a data transmission method, a controller, a medium, and a product, aiming to realize the reading and saving of test data.

[0004] In a first aspect, an embodiment of this application provides a data transmission method, and the method includes: Performing a test in response to a test command to obtain test data; Processing the test data and storing the processed test data at a preset storage location; Obtaining the current storage space of the preset storage location; Sending an interrupt request to the host end according to the current storage space and / or the test data, so that the host end reads the test data; Receiving the data reading information returned by the host end and obtaining the completion progress of the test command, and performing a test control operation according to the data reading information and / or the completion progress; Wherein, the test data includes a data packet number and a crc check value, so that the host end can detect the correctness of the test data according to the data packet number and the crc check value.

[0005] According to some embodiments of the present application, sending an interrupt request to the host side according to the current storage space and / or the test data, so that the host side reads the test data, includes: Obtain the current character of the test data; Send an interrupt request to the host side according to the current storage space and / or the current character, so that the host side reads the test data.

[0006] According to some embodiments of the present application, sending an interrupt request to the host side according to the current storage space and / or the current character, so that the host side reads the test data, includes at least one of the following: When the current storage space is in a saturated state, send an interrupt request to the host side, so that the host side reads the test data; When the current storage space is in an unsaturated state and the current character is a preset character, send an interrupt request to the host side, so that the host side reads the test data.

[0007] According to some embodiments of the present application, the method further includes: Obtain the current working state, and adjust the current working state according to the current storage space and / or the current working state.

[0008] According to some embodiments of the present application, adjusting the current working state according to the current storage space and / or the current working state, includes at least one of the following: When the current storage space is in a saturated state, adjust the current working state to a suspended state; When the current storage space is in an unsaturated state and the current working state is in a suspended state, adjust the current working state to a running state; When the current storage space is in an unsaturated state and the current working state is in a running state, keep the current working state as the running state.

[0009] According to some embodiments of the present application, performing a test control operation according to the data reading information and / or the completion progress, includes one of the following: When the data reading information is successful data reading, perform a test control operation according to the completion progress; When the data reading information is abnormal data reading, send a secondary interrupt request to the host side.

[0010] According to some embodiments of the present application, performing a test control operation according to the completion progress, includes one of the following: When the completion progress shows that the test is not completed, continue the test; When the completion progress indicates that the test is completed, end the test.

[0011] In a second aspect, an embodiment of the present application provides a controller, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor runs the computer program, it executes the data transmission method in the first aspect above.

[0012] In a third aspect, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for executing the data transmission method as in the first aspect above.

[0013] In a fourth aspect, an embodiment of the present application provides a computer program product including a computer program or computer instructions. The computer program or the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, causing the computer device to execute the data transmission method as in the first aspect above.

[0014] According to the technical solution of the embodiment of the present application, it has at least the following beneficial effects: The embodiment of the present application proposes a data transmission method, a controller, a medium, and a product. The method includes: performing a test in response to a test command to obtain test data; processing the test data and storing the processed test data in a preset storage location; obtaining the current storage space of the preset storage location, and thus sending an interrupt request to the host end according to the current storage space and / or the test data, so that the host end reads the test data; receiving the data reading information returned by the host end and obtaining the completion progress of the test command, and thus performing test control operations according to the data reading information and / or the completion progress; where the test data includes a data packet number and a CRC check value, so that the host end can detect the correctness of the test data according to the data packet number and the CRC check value. Therefore, the embodiment of the present application sends an interrupt request to the host end through the current storage space and / or the test data to enable the host end to read the test data, and enables the host end to detect the correctness of the test data through the data packet number and the CRC check value, thereby realizing reading and saving the test data and detecting the correctness of the test data.

[0015] Additional aspects and advantages of the present application will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present application. Description of the Drawings

[0016] The drawings are used to provide a further understanding of the technical solution of the present application, and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation to the technical solution of the present application.

[0017] Figure 1 is a flowchart of a data transmission method provided by an embodiment of the present application; Figure 2 is Figure 1 a sub-step flowchart of step S140 shown in Figure 3 is Figure 2 a sub-step flowchart of step S220 shown in Figure 4 is a flowchart of adjusting the current working state provided by an embodiment of the present application; Figure 5 is Figure 4 a sub-step flowchart of step S420 shown in Figure 6 is a step flowchart of test control operation provided by an embodiment of the present application; Figure 7 is a step flowchart of test control operation provided by another embodiment of the present application; Figure 8 is a flowchart of a data transmission method provided by an overall embodiment of the present application; Figure 9 is a schematic diagram of a controller for executing the data transmission method provided by an embodiment of the present application. Detailed Description of the Embodiment

[0018] The embodiments of the present application will be described in detail below. The examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements with the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and should not be construed as a limitation to the present application.

[0019] In the description of the present application, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation to the present application.

[0020] In the description of the present application, the meaning of several is one or more, the meaning of multiple is two or more, greater than, less than, exceeding, etc. are understood as not including the present number, and above, below, within, etc. are understood as including the present number. If the first and second are described only for the purpose of distinguishing technical features, they should not be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features or implicitly indicating the sequence of the indicated technical features.

[0021] In the description of this application, unless otherwise clearly defined, terms such as "setting", "installation", "connection", etc. should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in this application in combination with the specific content of the technical solution.

[0022] In some cases, in the field of flash memory module testing, the test method based on the eMMC protocol occupies an important position. In the module development and mass production stages, in order to ensure product quality and performance, a large number of special tests must be carried out. These tests will generate a huge amount of data, and usually the data is saved through the following two schemes: one is to print and output through the serial port; the other is to save the test data on the flash memory medium inside the flash memory module. However, both of these data saving schemes have some drawbacks. Printing and outputting through the serial port has problems of slow speed and instability. Especially in extreme temperature environments, its performance is even more greatly reduced and cannot meet the requirements of batch testing; by saving the test data on the flash memory medium inside the flash memory module, limited by the capacity of the flash memory module, the amount of data saved is limited, and additional steps are required to read the test data inside the flash memory module, and the correctness of the test data cannot be monitored in real time. Therefore, how to save the huge amount of test data is the main problem faced by the industry at present.

[0023] Based on the above situation, the embodiments of this application propose a data transmission method, a controller, a medium and a product, aiming to realize the reading and saving of test data.

[0024] The following further elaborates on the various embodiments of the data transmission method of this application with reference to the accompanying drawings.

[0025] As Figure 1 shown, Figure 1 is a flowchart of a data transmission method provided by an embodiment of this application; the data transmission method may include but is not limited to steps S110, step S120, step S130, step S140, and step S150.

[0026] Step S110: Respond to the test command to perform a test and obtain test data; Step S120: Process the test data and store the processed test data at a preset storage location; Step S130: Obtain the current storage space of the preset storage location; Step S140: Send an interrupt request to the host side according to the current storage space and / or the test data, so that the host side reads the test data; Step S150: Receive the data reading information returned by the host side and obtain the completion progress of the test command, and perform test control operations according to the data reading information and / or the completion progress.

[0027] In one embodiment, the embodiment of the present application is applied to the slave end. In response to a test command, testing is performed to obtain a large amount of test data. Then, the test data is processed and the processed test data is stored in a preset storage location. Then, the current storage space of the preset storage location is obtained, and an interrupt request is sent to the host end through the current storage space and / or the test data, so that the host end reads the test data. Finally, the data reading information returned by the host end is received and the completion progress of the test command is obtained, and thus test control operations are performed through the reading information and / or the completion progress.

[0028] It can be understood that the test data includes a data packet number and a CRC check value, so that the host end can detect the correctness of the test data according to the data packet number and the CRC check value.

[0029] It should be noted that in the embodiment of the present application, an interrupt request is sent to the host end through the current storage space and / or the test data so that the host end reads the test data, and the correctness of the test data is detected by the data packet number and the CRC check value, so as to realize reading and saving the test data and detecting the correctness of the test data.

[0030] It can be understood that in order to ensure that the test data transmission does not appear disordered or packet loss phenomena, a data packet number and a CRC check value are designed in the cache header of the test data. After the host end reads the test data, it will detect the data packet number of the test data to determine whether the data packet number conforms to the correct continuous number sequence, and at the same time check the CRC check value to determine whether the test data is complete.

[0031] It can be understood that the test data includes a data packet header and a data packet body. The data packet header defines the attributes of the data packet body, and the data packet header includes: the effective filling length of the data body, the data packet number, the busy / idle mark of command execution, and the CRC check value.

[0032] It can be understood that when the host end receives the interrupt request, it will initiate a data read command to read the corresponding length of test data from the slave end.

[0033] It can be understood that the test command is sent by the host end, and thus testing is performed based on the test command.

[0034] In addition, as Figure 2 shown, Figure 2 is Figure 1 the sub-step flowchart of step S140 shown; regarding the above step S140, it may include but is not limited to step S210 and step S220.

[0035] Step S210: Obtain the current character of the test data; Step S220: Send an interrupt request to the host according to the current storage space and / or the current character, so that the host reads the test data.

[0036] It can be understood that this application can send an interrupt request to the host according to the capacity status of the current storage space, so that the host reads the test data.

[0037] It can be understood that this application can send an interrupt request to the host according to the current character, so that the host reads the test data.

[0038] It can be understood that this application can send an interrupt request to the host according to the capacity status of the current storage space and the current character, so that the host reads the test data.

[0039] It can be understood that since this application can send an interrupt request to the host through the current storage space and / or the current character to make the host read the test data, the test data can be read and saved.

[0040] In addition, as Figure 3 shown, Figure 3 is Figure 2 a sub-step flowchart of step S220 shown; regarding the above step S220, it may include but is not limited to step S310 and step S320.

[0041] Step S310: When the current storage space is in a saturated state, send an interrupt request to the host, so that the host reads the test data; Step S320: When the current storage space is in an unsaturated state and the current character is a preset character, send an interrupt request to the host, so that the host reads the test data.

[0042] It can be understood that when the current storage space is in a saturated state, it means that the preset storage location is already full of test data and new test data cannot be added, so an interrupt request is sent to the host, so that the host reads the test data.

[0043] It can be understood that when the current storage space is in an unsaturated state and the current character is a preset character, an interrupt request will also be triggered, so that the host reads the test data.

[0044] It can be understood that the preset character can be set according to actual needs, and the embodiments of this application do not make specific limitations on it.

[0045] In addition, as Figure 4 shown, Figure 4 is a flowchart for adjusting the current working state provided by an embodiment of this application; this data transmission method may include but is not limited to step S410 and step S420.

[0046] Step S410: Obtain the current working status; Step S420: Adjust the current working status according to the current storage space and / or the current working status.

[0047] In one embodiment, the embodiment of the present application obtains the current working status, so as to adjust the current working status according to the current storage space and / or the current working status, thereby avoiding data loss or overwriting.

[0048] In addition, as Figure 5 shown, Figure 5 is Figure 4 the sub-step flowchart of step S420 shown; regarding the above step S420, it may include but is not limited to step S510, step S520, and step S530.

[0049] Step S510: When the current storage space is in a saturated state, adjust the current working status to a suspended state; Step S520: When the current storage space is in an unsaturated state and the current working status is in a suspended state, adjust the current working status to a running state; Step S530: When the current storage space is in an unsaturated state and the current working status is in a running state, keep the current working status as the running state.

[0050] It can be understood that when the current storage space is in a saturated state, if new data continues to be written and not taken away by the host side in time, it may cause data loss or overwriting. At this time, by adjusting the current working status of the slave side to a suspended state, it can ensure that the test data remains complete, and wait for the host side to take away the test data and then continue the test or end the test.

[0051] In addition, as Figure 6 shown, Figure 6 is the step flowchart of the test control operation provided by an embodiment of the present application; regarding the test control operation according to the data reading information and / or the completion progress in the above step S150, it may include but is not limited to step S610 and step S620.

[0052] Step S610: When the data reading information is that the data reading is successful, perform the test control operation according to the completion progress; Step S620: When the data reading information is that the data reading is abnormal, send a secondary interrupt request to the host side.

[0053] It can be understood that when the data reading information is that the data reading is successful, it means that the host side has successfully read the test data in the preset storage location.

[0054] It can be understood that when the data reading information is abnormal data reading, it indicates that the host side has not successfully read the test data in the preset storage location. To avoid data damage or loss, a secondary interrupt request is sent to the host side so that the host side reads the test data.

[0055] In addition, as Figure 7 shown, Figure 7 is a flowchart of the steps of the test control operation provided by another embodiment of the present application; regarding the test control operation according to the completion progress in step S610 above, it may include but is not limited to step S710 and step S720.

[0056] Step S710: When the completion progress shows that the test is not completed, continue the test; Step S720: When the completion progress shows that the test is completed, end the test.

[0057] It can be understood that if the completion progress shows that the test is not completed, the test continues based on the test command; if the completion progress shows that the test is completed, the test ends.

[0058] It can be understood that during the process of testing based on the test command, when the completion progress shows that the test is completed, an interrupt request is sent to the host side so that the host side reads the test data and ends the test.

[0059] Based on the data transmission methods of the above various embodiments, overall embodiments of the data transmission method of the present application are respectively proposed below.

[0060] As Figure 8 shown, Figure 8 is a flowchart of the data transmission method provided by an overall embodiment of the present application; it is applied to the host side.

[0061] First, the host side sends a test command to the slave side through a private command; After receiving the test command, the slave side parses the command and starts to execute, and test data is generated during the execution of the command; On the slave side, a test data cache with a specified size (typical value 16k bytes) is opened up, and the test data is written into the preset storage location. When the preset storage location is full or a preset character is written, the host side is notified through a hardware interrupt to take away the data; When the preset storage location is full and before the host side takes away the data, the slave side enters a suspended state; To avoid interrupt loss caused by hardware instability, after the first interrupt is issued, a timeout is set. If the host side does not take away the data in the cache within the timeout, the slave side will send a hardware interrupt again; To ensure that data transmission does not result in out-of-order or packet loss, packet numbers and CRC check values are designed in the test data. After receiving the test data, the host checks whether the packet number conforms to the correct consecutive number sequence and simultaneously verifies the CRC check value to determine whether the test data is complete. The test data structure is divided into a data packet header and a data packet body. The data packet header defines the attributes of the data packet body, including: the effective filling length of the data body, the packet number, the busy / idle flag for command execution, and the CRC check value. When the host receives an interrupt request, it initiates a data read command to read the corresponding length of test data from the slave. After the host retrieves the data, the slave releases the suspended state and continues to execute the test command until the test command is completed.

[0062] Based on the data transmission methods of the above various embodiments, the following respectively present various embodiments of the controller, computer-readable storage medium, and computer program product of the present application.

[0063] As Figure 9 shown, Figure 9 is a schematic diagram of a controller for executing the data transmission method provided by an embodiment of the present application. The controller 700 implemented by the present application includes: a processor 710, a memory 720, and a computer program stored on the memory 720 and executable on the processor 710. Among them, Figure 9 one processor 710 and one memory 720 are taken as examples.

[0064] The processor 710 and the memory 720 can be connected through a bus or other means, Figure 9 and taking connection through a bus as an example.

[0065] The memory 720, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory 720 can include high-speed random access memory and can also include non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory 720 optionally includes a memory 720 remotely set relative to the processor 710, and these remote memories 720 can be connected to the controller 700 through a network. Examples of the above network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and their combinations.

[0066] Those skilled in the art can understand that Figure 9 the device structure shown in

[0067] In Figure 9 In the controller 700 shown, the processor 710 can be used to call the control program stored in the memory 720, thereby implementing the above data transmission method. Specifically, the non-transitory software program and instructions required to implement the data transmission method of the above embodiments are stored in the memory 720, and when executed by the processor 710, the data transmission method of the above embodiments is executed.

[0068] It should be noted that since the controller 700 of the embodiments of the present application can execute the data transmission method of any of the above embodiments, therefore, the specific implementation manners and technical effects of the controller 700 of the embodiments of the present application can refer to the specific implementation manners and technical effects of the data transmission method of any of the above embodiments.

[0069] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions for executing the above data transmission method. Exemplarily, the method steps described above are executed. Figures 1 to 8 in the

[0070] It should be noted that since the computer-readable storage medium of the embodiments of the present application can execute the data transmission method of any of the above embodiments, therefore, the specific implementation manners and technical effects of the computer-readable storage medium of the embodiments of the present application can refer to the specific implementation manners and technical effects of the data transmission method of any of the above embodiments.

[0071] In addition, an embodiment of the present application further provides a computer program product, including a computer program or computer instructions, the computer program or computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the computer device executes the above data transmission method. Exemplarily, the method steps described above are executed. Figures 1 to 8 in the

[0072] It should be noted that since the computer program product of the embodiments of the present application can execute the data transmission method of any of the above embodiments, therefore, the specific implementation manners and technical effects of the computer program product of the embodiments of the present application can refer to the specific implementation manners and technical effects of the data transmission method of any of the above embodiments.

[0073] Those of ordinary skill in the art can understand that all or some of the steps and systems disclosed in the above methods can be implemented as software, firmware, hardware, and their appropriate combinations. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or can be implemented as hardware, or can be implemented as an integrated circuit, such as an application specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media typically includes computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.

[0074] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or its similar expression refers to any combination of these items, including any combination of single item (one) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0075] In several embodiments provided by the present application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, indirect couplings or communication connections of apparatuses or units, and can be in electrical, mechanical, or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0076] It should also be understood that the various embodiments provided by the embodiments of the present application can be combined arbitrarily to achieve different technical effects.

[0077] The above is a specific description of the preferred embodiments of the present application, but the present application is not limited to the above embodiments. Those skilled in the art can also make various equivalent deformations or substitutions without departing from the spirit of the present application, and these equivalent deformations or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. A data transmission method, characterized in that: The method comprises: Performing a test in response to a test command to obtain test data; Processing the test data and storing the processed test data in a preset storage location; Obtaining the current storage space of the preset storage location; Sending an interrupt request to a host end according to the current storage space and / or the test data, so that the host end reads the test data; Receiving data reading information returned by the host end and obtaining the completion progress of the test command, and performing a test control operation according to the data reading information and / or the completion progress; The test data includes a data packet number and a CRC check value, so that the host end detects the correctness of the test data according to the data packet number and the CRC check value.

2. The data transmission method according to claim 1, characterized in that: The sending an interrupt request to the host end according to the current storage space and / or the test data so that the host end reads the test data includes: Get the current character of the test data; An interrupt request is sent to a host end according to the current storage space and / or the current character, so that the host end reads the test data.

3. The data transmission method according to claim 2, characterized in that: The sending an interrupt request to the host end according to the current storage space and / or the current character so that the host end reads the test data includes at least one of the following: When the current storage space is in a saturated state, sending an interrupt request to the host end so that the host end reads the test data; When the current storage space is in an unsaturated state and the current character is a preset character, an interrupt request is sent to the host end so that the host end reads the test data.

4. The data transmission method according to claim 1, characterized in that: The method further comprises: A current working state is acquired, and the current working state is adjusted according to the current storage space and / or the current working state.

5. The data transmission method according to claim 4, characterized in that: The adjusting the current working state according to the current storage space and / or the current working state comprises at least one of the following: When the current storage space is in a saturated state, adjusting the current working state to a suspended state; When the current storage space is in an unsaturated state and the current working state is in a suspended state, adjusting the current working state to a running state; When the current storage space is in an unsaturated state and the current working state is in a running state, the current working state is maintained as the running state.

6. The data transmission method according to claim 1, characterized in that: The performing of the test control operation according to the data reading information and / or the completion progress includes one of the following: When the data reading information indicates that the data reading is successful, performing a test control operation according to the completion progress; When the data reading information indicates that the data reading is abnormal, a secondary interrupt request is sent to the host end.

7. The data transmission method according to claim 6, characterized in that: The performing of the test control operation according to the completion progress includes one of the following: When the completion progress shows that the test is not completed, continue the test; When the completion progress shows that the test has been completed, the test ends.

8. A controller, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the data transmission method according to any one of claims 1 to 7 when executing the computer program.

9. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to execute the data transmission method according to any one of claims 1 to 7.

10. A computer program product comprising a computer program or computer instructions, characterized in that The computer program or the computer instructions are stored in a computer-readable storage medium, the processor of a computer device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, so that the computer device executes the data transmission method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Segmented independent transmission check method

    CN106788894A

  • Data security storage method and system for mobile terminal

    CN116643706A

  • Storage product testing method and system, electronic equipment and storage medium

    CN116884470A

  • Read Status Controller

    US20090164683A1