An automatic hard disk testing device and method with multi-channel expansion

By forming a hard disk automatic testing device and method with C/S network structure in a local area network environment, the problems of high cost of batch and automation of hard disks and low degree of automation in the prior art are solved, and low-cost, distributed and batched hard disk testing is realized, which improves testing efficiency and coverage.

CN119851745BActive Publication Date: 2025-06-13NEUMONDA TECHNOLOGY (JINAN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510314827.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2025-06-13
Estimated Expiration
2045-03-18

AI Technical Summary

Technical Problem

The existing technology is difficult to achieve low-cost, distributed, and batch-based SATA hard disk testing, especially in automatic and orderly batch testing and abnormal power-down testing of multiple hard disks.

Method used

A multi-channel extended hard disk automatic testing device and method is designed. A C/S network structure is formed in a local area network environment through a control server and multiple test hosts. The test device is used to realize automatic switching and power-down control of multiple hard disks, reducing the testing cost and improving the degree of automation.

Benefits of technology

Automatic and orderly batch testing of multiple hard disks by a single test host is realized, which reduces the demand for the number of test hosts, improves the degree of automation of hard disk tests, and improves test efficiency and coverage through centralized remote control and test log management system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119851745B_ABST
    Figure CN119851745B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-channel extended hard disk automatic testing device and method, comprising: a control server, a network switch, a test host, and a testing device; the control server is connected to at least one test host through the network switch, each test host is connected to a testing device through a programmable power strip, and the testing device is connected to multiple hard disk devices; the control server can generate test parameters and send them to the test host with network wake-up function, the test host can automatically call the corresponding test script according to the received test parameters, execute the test task on the hard disk, record the test process and results and upload them to the control server; the testing device can realize the automatic switching of multiple hard disks on the same test host interface according to the test parameters; at the same time, the power supply of the test host is controlled through the programmable power strip to generate abnormal power-off test incentives. The present invention can realize the automatic, orderly and batch testing of multiple hard disks by a single test host.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of hard disk quality detection, and particularly to a multi-channel extended hard disk automatic testing device and method. Background Technique

[0002] The statements in this part merely provide background technical information related to the present invention and do not necessarily constitute prior art.

[0003] Data, as the core production factor of the digital economy, plays a strategic role in promoting industrial upgrading, optimizing the economic structure, and creating economic growth points. In terms of data storage, solid-state drives and mechanical hard drives with SATA / SAS / PCIe interfaces are the most widely used data storage carriers and are important cornerstones to ensure the security and reliability of data assets. With the continuous growth of data volume and the improvement of digitalization requirements, the performance and stability of hard disk devices have received more attention. Therefore, how to comprehensively and effectively detect the quality of hard disks and improve the product yield has become one of the core issues concerned by hard disk manufacturers and sellers, and is also an important support in the development of the digital economy.

[0004] Currently, for the batch quality inspection of hard disks, it mainly includes performance testing, identification testing, reliability testing, compatibility testing, etc. Among them, for performance testing, third-party testing tools such as FIO, Crystal DiskMark, and ATTO Disk Benchmark are generally selected to collect transient performance indicators; for identification testing, tools such as HD Tune and Disk info can be used to obtain hard disk information or query system identification information; for reliability testing, tools such as BurnIn Test and FIO are generally used for long-term stress testing or overwrite testing to verify data reliability; compatibility testing refers to constructing abnormal conditions such as exceptions, interruptions, and power failures to test the hard disk.

[0005] However, SATA / SAS / PCIe interface hard disks all use point-to-point communication methods and cannot be expanded through a docking station like USB storage devices to verify in large quantities; the cost of using SATA / SAS RAID cards or PCIe Switch chips is relatively high, and it is difficult to set the host and the specified hard disk to a point-to-point communication method when connecting multiple hard disks. Moreover, some studies have found that using a SATA RAID card reduces the robustness of the storage system and is also harmful to the reliability of the test system.

[0006] At present, there is little research on how to conduct batch and automated power-off tests. The prior art discloses simulating abnormal power-off by controlling the external power-off through a dedicated device such as a (PDU), IP Power, or ULINK Power Hub. This method is costly, and the test object can only be a single hard disk. It does not consider using a SATA / SAS RAID interface for expansion and cannot achieve automatic and orderly batch testing of multiple hard disks on a single host. Another method is to trigger the power-off of the test host by software means such as batch processing and Matrix plugins to call external relays, Power Cycle, and other tools to control the power-off of the hard disk. However, this method does not mention the method of expanding the test of multiple hard disks on a single host and remotely waking up the test host, and the deployment of the software environment and dependent libraries is also relatively complex. Summary of the Invention

[0007] To solve the above problems, the present invention proposes a multi-channel extended hard disk automatic test device and method. A control server is used as the server side, and multiple test hosts are used as the client side to form a C / S network structure in a local area network environment. The test host is connected to the test device, and the test device is connected to multiple hard disks. The control server issues hard disk test parameters to the test host with network wake-up function, and the test host controls the test device through a serial communication interface. The test device automatically switches the hard disks according to the test parameters and generates a power-off control strategy to achieve low-cost, distributed, and batch testing of SATA hard disks.

[0008] In some embodiments, the following technical solutions are adopted:

[0009] A multi-channel extended hard disk automatic test device includes: a control server, a network switch, a test host, and a test device; the control server is connected to at least one test host through the network switch, and each test host is connected to a test device through a programmable power strip, and the test device is connected to multiple hard disk devices;

[0010] The control server can generate test parameters and issue them to the test host with network wake-up function. The test host can automatically call the corresponding test script according to the received test parameters, execute the test task on the hard disk, record the test process and results, and upload them to the control server; the test device can realize the automatic switching of multiple hard disks on the same test host interface according to the test parameters; at the same time, control the power supply of the test host through the programmable power strip to generate an abnormal power-off test excitation.

[0011] As an optional solution, the test device includes: a main control chip, multiple path selection chips, and a power supply unit;

[0012] The main control chip is configured to receive hard disk test parameters and select a test hard disk according to the test parameters; a plurality of path selection chips are controlled by the main control chip and are used to expand the single path interface of the test host into multiple paths, so as to realize time-division multiplexing of the test hard disk connected to the expansion interface;

[0013] The main control chip controls the power supply of the test host to be turned off through a programmable plug to generate an abnormal power-off test excitation; and is capable of controlling the power supply of the test host to be restarted;

[0014] The power supply unit is used to provide a power supply for the main control chip and a plurality of path selection chips.

[0015] As an optional solution, the main control chip identifies the power-off state of the test host by the power supply state of the USB interface of the test host, so as to judge whether the test host is turned off or restarted;

[0016] The main control chip receives the test parameters of the test host through the UART interface of the test host to determine the selected test hard disk number and the corresponding test case.

[0017] As an optional solution, the control server and the test host are connected in a local area network using a C / S architecture; the control server serves as the server side and remotely wakes up and controls the test host through the network; the test host serves as the client side and is responsible for obtaining the control server settings, executing the aging test script and the test configuration script, recording the test results, generating a test report and uploading it to the control server.

[0018] As an optional solution, the test host calls a hard disk interface driver to identify the identification information of the test hard disk during the test; the test host calls a test configuration script or an aging test script according to the received test parameters;

[0019] Among them, the test configuration script transmits test parameters to the test device through a serial port driver interface to control the test device to select a hard disk or generate an abnormal power-off excitation according to the test parameters; the aging test script configures a third-party test tool through a command line console;

[0020] The test host summarizes the results of the aging test script and the test configuration script, and forms a test log with the hard disk identification, the test host and the timestamp as the main code, and uploads it to the control server.

[0021] As an alternative solution, the power-off test for the hard disk includes testing the host restart mode; the test device forcibly restarts the test host by controlling the opening and closing of the programming power supply, and the forced restart will trigger the data preservation mechanisms of the operating system and the SATA / SAS / PCIe protocol, which are used to verify the reliability of hard disk data storage, including verifying the data power-off protection and garbage collection mechanisms of the solid-state drive, and then verifying the quality of the FLASH particles and the hard disk mechanical structure.

[0022] As an alternative solution, the power-off test for the hard disk includes the hard disk active power-off mode; the test device disconnects the power link and data link of the hard disk through multiple control lines and a path selection chip to simulate the hard disk power-off or plug-and-play behavior, thereby triggering the data preservation mechanism, which is used to verify the recoverability of hard disk data storage, including verifying the data reconstruction mechanism and abnormal recovery mechanism of the solid-state drive and the emergency stop and start functions of the mechanical hard disk.

[0023] In some other embodiments, the following technical solutions are adopted:

[0024] A multi-channel extended hard disk automatic test method includes:

[0025] The test host receives the test parameters transmitted by the control server and calls the test configuration script and the aging test script according to the test parameters;

[0026] The test configuration script transmits the test parameters to the test device through the serial port driver interface, and the test device selects the hard disk according to the test parameters and conducts a power-off test;

[0027] The aging test script configures the third-party test tool through the command line console, and conducts an aging test on the selected hard disk through the third-party test tool;

[0028] The test host summarizes the results of the aging test script and the test configuration script, and forms a test log with the hard disk identifier, the test host, and the timestamp as the primary key;

[0029] Loop to test all the hard disks on the test device, and upload the test results and the test log to the control server;

[0030] The control server detects and counts the test reports, and issues an alarm when an abnormal situation is identified.

[0031] The power-off test includes a normal power-off test process, specifically:

[0032] The control server identifies the test host through a remote connection, and sends the functional test strategy and the aging test strategy to the test host through the network interface and the Socket protocol. The test host identifies the test instruction as a normal power-off test;

[0033] The control server remotely wakes up / shuts down the test host through the network port. The test device recognizes the startup or shutdown status of the test host through the USB interface of the test host, loads the test script, receives the test stimuli of the test host and conducts tests, and uploads the test logs to the test host. The test host saves the logs and uploads them to the control host in a timely manner.

[0034] The power-off test includes an abnormal power-off test process, specifically as follows:

[0035] The control server recognizes the test host through a remote connection, and sends the functional test strategy and the aging test strategy to the test host through the network interface and the Socket protocol. The test host recognizes the test instructions and identifies them as abnormal power-off tests;

[0036] The test device recognizes the startup status of the test host through the USB interface of the test host, records the power-off test and starts timing;

[0037] The test device randomly generates a power-off time within the specified time interval parameters, and controls the programmable power strip to cut off the power supply of the test host. This is the abnormal power-off process of the test host;

[0038] The test device randomly generates a power-off time within the specified time interval parameters, and cuts off the power supply of the hard disk through the control line. This is the abnormal power-off process of the hard disk;

[0039] The control server recognizes the abnormal power-off of the host or the abnormal power-off of the hard disk through the network, remotely wakes up the test host through the network port, and the test host detects the integrity of the hard disk data to verify the hard disk data preservation function.

[0040] Compared with the prior art, the beneficial effects of the present invention are:

[0041] (1) Through the hard disk test device of the present invention, the SATA / SAS / PCIe interfaces of the test host can be extended to up to 16 channels, and it has the functions of automatically switching hard disks and controlling the power-off of hard disks. It can automatically select the hard disks to be tested according to the test parameters, and can actively control the power-off of the hard disks, realizing the automatic and orderly batch testing of multiple hard disks by a single test host, reducing the demand for the number of test hosts, and improving the automation degree of hard disk testing.

[0042] (2) The hard disk test device of the present invention can cut off the power supply to the test host through the programmable power strip to construct an abnormal power-off test, simulate the abnormal power-off scenario during the normal use of the hard disk, and thus verify the reliability of hard disk data storage.

[0043] (3) In the present invention, a control server serves as the server side and multiple test hosts serve as the client sides to form a C / S network structure in a local area network environment. The control server can remotely wake up the test hosts through the C / S network. Such a design enables centralized remote control and timing settings for multiple test hosts, saving energy, improving efficiency, and reducing on-site failures caused by human operations.

[0044] By constructing a C / S network, the present invention establishes a centralized test log management system and remote control technology, thereby improving the efficiency and coverage of hard disk testing and contributing to improving the yield rate of products leaving the factory.

[0045] Other features and advantages of the present invention will be partially given in the following description, partially become obvious from the following description, or be understood through the practice of this aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a schematic structural diagram of a multi-channel extended hard disk automatic testing device in an embodiment of the present invention;

[0047] Figure 2 It is a schematic diagram of the connection between a test host and a testing device in an embodiment of the present invention;

[0048] Figure 3 It is an architecture diagram of a multi-channel extended hard disk automatic testing method in an embodiment of the present invention;

[0049] Figure 4 It is a schematic diagram of the process of a multi-channel extended hard disk automatic testing in an embodiment of the present invention;

[0050] Figure 5 It is a flowchart of normal power-off testing in an embodiment of the present invention;

[0051] Figure 6 It is a flowchart of abnormal power-off testing in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0052] It should be noted that the following detailed description is illustrative and is intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present application belongs.

