Test device, method and storage medium for a hard disk
Patent Information
- Application Number
- CN202211300972.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-24
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2042-10-24
AI Technical Summary
[0003]然而,将多个测试硬盘放入硬盘测试装置的耗时较长;在显示屏中显示存在故障硬盘时,需要操作人员在多个测试硬盘中查找对应的故障硬盘,因为测试硬盘数量众多,也存在耗时较长的问题
[0043]The hard drive testing device disclosed in this application includes a housing, inside which are a test host, a controller, a hard drive status indicator matrix, and cables. The controller and the hard drive status indicator matrix are connected via cables. The housing has multiple test bays. The test host does not need to wait for all test hard drives to be inserted into the test bays; instead, it can call the test program to test the test hard drive in any test bay as soon as it detects that a test hard drive has been inserted into the backplane connector corresponding to that test bay. This achieves plug-and-play testing, effectively improving testing efficiency. Furthermore, the controller can transmit a light signal carrying the test status information of the test hard drive in the target test bay to the hard drive status indicator matrix. The hard drive status indicator matrix can control the hard drive status indicator lights next to the target test bay to emit light of a color matching the test status information based on the received light signal. Thus, operators can quickly and accurately locate faulty hard drives based on the light emitted by each hard drive status indicator light.
Smart Images

