Hard disk for testing and testing method
By integrating the communication mode adjustment controller in the hard disk backplane interface test and automatically switching test hard disks with different communication modes, the problem of manual intervention in the hard disk replacement in the hard disk backplane interface test is solved, and efficient multi-communication mode compatibility testing is achieved.
Patent Information
- Application Number
- CN202510127893.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-27
- Publication Date
- 2025-07-08
AI Technical Summary
In the prior art, hard disk backplane interface testing requires manual intervention to replace the hard disk, resulting in a long test time and complex operation, and it is impossible to efficiently conduct compatibility testing in multi-communication modes.
A test hard disk is designed, the first and second communication execution components are integrated, and the hard disk automatically switches different communication modes through the communication mode adjustment controller, simplifying the operation process.
It realizes automatic switching of hard disk backplane interface test, shortens test time, simplifies operation process, and improves test efficiency and user experience.
Smart Images

Figure CN120276927A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of testing, and particularly relates to a hard disk for testing and a testing method. Background Art
[0002] A hard disk backplane is an adapter card for electronic devices such as servers. Multiple interface slots are provided thereon for connecting multiple hard disks, for example, to connect these hard disks to the motherboard of the electronic device. Currently, the interface slots of the hard disk backplane usually have a compatibility function and can support the connection of external devices with multiple different communication modes. For example, a single interface slot can simultaneously support the Serial Attached SCSI (SAS) protocol, the Non-Volatile Memory Express (NVME) protocol, and the Serial Advanced Technology Attachment (SATA) protocol to support the connection of external devices with multiple communication modes such as SAS, NVME, and SATA.
[0003] Based on this, when performing a functional test on the backplane, each interface slot needs to be tested. Since current external devices such as a single hard disk and network card only support one communication mode, for example, only support the SAS communication mode or the NVME communication mode, it is necessary to perform a coverage test of two types of hard disks on each interface slot included in the hard disk backplane in two times. For example, first, a test hard disk with one communication mode (such as a hard disk with the SAS protocol) is inserted at each interface slot of the backplane for corresponding testing. After the testing is completed, an operator manually plugs and unpluggs to insert a test hard disk with another communication mode (such as a hard disk with the NVME protocol) at the interface slot for corresponding testing to implement the test of the hard disk backplane interface. Based on this type of test hard disk, during the process of testing the backplane interface, there are problems such as the need for manual intervention to replace the test hard disk, a long testing time, and complex operations. Summary of the Invention
[0004] The purpose of this application is to solve the problems in the prior art that a single hard disk only supports one communication mode, and based on this hard disk, during the process of testing the hard disk backplane interface, there are problems such as the need for manual intervention to replace the hard disk, a long testing time, and complex operations.
[0005] To solve the above technical problems, an embodiment of the present application discloses a hard disk for testing, including: a first connector, a second connector, a communication mode adjustment controller, a first communication execution component, and a second communication execution component, where the first communication execution component and the second communication execution component correspond to different communication modes; the first connector is respectively connected to the first communication execution component, the second communication execution component, and the communication mode adjustment controller, and the first connector is used to connect the hard disk for testing to the device under test; the second connector is connected to the communication mode adjustment controller, and the second connector is used to connect the hard disk for testing to the test control device; the communication mode adjustment controller is used to control the in-position states of the first communication execution component and the second communication execution component according to the communication mode test requirement information sent by the test control device through the second connector, so as to perform corresponding tests on the device under test based on the first communication execution component or the second communication execution component in the in-position state in the hard disk for testing.
[0006] Adopting the above technical solution, the hard disk for testing includes a communication mode adjustment controller and a first communication execution component and a second communication execution component corresponding to different communication modes, realizing the compatibility of two different communication modes on one hard disk for testing. Based on this hard disk for testing, during the process of testing the device under test, after the communication mode adjustment controller is connected to the test control device through the second connector, it can receive the communication mode test requirement information sent by the test control device to control the in-position states of the first communication execution component and the second communication execution component, and then a hard disk for testing can perform corresponding test processing on the device under test based on two different communication modes, without the need for manual intervention to replace the hard disk for testing that supports different communication modes, shortening the test time and simplifying the operation, thereby improving the test efficiency and user experience.
[0007] According to another specific embodiment of the present application, for the hard disk for testing disclosed in the embodiment of the present application, the first communication execution component includes a first communication controller and a first memory, the first communication controller is respectively connected to the first connector and the first memory, and the first communication controller is used to perform corresponding test processing according to the first test information stored in the first memory; the second communication execution component includes a second communication controller and a second memory, the second communication controller is respectively connected to the first connector and the second memory, and the second communication controller is used to perform corresponding test processing according to the second test information stored in the second memory.
[0008] Adopting the above technical solution, after the hard disk for testing is connected to the device under test, the hard disk for testing can conveniently perform corresponding test processing according to the test information stored in the first memory or the second memory.
[0009] According to another specific embodiment of the present application, for the hard disk for testing disclosed in the embodiment of the present application, the first connector includes a first connection port, a second connection port, a third connection port, and a fourth connection port. The communication mode adjustment controller includes a first interface and a second interface. The first communication controller includes a third interface, and the second communication controller includes a fourth interface. Among them, the first connection port is connected to the first interface, the second connection port is connected to the second interface, the third connection port is connected to the third interface, and the fourth connection port is connected to the fourth interface. The communication mode adjustment controller is configured to determine an in-position control instruction according to the communication mode test requirement information, and control the in-position states of the first communication execution component and the second communication execution component according to the in-position control instruction. The first communication execution component or the second communication execution component in the in-position state transmits test information based on the established connection with the device under test for corresponding test processing.
[0010] With the above technical solution, the communication mode adjustment controller can determine the in-position control instruction according to the communication mode test requirement information, and control one of the first communication execution component and the second communication execution component to be in the in-position state and the other to be in the non-in-position state, so as to realize the establishment of a communication connection between the hard disk for testing and the device under test by switching different communication modes.
[0011] According to another specific embodiment of the present application, for the hard disk for testing disclosed in the embodiment of the present application, the first communication execution component corresponds to a first communication mode, the second communication execution component corresponds to a second communication mode, and the first connector is a connector compatible with the first communication mode and the second communication mode.
[0012] With the above technical solution, only one connector is required to connect the hard disk for testing with two different communication modes and the device under test that is compatible with the same two communication modes.
[0013] According to another specific embodiment of the present application, for the hard disk for testing disclosed in the embodiments of the present application, the communication mode test requirement information is the first communication mode requirement information or the second communication mode requirement information; when the communication mode test requirement information is the first communication mode requirement information, it is determined that the in-position control instruction is the first in-position control instruction, and the third connection port is controlled to be in the first level state and the fourth connection port is controlled to be in the second level state, so that the first communication execution component is in the in-position state and the second communication execution component is in the out-of-position state, for corresponding testing of the device under test based on the first communication execution component in the hard disk for testing; when the communication mode test requirement information is the second communication mode requirement information, it is determined that the in-position control instruction is the second in-position control instruction, and the third connection port is controlled to be in the second level state and the fourth connection port is controlled to be in the first level state, so that the second communication execution component is in the in-position state and the first communication execution component is in the out-of-position state, for corresponding testing of the device under test based on the second communication execution component in the hard disk for testing.
[0014] With the above technical solution, it is determined that the in-position control instruction is the first in-position control instruction or the second in-position control instruction according to the communication mode test requirement information, and further controlling the level states of the third connection port and the fourth connection port on the first connector can achieve controlling the in-position states of the first communication execution component and the second communication execution component, and the operation is simple.
[0015] According to another specific embodiment of the present application, for the hard disk for testing disclosed in the embodiments of the present application, the first communication mode is a communication mode based on the Serial Advanced Technology Attachment (SATA) protocol, and the second communication mode is a communication mode based on the Non-Volatile Memory Host Controller Interface Specification (NVMe) protocol.
[0016] According to another specific embodiment of the present application, for the hard disk for testing disclosed in the embodiments of the present application, the second connector is a connector based on the Serial Communication Bus (SCB) protocol.
[0017] An embodiment of the present application also discloses a testing method, which is applied to the above-mentioned hard disk for testing. The hard disk for testing is connected to the device under test through the first connector and connected to the test control device through the second connector. The testing method includes: the communication mode adjustment controller in the hard disk for testing receives the communication mode test requirement information sent by the test control device through the second connector, and controls the in-position states of the first communication execution component and the second communication execution component according to the communication mode test requirement information, for corresponding testing of the device under test based on the first communication execution component or the second communication execution component in the in-position state.
[0018] According to another specific embodiment of the present application, for the test method disclosed in the embodiments of the present application, the first communication execution component includes a first communication controller and a first memory, and the first communication controller is respectively connected to a first connector and the first memory; the second communication execution component includes a second communication controller and a second memory, and the second communication controller is respectively connected to the first connector and the second memory; the test method includes: the first communication controller in the test hard disk performs corresponding test processing according to the first test information stored in the first memory; the second communication controller in the test hard disk performs corresponding tests according to the second test information stored in the second memory.
[0019] According to another specific embodiment of the present application, for the test method disclosed in the embodiments of the present application, the first communication execution component corresponds to a first communication mode, the second communication execution component corresponds to a second communication mode, and the communication mode test requirement information is the first communication mode requirement information or the second communication mode requirement information; the first connector includes a first connection port, a second connection port, a third connection port, and a fourth connection port, the communication mode adjustment controller includes a first interface and a second interface, the first communication controller includes a third interface, and the second communication controller includes a fourth interface; wherein, the first connection port is connected to the first interface, the second connection port is connected to the second interface, the third connection port is connected to the third interface, and the fourth connection port is connected to the fourth interface; the test method includes: when the communication mode test requirement information is the first communication mode requirement information, the communication mode adjustment controller determines that the in-position control instruction is the first in-position control instruction, controls the third connection port to be in the first level state, and the fourth connection port to be in the second level state, so that the first communication execution component is in the in-position state and the second communication execution component is in the out-of-position state, for performing corresponding tests on the device under test based on the first communication execution component; when the communication mode test requirement information is the second communication mode requirement information, the communication mode adjustment controller determines that the in-position control instruction is the second in-position control instruction, controls the third connection port to be in the second level state, and the fourth connection port to be in the first level state, so that the second communication execution component is in the in-position state and the first communication execution component is in the out-of-position state, for performing corresponding tests on the device under test based on the second communication execution component.
[0020] Embodiments of the present application also disclose a test system, including: the above-mentioned hard disk for testing, as well as a device under test and a test control device; the hard disk for testing is connected to the device under test through a first connector and connected to the test control device through a second connector; the test control device is configured to send communication mode test requirement information to a communication mode adjustment controller in the hard disk for testing through the second connector; the communication mode adjustment controller in the hard disk for testing is configured to receive the communication mode test requirement information and control the in-position states of a first communication execution component and a second communication execution component according to the communication mode test requirement information, so as to perform corresponding tests on the device under test based on the first communication execution component or the second communication execution component in the hard disk for testing that is in the in-position state.
[0021] According to another specific embodiment of the present application, the test system disclosed in the embodiments of the present application further includes an adapter device, and the test control device is connected to the second connector in the hard disk for testing through the adapter device.
[0022] By adopting the above technical solution, the communication connection between the test control device and the hard disk for testing is realized by setting the adapter device.
[0023] According to another specific embodiment of the present application, for the test system disclosed in the embodiments of the present application, the test control device is connected to the device under test and is configured to perform corresponding tests on the device under test.
[0024] By adopting the above technical solution, the test control device is communicatively connected to the device under test, that is, corresponding tests can be performed on the device under test through the test control device, and the test control device can also control the hard disk for testing to switch different communication modes to establish a communication connection with the device under test, which simplifies the structure.
[0025] The beneficial effects of the present application are as follows:
[0026] The present application provides a hard disk for testing and a test method. A single hard disk for testing is compatible with two different communication modes. During the process of testing a device under test, after the hard disk for testing is connected to the device under test, by controlling the in-position states of the first communication execution component and the second communication execution component of the hard disk for testing, a single hard disk for testing can establish a communication connection with the device under test based on different communication modes corresponding to the two different communication execution components to perform corresponding test processing, without manual intervention to replace the hard disk for testing that supports different communication modes, shortening the test time and simplifying the operation, thereby improving the test efficiency and user experience. Description of the Drawings
[0027] Figure 1 It is a structural block diagram of a hard disk for testing provided by an embodiment of the present application;
[0028] Figure 2Another structural block diagram of a hard disk for testing provided in an embodiment of the present application;
[0029] Figure 3 A structural block diagram of a test system provided in an embodiment of the present application;
[0030] Figure 4 A structural block diagram of another specific implementation of the test system provided in the embodiment of the present application;
[0031] Figure 5 A schematic diagram of a flow chart of a testing method provided in an embodiment of the present application;
[0032] Figure 6 Another schematic diagram of a test method according to an embodiment of the present invention;
[0033] Figure 7 Another schematic diagram of a flow chart of a testing method provided in an embodiment of the present application.
[0034] Description of reference numerals:
[0035] 10. Test hard disk; 100. First connector; 200. Second connector; 300. Communication mode adjustment controller; 400. First communication execution component; 410. First communication controller; 420. First memory; 500. Second communication execution component; 510. Second communication controller; 520. Second memory; 20. Hard disk backplane; 30. Main board (test control device); 40. Switching device. DETAILED DESCRIPTION
[0036] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0037] The hard disk backplane is a kind of adapter card for electronic devices such as servers, which is provided with multiple interface slots for connecting multiple hard disks. At present, the interface slots of the hard disk backplane usually have a compatible function, and each interface slot can support the connection of hard disks with multiple communication modes such as SAS, NVMe, SATA, etc. Therefore, when performing a functional test on the hard disk backplane, it is necessary to test each interface slot. Since a single hard disk currently only supports one communication mode, for example, only supports SAS communication mode or NVMe communication mode, it is necessary to perform a coverage test of two hard disks on each interface slot included in the hard disk backplane twice. Based on this test hard disk, in the process of performing the hard disk backplane interface test, there is a problem that manual intervention is required to replace the test hard disk, the test time is long, and the operation is complicated.
[0038] To solve the above problems, embodiments of the present application provide a test hard disk and a test method, which achieve the compatibility of two different communication modes on a test hard disk. During the process of testing a specific embodiment where the hard disk backplane is used as the device under test, the test hard disk can switch different communication modes to establish a communication connection with the hard disk backplane, without the need for manual intervention to replace the test hard disk that supports different communication modes, shortening the test time and simplifying the operation.
[0039] Embodiments of the present application provide a test hard disk 10, as Figure 1 shown, including: a first connector 100, a second connector 200, a communication mode adjustment controller 300, a first communication execution component 400, and a second communication execution component 500. The first communication execution component 400 and the second communication execution component 500 correspond to different communication modes.
[0040] It should be noted that in this embodiment, different communication modes include but are not limited to communication modes based on the Serial Attached SCSI (SAS) protocol, communication modes based on the Non-Volatile Memory Express (NVMe) protocol, and communication modes based on the Serial Advanced Technology Attachment (SATA) protocol. In addition, the test hard disk 10 may further include a third communication execution component, a fourth communication execution component,..., an Nth communication execution component (N>4), and each communication execution component corresponds to the above different communication modes to achieve the compatibility of three, or four, or more different communication modes on a test hard disk 10.
[0041] Among them, the first connector 100 is respectively connected to the first communication execution component 400, the second communication execution component 500, and the communication mode adjustment controller 300, and the first connector 100 is used for the connection of the test hard disk 10 to the interface of the device under test. The second connector 200 is communicatively connected to the communication mode adjustment controller 300, and the second connector 200 is used for the connection of the test hard disk 10 to the test control device.
[0042] Specifically, the first connector 100 is a connector compatible with the above different communication modes, and the device under test is an adapter card with an interface compatible with the above different communication modes and the interface can be connected to a hard disk. In a specific implementation, the device under test is a hard disk backplane. In a specific implementation, the second connector 200 is an interface based on the Inter-Integrated Circuit (IIC) protocol, abbreviated as the IIC interface, and the test control device includes but is not limited to a main board.
[0043] Moreover, the communication mode adjustment controller 300 is configured to control the in-position states of the first communication execution component 400 and the second communication execution component 500 according to the communication mode test requirement information sent by the test control device through the second connector 200, so as to perform corresponding tests on the device under test based on the first communication execution component 400 or the second communication execution component 500 in the in-position state in the test hard disk 10.
[0044] It should be noted that the communication mode test requirement information refers to the requirement information for the test hard disk 10 to establish a communication connection with the device under test based on a communication mode, or it can also refer to the requirement information for performing corresponding tests on the device under test based on a communication execution component (corresponding to a communication mode). Controlling the in-position states of the first communication execution component 400 and the second communication execution component 500 specifically means controlling one of the first communication execution component 400 and the second communication execution component 500 to be in the in-position state and the other to be in the non-in-position state. The communication execution component in the in-position state can transmit signals with the first connector 100, while the communication execution component in the non-in-position state cannot transmit signals with the first connector 100. The corresponding tests include but are not limited to writing data to the test hard disk 10, then reading out the written data from the test hard disk 10, further determining whether stable reading and writing can be performed, and calculating whether the reading and writing rate is consistent with the designed speed, etc.
[0045] In a specific implementation, as Figure 1 shown, the first communication execution component 400 includes a first communication controller 410 and a first memory 420. The first communication controller 410 is respectively connected to the first connector 100 and the first memory 420. The first communication controller 410 is configured to perform corresponding tests according to the first test information stored in the first memory 420; the second communication execution component 500 includes a second communication controller 510 and a second memory 520. The second communication controller 510 is respectively connected to the first connector 100 and the second memory 520. The second communication controller 510 is configured to perform corresponding tests according to the second test information stored in the second memory 520.
[0046] Specifically, the first communication controller 410 and the second communication controller 510 are controllers corresponding to different communication modes. For example, they can be controllers for the communication mode based on the SAS protocol (referred to as SAS controllers), or controllers for the communication mode based on the NVMe protocol (referred to as NVMe controllers), or controllers for the communication mode based on the SATA protocol (referred to as SATA controllers), or also controllers for other common communication modes in this field. The first memory 420 and the second memory 520 can be flash memory chips, and the first test information and the second test information stored both include basic information such as the ID, manufacturer, capacity, function, and log page of the hard disk 10 for testing.
[0047] In a specific embodiment, as Figure 1 shown, the first connector 100 includes a first connection port, a second connection port, a third connection port, and a fourth connection port. The communication mode adjustment controller 300 includes a first interface and a second interface. The first communication controller 410 includes a third interface, and the second communication controller 510 includes a fourth interface. Among them, the first connection port is connected to the first interface, the second connection port is connected to the second interface, the third connection port is connected to the third interface, and the fourth connection port is connected to the fourth interface. The communication mode adjustment controller 300 is used to determine the presence control instruction according to the communication mode test requirement information, and control the presence states of the first communication execution component 400 and the second communication execution component 500 according to the presence control instruction. When the first communication execution component 400 or the second communication execution component 500 is in the presence state, test information is transmitted based on the established connection between it and the device under test to perform corresponding tests.
[0048] Specifically, in this embodiment, the in-position control instruction refers to an instruction for controlling one communication execution component to be in the in-position state and the remaining communication execution components to be in the non-in-position state, which can be specifically represented by 0 / 1. For example, 1 represents the in-position state and 0 represents the non-in-position state. The in-position control instruction is sent out by the communication mode adjustment controller 300 through its first interface and the first connection port of the first connector 100, and through its second interface and the second connection port of the first connector 100. Controlling the first communication execution component 400 to be in the in-position state means that signal transmission can be carried out between the third connection port of the first connector 100 and the third interface of the first communication controller 410 in the first communication execution component 400. Conversely, controlling the first communication execution component 400 to be in the non-in-position state means that signal transmission between the two cannot be carried out. Controlling the second communication execution component 500 to be in the in-position state means that signal transmission can be carried out between the fourth connection port of the first connector 100 and the fourth interface of the second communication controller 510 in the second communication execution component 500. Conversely, controlling the second communication execution component 500 to be in the non-in-position state means that signal transmission between the two cannot be carried out.
[0049] In a specific embodiment, the first communication execution component 400 corresponds to the first communication mode, and the second communication execution component 500 corresponds to the second communication mode. The communication mode test requirement information is the first communication mode requirement information or the second communication mode requirement information. It should be noted that the first communication mode requirement information is the requirement information for the test hard disk 10 to establish a communication connection with the device under test based on the first communication mode, and is also the requirement information for performing corresponding tests on the device under test based on the first communication execution component 400. The second communication mode requirement information is the requirement information for the test hard disk 10 to establish a communication connection with the device under test based on the second communication mode, and is also the requirement information for performing corresponding tests on the device under test based on the second communication execution component 500.
[0050] Among them, the communication mode adjustment controller 300 is used to determine that the in-position control instruction is the first in-position control instruction when the communication mode test requirement information is the first communication mode requirement information, and control the third connection port to be in the first level state and the fourth connection port to be in the second level state, so that the first communication execution component 400 is in the in-position state and the second communication execution component 500 is in the non-in-position state, for testing the device under test based on the first communication execution component 400 in the test hard disk 10; when the communication mode test requirement information is the second communication mode requirement information, determine that the in-position control instruction is the second in-position control instruction, and control the third connection port to be in the second level state and the fourth connection port to be in the first level state, so that the second communication execution component 500 is in the in-position state and the first communication execution component 400 is in the non-in-position state, for testing the device under test based on the second communication execution component 500 in the test hard disk 10.
[0051] It should be noted that in this embodiment, the first in-position control instruction refers to the instruction for controlling the first communication execution component 400 to be in the in-position state and the second communication execution component 500 to be in the non-in-position state, including the in-position signal of the first communication execution component and the non-in-position signal of the second communication execution component. Among them, the in-position signal of the first communication execution component is sent to the first connector 100 through the communication mode adjustment controller 300 (via its first interface and the first connection port of the first connector 100), and the non-in-position signal of the second communication execution component is sent to the first connector 100 through the communication mode adjustment controller 300 (via its second interface and the second connection port of the first connector 100), so as to correspondingly control the level state of the third connection port. The second in-position control instruction refers to the instruction for controlling the first communication execution component 400 to be in the non-in-position state and the second communication execution component 500 to be in the in-position state, including the non-in-position signal of the first communication execution component and the in-position signal of the second communication execution component. Similarly, they are respectively sent to the first connector 100 through the ports of their respective corresponding interfaces through the communication mode adjustment controller 300, so as to correspondingly control the level state of the fourth connection port.
[0052] It should be further noted that by controlling the level state of the connection port corresponding to the first connector 100 connected to the communication controller in the communication execution component, the signal transmission between the communication execution component and the first connector 100 can be controlled. Generally, the first level state refers to the low level state, and the second level state refers to the high level state. That is to say, the connection port of the communication execution component connected to the first connector 100 is in the low level state, and signal transmission can be carried out between them. On the contrary, the connection port of the communication execution component connected to the first connector 100 is in the high level state, and signal transmission cannot be carried out between them.
[0053] In addition, in this embodiment, when the communication mode test requirement information is not received, the first communication execution component 400 and the second communication execution component 500 can be controlled to be in a non-in-position state, that is, the third connection port and the fourth connection port on the first connector 100 are both in the second level state (high level state), so that the test hard disk 10 and the device under test are in a non-connected state (signal transmission cannot be performed).
[0054] This embodiment realizes the compatibility of two different communication modes on a test hard disk 10. Based on this test hard disk 10, during the process of testing the device under test, after a test hard disk 10 is connected to the interface slot of the device under test through the first connector 100, the communication mode adjustment controller 300 of the test hard disk 10 can control the first communication execution component 400 or the second communication execution component 500 to be in the in-position state according to the communication mode test requirement information sent by the test control device through the second connector 200, so that the test hard disk 10 can establish a communication connection with the device under test based on two different communication modes to perform corresponding test processing. There is no need for manual intervention to replace hard disks supporting different communication modes, which shortens the test time and is easy to operate.
[0055] In addition, during the process of testing the device under test, in order to improve the test speed, testers generally fix multiple test hard disks with different communication modes on the test bench through test fixtures first, and then insert or replace a test hard disk with one communication mode at each interface slot of the device under test according to the test requirements. Therefore, during the process of testing the interface of the device under test, there are also problems that the space occupied by multiple test hard disks on the test bench is relatively large and the test fixture design is relatively large. By using the test hard disk 10 in this embodiment, during the process of testing the device under test, since two different communication modes are compatible on one test hard disk 10, only one test hard disk 10 needs to be fixed, and the communication connection between the test hard disk 10 and the device under test based on two communication modes can be realized. In this way, the occupied space is significantly smaller, the test fixture design is also smaller, and the cost is saved.
[0056] In a specific embodiment, the first communication mode is a communication mode based on the SATA protocol, and the second communication mode is a communication mode based on the NVMe protocol. The first communication controller 410 is a SATA controller, and the second communication controller 510 is an NVMe controller. The first connector 100 is a SATA 68P connector. As Figure 2As shown, NVMe high-speed signals can be transmitted between the SATA 68P connector and the NVMe controller, and SATA high-speed signals can be transmitted between the SATA 68P connector and the SATA controller. Both the first memory 420 and the second memory 520 are FLASH chips, and the NVMe controller and the SATA controller are connected to their respective FLASH chips through a parallel interface. The communication mode adjustment controller 300 is a presence signal controller, which is used to determine that the first presence control instruction includes the SATA presence signal and the NVMe non-presence signal, so that the SATA high-speed signal is transmitted between the SATA 68P connector and the SATA controller, and the test hard disk 10 establishes a communication connection with the device under test based on the SATA protocol. The second presence control instruction includes the SATA non-presence signal and the NVMe presence signal, so that the SATA high-speed signal is transmitted between the SATA 68P connector and the SATA controller, and the test hard disk 10 establishes a communication connection with the device under test based on the NVMe protocol.
[0057] In this embodiment, the hard disk backplane is taken as a specific embodiment of the device under test, and a test system is further provided. As Figure 3 shown, the test system includes at least one test hard disk 10 in the above embodiment, as well as a hard disk backplane 20 and a test control device 30. The hard disk backplane 20 has a plurality of interface slots, and each interface slot can be connected to a test hard disk 10. The test hard disk 10 is communicatively connected to an interface slot of the hard disk backplane 20 through its respective first connector, and is communicatively connected to the test control device 30 through a second connector.
[0058] In a specific embodiment, as Figure 3 shown, the test system further includes an adapter device 40, and the test control device 30 is connected to the second connector of the test hard disk 10 through the adapter device 40. Specifically, the second connector is an IIC interface, and the adapter device 40 is a USB to IIC board.
[0059] The test control device 30 is used to send communication mode test requirement information to the communication mode adjustment controller in the test hard disk 10 through the second connector.
[0060] The communication mode adjustment controller of the test hard disk 10 is used to receive the communication mode test requirement information, and according to the communication mode test requirement information, control the presence states of the first communication execution component and the second communication execution component, so as to perform corresponding tests on the device under test based on the first communication execution component or the second communication execution component in the test hard disk 10 that is in the presence state.
[0061] It should be noted that, in this embodiment, the first communication execution component and the second communication execution component correspond to different communication modes. If the test system includes two or more test hard disks 10, the communication execution components in place in each test hard disk 10 can be the same or different, and this embodiment does not impose specific restrictions on this.
[0062] If it is necessary for each test hard disk 10 to establish a communication connection with the hard disk backplane 20 based on two compatible communication modes to perform corresponding test processing, each test hard disk 10 can first be allowed to establish a communication connection with the hard disk backplane 20 based on one communication mode to complete the corresponding test processing, and then each test hard disk 10 can be controlled to switch to another communication mode to establish a communication connection with the hard disk backplane 20 to complete the corresponding test processing, until the test of each test hard disk 10 establishing a communication connection with the hard disk backplane 20 based on all compatible communication modes is completed.
[0063] In a specific embodiment, Figure 3 As shown, the test control device 30 is connected in communication with the hard disk backplane 20 for performing corresponding test processing on the hard disk backplane 20, that is, the test control device 30 can be used to send communication mode test requirement information to the test hard disk 10 through the second test terminal, and can also perform corresponding test processing on the hard disk backplane 20. Specifically, the test control device 30 can be a mainboard of a server, including a central processing unit (CPU), and the central processing unit includes an operating system (OS). It should be noted that, in this embodiment, an additional test mainboard can also be set to communicate with the hard disk backplane 20 for performing corresponding test processing on the hard disk backplane 20, and the test control device 30 is only used to establish a communication connection with the test hard disk 10 through the adapter 40 and the second test terminal.
[0064] It should be further explained that, in the present embodiment, after the test hard disk 10 establishes a communication connection with the hard disk backplane 20 based on the communication mode corresponding to the first communication execution component in the in-place state or the communication mode corresponding to the second communication execution component, the corresponding communication mode can be displayed through the test control device 30, so that the test personnel can directly understand the current communication mode type.
[0065] In a specific embodiment, Figure 4As shown, the test system includes a mainboard (as a test control device 30), a USB to IIC board (as a transfer device 40), a hard disk backplane (as a test board) and a test hard disk (as a test hard disk), and the mainboard includes a CPU, and the CPU includes an OS. One end of the USB to IIC board can be connected to the IIC bus, and the other end can be connected to the USB interface. The OS of the mainboard establishes a communication connection with the test hard disk through the USB to IIC board, and the CPU of the mainboard also establishes a communication connection with the test hard disk through the hard disk backplane. The test hard disk (i.e., the test hard disk) is compatible with both NVMe and SAS communication modes.
[0066] Taking the hard disk backplane as a specific embodiment of the device under test, the present application also provides a testing method, which is applied to the test hard disk in the above embodiment, the test hard disk is connected to the device under test through a first connector, and the test hard disk is connected to the test control device through a second connector. Figure 5 As shown, the test methods include:
[0067] S1: The communication mode adjustment controller of the test hard disk receives the communication mode test requirement information (sent by the test control device through the second connector);
[0068] It should be noted that the communication mode test requirement information refers to the requirement information for the test hard disk to establish a communication connection with the hard disk backplane based on a communication mode.
[0069] S2: The communication mode adjustment controller of the test hard disk controls the in-place status of the first communication execution component and the second communication execution component according to the communication mode test requirement information, so as to perform corresponding tests on the hard disk backplane based on the first communication execution component or the second communication execution component in the in-place state.
[0070] It should be noted that the first communication execution component and the second communication execution group correspond to different communication modes, and the different communication modes include but are not limited to communication modes based on SAS protocol, NVMe protocol and SATA protocol. Communication mode test requirement information may also refer to the requirement information for corresponding tests on the device under test based on a communication execution component in a position state (corresponding to a communication mode). The corresponding tests include but are not limited to writing data to the test hard disk 10, then reading the written data from the test hard disk 10, further determining whether stable reading and writing can be performed, and calculating whether the reading and writing rate is consistent with the design speed.
[0071] In one implementation of the present application, the first communication controller of the first communication execution component is respectively connected to the first connector and the first memory of the first communication execution component; the second communication controller of the second communication execution component is respectively connected to the first connector and the second memory of the second communication execution component. The test method further includes: the first communication controller of the first communication execution component in the test hard disk performs corresponding test processing according to the first test information stored in the first memory of the first communication execution component. And the second communication controller of the second communication execution component in the test hard disk performs corresponding tests according to the second test information stored in the second memory of the second communication execution component.
[0072] In one implementation of the present application, the first communication execution component corresponds to the first communication mode, the second communication execution component corresponds to the second communication mode, and the communication mode test requirement information is the first communication mode requirement information or the second communication mode requirement information. The first connection port of the first connector is connected to the first interface of the communication mode adjustment controller, the second connection port of the first connector is connected to the second interface of the communication mode adjustment controller, the third connection port of the first connector is connected to the third interface of the first communication controller in the first communication execution component, and the fourth connection port of the first connector is connected to the fourth interface of the second communication controller in the second communication execution component.
[0073] It should be noted that in this implementation, the first communication mode and the second communication mode are different communication modes, specifically, they can be one of the communication modes based on the SAS protocol, the NVMe protocol, and the SATA protocol. The first communication mode requirement information refers to the requirement information for the test hard disk to establish a communication connection with the hard disk backplane based on the first communication mode, and also refers to the requirement information for performing corresponding tests on the device under test based on the first communication execution component (corresponding to the first communication mode). The second communication mode requirement information refers to the requirement information for the test hard disk to establish a communication connection with the hard disk backplane based on the second communication mode, and also refers to the requirement information for performing corresponding tests on the device under test based on the second communication execution component (corresponding to the second communication mode).
[0074] The test method includes: when the communication mode test requirement information is the first communication mode requirement information, the communication mode adjustment controller determines that the in-position control instruction is the first in-position control instruction, controls the third connection port of the first connector to be in the first level state, and the fourth connection port of the first connector to be in the second level state, so that the first communication execution component is in the in-position state (that is, signal transmission can be performed between the first connector and the first communication execution component), and the second communication execution component is in the non-in-position state, that is, signal transmission cannot be performed between the first connector and the second communication execution component, for performing corresponding tests on the device under test based on the first communication execution component.
[0075] It should be noted that the first in-position control instruction refers to an instruction that controls the first communication execution component to be in the in-position state and the second communication execution component to be in the non-in-position state.
[0076] When the communication mode test requirement information is the second communication mode requirement information, determine the in-position control instruction as the first in-position control instruction, control the third connection port of the first connector to be in the second level state (high level state), and the fourth connection port of the first connector to be in the first level state (low level state), so that the second communication execution component is in the in-position state (that is, signal transmission can be carried out between the first connector and the second communication execution component), and the first communication execution component is in the non-in-position state (that is, signal transmission cannot be carried out between the first connector and the first communication execution component), for the purpose of performing corresponding tests on the device under test based on the second communication execution component.
[0077] It should be noted that if the communication execution component is connected to the connection port of the first connector in the low level state, signal transmission can be carried out between them. On the contrary, if the communication execution component is connected to the connection port of the first connector in the high level state, signal transmission cannot be carried out between them.
[0078] In one implementation manner of the present application, it is applied to the test hard disk in the above embodiment, as Figure 6 shown, the test method includes:
[0079] S10: The communication mode adjustment controller of the test hard disk receives the first communication mode test requirement information; the first communication mode test requirement information is the requirement information for performing corresponding tests on the device under test based on the first communication execution component.
[0080] S20: The communication mode adjustment controller controls the first communication execution component to be in the in-position state and the second communication execution component to be in the non-in-position state according to the first communication mode test requirement information, so as to perform corresponding tests on the hard disk backplane based on the first communication execution component in the in-position state.
[0081] S30: The communication mode adjustment controller receives the second communication mode test requirement information; the second communication mode test requirement information is the requirement information for performing corresponding tests on the device under test based on the second communication execution component.
[0082] S40: The communication mode adjustment controller controls the first communication execution component to be in the non-in-position state and the second communication execution component to be in the in-position state according to the second communication mode test requirement information, so as to perform corresponding tests on the hard disk backplane based on the second communication execution component in the in-position state.
[0083] The corresponding tests in this implementation manner are the same as or similar to the above corresponding tests, and will not be elaborated here.
[0084] In a specific embodiment, the first communication mode is a communication mode based on the SATA protocol, and the second communication mode is a communication mode based on the NVMe protocol.
[0085] It should be noted that the method for controlling the presence states of the first communication execution component and the second communication execution component has been explained in detail in the above embodiments of the test hard disk, and will not be elaborated in this embodiment. Similarly, the corresponding tests in this embodiment are the same as or similar to the corresponding tests above, and will not be elaborated here.
[0086] In a specific embodiment, a test system applicable to a test hard disk that is compatible with both NVMe and SATA communication modes is provided. The OS of the main board establishes a communication connection with the test hard disk through a USB-to-IIC board, and the CPU of the main board also establishes a communication connection with the test hard disk through the hard disk backplane. As Figure 7 shown, the test method includes: powering on the main board and starting the OS; enabling the NVMe controller of each test hard disk through the USB-to-IIC bus of the OS, that is, controlling the enabling of the NVMe presence signal of the test hard disk, and the main board side displays the NVMe hard disk; performing a communication handshake between the main board and the NVMe controller to negotiate communication parameters, and performing NVMe-related tests through the main board. The tests include reading the hard disk manufacturer, capacity, functions, log pages, etc., read-write tests, rate tests, and error code tests. Specifically, for example, reading the test hard disk ID, writing data from the main board to the test hard disk, and then reading the written data from the test hard disk to determine whether stable read-write can be performed, and calculating whether the NVMe read-write rate is consistent with the designed speed. Enabling the SATA controller of each test hard disk through the USB-to-IIC bus of the OS, that is, enabling the SATA presence signal of the test hard disk, and the main board side displays the SATA hard disk; performing a communication handshake between the main board and the SATA controller to negotiate communication parameters, and performing SATA-related tests through the main board. The tests include reading the hard disk manufacturer, capacity, functions, log pages, etc., read-write tests, rate tests, and error code tests. Specifically, for example, reading the test hard disk ID, writing data from the main board to the test hard disk, and then reading the written data from the test hard disk to determine whether stable read-write can be performed, and calculating whether the SATA read-write rate is consistent with the designed speed; ending the test.
[0087] It should be noted that, in addition to the implementation manners of the present application described in the above specific embodiments, those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in this specification. Although the description of the present application will be introduced in combination with preferred embodiments, this does not mean that the features of this application are limited to this implementation manner. On the contrary, the purpose of introducing the application in combination with the implementation manner is to cover other alternatives or modifications that may be extended based on the claims of the present application. In order to provide a deep understanding of the present application, many specific details will be included in the following description. The present application can also be implemented without using these details. In addition, in order to avoid confusing or obscuring the key points of the present application, some specific details will be omitted in the description. It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
[0088] It should be noted that, in this specification, similar reference numerals and letters denote similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0089] In the description of this embodiment, it should be noted that the orientation or positional relationship indicated by terms such as "upper", "lower", "inner", "bottom", etc. is based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the application product is usually placed during use. It is 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.
[0090] Terms such as "first", "second", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in this embodiment can be understood according to specific circumstances.
[0091] Although the present application has been illustrated and described by referring to some preferred embodiments of the present application, those of ordinary skill in the art should understand that the above content is a further detailed description of the present application in combination with specific implementation manners, and it cannot be determined that the specific implementation of the present application is only limited to these descriptions. Those skilled in the art can make various changes in form and details, including making several simple deductions or substitutions, without departing from the spirit and scope of the present application.
Claims
1. A hard disk for testing, characterized in that, Comprising: A first connector, a second connector, a communication mode adjustment controller, a first communication execution component, and a second communication execution component, where the first communication execution component and the second communication execution component correspond to different communication modes; The first connector is respectively connected to the first communication execution component, the second communication execution component, and the communication mode adjustment controller, and the first connector is used for connecting the hard disk for testing to the device under test; The second connector is connected to the communication mode adjustment controller, and the second connector is used for connecting the hard disk for testing to the test control device; The communication mode adjustment controller is used to control the in-position states of the first communication execution component and the second communication execution component according to the communication mode test requirement information sent by the test control device through the second connector, so as to perform corresponding tests on the device under test based on the first communication execution component or the second communication execution component in the in-position state in the hard disk for testing.
2. The test hard disk according to claim 1, wherein, The first communication execution component includes a first communication controller and a first memory, the first communication controller is respectively connected to the first connector and the first memory, and the first communication controller is used to perform corresponding test processing according to the first test information stored in the first memory; The second communication execution component includes a second communication controller and a second memory, the second communication controller is respectively connected to the first connector and the second memory, and the second communication controller is used to perform corresponding test processing according to the second test information stored in the second memory.
3. The hard disk for testing according to claim 2, wherein The first connector includes a first connection port, a second connection port, a third connection port, and a fourth connection port, the communication mode adjustment controller includes a first interface and a second interface, the first communication controller includes a third interface, and the second communication controller includes a fourth interface; wherein, The first connection port is connected to the first interface, the second connection port is connected to the second interface, the third connection port is connected to the third interface, and the fourth connection port is connected to the fourth interface; The communication mode adjustment controller is used to determine an in-position control instruction according to the communication mode test requirement information, and control the in-position states of the first communication execution component and the second communication execution component according to the in-position control instruction; The first communication execution component or the second communication execution component in the in-position state transmits test information based on the established connection with the device under test to perform corresponding test processing.
4. The test hard disk according to claim 3, wherein, The first communication execution component corresponds to a first communication mode, the second communication execution component corresponds to a second communication mode, and the first connector is a connector compatible with the first communication mode and the second communication mode.
5. The test hard disk according to claim 4, wherein, The communication mode test requirement information is first communication mode requirement information or second communication mode requirement information; When the communication mode test requirement information is the first communication mode requirement information, determine that the in-position control instruction is the first in-position control instruction, control the third connection port to be in the first level state, and the fourth connection port to be in the second level state, so that the first communication execution component is in the in-position state and the second communication execution component is in the out-of-position state, for performing corresponding tests on the device under test based on the first communication execution component in the test hard disk; When the communication mode test requirement information is the second communication mode requirement information, determine that the in-position control instruction is the second in-position control instruction, control the third connection port to be in the second level state, and the fourth connection port to be in the first level state, so that the second communication execution component is in the in-position state and the first communication execution component is in the out-of-position state, for performing corresponding tests on the device under test based on the second communication execution component in the test hard disk.
6. The test hard disk according to claim 4 or 5, characterized in that, The first communication mode is a communication mode based on the Serial Advanced Technology Attachment (SATA) protocol, and the second communication mode is a communication mode based on the Non-Volatile Memory Host Controller Interface Specification (NVMe) protocol.
7. The hard disk for testing according to any one of claims 1-5, characterized in that, The second connector is a connector based on the Serial Communication Bus (SCB) protocol.
8. A testing method, characterized in that, Applied to the test hard disk according to any one of claims 1-7, the test hard disk is connected to the device under test through the first connector and connected to the test control device through the second connector. The test method includes: The communication mode adjustment controller in the test hard disk receives the communication mode test requirement information sent by the test control device through the second connector, and controls the in-position states of the first communication execution component and the second communication execution component according to the communication mode test requirement information, for performing corresponding tests on the device under test based on the first communication execution component or the second communication execution component in the in-position state.
9. The test method according to claim 8, characterized in that The first communication execution component includes a first communication controller and a first memory, and the first communication controller is respectively connected to the first connector and the first memory; the second communication execution component includes a second communication controller and a second memory, and the second communication controller is respectively connected to the first connector and the second memory; the test method includes: The first communication controller in the test hard disk performs corresponding test processing according to the first test information stored in the first memory; The second communication controller in the test hard disk performs corresponding tests according to the second test information stored in the second memory.
10. The test method according to claim 9, characterized in that, The first communication execution component corresponds to a first communication mode, the second communication execution component corresponds to a second communication mode, and the communication mode test requirement information is the first communication mode requirement information or the second communication mode requirement information; the first connector includes a first connection port, a second connection port, a third connection port, and a fourth connection port, the communication mode adjustment controller includes a first interface and a second interface, the first communication controller includes a third interface, and the second communication controller includes a fourth interface; wherein, the first connection port is connected to the first interface, the second connection port is connected to the second interface, the third connection port is connected to the third interface, and the fourth connection port is connected to the fourth interface; the test method includes: When the communication mode test requirement information is the first communication mode requirement information, the communication mode adjustment controller in the test hard disk determines that the in-position control instruction is the first in-position control instruction, controls the third connection port to be in a first level state, and the fourth connection port to be in a second level state, so that the first communication execution component is in an in-position state and the second communication execution component is in an out-of-position state, for corresponding testing of the device under test based on the first communication execution component; When the communication mode test requirement information is the second communication mode requirement information, the communication mode adjustment controller in the test hard disk determines that the in-position control instruction is the second in-position control instruction, controls the third connection port to be in the second level state, and the fourth connection port to be in the first level state, so that the second communication execution component is in an in-position state and the first communication execution component is in an out-of-position state, for corresponding testing of the device under test based on the second communication execution component.