[0053] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.

[0054] Example 1

[0055] In one or more embodiments, a multi-channel extended hard disk automatic test device is disclosed, which specifically includes: a control server, a network switch, a test host, and a test device; the control server is connected to at least one test host through the network switch, and each test host is connected to a test device through a programmable plug board, and the test device is connected to multiple hard disk devices; the test device can realize the automatic switching of multiple hard disks for the same test host interface according to the test parameters, realize parallel multi-SATA interfaces, and perform automated tests on multiple hard disks.

[0056] The control server can generate test parameters and send them to the test host with network wake-up function. The test host can automatically call the corresponding test script according to the received test parameters, execute the test task on the hard disk, record the test process and results, and upload them to the control server; the test device can realize the automatic switching of multiple hard disks according to the test parameters, and at the same time control the power supply of the test host through the programmable plug board to generate abnormal power-off test incentives.

[0057] In this embodiment, one control server is used as the server side and multiple test hosts are used as the client side to form a C / S network structure in the local area network environment. The control server sends hard disk test parameters to the test hosts with network wake-up function and manages test reports; the test hosts load the pre-installed system of the hard disk to be tested, automatically execute test scripts, and upload test logs. To reduce hardware costs, enrich test cases, and improve the degree of automation, this embodiment designs a test device with the function of automatically switching multiple high-speed data channels and normal (abnormal) power-off control function. The test device is responsible for selecting and indicating the hard disk to be tested, realizing the switching of 1 to 16 channels of time-division multiplexing SATA / SAS / PCIe channels, and cooperating with the power-off test to generate normal and abnormal power-off incentives. The test host controls the test device through the serial communication interface, and the test device automatically switches the hard disk according to the test parameters to generate a power-off control strategy.

