Adapter plate of storage device, test device and test method
By designing the transit board of the storage device, the control circuit controls the communication port between the communication port of the control circuit and the storage device to solve the problem of the upper and lower power test of the storage device in the existing technology. Electricity testing and higher test flexibility.
Patent Information
- Application Number
- CN202310917904.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-24
- Publication Date
- 2025-01-24
AI Technical Summary
It is difficult to determine which storage device has a fault separately for power-up testing of existing storage devices, and the test method is not flexible enough.
Design a transit board for storage device, which includes the first connection port connected to the communication side of the server and the second connection port connected to the communication side of the storage device. Over the end of the server's separate power -on testing of the server.
Through the rotary board, the server can be used for power -on testing the storage equipment that is connected alone in multiple rotary board scenarios, which improves the flexibility and accuracy of the test.
Smart Images

Figure CN119357096A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of storage device testing, and in particular to an adapter board, testing equipment and testing method for a storage device. Background Art
[0002] With the rapid development of technologies such as cloud computing and big data, the demand for servers in the Internet, communications and other industries has exploded. Stable and reliable servers are very important for users and service providers. Storage devices are key components in server devices. Storage devices from different production batches, different manufacturers or different types may not be compatible with the target server devices, so it is necessary to perform storage device compatibility testing on the target server.
[0003] The storage device compatibility test includes the power-on and power-off test of the storage device, which is used to detect whether the storage device installed on the server has the ability to resume normal operation in the case of normal or abnormal power failure. The current common power-on and power-off test of storage devices is to power on and off the entire server to test all storage devices installed on the server. It is difficult to determine which storage device is faulty through a single power-on and power-off test. Summary of the invention
[0004] The present application provides an adapter board, a testing device and a testing method for a storage device.
[0005] A technical solution adopted by the present application is to provide an adapter board for a storage device, which is applied to a test scenario of the storage device. The adapter board includes:
[0006] A first connection port, the first connection port is used to be electrically connected to a communication port of a server;
[0007] A second connection port, the second connection port is used to be electrically connected to the communication port of the storage device;
[0008] The control circuit is connected between the first connection port and the second connection port, and is used to control the conduction or cutoff between the first connection port and the second connection port, so as to realize the power-on and power-off test of the storage device by the server.
[0009] The control circuit includes a switch unit, a first channel end of the switch unit is coupled to the first connection port, and a second channel end of the switch unit is coupled to the second connection port, for controlling conduction or cutoff between the first connection port and the second connection port.
[0010] Wherein, the first connection port includes a first power supply port and a second power supply port;
[0011] The second connection port includes a third power supply port and a fourth power supply port;
[0012] The switch unit includes a first switch and a second switch;
[0013] The first power supply port and the third power supply port are connected or cut off through the first switch; the second power supply port and the fourth power supply port are connected or cut off through the second switch; the power supply voltage between the first power supply port and the third power supply port is different from that between the second power supply port and the fourth power supply port.
[0014] The control circuit further includes a control unit, which is connected to the control ends of the first switch and the second switch respectively and is used to control the first switch and / or the second switch to be turned on or off.
[0015] The adapter board also includes a communication interface, which is coupled to the control unit and is used to transmit control instructions sent by the external test equipment to the control unit so that the control unit controls the first switch and / or the second switch to be turned on or off.
[0016] The number of the second connection ports is at least two, and the at least two second connection ports are configured to be coupled to at least two storage devices with different interface types.
[0017] Another technical solution adopted by the present application is to provide a test device, the test device comprising: a server and an adapter board; wherein the adapter board is the above-mentioned adapter board;
[0018] When the storage device is tested, the first connection port of the adapter board is plugged into the slot of the server, and the second connection port of the adapter board is electrically connected to the communication port of the storage device;
[0019] The server controls the control circuit of the adapter board so that the control circuit controls the conduction or cutoff between the first connection port and the second connection port, thereby realizing the power-on and power-off test of the storage device by the server.
[0020] The slot is provided with a slot separator, and the distance between the first connection port and the second connection port of the adapter board is greater than the length of the slot separator in the insertion direction of the adapter board into the slot.
[0021] The adapter board also includes a communication interface, which couples the control unit and the server and is used to transmit the control instructions sent by the server to the control unit so that the control unit controls the conduction or cutoff between the first connection port and the second connection port.
[0022] Another technical solution adopted by the present application is to provide a testing method, which is applied to a server. When testing a storage device, the server is connected to the storage device through an adapter board, and the adapter board is the above-mentioned adapter board. The method includes:
[0023] In response to the server being coupled to the adapter board, a control instruction is sent to the adapter board, so that the control unit of the adapter board controls the connection or disconnection between the first connection port and the second connection port, and powers on or off the storage device;
[0024] Collect test data during the power-on or power-off process of the storage device to obtain test results.
[0025] The beneficial effect of the present application is that the adapter board includes a first connection port electrically connected to the communication port of the server, a second connection port electrically connected to the communication port of the storage device, and a control circuit between the first connection port and the second connection port. The control circuit is used to control the conduction or cutoff between the first connection port and the second connection port, so that the server can perform power-on and power-off tests on the storage device coupled to the adapter board separately in the scenario of connecting to multiple adapter boards, further improving the flexibility of the test. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 It is a structural schematic diagram of an embodiment of an adapter board of a storage device provided by the present application;
[0028] Figure 2 It is a structural schematic diagram of another embodiment of an adapter board of a storage device provided by the present application;
[0029] Figure 3 It is a structural schematic diagram of another embodiment of an adapter board of a storage device provided by the present application;
[0030] Figure 4 It is a structural schematic diagram of an embodiment of a testing device provided by the present application;
[0031] Figure 5 yes Figure 4 A front view of an embodiment of a first connection port being inserted into a slot;
[0032] Figure 6 yes Figure 5 A side view of an embodiment of the cooperation between the intermediate transfer plate and the slot separator strip;
[0033] Figure 7 It is a step flow chart of an embodiment of the testing method provided by the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0035] The terms "first", "second", etc. in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods or devices.
[0036] The present application mainly designs an adapter board for a storage device. The present application sets a control circuit between a first connection port electrically connected to a server communication port and a second connection port electrically connected to a storage device communication port, for controlling conduction or cutoff between the first connection port and the second connection port, thereby realizing power-on and power-off testing of a storage device electrically connected to a single adapter board by a server.
[0037] Please refer to Figure 1 , Figure 1 It is a structural schematic diagram of an embodiment of an adapter board of a storage device provided by the present application.
[0038] like Figure 1 As shown, the adapter board 10 of the embodiment of the present application may specifically include: a first connection port 11 , a second connection port 12 and a control circuit 13 .
[0039] The first connection port 11 is used for electrically connecting to a communication port of a server.
[0040] In some application scenarios, the interface type of the first connection port 11 can be any one or more of IDE (integrated device circuit) interface, optical fiber interface, USB (universal serial bus) interface, SATA (serial high technology configuration) interface, SCSI (small computer system interface) interface, SAS (serial attached SCSI) interface, SATA Express interface, mSATA interface, PCI-E (PCI-E) interface, M.2 interface, and U.2 interface, without limitation here.
[0041] In some application scenarios, the interface type of the communication port of the server can be any one or more of IDE (integrated device circuit) interface, optical fiber interface, USB (universal serial bus) interface, SATA (serial high technology configuration) interface, SCSI (small computer system interface) interface, SAS (serial attached SCSI) interface, SATA Express interface, mSATA interface, PCI-E (PCI-E) interface, M.2 interface, and U.2 interface, without limitation here.
[0042] Optionally, the interface type of the first connection port 11 and the communication port of the server may be the same or different.
[0043] The second connection port is used to be electrically connected to the communication port 21 of the storage device 2 .
[0044] Optionally, the type of the storage device 2 may be any one of a mechanical hard disk, a solid state hard disk, and a hybrid hard disk.
[0045] In some application scenarios, the interface type of the second connection port 12 can be any one or more of an IDE (integrated device circuit) interface, an optical fiber interface, a USB (universal serial bus) interface, a SATA (serial high-tech configuration) interface, a SCSI (small computer system interface) interface, a SAS (serial attached SCSI) interface, a SATA Express interface, an mSATA interface, a PCI-E (PCI-E high-speed serial computer expansion bus) interface, an M.2 interface, and a U.2 interface, and is not limited here.
[0046] In some application scenarios, the interface type of the communication port 21 can be any one or more of an IDE (integrated device circuit) interface, a fiber optic interface, a USB (universal serial bus) interface, a SATA (serial high-tech configuration) interface, a SCSI (small computer system interface) interface, a SAS (serial attached SCSI) interface, a SATA Express interface, an mSATA interface, a PCI-E (PCI-E) interface, an M.2 interface, and a U.2 interface, and is not limited here.
[0047] Optionally, the interface types of the second connection port 12 and the communication port 21 may be the same or different.
[0048] In some embodiments, the first connection port 11 and the second connection port 12 have the same interface type. In some embodiments, the first connection port 11 and the second connection port 12 have different interface types.
[0049] In some application scenarios, the adapter board 10 can be electrically connected to a single storage device. In some application scenarios, the adapter board 10 can be electrically connected to at least two storage devices.
[0050] The control circuit 13 is connected to the first connection port 11 and the second connection port 12 , and is used to control the connection or disconnection between the first connection port 11 and the second connection port 12 , so as to implement power-on and power-off tests of the storage device 2 by the server.
[0051] In some embodiments, the control circuit 13 changes the state between the first connection port 11 and the second connection port 12 from on to off, so as to implement a power-off test of the storage device 2 by the server.
[0052] In some embodiments, the control circuit 13 changes the state between the first connection port 11 and the second connection port 12 from off to on, thereby realizing a power-on test of the storage device 2 by the server.
[0053] In the above solution, the adapter board includes a first connection port electrically connected to the communication port of the server, a second connection port electrically connected to the communication port of the storage device, and a control circuit connected between the first connection port and the second connection port. The control circuit is used to control the conduction or cutoff between the first connection port and the second connection port. When the server is connected to multiple adapter boards, the storage device coupled to the adapter board can be individually powered on and off, further improving the flexibility of the test.
[0054] See also Figure 2 , Figure 2 It is a structural schematic diagram of another embodiment of the adapter board of the storage device provided in the present application.
[0055] like Figure 2 As shown, the adapter board 30 of the embodiment of the present application may specifically include a first connection port 31, a first power supply port 311, a second power supply port 312, a second connection port 32, a third power supply port 321, a fourth power supply port 322, a control circuit 33, a switch unit 331, a first switch 35, a second switch 36, a control unit 332 and a communication interface 34.
[0056] Optionally, the control circuit 33 includes a switch unit 331, a first passage end of the switch unit 331 is coupled to the first connection port 31, and a second passage end of the switch unit is coupled to the second connection port 32. The adapter board 30 controls the conduction or cutoff between the first connection port 31 and the second connection port 32 by switching the working state of the switch unit 331 to be on or off.
[0057] In some embodiments, the adapter board 30 switches the working state of the switch unit 331 from the on state to the off state, so that the state between the first connection port 31 and the second connection port 32 changes from the on state to the off state, thereby realizing the server power-off test of the storage device.
[0058] In some embodiments, the adapter board 30 switches the working state of the switch unit 331 from the off state to the on state, so that the state between the first connection port 31 and the second connection port 32 changes from the off state to the on state, thereby realizing the server power-on test of the storage device.
[0059] Optionally, the first connection port 31 further includes a first power supply port 311 and a second power supply port 312. The second connection port 32 further includes a third power supply port 321 and a fourth power supply port 322. The switch unit 331 includes a first switch 35 and a second switch 36.
[0060] In some embodiments, the first power port 311 and the third power port 321 are connected or disconnected via a first switch 35 , and the second power port 312 and the fourth power port 322 are connected or disconnected via a second switch 36 .
[0061] Further, the power supply voltage V1 between the first power supply port 311 and the third power supply port 321 is different from the power supply voltage V2 between the second power supply port 312 and the fourth power supply port 322. In some embodiments, the third power supply port 321 or the fourth power supply port 322 is used to supply power to the storage device.
[0062] In some application scenarios, the number of the second connection ports 32 is at least 2, and at least 2 second connection ports 32 are configured to couple at least two storage devices of different interface types, so that the adapter board 30 can be electrically connected to storage devices of different communication port types, further increasing the compatibility of the adapter board 30 with storage devices. Optionally, the interface of the second connection port 32 can be any one of an IDE (Integrated Device Circuit) interface, an optical fiber interface, a USB (Universal Serial Bus) interface, a SATA (Serial Advanced Technology Attachment) interface, a SCSI (Small Computer System Interface) interface, a SAS (Serial Attached SCSI) interface, a SATA Express interface, an mSATA interface, a PCI-E (PCI-Express) interface, an M.2 interface, and a U.2 interface, which is not limited here.
[0063] In some embodiments, the adapter board 30 can simultaneously perform power-on and power-off tests on at least two storage devices of different interface types.
[0064] Optionally, the voltage values of the power supply voltage V1 and the power supply voltage V2 may be 3.3V, 5V or 12V, etc., which are not limited here. It can be understood that at least one of the power supply voltage V1 and the power supply voltage V2 corresponds to the power supply voltage of the storage device.
[0065] Optionally, the first switch 35 and the second switch 36 can be controllable switching elements represented by BJT (bipolar junction transistor), SCR (silicon controlled rectifier), GTO (gate turn-off thyristor), MOS tube, IGBT (insulated gate bipolar transistor), MCT (MOS controlled thyristor), SIT (static induction transistor) or relay, which are not limited here.
[0066] Optionally, the control circuit 33 includes a control unit 332 , which is connected to control ends of the first switch 35 and the second switch 36 , respectively, and is used to control the on or off of the first switch 35 and / or the second switch 36 .
[0067] Exemplarily, the control unit 332 may be an embedded device.
[0068] Furthermore, the adapter board 30 also includes a communication interface 34, which is coupled to the control unit 332 and is used to transmit control instructions sent by an external testing device (not shown) to the control unit 332 so that the control unit 332 controls the conduction or cutoff of the first switch 35 and / or the second switch 36.
[0069] In some application scenarios, the communication interface 34 can obtain the control instruction sent by the external test device through wired communication. Optionally, the communication interface 34 can obtain the control instruction sent by the external test device through wired communication represented by USB, serial port, Ethernet or MBS.
[0070] In some application scenarios, the communication interface 34 obtains the control instructions sent by the external test device through wireless communication. Optionally, the communication interface 34 can obtain the control instructions sent by the external test device through wireless communication represented by Bluetooth, Wi-Fi, 2G / 3G / 4G / 5G, cellular communication, infrared communication, Zigbee, LoRa, UWB, RFID or NFC.
[0071] Optionally, the external test device may be the server itself, or an embedded device, or a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, or glasses, helmets, and other products for augmented reality or virtual reality, etc., which are not limited here.
[0072] Furthermore, the communication interface 34 is coupled to the control unit 332 via a serial communication line or a parallel communication line.
[0073] In the above solution, the adapter board includes a first connection port electrically connected to the communication port of the server, a second connection port electrically connected to the communication port of the storage device, and a control circuit connected between the first connection port and the second connection port. The control circuit is used to control the conduction or cutoff between the first connection port and the second connection port. When the server is connected to multiple adapter boards, the storage device coupled to the adapter board can be individually powered on and off, further improving the flexibility of the test.
[0074] Furthermore, at least two second connection ports are configured to be coupled to at least two storage devices of different interface types, thereby improving the compatibility of the adapter board with storage devices of different interface types.
[0075] See also Figure 3 , Figure 3 It is a structural schematic diagram of another embodiment of the adapter board of the storage device provided in the present application.
[0076] like Figure 3 As shown, the adapter plate 40 in the embodiment of the present application may specifically include:
[0077] A first connection port 41 , a second connection port 42 , a first power supply port 411 , a second power supply port 412 , a third power supply port 421 , a fourth power supply port 422 , a first switch 43 , a second switch 44 , a control unit 45 , a communication interface 46 , and a signal conversion module 47 .
[0078] In this embodiment, the first connection port 41 and the second connection port 42 are U.2 interfaces, wherein the first connection port 41 is used to electrically connect to the communication port of the server, and the second connection port 42 is used to electrically connect to the communication port of the storage device (not shown). Optionally, the first connection port 41 and the second connection port 42 are used to transmit signals via a PCI-e signal line or a SATA signal line, so that communication is established between the server and the storage device.
[0079] In this embodiment, the storage device is a solid state drive.
[0080] In some embodiments, the communication port of the server may also be a U.2 interface.
[0081] Optionally, the voltage between the first power supply port 411 and the third power supply port 421 is 5V.
[0082] Optionally, the voltage between the second power supply port 421 and the fourth power supply port 422 is 12V.
[0083] It is worth noting that the power supply voltage corresponding to the U.2 interface is 12 V. In some application scenarios, the second connection port also includes a SATA interface, and the voltage corresponding to the SATA interface is 5 V, so that the adapter board 40 can be compatible with storage devices with SATA interfaces or storage devices with U.2 interfaces for power-on and power-off tests.
[0084] Optionally, the communication interface 46 is a USB interface. In some embodiments, the communication interface 46 is coupled to an external test device via a USB data line, and is used to transmit the control instructions sent by the external test device to the control unit.
[0085] Optionally, the control unit 45 is a single chip microcomputer. The communication interface 46 is connected to the control unit via a signal conversion module 47. In some embodiments, the signal conversion module 47 is a USB to serial port module, so that the control instructions sent by the external test equipment enter the control unit in the form of serial port communication.
[0086] Optionally, the first switch 43 and the second switch 44 are both MOS switches, and the control ends of the first switch 43 and the second switch 44 are respectively connected to the control unit, wherein the first switch 43 is connected to the first power supply port and the third power supply port, and the second switch 44 is connected to the second power supply port and the fourth power supply port. The control unit controls the on or off of the first switch 43 and / or the second switch 44 to implement power-on and power-off testing of the storage device.
[0087] In the above solution, the adapter board includes a first connection port electrically connected to the communication port of the server, a second connection port electrically connected to the communication port of the storage device, and a control circuit connected between the first connection port and the second connection port. The control circuit is used to control the conduction or cutoff between the first connection port and the second connection port. When the server is connected to multiple adapter boards, the storage device coupled to the adapter board can be individually powered on and off, further improving the flexibility of the test.
[0088] See also Figure 4 , Figure 4 It is a structural schematic diagram of an embodiment of the testing equipment provided by the present application.
[0089] like Figure 4 As shown, the test device 50 provided in the present application may specifically include a server 51 and an adapter board 52. The server 51 includes a slot 53, wherein the adapter board 52 further includes a first connection port 521, a second connection port 522 and a control circuit 523.
[0090] When the storage device 5 is tested, the first connection port 521 is plugged into the slot 53 of the server 51, and the second connection port 522 is electrically connected to the communication port 500 of the storage device 5. In some application scenarios, the slot 53 also includes a communication port (not shown), and when the first connection port 521 is plugged into the slot 53, the electrical connection between the first connection port 521 and the communication port of the server 51 is achieved.
[0091] Furthermore, the server 51 controls the control circuit 523 through wired communication or wireless communication, so that the control circuit 523 controls the on or off of the first connection port 521 and the second connection port 522 to implement power on and off test of the storage device 5 by the server 51 .
[0092] Optionally, the slot 53 is also provided with a slot dividing bar 531 for accommodating storage devices of corresponding thickness. When the adapter board 52 is inserted into the slot 53, due to the certain thickness of the adapter board 52, the slot dividing bar 531 cannot accommodate the storage device 5 that it can originally accommodate. By extending the distance between the first connection port 521 and the second connection port 522 of the adapter board so that the distance is greater than the length of the slot dividing bar 531 in the insertion direction of the adapter board into the slot, the storage device 5 avoids the slot dividing bar 531, thereby further improving the compatibility of the adapter board 52 with storage devices of different widths.
[0093] like Figure 5 and Figure 6 As shown, the distance between the slot divider 531a and the slot divider 531b, or the distance between the slot divider 531c and the slot divider 531d, that is, the width D1 of a single hard disk slot is less than or equal to 15.5 mm, so that the hard disk slot can accommodate a storage device with a width of 15 mm. During the testing of the storage device, the adapter plate 52 is inserted into the slot 53, wherein the width D2 of the adapter plate 52 itself is greater than 4 mm, and the storage device with a width of 15 mm cannot be powered on and off using the adapter plate 52. Therefore, the adapter plate 52 needs to increase the distance length L1 between the first connection port and the second connection port, so that the storage device with a width of 15 mm avoids the slot divider 531, further improving the compatibility of the adapter plate 52 with storage devices of different widths.
[0094] The inventor of this application has found through long-term research that the length L2 of the slot divider of servers of different types and manufacturers in the insertion direction of the adapter board into the slot is less than 80mm. In order for a storage device with a width of 15mm to pass the power-on and power-off test, L1 needs to be greater than or equal to L2.
[0095] Furthermore, the signal loss of the adapter board is positively correlated with the distance L1 between the first connection port and the second connection port, that is, the larger L1 is, the greater the signal loss is. In other words, L1 also has a maximum value.
[0096] Exemplarily, the first connection port and the second connection port are partially connected via a PCI-e bus.
[0097] In some embodiments, the PCI-e bus is a bus of the PCI-e 3.0 protocol. According to the design specifications of the PCI-e 3.0 protocol, the loss on the device side (storage device + adapter board) does not exceed 6.5dB, wherein the loss value of the storage device is less than 3dB, and the sum of the losses of the communication port of the server and the communication port of the storage device is less than 1.5dB, that is, the loss of the adapter board must be less than 2dB to meet the design specifications of PCI-e 3.0. After testing by the inventor of the present application, when the length of L1 is between 85mm and 120mm, the loss of the adapter board is between 1.38dB and 1.8dB, so that a certain margin is left on the basis of meeting the design specifications, so that the adapter board does not have a negative impact on the power-on and power-off tests of the storage device.
[0098] In some embodiments, the PCI-e bus is a bus of the PCI-e 4.0 protocol. According to the design specifications of the PCI-e 4.0 protocol, the loss on the device side (storage device + adapter board) does not exceed 8.0dB, wherein the loss value of the storage device is less than 3dB, and the sum of the losses of the communication port of the server and the communication port of the storage device is less than 1.5dB, that is, the loss of the adapter board must be less than 3.5dB to meet the design specifications of PCI-e 4.0. After testing, the inventor of the present application found that the length of L1 is between 85mm and 150mm, and the loss of the adapter board is between 1.38dB and 2dB. On the basis of meeting the design specifications, a certain margin is left, so that the adapter board does not have a negative impact on the power-on and power-off tests of the storage device.
[0099] In some embodiments, the PCI-e bus is a bus of the PCI-e 5.0 protocol. According to the design specifications of the PCI-e 5.0 protocol, the loss on the device side (storage device + adapter board) does not exceed 9.5dB, wherein the loss value of the storage device is less than 3dB, and the sum of the losses of the communication port of the server and the communication port of the storage device is less than 1.5dB, that is, the loss of the adapter board must be less than 5dB to meet the design specifications of PCI-e 5.0. After testing, the inventor of the present application found that the length of L1 is between 85mm and 200mm, and the loss of the adapter board is between 1.38dB and 3dB. On the basis of meeting the design specifications, a certain margin is left, so that the adapter board does not have a negative impact on the power-on and power-off tests of the storage device.
[0100] In the above solution, the adapter board includes a first connection port electrically connected to the communication port of the server, a second connection port electrically connected to the communication port of the storage device, and a control circuit connected between the first connection port and the second connection port. The control circuit is used to control the conduction or cutoff between the first connection port and the second connection port. When the server is connected to multiple adapter boards, the storage device coupled to the adapter board can be individually powered on and off, further improving the flexibility of the test.
[0101] Furthermore, by increasing the distance between the first connection port and the second connection port, the compatibility of the adapter board to storage devices of different thicknesses is further improved.
[0102] See also Figure 7 , Figure 7 It is a step flow chart of an embodiment of the testing method provided by the present application.
[0103] like Figure 7 As shown, the testing method of the embodiment of the present application may specifically include:
[0104] S1, in response to the server coupling the adapter board, sending a control instruction to the adapter board, so that the control unit of the adapter board controls the conduction or cutoff between the first connection port and the second connection port, and powers on or off the storage device.
[0105] Among them, the testing method provided in the embodiments of the present application is mainly performed by any one of the testing devices provided above.
[0106] Specifically, in response to the server successfully coupling to the adapter board, the test device sends a command to the adapter board so that the control unit of the adapter board controls the conduction or cutoff between the first connection port and the second connection port to implement a power-on or power-off test of the storage device.
[0107] Optionally, before executing the step of coupling the server to the adapter board, the method further includes installing an operating system on the server using a PXE (Preboot eXecution Environment) method. Optionally, the operating system can be any one of a Linux system, a MacOS system, a Windows system, an Android system, and an iOS system.
[0108] In some embodiments, in response to the server being coupled to the adapter board, the steps before the test device sends the control instruction to the adapter board may also specifically include:
[0109] S11, detecting whether the adapter board is successfully coupled to the server.
[0110] S12, detecting whether the storage device successfully establishes a communication connection with the server through the adapter board.
[0111] S13, obtaining smart information of the storage device.
[0112] The smart information is the SMART (Self-Monitoring Analysis And Reporting Technology) information of the storage device.
[0113] S14, partitioning the storage device and formatting the partitions.
[0114] Specifically, the test device partitions part of the storage space of the storage device and formats the partitions. Exemplarily, the test device divides the storage device into 10 partitions, each with a storage capacity of 10G, and formats the 10 partitions before mounting.
[0115] S15, presetting a data file for one of the partitions.
[0116] Specifically, the test device writes a preset 1G data file, 2 500M data files, 10 100M data files, 30 30M data files, 200 5M data files, 500 100k data files, 1000 4k data files and 1000 1k data files to one of the partitions.
[0117] If a write error occurs in step S15, the writing of the preset data file is stopped, and log information of the file generation failure is output.
[0118] If no writing error occurs in step S15, after completing step S15, log information indicating successful file generation is output.
[0119] S16, copying the preset data file to other partitions.
[0120] Specifically, the test device copies the data file of the partition in which the preset data file is written to other partitions, so that each partition has the preset data file.
[0121] If a copy error occurs in step S16, the copying of the preset data file is stopped, and log information of the file copy failure is output.
[0122] If no copy error occurs in step S13, after completing step S16, log information indicating successful file generation is output.
[0123] In some embodiments, the adapter board is the adapter board 40 described above, and the control unit of the adapter board controls the connection or disconnection between the first connection port and the second connection port. Powering on or off the storage device may specifically include:
[0124] The server sends control instructions to the adapter board through the USB interface, and the adapter board sends the converted control instructions to the control circuit through the USB to serial port module. It can be understood that the communication protocol of the converted control instructions conforms to the serial port communication protocol. The specific communication content is shown in the following table:
[0125]
[0126] The serial communication protocol packet types used are described in the following table:
[0127]
[0128] Furthermore, the control circuit realizes closing or opening of the first switch and / or the second switch according to the obtained serial port communication protocol packet type.
[0129] For example, the instruction content is shown in the following table:
[0130]
[0131] It can be understood that the length of the delay time can be increased or decreased according to actual test needs.
[0132] S2, collecting test data during the power-on or power-off process of the storage device to obtain a test result.
[0133] Specifically, the testing device collects test data of the storage device during a power-on process or a power-off process to obtain a test result.
[0134] In some embodiments, the test data includes information on whether the storage device can be normally identified after being powered on again.
[0135] In some embodiments, the test data includes MD5 information before the storage device is powered off and MD5 information after it is powered on. The test result includes information on whether the MD5 is consistent.
[0136] In some embodiments, the test data includes smart information before the storage device is powered off and after it is powered on. The test result includes any one or more of whether the smart is normal, no new abnormal records are added, and speed negotiation is normal.
[0137] In the above solution, the adapter board includes a first connection port electrically connected to the communication port of the server, a second connection port electrically connected to the communication port of the storage device, and a control circuit connected between the first connection port and the second connection port. The control circuit is used to control the conduction or cutoff between the first connection port and the second connection port, so that the server can perform power-on and power-off tests on the storage device coupled to the adapter board separately, further improving the flexibility of the test.
[0138] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Equivalent structures or equivalent process changes made by utilizing the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. An adapter board for a storage device, characterized in that: In the test scenario of the storage device, the adapter board includes: A first connection port, wherein the first connection port is used to electrically connect to a communication port of a server; a second connection port, the second connection port being used to be electrically connected to a communication port of the storage device; The control circuit is connected between the first connection port and the second connection port, and is used to control the conduction or cutoff between the first connection port and the second connection port, so as to implement the power-on and power-off test of the storage device by the server.
2. The adapter plate according to claim 1, characterized in that: The control circuit includes a switch unit, a first passage end of the switch unit is coupled to the first connection port, and a second passage end of the switch unit is coupled to the second connection port, for controlling conduction or cutoff between the first connection port and the second connection port.
3. The adapter plate according to claim 2, characterized in that: The first connection port includes a first power supply port and a second power supply port; The second connection port includes a third power supply port and a fourth power supply port; The switch unit includes a first switch and a second switch; The first power supply port and the third power supply port are connected or cut off by the first switch; the second power supply port and the fourth power supply port are connected or cut off by the second switch; the supply voltage between the first power supply port and the third power supply port is different from the supply voltage between the second power supply port and the fourth power supply port.
4. The adapter plate according to claim 3, characterized in that: The control circuit further includes a control unit, which is connected to the control ends of the first switch and the second switch respectively and is used to control the first switch and / or the second switch to be turned on or off.
5. The adapter plate according to claim 4, characterized in that: The adapter board also includes a communication interface, which is coupled to the control unit and is used to transmit a control instruction sent by an external test device to the control unit, so that the control unit controls the first switch and / or the second switch to be turned on or off.
6. The adapter plate according to claim 1, characterized in that: The number of the second connection ports is at least two, and the at least two second connection ports are configured to be coupled to at least two storage devices of different interface types.
7. A testing device, characterized in that: The test equipment comprises: a server and an adapter board, wherein the adapter board is the adapter board according to any one of claims 1 to 6; When the storage device is tested, the first connection port of the adapter board is plugged into the slot of the server, and the second connection port of the adapter board is electrically connected to the communication port of the storage device; The server controls the control circuit of the adapter board so that the control circuit controls the conduction or cutoff between the first connection port and the second connection port, thereby realizing the power-on and power-off test of the storage device by the server.
8. The testing device according to claim 7, characterized in that The slot is provided with a slot dividing strip, and the distance between the first connection port and the second connection port of the adapter board is greater than the length of the slot dividing strip in the insertion direction of the adapter board into the slot.
9. The testing device according to claim 7, characterized in that The adapter board also includes a communication interface, which couples the control unit and the server and is used to transmit the control instructions sent by the server to the control unit so that the control unit controls the conduction or cutoff between the first connection port and the second connection port.
10. A testing method, characterized in that: The testing method is applied to a server. When testing a storage device, the server is communicatively connected to the storage device via an adapter board, and the adapter board is the adapter board according to any one of claims 1 to 6. The method comprises: In response to the server being coupled to the adapter board, a control instruction is sent to the adapter board, so that the control unit of the adapter board controls the connection or disconnection between the first connection port and the second connection port, and powers on or off the storage device; Collect test data during the power-on or power-off process of the storage device to obtain test results.