Hard disk hot plug test method, device, control circuit board and system
By using the control circuit board and precision motor to simulate manual plugging and unplugging in the hard disk test, the problem that existing technology cannot accurately simulate the hard disk plugging and unplugging situation is solved, efficient and accurate hard disk hot-swap testing is achieved, and the automation and testing are improved. close to the actual scene.
Patent Information
- Application Number
- CN202410977081.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-10-18
AI Technical Summary
Existing hard disk hot-swap testing methods cannot accurately simulate various situations of hard disk plugging and unplugging, resulting in test results that are not close to actual usage scenarios, require a lot of manual operations, and are inefficient.
A hard disk hot-swap test method is designed. It uses a control circuit board and a precision motor to determine whether to start the simulated manual plug-in mode by parsing the test instructions, generates random drive instructions to control the hard disk plug-in, and simulates the speed and speed of manual plug-in. Itinerary to realize automated testing.
It improves the accuracy and efficiency of hard disk testing, can be closer to actual hard disk scenarios, reduces manual operations, and improves the automation of testing.
Smart Images

Figure CN118796573A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hard disk testing, and in particular to a hard disk hot-swap testing method, device, control circuit board and system. Background Art
[0002] The hot-swap test of a hard disk refers to the operation of inserting or unplugging the hard disk without turning off the power of the computer or related equipment, and testing the stability and performance of the hard disk and the system during this process. This test is mainly used to verify whether the hot-swap function of the hard disk is normal, and whether the hard disk can maintain data integrity and system stability during the hot-swap process. The hot-swap test of the hard disk is a comprehensive test of the coordination between the hard disk structure and the server chassis, the SI (Signal Integrity) design reliability of the hard disk high-speed interface (such as PCIe, SATA, etc.), and the hard disk high-speed connector. During the test, the main focus is on whether there are connection problems, bandwidth reduction, etc. in the high-speed interface.
[0003] When the hard disk is assembled at the customer's site or during production, it is usually assembled manually and the hard disk is inserted into the target chassis, such as a PCIe device. Therefore, manual hot-swap testing is closest to the customer's site of use. However, a plug-in test often requires hundreds or thousands of hard disk plug-in and plug-out operations, which results in a lot of manpower consumption. Even if an automatic hot-swap test fixture is proposed to replace manual plug-in and plug-out, due to its fixed plug-in and plug-in stroke, it cannot simulate the actual insertion status of the hard disk at the customer's site or during production assembly, and cannot meet the various simulation tests of the hard disk plug-in speed, insertion stroke, etc. Summary of the invention
[0004] The present invention provides a hard disk hot plug test method, device, control circuit board and system to solve the problem of accurately simulating various situations of hard disk plugging and unplugging.
[0005] In a first aspect, the present invention provides a hard disk hot-swap test method, which is applied to a control circuit board, wherein the control circuit board is fixedly connected to a test bracket, and a precision motor and a horizontal motion rod are installed on the test bracket, and one end of the horizontal motion rod is connected to the hard disk, and the method comprises:
[0006] Receiving a test instruction from a terminal device, wherein the test instruction includes at least one function item to be tested in the hard disk;
[0007] Parsing the test instruction, and judging whether to start the simulated manual plug-in mode according to the content of the test instruction;
[0008] If yes, selecting a first random number within a preset range, and determining a first rotation angle corresponding to the first random number according to a corresponding relationship among the first random number, the rotation angle, and the hard disk moving distance;
[0009] Generate a driving instruction including the first rotation angle, and send the driving instruction to the precision motor, so that the precision motor controls the horizontal motion rod to drive the hard disk to move a target distance according to the driving instruction, and inserts the other end of the hard disk into the target device;
[0010] receiving test data of at least one functional item fed back by the hard disk after being inserted into the target device, determining whether each functional item passes the test according to the test data, and collecting statistics on a test result of the hard disk;
[0011] The test result is sent to the terminal device.
[0012] In combination with the first aspect, in a possible implementation, the test instruction further includes: starting or stopping the test, the total number of test rounds, whether to start simulated manual plugging and unplugging information, the hard disk nominal plugging and unplugging stroke constant, customized test items, and at least one of a failure rate statistical mode;
[0013] Parsing the test instruction and determining whether to start the simulated manual plug-in mode according to the content of the test instruction, including:
[0014] Parse the test instruction to obtain information on whether to start simulated manual plugging and unplugging; determine whether to start a simulated manual plugging and unplugging mode according to the information on whether to start simulated manual plugging and unplugging;
[0015] If the information indicating whether to start the simulated manual plugging and unplugging is yes, the simulated manual plugging and unplugging mode is started; if the information indicating whether to start the simulated manual plugging and unplugging is no, the simulated manual plugging and unplugging mode is not started.
[0016] In combination with the first aspect, in another possible implementation, before determining the first rotation angle corresponding to the first random number according to the correspondence between the first random number, the rotation angle, and the hard disk moving distance, the method further includes: establishing a correspondence between the rotation angle and the hard disk moving distance;
[0017] The establishing of the corresponding relationship between the rotation angle and the hard disk moving distance includes:
[0018] Acquire the maximum depth of the hard disk inserted into the target device, and set the travel range of the horizontal motion rod in the horizontal direction according to the maximum depth as the preset range;
[0019] Obtain relevant parameters of the structure on the test bracket, wherein the relevant parameters include: the height of the motor axis from the hard disk plug-in and pull-out horizontal motion plane, the distance between the fixed axis of the rotating motion rod and the motor axis, and the distance between the rotating motion axis and the motor axis;
[0020] The corresponding relationship between the rotation angle and the moving distance of the hard disk is established according to the relevant parameters and the travel range of the horizontal motion rod in the horizontal direction.
[0021] In combination with the first aspect, in another possible implementation, the selecting a first random number within a preset range and determining a first rotation angle corresponding to the first random number based on the correspondence between the first random number, the rotation angle and the hard disk moving distance includes: selecting a first random number x within the preset range 0 to X; obtaining the correspondence between the rotation angle and the hard disk moving distance, and calculating the first rotation angle by subjecting the first random number x to the correspondence.
[0022] In combination with the first aspect, in another possible implementation manner, the corresponding relationship between the rotation angle and the hard disk moving distance is expressed by a formula:
[0023]
[0024] Among them, α represents the rotation angle of the motor, H1 represents the height of the motor axis from the horizontal motion plane of the hard disk plugging and unplugging, H2 represents the distance from the fixed axis of the rotating motion rod to the motor axis, R represents the distance from the rotating motion axis to the motor axis, and x represents any random number in the preset range 0 to X.
[0025] In combination with the first aspect, in another possible implementation, the at least one function item includes: at least one of an interface rate test, an interface width test, and a hard disk performance test; the test data includes: at least one of an interface rate, interface bandwidth information, and a read performance index of the hard disk;
[0026] The receiving test data of at least one functional item fed back by the hard disk after being inserted into the target device, judging whether each functional item passes the test according to the test data, and counting a test result of the hard disk, comprises:
[0027] When the at least one function item includes an interface rate test, receiving the interface rate fed back by the hard disk, and determining whether the interface rate is greater than or equal to a preset interface rate; if so, determining that the interface rate test of the hard disk passes according to the test data; otherwise, the test fails;
[0028] When the at least one function item includes an interface width test, receiving the interface bandwidth information fed back by the hard disk, and determining whether the interface bandwidth information meets the bandwidth requirement; if so, determining that the interface width test of the hard disk passes according to the test data; otherwise, the test fails;
[0029] When the at least one function item includes a hard disk performance test, receiving a read performance index fed back by the hard disk, and determining whether the read performance index is within a preset index range; if yes, determining that the hard disk performance test passes according to the test data; otherwise, the test fails;
[0030] When the at least one function item includes two or more of an interface rate test, an interface width test, and a hard disk performance test, judging whether the interface rate test, the interface width test, and the hard disk performance test are all passed according to the received interface rate of the hard disk, the interface bandwidth information, and two or more parameters of the read performance index;
[0031] If all the tests are passed, it is determined that a test of the hard disk is successful;
[0032] If one or more tests fail, it is determined that a test of the hard disk fails.
[0033] In combination with the first aspect, in yet another possible implementation, the method further includes:
[0034] According to the failure rate statistical mode indicated in the test instruction, repeat the random number selection and drive instruction generation process N times, and send N drive instructions to the precision motor, N ≥ 2 and is a positive integer;
[0035] Receiving N test data fed back after the hard disk is plugged and unplugged from the target device N times;
[0036] Whether each test is passed is determined based on the N test data, and the N test results are sent to the terminal device.
[0037] In the second aspect, the present invention also provides a control circuit board, comprising: a memory, a processor and at least one interface, wherein the memory, the processor and the at least one interface are connected via a bus; the memory stores computer instructions; the processor executes the hard disk hot-swap test method described in the first aspect or any embodiment of the first aspect by executing the computer instructions; the at least one interface is used to connect a terminal device, a precision motor and a hard disk.
[0038] In a third aspect, the present invention further provides a computer-readable storage medium, characterized in that computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to enable a computer to execute the hard disk hot-swap test method described in the first aspect or any embodiment of the first aspect.
[0039] In addition, the present invention provides a computer program product, including computer instructions, which are used to enable a computer to execute the hard disk hot-swap test method described in the first aspect or any embodiment of the first aspect.
[0040] In a fourth aspect, the present invention further provides a hard disk hot-swap test system, characterized in that the system comprises: a control circuit board, a test bracket, a hard disk, a terminal device and a target device, wherein the control circuit board is fixedly connected to the test bracket; the test bracket comprises: a precision motor, a horizontal motion rod, a horizontal motion shaft, a motor rotation shaft, a rotating motion rod, a rotating disk, a rotating motion shaft and a rotating motion rod fixed shaft; wherein one end of the horizontal motion rod is connected to one end of the hard disk;
[0041] The terminal device is used to start the test and send a test instruction to the control circuit board, wherein the test instruction includes at least one function item to be tested in the hard disk;
[0042] The control circuit board is used to receive the test instruction, parse the test instruction, and determine whether to start the simulated manual plug-in mode according to the content of the test instruction; if yes, select a first random number within a preset range, and determine a first rotation angle corresponding to the first random number according to the corresponding relationship between the first random number, the rotation angle and the hard disk moving distance; generate a drive instruction containing the first rotation angle, and send the drive instruction to the precision motor;
[0043] The precision motor is used to control the horizontal motion rod to drive the hard disk to move the target distance according to the driving instruction, so as to insert the other end of the hard disk into the target device;
[0044] The hard disk, after being inserted into the target device, sends test data of at least one functional item to the control circuit board based on communication and testing with the target device;
[0045] The control circuit board is further used to receive test data of at least one function item fed back by the hard disk, and determine whether each function item has passed the test according to the test data, and to collect statistics on a test result of the hard disk; and send the test result to the terminal device;
[0046] The terminal device is also used to receive the test result sent by the control circuit board.
[0047] The hard disk hot-swap test method, device, control circuit board and system provided by the present invention generate a drive instruction including a rotation angle by the control circuit board, thereby controlling a horizontal motion rod on a test bracket to drive the hard disk to move, and inserting the other end of the hard disk into a target device, thereby realizing automation of hard disk plugging and unplugging, replacing manual hot-swap testing.
[0048] In addition, since the generated drive instructions are generated by random numbers selected within a preset range, the movement process of the driving hard disk is also random. By generating drive instructions according to the random number method each time, various characteristics of manual plug and unplug tests can be simulated, making the test results closer to the actual hard disk scenario and improving the test accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 is an architecture diagram of a hard disk hot-swap test system according to an embodiment of the present invention;
[0051] Figure 2 is an architecture diagram of another hard disk hot-swap test system according to an embodiment of the present invention;
[0052] Figure 3 is a schematic structural diagram of a control circuit board according to an embodiment of the present invention;
[0053] Figure 4 is a structural block diagram of a terminal device according to an embodiment of the present invention;
[0054] Figure 5 It is a flowchart of a hard disk hot-swap test method according to an embodiment of the present invention;
[0055] Figure 6 is a schematic diagram of a rotation angle α of a test bracket according to an embodiment of the present invention;
[0056] Figure 7 is a signaling flow chart of a hard disk hot-swap test method according to an embodiment of the present invention;
[0057] Figure 8 is a flow chart of another hard disk hot-swap test method according to an embodiment of the present invention;
[0058] Fig. 9is a structural block diagram of a control circuit board according to an embodiment of the present invention;
[0059] Fig.10 4 is a hardware structure diagram of a control circuit board according to an embodiment of the present invention.
[0060] In the figure, 1-horizontal motion rod, 2-horizontal motion axis, 3-fixed bracket, 4-motor rotation axis, 5-rotating disk, 6-rotational motion axis, 7-rotational motion rod, 8-rotational motion rod fixed axis, 9-hard disk, 10-precision motor, 11-control circuit board, 12-PCIe device, 13-terminal device. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0062] The technical solution provided by the embodiment of the present invention is applied to the field of hard disk hot-swap testing, mainly to solve the problem that during the hardware hot-swap process, the hard disk is manually inserted into the target device, such as a PCIe device, resulting in uncertain insertion speed and insertion stroke of the hard disk. Therefore, there is a test error for the hard disk test.
[0063] The present invention proposes an automatic plug-in and pull-out test system that can simulate manual plug-in and pull-out of a hard disk. Figure 1 and Figure 2 As shown, Figure 1 This is the front view of the test system. Figure 2 The test system includes: a target device, such as a PCIe device 12, a hard disk 9, a test bracket, a control circuit board 11 and a terminal device 13. The connection relationship is as follows:
[0064] The PCIe device 12 includes a PCIe interface for connecting one end of the hard disk 9. The other end of the hard disk 9 is connected to the test bracket.
[0065] like Figure 2 As shown, the control circuit board 11 is fixedly mounted on the test bracket, and the test bracket also includes a precision motor 10 for driving the slide rail to move in the horizontal direction.
[0066] In addition, the control circuit board 11 is also connected to a terminal device 15, such as a PC, and the specific connection method can be a wired or wireless connection. The control circuit board 11 is also connected to the hard disk 9, and the connection method can be a wired connection through a port. Figure 1In the embodiment, the hard disk 9 is provided with a PCIe interface for connecting with a PCIe device 12.
[0067] It should be noted that the hard disk 9 is connected to the target device via a hard disk interface. The protocol used by the hard disk interface includes but is not limited to SATA, PCIe, and SAS standards. The hard disk form includes but is not limited to U.2, SATA, EDSFF, and SAS forms. The target device includes but is not limited to servers, desktop computers, and test tools that support the above interfaces and hard disk forms.
[0068] like Figure 1 As shown, the structure on the test bracket includes: a horizontal motion rod 1, a horizontal motion shaft 2, a fixed bracket 3, a motor rotation shaft 4, a rotating disk 5, a rotating motion shaft 6, a rotating motion rod 7, a rotating motion rod fixed shaft 8, a hard disk with bracket ( Figure 1 not shown), precision motor 10.
[0069] Mechanical motion transmission description: The hard disk 9 is fixedly installed on the hard disk bracket, the motor rotating shaft 4 drives the rotating disk 5 to rotate, the rotating motion shaft 6 drives the rotating motion rod 7 to move, and then the horizontal motion shaft 2 moves, and the horizontal motion shaft 2 moves the horizontal motion rod 1 along the horizontal direction. Since the horizontal motion rod 1 is connected to the hard disk bracket, when the horizontal motion rod 1 moves in the horizontal direction, the hard disk 9 on the hard disk bracket is also driven to move, and after moving, it is connected to the PCIe device 12, that is, inserted into the PCIe device 12.
[0070] See also Figure 3 , is a schematic diagram of the structure of a control circuit board according to an embodiment of the present invention. The control circuit board 11 includes: a controller 111, a motor driver 112, a terminal interface 113, a motor control interface 114, and a hard disk interface 115. Further, the terminal interface 113 is used to connect to the terminal device 13, the motor control interface 114 is used to connect to the precision motor 10, and the hard disk interface 115 is used to connect to the debugging port of the hard disk 9.
[0071] The controller 111 on the control circuit board has the following main functions:
[0072] Function 1: Receive test commands and parameter configuration information from the test terminal. Test commands include the start and stop of the test, whether to enable the simulated manual plug-in mode, etc.; parameter configuration information includes the stroke and speed required for plug-in after enabling the simulated manual plug-in mode, and calculate the rotation direction, speed and rotation amount of the motor based on the parameter configuration information, thereby realizing the motion state control of the hard disk, including the plug-in speed and plug-in stroke of the hard disk.
[0073] Function 2: Receive status information from the hard disk, including whether the hard disk connector has been connected, whether the hard disk has established an interface connection after insertion, and the bandwidth of the link; and forward the hard disk status information to the management terminal for test result judgment, log recording, etc.
[0074] Furthermore, the motor driver 112 on the control current board is used to receive the control signal sent by the controller 111, and adjust the parameters such as the current, voltage and frequency of the motor according to the above control signal to achieve the start and stop, rotation angle and rotation speed control of the motor.
[0075] The external interfaces on the control circuit board 11 are matched with corresponding external cables to mainly realize the electrical connection between the circuit board and management terminal equipment, such as PC, hard disk 9 and precision motor 10.
[0076] In the above system, the terminal device 13 can be a client, including but not limited to a computer, a PC, a laptop, a smart terminal, a mobile phone, a wearable device, etc. The terminal device 13 is pre-installed on a debugging computer, such as Figure 4 The figure shows a structural block diagram of a terminal device, including an application layer, an application backend, and a hardware platform.
[0077] Furthermore, the application layer includes: application APP, Web, and the functions include: the management terminal interface has various parameter input interfaces, such as starting test, stopping test, whether to start simulated manual plug-in test, connector stroke parameter input, hard disk and setting the number of plug-in test, test log playback, test mode item customization, etc.
[0078] The controls in the application backend include: vector graphics, animation, Html technology, controls, gallery, events, data storage, etc.
[0079] On the hardware platform of the terminal device, the device manager is equipped with multiple serial ports to receive the hard disk status during the test and determine whether a certain plug-in and unplug function is normal, including whether the high-speed interface establishes a link normally, whether the hard disk is recognized normally, etc. When a plug-in and unplug is abnormal, a pause test command is issued to collect relevant logs and continue the test after completion. Finally, the frequency of test failures and related test logs are output. Figure 4 As shown, the multi-channel serial port includes test tool 1, test tool 2, ..., test tool N.
[0080] The method provided by the embodiment of the present invention is described in detail below.
[0081] See also Figure 5 , is a flow chart of a hard disk hot-swap test method according to an embodiment of the present invention, which is applied to a control circuit board 11, and the control circuit board 11 is fixedly connected to the test bracket, as described above. Figure 1 or Figure 2 As shown, a precision motor and a horizontal motion rod are installed on the test bracket, and one end of the horizontal motion rod is connected to the hard disk. The method includes the following steps:
[0082] Step S101, receiving a test instruction from a terminal device, wherein the test instruction includes at least one function item to be tested in a hard disk.
[0083] The test instruction is triggered by the terminal device and is used to start a hard disk test of the control circuit board. The test instruction includes at least one of: starting or stopping the test, the total number of test rounds, whether to start the simulated manual plug-in information, the hard disk nominal plug-in stroke constant, customized test items, and failure rate statistical mode.
[0084] The contents of the above-mentioned various parameters or test instructions can be configured and generated by the user on the terminal device.
[0085] Step S102, parsing the test instruction, and determining whether to start the simulated manual plugging and unplugging mode according to the content of the test instruction.
[0086] The control circuit board can receive the test instruction sent by the terminal device 13 through the terminal interface 113, and parse the test instruction to obtain at least one of the above contents.
[0087] The method of judging whether to start the simulated manual plug-in mode according to the content in the test instruction specifically includes: parsing the test instruction to obtain information on whether to start the simulated manual plug-in. When the terminal device generates a test instruction, it will configure a field for whether to start the simulated manual plug-in information, such as setting a "yes" or "no" field, and then send the information to the control circuit board through the test instruction. The control circuit board judges whether to start the simulated manual plug-in mode according to the information on whether to start the simulated manual plug-in; if the information on whether to start the simulated manual plug-in indicates "yes", the simulated manual plug-in mode is started; if the information on whether to start the simulated manual plug-in indicates "no", the simulated manual plug-in mode is not started, and the hard disk movement distance is directly set to the preset value X.
[0088] Step S103: if yes, select a first random number in a preset range of 0 to X, and determine a first rotation angle corresponding to the first random number according to the corresponding relationship among the first random number, the rotation angle and the hard disk moving distance.
[0089] Specifically, the control circuit board selects a first random number x within a preset range of 0-X; the preset range 0-X is a range of travel distances within which the horizontal motion rod 1 can move.
[0090] In this step, the corresponding relationship between the rotation angle and the hard disk moving distance is first obtained, and then the first random number x is calculated through the corresponding relationship to obtain the first rotation angle.
[0091] Step S104: generating a driving instruction including the first rotation angle, and sending the driving instruction to the precision motor.
[0092] After receiving the instruction, the precision motor controls the horizontal motion rod to drive the hard disk to move the target distance according to the driving instruction, and inserts the other end of the hard disk into the target device. The target distance is the distance to the target device, which is the same as the random number x.
[0093] Specifically, based on the above Figure 1 and Figure 2 In the structure shown, when the precision motor 10 receives the rotation control of the control circuit board and starts to rotate, the motor rotating shaft 4 rotates, driving the rotating disk 5 to rotate, and the rotating motion shaft 6 on the rotating disk 5 rotates with the disk, and the rotating motion shaft 6 is in active contact with the rotating motion rod 7. The rotating motion shaft 6 pushes the rotating motion rod 7 to rotate with the rotating motion rod fixed shaft 8 as a fixed point. The horizontal motion shaft 2 is in active contact with the rotating motion rod 7. The fixed-point rotation of the rotating motion rod 7 drives the horizontal motion rod 1 to move horizontally, thereby realizing the plugging and unplugging of the hard disk in the horizontal direction.
[0094] Step S105, receiving test data of at least one functional item fed back by the hard disk after being inserted into the target device, determining whether each functional item passes the test according to the test data, and collecting statistics on a test result of the hard disk.
[0095] Step S106: Send the test result to the terminal device.
[0096] The hard disk hot-swap test method provided by the present invention generates a driving instruction including a rotation angle by a control circuit board, thereby controlling a horizontal motion rod on a test bracket to drive the hard disk to move, and inserting the other end of the hard disk into a target device, thereby realizing automation of hard disk plugging and unplugging, replacing manual hot-swap testing.
[0097] In addition, since the generated drive instructions are generated by random numbers selected within a preset range, the movement process of the driving hard disk is also random. By generating drive instructions according to the random number method each time, various characteristics of manual plug and unplug tests can be simulated, making the test results closer to the actual hard disk scenario and improving the test accuracy.
[0098] In some embodiments, the above step S103, before determining the first rotation angle corresponding to the first random number according to the correspondence between the first random number, the rotation angle and the hard disk moving distance, also includes: establishing a correspondence between the rotation angle and the hard disk moving distance.
[0099] Furthermore, establishing the corresponding relationship between the rotation angle and the hard disk moving distance includes:
[0100] First, the maximum depth of the hard disk inserted into the target device is obtained, and the travel range of the horizontal motion rod in the horizontal direction is set according to the maximum depth as a preset range, for example, the preset range is 0-X.
[0101] Then, the relevant parameters of the structure on the test bracket are obtained, including: the height of the motor axis from the hard disk plug-in horizontal motion plane, the distance from the fixed axis of the rotating motion rod to the motor axis, and the distance from the rotating motion axis to the motor axis.
[0102] Finally, the corresponding relationship between the rotation angle and the moving distance of the hard disk is established according to the relevant parameters and the travel range of the horizontal motion rod in the horizontal direction.
[0103] Specifically, Figure 6 As shown, before a certain insertion test, the control circuit board generates a random number between 0 and X, assuming that it is x, indicating that the stroke of the hard disk inserted for the test is x; in addition, the following parameters are obtained:
[0104] The height H1 of the motor axis from the hard disk plug-in and pull-out horizontal motion plane is a fixed known quantity. The distance H2 from the fixed axis of the rotating motion rod to the motor axis is a fixed known quantity. The distance R from the rotating motion axis to the motor axis is a fixed known quantity. The rotation angle α of the precision motor is the parameter calculated and transmitted to the motor drive module according to the final requirements. The angle β between the rotating motion rod and the vertical direction is an unknown variable and a parameter of the calculation process. Figure 6 As shown, the unknown change is a calculation process parameter; the distance L2 between the rotating motion axis and the fixed axis of the rotating motion rod is an unknown change, which is a calculation process parameter. The corresponding relationship between the rotation angle α and the hard disk moving distance x is established based on the above parameters, including:
[0105] According to the properties of right triangles, we can have the following relationship:
[0106]
[0107] According to the triangle sine theorem, we can have the following relationship:
[0108]
[0109] According to the properties of the triangle, α+β+γ=180°Formula 3
[0110] According to formula 1, formula 2, and formula 3, the relationship between the rotation angle α and the moving distance x of the test hard disk can be obtained as follows:
[0111]
[0112] After simplifying formula 4, the relationship between the rotation angle α and the moving distance x of the test hard disk is as follows:
[0113]
[0114] Among them, α represents the rotation angle of the motor, H1 represents the height of the motor axis from the horizontal motion plane of the hard disk plugging and unplugging, H2 represents the distance from the fixed axis of the rotating motion rod to the motor axis, R represents the distance from the rotating motion axis to the motor axis, and x represents any random number in the preset range 0 to X.
[0115] This method establishes a corresponding relationship between the rotation angle α and the hard disk moving distance x, so that the corresponding rotation angle α can be calculated according to the random number x, and then a driving instruction containing the current rotation angle α is generated, so as to achieve the purpose of controlling the precision motor drive α.
[0116] In addition, in a possible implementation manner, the at least one function item to be tested in the test instruction includes: at least one of an interface rate test, an interface width test, and a hard disk performance test; the test data includes: at least one of an interface rate, an interface bandwidth information, and a read performance index of the hard disk;
[0117] The above step S105: receiving the test data of at least one functional item fed back by the hard disk after being inserted into the target device, and judging whether each functional item passes the test according to the test data, and counting the test result of the hard disk, includes:
[0118] Case 1: When at least one of the functional items includes an interface rate test, the interface rate fed back by the hard disk is received to determine whether the interface rate is greater than or equal to the preset interface rate; if so, whether the interface rate test of the hard disk passes is determined based on the test data; otherwise, the test fails.
[0119] For example, the server and hard disk interfaces may be PCIe interfaces, both of which support a maximum rate of 32 Gbps. After insertion, the interface rate is identified and it must be greater than or equal to 32 Gbps to confirm that the interface rate test has passed; otherwise, the test item fails (failure).
[0120] Case 2: When at least one of the functional items includes an interface width test, the interface bandwidth information fed back by the hard disk is received to determine whether the interface bandwidth information meets the bandwidth requirement; if so, whether the interface width test of the hard disk passes is determined based on the test data; otherwise, the test fails.
[0121] For example, the server and hard disk interface w is a PCIe interface with a width of x4. After the hard disk is inserted, the interface rate is identified. The interface width test is considered passed only when it reaches the PCIe x4 state; otherwise, the test item fails.
[0122] Case 3: When at least one of the functional items includes a hard disk performance test, a read performance indicator fed back by the hard disk is received to determine whether the read performance indicator is within a preset indicator range; if so, whether the hard disk performance test passes is determined based on the test data; otherwise, the test fails.
[0123] For example, the hard disk read performance index must reach 7000MB / s, the write performance index must reach 5000MB / s, and the nominal performance can be customized on the PC according to the specific hard disk selection. For example, when the hard disk read / write performance index is detected to reach more than 90% of the nominal, such as 95%, it is confirmed that the hard disk performance test has passed; otherwise, the test item fails.
[0124] Case 4: When the at least one functional item includes two or more of the interface rate test, the interface width test and the hard disk performance test, it is determined whether the interface rate test, the interface width test and the hard disk performance test are all passed based on the received interface rate of the hard disk, the interface bandwidth information and two or two parameters of the read performance indicators.
[0125] It should be noted that, in this embodiment, only three test items A to C are given as examples: interface rate test (test item A), interface width test (test item B) and hard disk performance test (test item C). Other more or fewer test items may be included according to actual conditions, and this embodiment does not limit this.
[0126] If all the tests pass, it is determined that the hard disk has been tested successfully; if one or more tests fail, it is determined that the hard disk has been tested unsuccessfully. Specifically, if among the various combinations of the above test items A to C, if one or more test items fail, such as the interface rate test (test item A) fails, and / or the interface width test (test item B) fails, and / or the hard disk performance test (test item C) fails, Z determines that this round of testing has failed. Only when all test items A to C pass, can the test result of successful in this round of testing be obtained.
[0127] In this embodiment, assuming that the above three test items are all tested to be passed, then in step S106, the control circuit board sends the test success result to the terminal device.
[0128] Furthermore, the above method also includes: the control circuit board repeats the random number selection and drive instruction generation process N times according to the failure rate statistical pattern indicated in the test instruction, that is, repeats the above steps S101 to S105, and sends N drive instructions to the precision motor, N≥2 and is a positive integer.
[0129] The control circuit board receives N test data fed back by the hard disk after plugging and unplugging the target device N times; determines whether each test is passed according to the N test data, and sends the N test results to the terminal device through the N test results. The specific process is described in the above embodiment and will not be repeated here.
[0130] See also Figure 7 and Figure 8 As shown, an embodiment of the present invention further provides a hard disk hot-swap test system, the system comprising: a control circuit board, a test bracket, a hard disk, a terminal device and a target device, wherein the control circuit board is fixedly connected to the test bracket; the test bracket comprises: a precision motor, a horizontal motion rod, a horizontal motion axis, a motor rotating axis, a rotating motion rod, a rotating disk, a rotating motion axis and a rotating motion rod fixed axis; wherein one end of the horizontal motion rod is connected to one end of the hard disk; for the specific structure and connection relationship, please refer to the description of the aforementioned embodiment.
[0131] Specifically, Figure 7 As shown, the functions of each module are as follows:
[0132] Step S201: The terminal device PC starts a test and generates a test instruction based on a user operation instruction.
[0133] The terminal device application is pre-installed on the management module. The management module is connected to the control circuit board through a cable, and the serial port protocol is used to realize data communication. Multiple test tools can communicate with the management device through multiple serial ports to realize the management of multiple tests.
[0134] like Figure 8 As shown, in the test initialization configuration phase, the terminal device starts the test mode formulation. In this embodiment, there are two starting test modes: the first is: statistical failure rate mode; the second is: stop when the test fails.
[0135] Statistical failure rate mode: After a test fails, the control circuit board controls the hard disk to remain in the inserted state, collects the corresponding log of the disk, and transmits the test failure and disk log back to the PC for temporary storage. After completing the above steps, continue testing. After completing the set total number of test rounds, the failure rate is given.
[0136] Stop when the test fails: When a test fails, the control circuit board controls the hard disk to remain in the inserted state, collects the corresponding log of the disk, and transmits the test fail and disk log back to the PC. After completing the above steps, the control circuit board controls the hard disk to remain in the current position and wait for the next instruction from the PC. At the same time, the PC displays a test failure alarm.
[0137] The difference between the two modes is that the first test mode is generally used for quality acceptance to check the hot-swap design quality of the disk; the second test mode is generally used in the development test phase. When the test fails, the test site is retained to facilitate the location of the test problem.
[0138] This embodiment can adopt any of the above two modes.
[0139] Step S202: the terminal device PC sends a test instruction to the control circuit board, wherein the test instruction includes at least one function item to be tested in the hard disk.
[0140] During the test instruction generation process, it is determined whether to start the simulated manual plug-in mode. If "yes" is selected, the hard disk nominal plug-in stroke X is entered and the test is started. If not, the test is started directly, and the test instruction is generated and sent to the control circuit board.
[0141] Step S203: The control circuit board is used to receive the test instruction, parse the test instruction, and determine whether to start the simulated manual plugging and unplugging mode according to the content of the test instruction. The specific implementation process is the same as the above steps S101 and S102, and can refer to the above embodiment description.
[0142] Step S204: The control circuit board selects a first random number within a preset range, and determines a first rotation angle corresponding to the first random number according to the correspondence between the first random number, the rotation angle and the hard disk moving distance. The specific implementation process is the same as the above step S103, and can refer to the above embodiment description.
[0143] Step S205: Control the circuit board to generate a driving instruction including the first rotation angle, and send the driving instruction to the precision motor. The specific implementation process is the same as the above step S104, and can refer to the above embodiment description.
[0144] Step S206: The precision motor receives the driving instruction, controls the horizontal motion rod according to the driving instruction to drive the hard disk to move the target distance, and inserts the other end of the hard disk into the PCIe device.
[0145] Step S207: After the hard disk is inserted into the PCIe device under the drive of the horizontal motion rod, test data of at least one functional item is obtained according to communication and testing with the PCIe device.
[0146] Step S208: the hard disk sends the test data of at least one function item to the control circuit board.
[0147] Step S209: The control circuit board also receives the test data of at least one function item fed back by the hard disk, and determines whether each function item has passed the test according to the test data, and counts the test result of the hard disk. The specific implementation process is the same as the above step S105, and can refer to the above embodiment description.
[0148] Step S210: The control circuit board also sends the test result to the terminal device. Correspondingly, the terminal device is used to receive the test result sent by the control circuit board.
[0149] In a possible implementation, after the control circuit board counts the failure rate, it drives the precision motor back to the initial position again, increases the number of test rounds by 1, and ends the current round of testing.
[0150] The terminal device receives a test result reported from the control circuit board, such as a success or failure test result, and then starts or stops the test: and sends the start and stop details to the control circuit board accordingly for starting and stopping the test.
[0151] The specific contents sent include: test mode customization, including whether to enable the simulated manual plug-in function, input of the hard disk connector insertion stroke mark X parameter, input of the number of plug-in test rounds, plug-in test inspection item customization, failure rate mode statistics, etc. And, test log playback includes: the test terminal records the test log sent back by the hard disk, including the test inspection item inspection status, plug-in times, and complete disk log record after the test fails.
[0152] The automated plug-in and pull-out test system provided in this embodiment, on the one hand, realizes the automation of batch hard disk plug-in and pull-out, replacing the manual hot-plug test; on the other hand, it can simulate the characteristics of manual plug-in and pull-out tests, making the test closer to the actual hard disk scenario of the hard disk and improving the test accuracy.
[0153] In addition, the terminal device side can also implement batch hard disk testing, and can customize test items, and can directly record test logs through the hard disk debugging port without relying on the communication with the hard disk inserted into the target device.
[0154] In this embodiment, a hard disk hot-swap test device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0155] This embodiment provides a hard disk hot-swap test device, which is used to implement the functions of the aforementioned control circuit board. Fig. 9 As shown, the device comprises:
[0156] The receiving module 910 is used to receive a test instruction from a terminal device, wherein the test instruction includes at least one function item to be tested in the hard disk.
[0157] The judgment module 920 is used to parse the test instruction and judge whether to start the simulated manual plug-in mode according to the content of the test instruction.
[0158] The processing module 930 is used to select a first random number within a preset range when the judging module judges that the simulated manual plugging and unplugging mode is started, and determine a first rotation angle corresponding to the first random number according to the corresponding relationship between the first random number, the rotation angle and the hard disk moving distance;
[0159] The generation module 940 is used to generate a driving instruction including the first rotation angle, and send the driving instruction to the precision motor, so that the precision motor controls the horizontal motion rod to move the hard disk to a target distance according to the driving instruction, and inserts the other end of the hard disk into the target device.
[0160] The receiving module 910 is also used to receive test data of at least one functional item fed back by the hard disk after being inserted into the target device, and determine whether each functional item passes the test according to the test data, and count the test results of the hard disk.
[0161] The sending module 950 is used to send the test result to the terminal device.
[0162] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0163] The hard disk hot-swap test device in this embodiment is presented in the form of a functional unit, and the specific form can be described in detail in the above Figure 3The circuit implementation shown, further, the control circuit board can be an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0164] The embodiment of the present invention also provides a control circuit board having the above Fig. 9 The hard drive hot-swap test setup is shown.
[0165] See also Fig.10 , is a schematic diagram of the structure of a control circuit board provided by an optional embodiment of the present invention, the control circuit board includes: one or more processors 100, a memory 200 and at least one interface 300, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces, for the control circuit board to communicate with other devices or communication networks. The various components communicate with each other using different buses, and can be installed on a common mainboard or in other ways as needed. The processor can process instructions executed in the control circuit board, including storage in or on the memory for external input / output devices.
[0166] In some optional embodiments, if desired, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.10 A processor 100 is taken as an example.
[0167] The processor 100 may be a central processing unit or a combination thereof. The processor 100 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0168] The memory 200 stores instructions executable by at least one processor 100, so that the at least one processor 100 executes a hard disk hot-swap test method shown in the above embodiment.
[0169] The memory 200 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the control circuit board, etc. In addition, the memory 200 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 200 may include a memory remotely arranged relative to the processor 100, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0170] The memory 200 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 200 may also include a combination of the above types of memory.
[0171] The control circuit board also includes an input / output device. The processor 100, the memory 200, and the input / output device can be connected via a bus or other means. Fig.10 In the example of the bus connection, the input device can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device may include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display, and a plasma display. In some optional embodiments, the display device may be a touch screen.
[0172] An embodiment of the present invention also provides a computer-readable storage medium, and the above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented by downloading through a network and originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware.
[0173] The storage medium may be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid state drive, etc.; further, the storage medium may also include a combination of the above-mentioned types of memories. It is understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by the computer, the processor or the hardware, the hard disk hot-swap test method shown in the above embodiment is implemented.
[0174] Embodiments of the present application may also provide a computer program product, including computer program instructions, which, when executed by a processor, cause the processor to perform the steps in the above method. Wherein, the computer program product may be written in any combination of one or more programming languages to perform program codes for performing the operations of the disclosed embodiments, wherein the programming languages include object-oriented programming languages, such as Java, C++, etc., and also include conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on a user computing device, partially on a user device, as an independent software package, partially on a user computing device, partially on a remote computing device, or entirely on a remote computing device or server.
[0175] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A hard disk hot-swap test method, characterized in that: Applied to a control circuit board, the control circuit board is fixedly connected to a test bracket, a precision motor and a horizontal motion rod are installed on the test bracket, one end of the horizontal motion rod is connected to a hard disk, and the method includes: Receiving a test instruction from a terminal device, wherein the test instruction includes at least one function item to be tested in the hard disk; Parsing the test instruction, and judging whether to start the simulated manual plug-in mode according to the content of the test instruction; If yes, selecting a first random number within a preset range, and determining a first rotation angle corresponding to the first random number according to a corresponding relationship among the first random number, the rotation angle, and the hard disk moving distance; Generate a driving instruction including the first rotation angle, and send the driving instruction to the precision motor, so that the precision motor controls the horizontal motion rod to drive the hard disk to move a target distance according to the driving instruction, and inserts the other end of the hard disk into the target device; receiving test data of at least one functional item fed back by the hard disk after being inserted into the target device, determining whether each functional item passes the test according to the test data, and collecting statistics on a test result of the hard disk; The test result is sent to the terminal device.
2. The method according to claim 1, characterized in that The test instruction also includes: at least one of: starting or stopping the test, the total number of test rounds, whether to start the simulated manual plugging and unplugging information, the hard disk nominal plugging and unplugging stroke constant, customized test items, and failure rate statistical mode; The parsing of the test instruction and judging whether to start the simulated manual plugging and unplugging mode according to the content of the test instruction include: Parse the test instruction to obtain information on whether to start simulated manual plugging and unplugging; According to the information on whether to start the simulated manual plugging and unplugging, determining whether to start the simulated manual plugging and unplugging mode; If the information indicating whether to start the simulated manual plugging and unplugging is yes, starting the simulated manual plugging and unplugging mode; If the information indicating whether to start the simulated manual plugging and unplugging is no, the simulated manual plugging and unplugging mode is not started.
3. The method according to claim 1, characterized in that Before determining the first rotation angle corresponding to the first random number according to the correspondence between the first random number, the rotation angle and the hard disk moving distance, the method further includes: Establishing the corresponding relationship between the rotation angle and the moving distance of the hard disk; The establishing of the corresponding relationship between the rotation angle and the hard disk moving distance includes: Acquire the maximum depth of the hard disk inserted into the target device, and set the travel range of the horizontal motion rod in the horizontal direction according to the maximum depth as the preset range; Obtain relevant parameters of the structure on the test bracket, wherein the relevant parameters include: the height of the motor axis from the hard disk plug-in and pull-out horizontal motion plane, the distance between the fixed axis of the rotating motion rod and the motor axis, and the distance between the rotating motion axis and the motor axis; The corresponding relationship between the rotation angle and the moving distance of the hard disk is established according to the relevant parameters and the travel range of the horizontal motion rod in the horizontal direction.
4. The method according to claim 3, characterized in that The selecting a first random number within a preset range and determining a first rotation angle corresponding to the first random number according to a corresponding relationship among the first random number, the rotation angle, and the hard disk moving distance includes: Selecting a first random number x within the preset range 0 to X; The corresponding relationship between the rotation angle and the hard disk moving distance is obtained, and the first random number x is subjected to the corresponding relationship to calculate and obtain the first rotation angle α.
5. The method according to claim 4, characterized in that The corresponding relationship between the rotation angle and the hard disk moving distance is expressed by the formula: Among them, α represents the rotation angle of the motor, H1 represents the height of the motor axis from the horizontal motion plane of the hard disk plugging and unplugging, H2 represents the distance from the fixed axis of the rotating motion rod to the motor axis, R represents the distance from the rotating motion axis to the motor axis, and x represents any random number in the preset range 0 to X.
6. The method according to any one of claims 1 to 5, characterized in that: The at least one functional item includes: at least one of an interface rate test, an interface width test, and a hard disk performance test; the test data of the at least one functional item includes: at least one of an interface rate of the hard disk, interface bandwidth information, and a read performance index; The receiving test data of at least one functional item fed back by the hard disk after being inserted into the target device, judging whether each functional item passes the test according to the test data, and counting a test result of the hard disk, comprises: When the at least one function item includes an interface rate test, receiving the interface rate fed back by the hard disk, and determining whether the interface rate is greater than or equal to a preset interface rate; if so, determining that the interface rate test of the hard disk passes according to the test data; otherwise, the test fails; When the at least one function item includes an interface width test, receiving the interface bandwidth information fed back by the hard disk, and determining whether the interface bandwidth information meets the bandwidth requirement; if so, determining that the interface width test of the hard disk passes according to the test data; otherwise, the test fails; When the at least one function item includes a hard disk performance test, receiving a read performance index fed back by the hard disk, and determining whether the read performance index is within a preset index range; if yes, determining that the hard disk performance test passes according to the test data; otherwise, the test fails; When the at least one function item includes two or more of an interface rate test, an interface width test, and a hard disk performance test, judging whether the interface rate test, the interface width test, and the hard disk performance test are all passed according to the received interface rate of the hard disk, the interface bandwidth information, and two or more parameters of the read performance index; If all the tests are passed, it is determined that a test of the hard disk is successful; If one or more tests fail, it is determined that a test of the hard disk fails.
7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: According to the failure rate statistical mode indicated in the test instruction, repeat the random number selection and drive instruction generation process N times, and send N drive instructions to the precision motor, N ≥ 2 and is a positive integer; Receiving N test data fed back after the hard disk is plugged and unplugged from the target device N times; Whether each test is passed is determined based on the N test data, and the N test results are sent to the terminal device.
8. A control circuit board, characterized in that: include: A memory, a processor, and at least one interface, wherein the memory, the processor, and the at least one interface are connected via a bus; The memory stores computer instructions; The processor executes the hard disk hot-swap test method according to any one of claims 1 to 7 by executing the computer instructions; The at least one interface is used to connect a terminal device, a precision motor and a hard disk.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the hard disk hot-swap test method according to any one of claims 1 to 7.
10. A hard disk hot-swap test system, characterized in that: The system comprises: a control circuit board, a test bracket, a hard disk, a terminal device and a target device, wherein the control circuit board is fixedly connected to the test bracket; the test bracket comprises: a precision motor, a horizontal motion rod, a horizontal motion shaft, a motor rotating shaft, a rotating motion rod, a rotating disk, a rotating motion shaft and a rotating motion rod fixed shaft; wherein one end of the horizontal motion rod is connected to one end of the hard disk; The terminal device is used to start the test and send a test instruction to the control circuit board, wherein the test instruction includes at least one function item to be tested in the hard disk; The control circuit board is used to receive the test instruction, parse the test instruction, and determine whether to start the simulated manual plug-in mode according to the content of the test instruction; if yes, select a first random number within a preset range, and determine a first rotation angle corresponding to the first random number according to the corresponding relationship between the first random number, the rotation angle and the hard disk moving distance; generate a drive instruction containing the first rotation angle, and send the drive instruction to the precision motor; The precision motor is used to control the horizontal motion rod to drive the hard disk to move the target distance according to the driving instruction, so as to insert the other end of the hard disk into the target device; The hard disk, after being inserted into the target device, sends test data of at least one functional item to the control circuit board based on communication and testing with the target device; The control circuit board is further used to receive test data of at least one functional item fed back by the hard disk, and determine whether each functional item has passed the test according to the test data, and to collect statistics on a test result of the hard disk; and send the test result to the terminal device; The terminal device is also used to receive the test result sent by the control circuit board.