[0058] In this embodiment, the control server, the test host, and the test device can jointly implement an efficient, comprehensive, reliable, and accurate hard disk automation quality detection solution.

[0059] Specifically, in combination with Figure 1 , the control server is connected to multiple test units through the network switch. Each test unit includes a test host, and each test host can be connected to one or more test devices.

[0060] Among them, the control server is mainly responsible for generating test requirements, managing test hosts, and summarizing test results. The test host has the function of network wake-up, is controlled by the control server, generates test cases according to the test strategy of the control server, calls the corresponding test scripts and test tools, performs tasks such as performance testing, reliability testing, identification verification, compatibility testing, and power-off testing, records the test process and results, and then uploads them to the control server. The test device is responsible for selecting and indicating the hard disk under test, implementing the SATA / SAS / PCIe channel switching of 1-to-16 multiplexing, and cooperating with the power-off test to generate normal and abnormal power-off excitations.

[0061] In this embodiment, the control server and the test host have the ability of network communication and can establish a C / S network structure connection through Socket.

[0062] The control server and the test host need to support the Internetwork Packet Exchange (IPX) and Transmission Control Protocol (TCP) protocols. In the stage of remote wake-up of the local area network, it is realized through the IPX protocol. This process needs to ensure that the Wake on LAN function in the Power Management Setup of the Basic Input / Output System (BIOS) is set to enabled, and the Wake On LAN (WOL) function is enabled in the operating system. By sending a magic packet in a fixed format, the test host in the dormant or shutdown state can be awakened. In the test control stage, the control server establishes a TCP connection through Socket programming and uses the "instruction-response" method to issue control and query instructions, configure test parameters, and obtain status information and test results. This TCP connection mechanism can ensure stable communication and allow reliable data exchange between the control server and the test host.