Figure CN115827339B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of hard disk testing technology, and in particular to a hard disk testing apparatus, method and storage medium. Background Technology
[0002] Hard drive testing refers to the quality inspection of hard drives. In order to improve the efficiency of hard drive testing, hard drive testing devices in related technologies can test hard drives in batches. Specifically, multiple test hard drives are placed into the hard drive testing device and then tested on multiple test hard drives at the same time. In addition, the display screen of the hard drive testing device can display the test status of each test hard drive.
[0003] However, placing multiple test hard drives into the hard drive testing device is time-consuming; when a faulty hard drive is displayed on the screen, the operator needs to locate the corresponding faulty hard drive among the multiple test hard drives, which also takes a considerable amount of time due to the large number of test hard drives. Therefore, both placing the test hard drives and locating the faulty hard drives require a significant amount of time, resulting in low efficiency in hard drive testing. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this application provides a testing apparatus, method, and storage medium for a hard disk. The technical solution of this application is as follows:
[0005] According to a first aspect of the embodiments of this application, a hard disk testing device is provided, including a housing, wherein the housing is provided with a test host, a controller, a hard disk status indicator matrix, and cables, the controller and the hard disk status indicator matrix are connected through the cables, and the housing has multiple test bays;
[0006] The inner side of the test compartment is provided with multiple hard drive backplates. Each hard drive backplate is equipped with at least one backplate socket that matches the test hard drive plug. Each test compartment corresponds to one backplate socket, and the backplate socket is used to insert the test hard drive in the corresponding test compartment.
[0007] The test host and the hard drive backplane are connected by the cable. When the test host detects that the test hard drive is inserted into the backplane socket corresponding to any of the test bays, it calls the test program through the cable to test the test hard drive in the test bay.
[0008] The test host and the controller are connected by the cable, and the test host transmits the test status information of the test hard disk to the controller through the cable;
[0009] The controller transmits a light-emitting signal to the hard disk status indicator matrix via the cable, and the light-emitting signal carries the test status information of the test hard disk in the target test compartment;
[0010] The hard drive status indicator matrix includes multiple hard drive status indicators, each of which is located next to the corresponding test bay. The hard drive status indicator matrix controls the hard drive status indicator next to the target test bay to emit light of a color that matches the test status information according to the light emission signal.
[0011] Optionally, the hard disk status indicator matrix further includes multiple digital signal controllers, each of which controls a portion of the hard disk status indicator lights;
[0012] The controller transmits light signals to the hard disk status indicator matrix via the cable, including:
[0013] The controller transmits the light-emitting signal to the target digital quantity controller via the cable. The target digital quantity controller is a digital quantity controller that controls the hard drive status indicator light next to the target test compartment.
[0014] Optionally, the enclosure is provided with a fan wall, the controller and the fan wall are connected by the cable, and the controller and the test host are connected by the cable;
[0015] The controller obtains the number of test hard drives currently being tested from the test host via the cable;
[0016] The controller controls the fan speed of the fan wall via the cable based on the number of test hard drives currently being tested.
[0017] Optionally, the width of the test bay is equal to the width of the test hard drive, and the length of the test bay is greater than or equal to the length of the test hard drive.
[0018] Optionally, the housing is equipped with a display screen, and the display screen and the test host are connected via the cable;
[0019] The display screen shows the test content and test progress of the test hard drive transmitted by the test host through the cable.
[0020] According to a second aspect of the embodiments of this application, a method for testing a hard disk is provided, comprising:
[0021] The system listens for the test request signal generated when a test hard drive is inserted into the backplane port corresponding to any test bay, obtains the number of the test bay, and calls the test program to test the test hard drive.
[0022] Based on the test bay number and the test status of the test hard drive, a light-emitting signal carrying the number information and test status information is generated;
[0023] Based on the light emission signal, the target hard drive status indicator light next to the test bay corresponding to the number is controlled to emit light of a color that matches the test status information.
[0024] Optionally, the step of listening to the test request signal generated when a test hard drive is inserted into the backplane connector corresponding to any test bay, and obtaining the number of the test bay, includes:
[0025] Listen to the test request signal generated when the test hard drive is inserted into the backplane connector corresponding to any test bay, and obtain the SLOT number of the hard drive backplane where the backplane connector is located;
[0026] The test bay number is determined based on the correspondence between the SLOT number of the hard drive backplane and the test bay number.
[0027] The step of controlling the target hard drive status indicator light next to the test bay corresponding to the number to emit light of a color matching the test status information, based on the luminous signal, includes:
[0028] Based on the numbering information carried by the luminous signal, determine the target digital controller that controls the target hard disk status indicator light;
[0029] The light emission signal is sent to the target digital quantity controller to obtain light of a color that matches the test status information emitted by the target hard disk status indicator. The light emission signal is used to instruct the target digital quantity controller to emit a target digital quantity signal, and the target digital quantity signal is used to control the target hard disk status indicator to emit light of a color that matches the test status information.
[0030] Optionally, the test status information includes: test in progress, test failure, and test passed;
[0031] Sending the luminous signal to the target digital signal controller to obtain light of a color matching the test status information emitted by the target hard disk status indicator includes:
[0032] When the test status information is "under test", the light emission signal is sent to the target digital quantity controller, and the target hard disk status indicator emits light of a first color according to the first digital quantity signal sent by the target digital quantity controller. The first color light indicates that the test status of the test hard disk is "under test".
[0033] When the test status information indicates a test failure, the light emission signal is sent to the target digital quantity controller, and the target hard disk status indicator emits light of a second color according to the second digital quantity signal sent by the target digital quantity controller. The second color light indicates that the test status of the test hard disk is a test failure.
[0034] When the test status information indicates that the test has passed, the light emission signal is sent to the target digital signal controller, and the target hard disk status indicator emits a third color of light based on the first digital signal and the second digital signal simultaneously sent by the target digital signal controller. The third color of light indicates that the test status of the test hard disk is that the test is completed.
[0035] Optionally, it also includes:
[0036] Based on the number of test hard drives being tested at the same time, a rotation speed command matching the number is generated, wherein the rotation speed information indicated by the rotation speed command is proportional to the number;
[0037] The fan speed of the fan wall is controlled according to the speed command.
[0038] Optionally, it also includes:
[0039] Obtain the test content and test progress of the test hard drive;
[0040] A display instruction is generated based on the test content and test progress of the test hard drive, and the display instruction is sent to the display screen. The display instruction is used to instruct the display screen to display the test content and test progress of the test hard drive.
[0041] According to a third aspect of the embodiments of this application, a non-volatile readable storage medium is provided, which, when the instructions in the non-volatile readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform a hard disk testing method as described in the first aspect.
[0042] The technical solutions provided in this application embodiment may include the following beneficial effects:
[0043] The hard drive testing device disclosed in this application includes a housing, inside which are a test host, a controller, a hard drive status indicator matrix, and cables. The controller and the hard drive status indicator matrix are connected via cables. The housing has multiple test bays. The test host does not need to wait for all test hard drives to be inserted into the test bays; instead, it can call the test program to test the test hard drive in any test bay as soon as it detects that a test hard drive has been inserted into the backplane connector corresponding to that test bay. This achieves plug-and-play testing, effectively improving testing efficiency. Furthermore, the controller can transmit a light signal carrying the test status information of the test hard drive in the target test bay to the hard drive status indicator matrix. The hard drive status indicator matrix can control the hard drive status indicator lights next to the target test bay to emit light of a color matching the test status information based on the received light signal. Thus, operators can quickly and accurately locate faulty hard drives based on the light emitted by each hard drive status indicator light.
[0044] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0045] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0046] Figure 1 This is a schematic diagram of the overall structure of the hard disk testing device according to an embodiment of this application;
[0047] Figure 2 This is a schematic diagram of the fan wall structure according to an embodiment of this application;
[0048] Figure 3 This is a control block diagram of the hard disk testing device in the embodiments of this application;
[0049] Figure 4 This is a flowchart illustrating a hard disk testing method according to an embodiment of this application;
[0050] Figure 5 This is a matrix distribution diagram of hard disk status indicator lights according to an embodiment of this application;
[0051] Figure 6 This is a schematic diagram of the lighting process according to an embodiment of this application;
[0052] Figure 7 This is a flowchart illustrating the hard disk testing method according to an embodiment of this application. Detailed Implementation
[0053] To enable those skilled in the art to better understand the technical solutions of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0054] When purchasing finished hard drives and warehousing them, quality testing is required. Test hard drives are those undergoing testing. Using relevant hard drive testing equipment, multiple test hard drives are placed into several sliding drawers within the testing unit. After all test hard drives are in place, the operator activates a cylinder, which moves the drawers to insert the test hard drives into the test slots. The testing unit's host then executes a testing program to test the multiple hard drives. The operator can interact with the display screen to see the test status of the hard drives. When a faulty hard drive is detected on the screen, the operator must locate it among the test hard drives. The placement of test hard drives and the location of faulty drives are time-consuming; therefore, the operation of the display screen requires a high level of technical skill, necessitating proficiency in operating systems and software.
[0055] Figure 1 This is a schematic diagram of the overall structure of the hard disk testing device according to an embodiment of this application. The hard disk testing device includes a housing, inside which are housed a test host, a controller, a hard disk status indicator matrix, and cables. The controller and the hard disk status indicator matrix are connected via cables. Multiple test bays are provided on the housing.
[0056] Related hard drive testing devices can test up to 48 hard drives simultaneously. The hard drive testing device in this application embodiment can include 96 test bays, enabling simultaneous testing of up to 96 hard drives. The test bays are compatible with both 2.5-inch and 3.5-inch hard drives.
[0057] The cable comprises multiple segments, each potentially connecting to different modules. One segment might connect the controller and the hard drive status indicator matrix, another might connect the test host and the hard drive backplane, and yet another might connect the test host and the controller; these are not listed here. In this embodiment, the transmission of various signals, commands, and other information can be achieved via cables.
[0058] A hard drive backplane is a circuit board used to connect hard drives. It supports the connection between the motherboard and the storage device, and provides a framework for power and data signal transmission to the motherboard. Multiple hard drive backplanes can be located inside the test bay. Each backplane can have at least one backplane connector that matches the test hard drive connector. Each test bay corresponds to one backplane connector, which is used to insert the corresponding test hard drive. The test bay can act as an entry point and track; when the test hard drive is fully inserted, it can be inserted into the backplane connector located inside the test bay.
[0059] The test host and the hard drive backplane are connected via a cable. Once the test host detects a test hard drive inserted into the backplane connector of any test bay, it independently invokes its stored test program to test the hard drive in that bay. The test host immediately begins testing the test hard drive upon detection, enabling plug-and-play testing without waiting for other hard drives to be inserted, thus saving time and improving efficiency.
[0060] The test host and controller are connected via a cable, and the test host transmits the test status information of the test hard drive to the controller through the cable. The test host can communicate with the controller via a SOCKET (a protocol-independent network programming interface). The test status information is used to characterize the test status of the test hard drive, which can include: test in progress, test failed, and test passed. Test passed means that the test is complete and the test hard drive has no faults.
[0061] When the controller receives test status information from any test hard drive, it generates an illuminated signal for that test hard drive based on the test status information. Optionally, any test hard drive is a test hard drive inserted into the backplane slot corresponding to the target test bay. The controller generates an illuminated signal for the test hard drive in the target test bay based on the test status information of the test hard drive in the target test bay. This illuminated signal carries the test status information of the test hard drive in the target test bay. The controller can transmit this illuminated signal to the hard drive status indicator matrix via a cable.
[0062] The controller can be a PLC (Programmable Logic Controller) or other controllers. A PLC is a digital electronic system specifically designed for industrial applications. It uses a programmable memory to store instructions for performing logical operations, sequential control, timing, counting, and arithmetic operations, and controls various types of mechanical equipment or production processes through digital or analog inputs and outputs.
[0063] The hard drive status indicator matrix includes multiple hard drive status indicators, each positioned next to its corresponding test bay. A through-hole can be provided next to each test bay to allow cables connecting to the hard drive status indicators to pass through and connect to the indicator lights. The hard drive status indicators can be small tri-color LEDs (light-emitting diodes), powered by 24V DC and controlled by two digital signals. When powered individually by the two digital signals, the LED emits red or green light respectively; when powered simultaneously by both signals, the LED emits yellow light. Optionally, depending on the specific requirements, the hard drive status indicators can be configured to emit different colors of light, each color corresponding to a different test state. Digital signals refer to discrete digital signals in both time and quantity.
[0064] The number of colors that the hard drive status indicator light can emit corresponds to the number of different test states of the hard drive. If the hard drive has more than three test states, more digital signals can be used to control the colors emitted by the hard drive status indicator light.
[0065] The hard drive status indicator matrix controls the hard drive status indicator lights next to the target test bay to emit light of a color that matches the test status information, based on the received light signal carrying the test status information of the test hard drive in the target test bay.
[0066] The different colors of light emitted by the hard drive status indicator lights can determine the test status of the corresponding test hard drive and help operators quickly and easily locate the faulty test hard drive. This avoids the time-consuming and technically demanding problem of operators having to search for the corresponding faulty hard drive among multiple test hard drives when a faulty hard drive is displayed on the screen.
[0067] In this way, the test host does not need to wait for all test hard drives to be inserted into the test bays. Instead, it can launch the test program to test the test hard drive in any test bay as soon as it detects that a test hard drive has been inserted into the backplane connector corresponding to that test bay. This achieves plug-and-play testing of the test hard drives, which can effectively improve testing efficiency. Operators can quickly and accurately obtain the test status of the test hard drives and locate faulty hard drives by observing the lights emitted by each hard drive's status indicator.
[0068] Optionally, the hard disk status indicator matrix may include multiple digital controllers, each of which can control a portion of the hard disk status indicators, and the multiple digital controllers can collectively control all the hard disk status indicators included in the hard disk status indicator matrix.
[0069] Optionally, the digital output controller can be a 32-channel digital output controller. A 32-channel digital output controller can output 32 digital signals and communicate with the controller via MODBUS TCP (a communication protocol). If the hard drive status indicator can emit three colors of light, then controlling one hard drive status indicator requires two digital signals. Therefore, one 32-channel digital output controller can control 16 hard drive status indicator lights. If there are a total of 96 test bays, then six 32-channel digital output controllers are needed for control.
[0070] The controller transmits the luminous signal to the hard drive status indicator matrix via cable. Alternatively, the luminous signal can be transmitted to a digital signal controller (DSP). The DSP determines how many digital signals to output based on the test status information carried in the luminous signal, thereby controlling the corresponding hard drive status indicator to illuminate. When the luminous signal corresponds to a target test bay, it can be transmitted to a target DSP. The target DSP determines the output digital signal based on the test status information carried in the luminous signal, thereby controlling the hard drive status indicator next to the target test bay to illuminate. The target DSP is the digital signal controller that controls the hard drive status indicator next to the target test bay.
[0071] In this way, by outputting different digital signals, the digital controller can determine the output digital signal based on the test status information corresponding to the light-emitting signal, thereby controlling the corresponding hard drive status indicator to emit light of a color that matches the test status information, so as to indicate the test status of the test hard drive and help the operator to easily and quickly determine the location of the faulty test hard drive.
[0072] Hard drive stress testing generates significant heat, which can pose a risk to the testing equipment. Therefore, a fan wall can be installed to cool the testing setup. The fan wall operating at full capacity ensures adequate cooling for the testing equipment under full load. However, operating the fan wall at full capacity even when testing a small number of hard drives results in wasted airflow. Therefore, the fan wall's speed can be controlled via a controller.
[0073] The fan wall is housed within the enclosure, possibly at the rear. It connects to the controller via cables, and the controller, in turn, connects to the test host via cables. The test host obtains information about the number of hard drives being tested simultaneously and transmits this information to the controller, which then retrieves the number of hard drives currently being tested from the test host via cables. Based on the number of hard drives being tested, the controller determines the appropriate fan speed; the number of hard drives and the fan speed are directly proportional. After determining the fan speed, the controller can control the fan wall's fan speed via cables.
[0074] Figure 2 This is a schematic diagram of the fan wall structure according to an embodiment of this application. The fan wall can be composed of 4 rows and 4 columns of axial fans. The fan speed can be controlled by the PWM (Pulse Width Modulation) output of the PLC. The PLC automatically adjusts the fan speed according to the number of hard drives being tested.
[0075] In this way, the fan wall can solve the heat dissipation requirements of the hard drive testing device when it is working at full load, save energy, and avoid working at full capacity when testing a small number of hard drives.
[0076] The test hard drives, sourced from different manufacturers, come in both 2.5-inch and 3.5-inch sizes. While the width difference is minor, the length can vary by as much as 2mm. Automated insertion is difficult to achieve with related technologies, easily leading to poor contact and affecting test results and efficiency. Using cylinders to drive multiple sliding drawers to insert the test hard drives into the test sockets requires a pneumatic power source, resulting in a large footprint.
[0077] In this embodiment, the width of the test bay is equal to the width of the test hard drive, and the length of the test bay is greater than or equal to the length of each test hard drive. This ensures that while there may be some slack on the side of the test bay furthest from the back panel connector when inserting a smaller test hard drive, it guarantees that inserting a larger test hard drive will not cause problems. Thus, the test bay is compatible with various test hard drive sizes.
[0078] The test hard drive can be inserted manually, as the test bay acts like a rail, making insertion convenient. Furthermore, manual insertion avoids technical problems such as poor contact that can occur with automatic insertion.
[0079] Therefore, the test bays in this embodiment of the application can be compatible with test hard drives of various specifications and avoid technical problems such as poor contact.
[0080] Optionally, a display screen can also be installed inside the enclosure, connected to the test host via a cable. The display screen can be used to display the test content and test progress of the test hard drive. The test content and test progress displayed on the screen can be transmitted from the test host to the display screen via the cable. Optionally, the display screen can also display other information that needs to be displayed.
[0081] The display screen helps operators determine the test content and progress of the hard drive. Combined with the display screen and the hard drive status indicator matrix, more accurate test information can be obtained.
[0082] Figure 3 This is a control block diagram of the hard drive testing device in this embodiment of the application. It includes eight 12-port hard drive backplanes, which communicate with the test host via serial SCSI (Small Computer System Interface). The controller is a PLC control system, which communicates with the test host via a socket. The PLC control system's PWM output controls the fan wall, and it communicates with multiple 32-channel digital input controllers via MODBUS TCP. Each 32-channel digital input controller can control multiple tri-color LEDs based on digital signals.
[0083] This application also provides a method for testing a hard disk. Figure 4 This is a flowchart illustrating a hard disk testing method according to an embodiment of this application, such as... Figure 4 As shown, this hard drive testing method can be applied to the hard drive testing apparatus described above, or other electronic devices. The hard drive testing method may include the following steps:
[0084] In step S11, a test request signal is detected when a test hard drive is inserted into the backplane port corresponding to any test bay. The number of the test bay is obtained, and the test program is called to test the test hard drive.
[0085] A backplate connector is a connector on the hard drive backplate that matches the connector for the test hard drive. The hard drive backplate can be located inside the test bay, with one backplate connector for each test bay. The backplate connector is used to insert the test hard drive into the corresponding test bay.
[0086] When a test hard drive is inserted into the backplane connector corresponding to the test bay, a test request signal is generated. Upon receiving the test request signal, the tester can obtain the test bay number and immediately call a separate test program for that test hard drive to perform the test.
[0087] When the test host detects a test request signal generated when a test hard drive is inserted into the backplane connector corresponding to any test bay, it immediately starts testing the test hard drive, realizing plug-and-play testing of the test hard drive without waiting for other test hard drives to be inserted. This saves time and improves efficiency.
[0088] In step S12, a light-emitting signal carrying the number and test status information is generated based on the test bay number and the test status of the test hard disk.
[0089] Testing the test hard drive allows you to obtain its test status. Based on the obtained test bay number and the test status, a light signal carrying the number and test status information can be generated. The number represents the test bay number, and the test status information represents the test status of the hard drive. The test bay numbers are pre-assigned. The test status of the hard drive can include: testing in progress, test failure, and test passed.
[0090] In step S13, based on the light emission signal, the target hard drive status indicator light next to the test bay corresponding to the number is controlled to emit light of a color that matches the test status information.
[0091] Each hard drive status indicator light is located next to its corresponding test bay. The emitted light signal is transmitted to the controller, which then controls the target hard drive status indicator light next to the corresponding test bay to emit light of a color matching the test status information carried by the emitted light signal. Therefore, the test status of the hard drive in the test bay can be determined based on the color of the light emitted by the hard drive status indicator light next to the test bay.
[0092] For example, red indicates a test failure, yellow indicates a test is in progress, and green indicates a test is passed. Therefore, if a hard drive status indicator light emits red light, it means the test hard drive in the test bay next to that indicator light is in a test failure state. This allows operators to quickly determine the status of the test hard drives and locate the faulty hard drive. A faulty hard drive is a test hard drive whose test status is "test failure".
[0093] In this way, the test host does not need to wait for all test hard drives to be inserted into the test bays. Instead, it can immediately invoke the test program to test the test hard drive in any test bay upon receiving a test request signal generated when a test hard drive is inserted into the backplane connector corresponding to that test bay. This achieves plug-and-play testing of the test hard drives, effectively improving testing efficiency. Operators can quickly and accurately obtain the test status of the test hard drives and locate faulty hard drives by observing the different colors emitted by the status indicator lights of each hard drive.
[0094] Optionally, based on the above technical solution, the test bay number can be obtained by the following method: obtaining the SLOT (extension slot) number of the hard drive backplane where the backplane connector is located; determining the test bay number according to the correspondence between the hard drive backplane SLOT number and the test bay number.
[0095] The SLOT number on the hard drive backplane is pre-existing on the backplane itself and is assigned to each test bay. During installation, the SLOT number of the hard drive backplane corresponding to each test bay is obtained, thus establishing a correspondence between the hard drive backplane SLOT numbers and the test bay numbers. When it is necessary to determine the test bay number where the test hard drive is located, the correspondence between the hard drive backplane SLOT number and the test bay number can be looked up to determine the test bay number.
[0096] When the target hard drive status indicator light next to the test compartment corresponding to the control signal emits light of a color that matches the test status information, the target digital controller controlling the target hard drive status indicator light can be determined based on the number information carried by the light signal.
[0097] The target digital input controller is one of multiple digital input controllers. Each digital input controller can control a portion of the hard drive status indicator lights, and the multiple digital input controllers can collectively control all the hard drive status indicator lights included in the hard drive status indicator light matrix. The digital input controller can be a 32-channel digital output controller, which can output 32 digital signals. One 32-channel digital output controller can control 16 hard drive status indicator lights. If there are a total of 96 test bays, then six 32-channel digital output controllers are needed for control.
[0098] The luminous signal is used to instruct the target digital signal controller to send a target digital signal. This target digital signal then controls the target hard drive status indicator light to emit light of a color matching the test status information. By sending the luminous signal to the target digital signal controller, the controller determines how many digital signals to output based on the test status information carried in the luminous signal, thereby controlling the hard drive status indicator light next to the target test bay to illuminate.
[0099] Figure 5 This is a matrix distribution diagram of hard drive status indicator lights according to an embodiment of this application. There are a total of 96 hard drive status indicator lights, each corresponding to one test bay. The distribution diagram is a 16x6 matrix based on the arrangement order of the hard drive status indicator lights. Each hard drive status indicator light requires two digital signals to control the display of red, yellow, and green. The two digital signals correspond to red and green respectively, and when both digital signals are powered simultaneously, the color is combined to form yellow. Each column of 16 hard drive status indicator lights requires one 32-point digital signal controller, so the 96 hard drive status indicator lights are controlled by six 32-point digital signal controllers. Because the test bays are arranged sequentially from horizontal to vertical, the lights in each column differ by 6.
[0100] Figure 6This is a schematic diagram of the lighting process according to an embodiment of this application. The test host can directly send the lighting number and color number. The lighting number can be the test bay number, which is the same as the number of the adjacent hard drive status indicator light. The color number can represent test status information. Taking the first row of each column as the initial value, subtracting the initial value of each column from the lighting numbers in the range of 1 to 96 sent by the test host yields the interval {0, 6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90}, corresponding to lights 1-16 in each column. For example, when the test host sends the light signal 46, subtracting the initial value of each column from 46 yields values of 45, 44, 43, 42, 41, and 40. By searching, it is found that 42 is a value within the above range. 42 is the light signal from the test host minus the initial value of the fourth column, which is the 8th row of lights in the range. Therefore, it corresponds to the 8th point of the digital quantity controller in the fourth column. The PLC transmits this information to the fourth digital quantity controller via communication to control the color of the 8th point.
[0101] In this way, the test bay number can be determined based on the correspondence between the SLOT number on the hard drive backplane and the test bay number, and then the target digital input controller corresponding to that test bay number can be identified. The target digital input controller can determine the output digital signal based on the number information carried by the light signal and the test status information carried by the light signal, and then control the corresponding hard drive status indicator to emit light of a color that matches the test status information.
[0102] Optionally, based on the above technical solution, the test status information includes: test in progress, test failure, and test passed. A light signal is sent to the target digital signal controller to obtain a light of a color from the target hard drive status indicator that matches the test status information, including the following three cases:
[0103] When the test status information is "under test", a light-emitting signal is sent to the target digital controller, and the target hard disk status indicator emits light of the first color according to the first digital signal sent by the target digital controller. The first color light indicates that the test status of the test hard disk is "under test".
[0104] When the test status information indicates a test failure, a light signal is sent to the target digital controller, and the target hard disk status indicator emits a second color of light according to the second digital signal sent by the target digital controller. The second color of light indicates that the test status of the test hard disk is a test failure.
[0105] If the test status information indicates that the test has passed, a light signal is sent to the target digital signal controller. The target hard drive status indicator emits a third color of light based on the first and second digital signals simultaneously sent by the target digital signal controller. The third color of light indicates that the test status of the test hard drive is that the test is completed.
[0106] Optionally, the first, second, and third colors can be different from each other. Specifically, the test status corresponding to each color can be set according to actual needs.
[0107] For a single test of a test hard drive, the test status information may first show "Testing" and then "Test Passed". In this case, the color of the light emitted by the hard drive status indicator light corresponding to the test hard drive will also change accordingly.
[0108] In this way, the test status of the test hard drive can be determined by the different colors of light emitted by the hard drive status indicator, and the location of the faulty test hard drive can be easily and quickly determined by the operator, effectively improving the test efficiency.
[0109] Optionally, based on the above technical solution, a large amount of heat is generated during hard drive stress testing, which can easily pose a risk to the hard drive testing device. Therefore, a fan wall can be installed to cool the hard drive testing device. The fan wall operating at full capacity can ensure the cooling requirements of the hard drive testing device under full load. However, if the fan wall operates at full capacity even when testing a small number of hard drives, there is a waste of airflow. Therefore, the fan wall speed can be controlled by a controller.
[0110] The test host can obtain information on the number of test hard drives being tested simultaneously and transmit this information to the controller. Based on the number of test hard drives being tested at the same time, the controller generates a speed command that matches that number. This speed command instructs the fan wall to rotate at a specific speed. The speed indicated by the speed command is proportional to the number of test hard drives being tested simultaneously. The controller then controls the fan wall's speed according to this speed command.
[0111] In this way, the heat dissipation requirements of the hard drive testing device under full load can be solved, and energy can be saved, avoiding the energy waste caused by the fan wall working at full capacity when testing a small number of hard drives.
[0112] Optionally, based on the above technical solution, when the operator needs to view the test content and test progress of the test hard drive being tested, the test content and test progress can be obtained through the test host. The display screen is connected to the test host via a cable.
[0113] The test host generates a display command based on the test content and progress of the test hard drive being tested. This display command carries the test content and progress of the test hard drive being tested. The display command is then sent to the display screen, which can then display the test content and progress of the test hard drive being tested according to the command. The display command instructs the display screen to show the test content and progress of the test hard drive it carries.
[0114] The display screen helps operators determine the testing content and progress of the hard drive. Combined with the display screen and hard drive status indicator lights, it provides operators with more and more accurate testing information. Furthermore, the information provided by the display screen and the hard drive status indicator lights can be cross-verified.
[0115] Figure 7 This is a flowchart illustrating the hard drive testing method according to an embodiment of this application. First, the SLOT number on the hard drive backplane is identified. When a test hard drive is inserted, the test program is invoked to test the hard drive. The test is then checked to determine if it is complete. If not, communication with the controller is established, and the corresponding hard drive status indicator light is controlled to illuminate yellow. Upon completion of the test, it is determined whether the test passed. If the test passed, indicating a test success status, the corresponding hard drive status indicator light illuminates green. If the test failed, indicating a test failure status, the corresponding hard drive status indicator light illuminates red.
[0116] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.
[0117] This application also provides a non-volatile readable storage medium, which, when the instructions in the non-volatile readable storage medium are executed by the processor of an electronic device, enables the electronic device to perform the steps in the hard disk testing method disclosed in this application.
[0118] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0119] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0120] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, electronic devices, and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0121] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0122] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0123] Although some embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make further changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0124] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0125] The above provides a detailed description of the hard disk testing apparatus, method, and storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A testing device for a hard disk, characterized in that, The device includes a housing, which contains a test host, a controller, a hard disk status indicator matrix, and cables. The controller and the hard disk status indicator matrix are connected via the cables. The housing has multiple test bays. The inner side of the test compartment is provided with multiple hard drive backplates. Each hard drive backplate is equipped with at least one backplate socket that matches the test hard drive plug. Each test compartment corresponds to one backplate socket, and the backplate socket is used to insert the test hard drive in the corresponding test compartment. The test host and the hard drive backplane are connected by the cable. When the test host detects that the test hard drive is inserted into the backplane socket corresponding to any of the test bays, it calls the test program through the cable to test the test hard drive in the test bay. The test host and the controller are connected by the cable, and the test host transmits the test status information of the test hard disk to the controller through the cable; The controller transmits a light-emitting signal to the hard disk status indicator matrix via the cable, and the light-emitting signal carries the test status information of the test hard disk in the target test compartment; The hard drive status indicator matrix includes multiple hard drive status indicators, each of which is located next to the corresponding test bay. The hard drive status indicator matrix controls the hard drive status indicator next to the target test bay to emit light of a color that matches the test status information according to the light emission signal. The hard disk status indicator matrix further includes multiple digital signal controllers, each of which controls a portion of the hard disk status indicator lights. The controller transmits light signals to the hard disk status indicator matrix via the cable, including: The controller transmits the light-emitting signal to the target digital quantity controller via the cable. The target digital quantity controller is a digital quantity controller that controls the hard drive status indicator light next to the target test compartment. Specifically, the controller is used to: listen to a test request signal generated when a test hard drive is inserted into the backplane slot corresponding to any test bay; obtain the SLOT number of the hard drive backplane where the backplane slot is located; determine the number of the test bay based on the correspondence between the SLOT number of the hard drive backplane and the number of the test bay; and Based on the number information carried by the luminous signal, a target digital quantity controller for controlling the target hard disk status indicator is determined; the luminous signal is sent to the target digital quantity controller to obtain light of a color that matches the test status information emitted by the target hard disk status indicator, wherein the luminous signal is used to instruct the target digital quantity controller to emit a target digital quantity signal, and the target digital quantity signal is used to control the target hard disk status indicator to emit light of a color that matches the test status information.
2. The apparatus according to claim 1, characterized in that, The enclosure contains a fan wall, the controller and the fan wall are connected by the cable, and the controller and the test host are connected by the cable. The controller obtains the number of test hard drives currently being tested from the test host via the cable; The controller controls the fan speed of the fan wall via the cable based on the number of test hard drives currently being tested.
3. The apparatus according to claim 1, characterized in that, The width of the test bay is equal to the width of the test hard drive, and the length of the test bay is greater than or equal to the length of the test hard drive.
4. The apparatus according to claim 1, characterized in that, The enclosure contains a display screen, which is connected to the test host via the cable. The display screen shows the test content and test progress of the test hard drive transmitted by the test host through the cable.
5. A method for testing a hard disk, characterized in that, include: The system listens for the test request signal generated when a test hard drive is inserted into the backplane port corresponding to any test bay, obtains the number of the test bay, and calls the test program to test the test hard drive. Based on the test bay number and the test status of the test hard drive, a light-emitting signal carrying the number information and test status information is generated; Based on the light emission signal, control the target hard drive status indicator light next to the test bay corresponding to the number to emit light of a color that matches the test status information; The step of listening to the test request signal generated when a test hard drive is inserted into the backplane port corresponding to any test bay, and obtaining the number of the test bay, includes: Listen to the test request signal generated when the test hard drive is inserted into the backplane connector corresponding to any test bay, and obtain the SLOT number of the hard drive backplane where the backplane connector is located; The test bay number is determined based on the correspondence between the SLOT number of the hard drive backplane and the test bay number. The step of controlling the target hard drive status indicator light next to the test bay corresponding to the number to emit light of a color matching the test status information, based on the luminous signal, includes: Based on the numbering information carried by the luminous signal, determine the target digital controller that controls the target hard disk status indicator light; The light emission signal is sent to the target digital quantity controller to obtain light of a color that matches the test status information emitted by the target hard disk status indicator. The light emission signal is used to instruct the target digital quantity controller to emit a target digital quantity signal, and the target digital quantity signal is used to control the target hard disk status indicator to emit light of a color that matches the test status information.
6. The method according to claim 5, characterized in that, The test status information includes: test in progress, test failure, test passed; Sending the luminous signal to the target digital signal controller to obtain light of a color matching the test status information emitted by the target hard disk status indicator includes: When the test status information is "under test", the light emission signal is sent to the target digital quantity controller, and the target hard disk status indicator emits light of a first color according to the first digital quantity signal sent by the target digital quantity controller. The first color light indicates that the test status of the test hard disk is "under test". When the test status information indicates a test failure, the light emission signal is sent to the target digital quantity controller, and the target hard disk status indicator emits light of a second color according to the second digital quantity signal sent by the target digital quantity controller. The second color light indicates that the test status of the test hard disk is a test failure. When the test status information indicates that the test has passed, the light emission signal is sent to the target digital signal controller, and the target hard disk status indicator emits a third color of light based on the first digital signal and the second digital signal simultaneously sent by the target digital signal controller. The third color of light indicates that the test status of the test hard disk is that the test is completed.
7. The method according to claim 5, characterized in that, Also includes: Based on the number of test hard drives being tested at the same time, a rotation speed command matching the number is generated, wherein the rotation speed information indicated by the rotation speed command is proportional to the number; The fan speed of the fan wall is controlled according to the speed command.
8. The method according to claim 5, characterized in that, Also includes: Obtain the test content and test progress of the test hard drive; A display instruction is generated based on the test content and test progress of the test hard drive, and the display instruction is sent to the display screen. The display instruction is used to instruct the display screen to display the test content and test progress of the test hard drive.
9. A non-volatile readable storage medium, wherein when instructions in the non-volatile readable storage medium are executed by a processor of an electronic device, the electronic device is able to perform a test method for a hard disk as described in any one of claims 5 to 8.
Citation Information
Patent Citations
Hard disk state indication device control method and device, electronic device and storage medium
CN110895502A
Instant visualization device for batch testing of multi-specification hard disks
CN111243655A