[0063] The network communication uses the IPX protocol for transmission. Since the MAC address of each test host is different, the control server needs to correspond to each test host one by one and set the corresponding MAC address. After the test host is awakened, it automatically runs the client program to establish remote communication with the control server.

[0064] The control server acts as the server side, remotely wakes up and controls the test host through the network; the test host acts as the client side, responsible for obtaining the control server settings, executing the aging test script and the test configuration script, recording the test results, generating the test report and uploading it to the control server. In addition, the network card device of the test host needs to support the remote wake-up function; Socket programming technology is used for communication between the control server and the test host. The control server develops a server-side control program in the Python language to transfer test parameters and manage test logs; while the test host loads the operating system and test scripts pre-installed in the test hard disk (referred to as the test environment for short). The test environment is written by a hard disk duplicator to ensure that the test environments of all test hard disks are consistent. The test environment includes a background program developed in the Python language, an aging test script and a test configuration script, as well as third-party test tools.

[0065] In this embodiment, the test host is the basic test unit, and is connected to the test device through a USB interface, a Uart serial port (a USB to Uart module can be used), and a hard disk high-speed data interface (including SATA, SAS, PCIe). The test device controls the power supply of the test host through a programmable power strip. The test device can expand up to 16 hard disk high-speed data interfaces and connect 16 hard disk devices in a time-sharing manner. All hard disk power supplies are powered by the test host. Each test hard disk needs to install the same test environment, operating system, and test script through a hard disk duplicator, and has the ability to communicate with the control server over the network and communicate with the test device over the serial port.

[0066] Combined with Figure 2 , the test device specifically includes: a main control chip, multiple path selection chips (such as ASM1456 / ASM1456B / ASM146X / ASM1480 / ASM2480B), and a power supply unit.

[0067] The main control chip is correspondingly connected to each interface of the test host. The main control chip is connected to the programmable power strip (i.e., the programmable switch) through control line 1. The programmable power strip is connected to the power supply line of the test host and can control the power supply or power-off of the test host. The main control chip is connected to the power supply switch of each hard disk through control line 2 and can control the power-on or power-off of each hard disk.

[0068] The main control chip is responsible for receiving hard disk test parameters, including but not limited to information such as the number of hard disks to be tested, their locations, power-off modes, and power-off time ranges. The test device controls internal timers, USB modules, GPIO, and other modules based on these parameters to detect the test host, select the test hard disks, and generate test stimuli. The multiplexing chip is controlled by the main control chip and is used to expand the storage interface of the test host, expanding a single-channel SATA / SAS / PCIe interface into a multi-channel SATA / SAS / PCIe interface. The test hard disks connected through the expansion interface can be time-division multiplexed.

[0069] The test device is independently powered by a power supply unit. Its main control chip can be an embedded MCU, which is connected to the high-speed data interface (such as SATA / SAS / PCIe) of the test host to receive the read and write data of the test host. Multiple path selection chips are connected in a cascaded manner to expand the high-speed data channels for connecting multiple test hard disks.

[0070] In terms of the high-speed data interface, the main control chip of the test device controls multiple path selection chips through the IO interface to achieve the expansion of the SATA / SAS / PCIe interface, time-division automatic switching, and detection of 16 test hard disks.

[0071] In terms of the USB interface, the main control chip of the test device can detect the power status of the USB interface to identify the power-off status of the test host (set the USB port in the BIOS to the power-saving mode), thereby determining whether the test host is shut down or restarted; then select the corresponding test hard disk and load the operating system and test environment of the test hard disk at the next restart.

[0072] In terms of the UART interface, the main control chip of the test device is responsible for receiving the power-off test parameters and the hard disk quantity information transmitted by the test host, automatically switching to the path of the specified test hard disk, and indicating the currently selected hard disk and test status through the LED module. The switching of the test hard disks is controlled by the test device, and the selected test hard disk number and the corresponding test case are determined according to the command parameters received through the UART interface. In this scenario, the test case only involves the power-off test, and its parameters include the power-off mode, power-off time, and hard disk switching order. Among them, the test host uses the hard disk manufacturer number and serial number as the unique identification information of the hard disk under test.

[0073] Through a programmable power strip, the main control chip of the test device can control the power of the test host and actively shut down the test host to generate abnormal test power-off stimuli.

[0074] In this embodiment, the test strategy is issued by the control server, and the test strategy format is {test script, test parameter 1, test parameter 2,..., test parameter 6}. The test host automatically runs when the operating system starts up, and calls the hard disk interface driver to identify the identification information of the test hard disk. The test host further calls the test configuration script and the aging test script. The test configuration script transmits test parameters to the test device through the serial port driver interface, such as information on abnormal power-off intervals, the number of test hard disks, and the currently selected hard disk. The aging test script configures third-party test tools through the command-line console, including but not limited to test tools with high recognition in the data storage field such as FIO, Burn in Test, HD Tune, and Benchmark. The background program aggregates the results of the aging test script and the test configuration script, and forms a test log with the hard disk identification, test host, and timestamp as the primary key. At the same time, the test script is also responsible for controlling the test device to perform normal and abnormal power-off tests. After the test is completed, the client uploads the execution result of the test script to the server.

[0075] After the test device is powered on, it defaults to selecting test hard disk 1 and turns on the power of the test host. The test host obtains the currently selected test hard disk through UART. When performing the aging test, the test device selects the specified test hard disk through the path selection chip. When the control server remotely shuts down or restarts the test host, the test device identifies the power-off state of the test host through the USB interface of the test host, so as to determine whether the test host is shut down or restarted, and perform corresponding high-speed data channel switching according to the test strategy. When performing the abnormal power-off test, the test device controls the programmable power strip to automatically turn off the test host, directly generating a power-off excitation. Then, the test host is powered on again at an appropriate time. After detecting that the test host is offline, the control server wakes up and restarts the test host through the local area network to continue the hard disk test.

[0076] In this embodiment, there are two modes for the power-off test of the test hard disk: the test host restart mode and the hard disk active power-off mode.

[0077] The test host restart mode is specifically as follows: The test device controls the opening and closing of the programming power supply through control line 1 to achieve a forced restart of the test host. The forced restart will trigger the data preservation mechanisms of the operating system and the SATA / SAS / PCIe protocol, which are used to verify the reliability of hard disk data storage, especially to verify the data power-off protection and garbage collection mechanisms of solid-state drives, and further verify the quality of FLASH particles and the hard disk mechanical structure.

[0078] The specific hard disk active power-off mode is as follows: The test device disconnects the power link and data link of the hard disk through multiple control lines 2 and the path selection chip, simulating the hard disk power-off or plugging behavior, thereby triggering the data preservation mechanism, and verifying the recoverability of the hard disk data storage, especially verifying the data reconstruction mechanism and abnormal recovery mechanism of the solid-state drive and the emergency stop and start functions of the mechanical hard disk.

[0079] The test device randomly generates a power-off time node according to the test parameters. Taking the power-on of the test host as the starting point, the test hard disk is selected, the output power supply is controlled, and the current test status is indicated by the LED. When the timer of the main control chip reaches the threshold, the test device controls the hard disk power control or the test host power control to generate a power-off test excitation.

[0080] In this embodiment, by controlling the server, the test host and the test device, a C / S network structure is formed in the local area network environment. The SATA / SAS / PCIe interfaces of the test host can be extended to up to 16 channels, and it has the functions of automatic switching and power-off control, improving the automation degree of hard disk testing, reducing the demand for the number of test hosts, and meeting the low-cost, automated and distributed test requirements in batch hard disk testing.

[0081] Embodiment 2

[0082] Based on a multi-channel extended hard disk automatic test device disclosed in Embodiment 1, this embodiment discloses a multi-channel extended hard disk automatic test method, including the following processes:

[0083] The test host receives the test parameters transmitted by the control server and calls the test configuration script and the aging test script according to the test parameters;

[0084] The test configuration script transmits the test parameters to the test device through the serial port driver interface, and the test device selects the hard disk according to the test parameters and performs a power-off test;

[0085] The aging test script configures the third-party test tool through the command line console, and performs an aging test on the selected hard disk through the third-party test tool;

[0086] The test host summarizes the results of the aging test script and the test configuration script, and forms a test log with the hard disk identifier, the test host and the timestamp as the main codes;

[0087] All the hard disks on the test device are cyclically tested, and the test results and the test log are uploaded to the control server;

[0088] The control server detects and counts the test reports, and issues an alarm when an abnormal situation is recognized.

[0089] Combined Figure 3, The control server is the server side, with a human-computer interaction interface, capable of generating test strategies according to the requirements of users, and generating and managing test logs based on the feedback information of the test host; the test host is the client side, with a background service program, capable of receiving the test scripts transmitted by the control server. The test host is pre-installed with a test environment, including aging test scripts, test configuration scripts, third-party test tools, and UART driver programs. The control server and the test host communicate through Socket.

[0090] The test host generates aging test scripts and test configuration scripts according to the test strategies generated by the control server. The configuration of the aging test script includes the following parameters: test tool, test time, test cases, test scope, whether to verify, etc., and multiple aging test parameters can be configured at one time. The configuration of the test configuration script includes parameters such as interface identification requirements, normal power-on and power-off times, abnormal power-off times, power-off intervals, timeout settings, etc.

[0091] The test host generates test strategies according to the control server, including: aging test configuration and test configuration, and distributes them to the test host. The parameters of the aging test configuration include: test tool, test time, test cases, test scope, whether to verify, etc., and multiple aging test parameters can be configured at one time; the parameters of the test configuration include: interface identification requirements, normal power-on and power-off times, abnormal power-off times, power-off intervals, timeout settings, etc.

[0092] The test device is controlled by the test host, receives test parameters and controls the test hard disk.

[0093] Figure 4 The specific test process is given as follows:

[0094] First, use a hard disk copier to quickly clone the operating system, hard disk test tools, test environment, and client programs to the sorted test hard disks. After completion, the test hard disks can be started by the control server through the LAN wake-up technology to load the test environment. Then, the test host client program receives the test parameters transmitted by the control server and configures the test scripts on the test host side, the test device channel switching strategy, and the power-off test strategy. Subsequently, the test host performs interface identification, aging test, normal power-off test, and abnormal power-off test according to the test requirements. At the beginning and end of each test process, the test host uses the serial number of the current hard disk as the unique identification information and uploads the test situation to the control server. Finally, the control server detects and statistics the test report, and issues an alarm when an abnormal situation is identified.

[0095] In this embodiment, the power-off test includes a normal power-off test process and an abnormal power-off test process;

[0096] Combined with Figure 5, the normal power-off test process is as follows:

[0097] The control server (i.e., the control host) identifies the test host through remote connection, and sends the function test strategy and the aging test strategy to the test host through the network interface and the Socket protocol. The test host identifies the test instruction as a normal power-off test.

[0098] The control server remotely wakes up / shuts down the test host through the network port. The test device identifies the start / stop state of the test host through the USB interface of the test host, loads the test script, receives the test excitation of the test host and conducts the test, and uploads the test log to the test host. The test host saves and uploads it to the control host in a timely manner.

[0099] Combined with Figure 6 , the abnormal power-off test process is as follows:

[0100] The control server (i.e., the control host) identifies the test host through remote connection, and sends the function test strategy and the aging test strategy to the test host through the network interface and the Socket protocol. The test host identifies the test instruction as an abnormal power-off test.

[0101] The test device identifies the start state of the test host through the USB interface of the test host, records the power-off test and starts timing.

[0102] The test device randomly generates a power-off time within the specified time interval parameters, and controls the programmable power strip to cut off the power supply of the test host. This is the abnormal power-off process of the test host.

[0103] The test device randomly generates a power-off time within the specified time interval parameters, and cuts off the power supply of the hard disk through control line 1 or control line 2. This is the abnormal power-off process of the hard disk.

[0104] The control server identifies the abnormal power-off of the host or the abnormal power-off of the hard disk through the network, remotely wakes up the test host through the network port, and the test host detects the integrity of the hard disk data and verifies the hard disk data preservation function.

[0105] It should be noted that during the test, if an abnormality occurs or the test host is offline and times out, the control server can record the test failure and give an alarm, and the tester will conduct troubleshooting.

[0106] Although the specific implementation manners of the present invention are described above in conjunction with the accompanying drawings, it is not a limitation to the protection scope of the present invention. Those skilled in the art should understand that based on the technical solutions of the present invention, various modifications or deformations that can be made by those skilled in the art without creative efforts are still within the protection scope of the present invention.

Claims

1. A multi-channel extended hard disk automatic testing device, characterized in that: include: Control servers, network switches, test hosts and test devices; The control server is connected to at least one test host via a network switch, each test host is connected to a test device via a programmable socket strip, and the test device is connected to a multi-channel hard disk device; The control server can generate test parameters and send them to a test host with a network wake-up function. The test host can automatically call the corresponding test script according to the received test parameters, perform test tasks on the hard disk, record the test process and results and upload them to the control server; the test device can realize automatic switching of multiple hard disks of the same test host interface according to the test parameters; At the same time, the power supply of the test host is controlled through the programmable socket to generate abnormal power-off test stimulus; The testing device comprises: a main control chip, a plurality of channel selection chips and a power supply unit; The main control chip is configured to receive hard disk test parameters and select a test hard disk according to the test parameters; multiple channel selection chips are controlled by the main control chip and are used to expand the single-channel interface of the test host into multiple channels to achieve time-division multiplexing of the test hard disk connected to the expansion interface; The main control chip controls the power supply of the test host to be turned off through the programmable socket to generate an abnormal power-off test stimulus; and can control the power supply of the test host to be turned on again; The power supply unit is used to provide power supply to the main control chip and multiple path selection chips.

2. A multi-channel extended hard disk automatic testing device as claimed in claim 1, characterized in that: The main control chip identifies the power-off state of the test host by the power state of the USB interface of the test host, thereby determining whether the test host is shut down or restarted; The main control chip receives the test parameters of the test host through the UART interface of the test host to determine the selected test hard disk number and the corresponding test case.

3. The multi-channel extended hard disk automatic testing device as claimed in claim 1, characterized in that: The control server and the test host are connected in the local area network using a C / S architecture; the control server acts as a server and remotely wakes up and controls the test host through the network; the test host acts as a client and is responsible for obtaining the control server settings, executing aging test scripts and test configuration scripts, recording test results, generating test reports and uploading them to the control server.

4. The multi-channel extended hard disk automatic testing device as claimed in claim 1, characterized in that: The test host calls the hard disk interface driver to identify the identification information of the test hard disk when performing the test; the test host calls the test configuration script or the aging test script according to the received test parameters; Among them, the test configuration script transmits the test parameters to the test device through the serial port driver interface to control the test device to select the hard disk or generate abnormal power-off stimulus according to the test parameters; the aging test script configures the third-party test tool through the command line console; The test host summarizes the results of the aging test script and the test configuration script, and forms a test log with the hard disk identifier, test host and timestamp as the main code, and uploads it to the control server.

5. The multi-channel extended hard disk automatic testing device as claimed in claim 1, characterized in that: The power-off test for the hard disk includes testing the host restart mode; the test device controls the opening and closing of the programming power supply to achieve a forced restart of the test host. The forced restart will trigger the data preservation mechanism of the operating system and SATA / SAS / PCIe protocol to verify the reliability of hard disk data storage, including verifying the data power-off protection and garbage collection mechanism of the solid-state drive, and then verifying the quality of the FLASH particles and the hard disk mechanical structure.

6. The multi-channel extended hard disk automatic testing device as claimed in claim 1, characterized in that: The power-off test for the hard disk includes the hard disk active power-off mode; the test device disconnects the power link and data link of the hard disk through multiple control lines and path selection chips, simulating the power off or plug-in behavior of the hard disk, thereby triggering the data preservation mechanism to verify the recoverability of the hard disk data storage, including verifying the data reconstruction mechanism and abnormal recovery mechanism of the solid-state hard disk and the emergency stop and start functions of the mechanical hard disk.

7. A multi-channel extended hard disk automatic testing method, characterized in that: include: The test host receives the test parameters transmitted by the control server, and calls the test configuration script and the aging test script according to the test parameters; The test configuration script transmits the test parameters to the test device through the serial port driver interface, and the test device selects the hard disk according to the test parameters and performs a power-off test; The aging test script configures a third-party test tool through the command line console and uses the third-party test tool to perform an aging test on the selected hard disk; The test host summarizes the results of the aging test script and the test configuration script, and forms a test log with the hard disk ID, test host and timestamp as the main code; Cycle test all hard disks on the test device and upload the test results and test logs to the control server; The control server detects and compiles test reports, and issues an alarm when an abnormal situation is identified; The testing device comprises: a main control chip, a plurality of channel selection chips and a power supply unit; The main control chip is configured to receive hard disk test parameters and select a test hard disk according to the test parameters; multiple channel selection chips are controlled by the main control chip and are used to expand the single-channel interface of the test host into multiple channels to achieve time-division multiplexing of the test hard disk connected to the expansion interface; The main control chip controls the power supply of the test host to be turned off through the programmable socket to generate an abnormal power-off test stimulus; and can control the power supply of the test host to be turned on again; The power supply unit is used to provide power supply to the main control chip and multiple path selection chips.

8. The multi-channel extended hard disk automatic testing method as claimed in claim 7, characterized in that: The power-off test includes a normal power-off test process, specifically: The control server identifies the test host through a remote connection, and sends the functional test strategy and the aging test strategy to the test host through a network interface and a Socket protocol. The test host identifies the test instruction and identifies it as a normal power-off test. The control server remotely wakes up / shuts down the test host through the network port. The test device identifies the start-up or shutdown status of the test host through the USB interface of the test host, loads the test script, receives the test stimulus from the test host and performs the test, and uploads the test log to the test host. The test host saves the log and uploads it to the control host in due course.

9. The multi-channel extended hard disk automatic testing method as claimed in claim 7, characterized in that: The power-off test includes an abnormal power-off test process, specifically: The control server identifies the test host through remote connection, and sends the functional test strategy and aging test strategy to the test host through the network interface and Socket protocol. The test host recognizes the test instruction and identifies it as an abnormal power-off test; The test device recognizes the startup state of the test host through the USB interface of the test host, records the power-off test and starts timing; The test device randomly generates a power-off time within the specified time interval parameters, and controls the programmable socket to shut down the power supply of the test host. This is the abnormal power-off process of the test host; The test device randomly generates a power-off time within the specified time interval parameters and shuts off the hard disk power supply through the control line. This is the abnormal power-off process of the hard disk; The control server identifies abnormal power failure of the host or hard disk through the network, and remotely wakes up the test host through the network port. The test host detects the integrity of the hard disk data and verifies the hard disk data preservation function.

Citation Information

Patent Citations

  • Abnormal power-down testing system for hard disk

    CN104572371A

  • Testing system and testing method for solid state disk

    CN117612591A

  • Automatic testing method for dual-interface intelligent switching solid state disk

    CN118942527A