Multi-channel extended hard disk automatic testing device and method
By forming automatic hard disk test devices and methods with C/S network structure in a local area network environment, the problem of difficult to achieve low-cost, distributed, and batch SATA hard disk tests in the prior art is solved, automatic switching of multiple hard disks and abnormal power-down tests are realized, and the degree of automation of hard disk tests is improved.
Patent Information
- Application Number
- CN202510314827.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-03-18
AI Technical Summary
The prior art is difficult to implement low-cost, distributed, and batch-based SATA hard disk testing, especially in the automatic and orderly batch testing of multiple hard disks and remote wake-up testing hosts.
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 host connects to the test device, and the test device connects to multiple hard disks. The control server issues hard disk test parameters, and the test host controls the test device through the serial communication interface. The test device automatically switches hard disk and power-down control based on the test parameters, realizing automatic switching of multiple hard disks and abnormal power-down testing.
It realizes low-cost, distributed and batch-based hard disk testing, reduces the demand for the number of test hosts, improves the degree of automation of hard disk testing, and can meet the low-cost, automated and distributed testing needs in batch hard disk testing.
Smart Images

Figure CN119851745A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hard disk quality detection, and in particular to a multi-channel extended hard disk automatic testing device and method. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] As the core production factor of the digital economy, data plays a strategic role in promoting industrial upgrading, optimizing economic structure and creating economic growth points. In terms of data storage, solid-state drives and mechanical hard disks with SATA / SAS / PCIe interfaces are the most widely used data storage carriers and are an important cornerstone for ensuring the security and reliability of data assets. With the continuous growth of data volume and the increase in digitalization needs, the performance and stability of hard disk equipment have received more attention. Therefore, how to comprehensively and effectively detect hard disk quality and improve product yield has become one of the core issues of concern to hard disk manufacturers and sellers, and is also an important support for the development of the digital economy.
[0004] At present, batch quality inspection for hard disks mainly includes performance test, identification test, reliability test and compatibility test, etc. Among them, performance test generally uses third-party test tools such as FIO, Crystal DiskMark, ATTO Disk Benchmark to collect transient performance indicators; identification test can use tools such as HD Tune, Disk info to obtain hard disk information or query system identification information; reliability test generally uses tools such as BurnIn Test and FIO to perform long-term stress test or coverage test to verify data reliability; compatibility test refers to constructing abnormal conditions such as abnormality, interruption, power failure, etc. to test the hard disk.
[0005] However, SATA / SAS / PCIe interface hard disks are point-to-point communication devices, and cannot be expanded through expansion docks for mass verification like USB storage devices; the cost of using SATA / SAS RAID cards or PCIe Switch chips is relatively high, and when connecting multiple hard disks, it is difficult to set the host and the specified hard disk to point-to-point communication mode. In addition, studies have found that the use of SATA RAID cards reduces the robustness of the storage system and is also harmful to the reliability of the test system.
[0006] At present, there are few studies on how to conduct batch and automated power-off tests. The existing technology discloses that a special device such as (PDU), IP Power, and ULINK Power Hub is used to control the external power supply to power off to simulate abnormal power off. This method is costly, and the test object can only be a single hard disk. It does not consider the use of 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 use batch processing, Matrix plug-in and other software methods to call external relays, Power Cycle (power cycle) and other tools to trigger the test host to power off, thereby controlling the hard disk power off. However, this method does not mention the single-host multi-hard disk expansion test and the method of remotely waking up the test host, and the software environment and dependent library deployment are also relatively complex. Summary of the invention
[0007] In order to solve the above problems, the present invention proposes a multi-channel extended hard disk automatic testing device and method, with a control server as a server and multiple test hosts as clients, 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 sends hard disk test parameters to the test host with a network wake-up function, the test host controls the test device through a serial communication interface, and the test device automatically switches the hard disk according to the test parameters to generate a power-off control strategy; low-cost, distributed, and batch SATA hard disk testing is achieved.
[0008] In some embodiments, the following technical solutions are adopted: A multi-channel extended hard disk automatic test device, comprising: 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, each test host is connected to a test device through 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, 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 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 a programmable socket strip to generate abnormal power-off test stimulus.
[0009] As an optional solution, the test device includes: 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.
[0010] As an optional solution, 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.
[0011] As an optional solution, the control server and the test host are connected in the local area network using a C / S architecture; the control server acts as the server side, remotely waking up and controlling the test host through the network; the test host acts as the client, 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.
[0012] As an optional solution, 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.
[0013] As an optional solution, 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 further verifying the quality of the FLASH particles and the hard disk mechanical structure.
[0014] As an optional solution, the power-off test for the hard disk includes an active power-off mode for the hard disk. 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.
[0015] In other embodiments, the following technical solutions are adopted: A multi-channel extended hard disk automatic testing method, comprising: 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 alarms when abnormal conditions are identified.
[0016] 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.
[0017] 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.
[0018] Compared with the prior art, the present invention has the following beneficial effects: (1) The present invention can expand the SATA / SAS / PCIe interface of the test host to a maximum of 16 channels through the hard disk test device, and has the functions of automatic hard disk switching and hard disk power-off control. It can automatically select the hard disk to be tested according to the test parameters, and can actively power off the hard disk, thereby realizing 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 degree of automation of hard disk testing.
[0019] (2) The hard disk test device of the present invention can shut down the power supply to the test host through a programmable socket strip, so as to construct an abnormal power-off test and simulate the abnormal power-off scenario of the test hard disk during normal use, thereby verifying the reliability of the hard disk data storage.
[0020] (3) The present invention uses a control server as a server and multiple test hosts as clients to form a C / S network structure in a local area network environment. The control server can remotely wake up the test host through the C / S network. This design can perform centralized remote control and timing settings on multiple test hosts, which can save energy, improve efficiency, and reduce on-site failures caused by human operations.
[0021] 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 helping to improve the factory yield of products.
[0022] Other features and advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a structural schematic diagram of a multi-channel extended hard disk automatic testing device according to an embodiment of the present invention; Figure 2 A schematic diagram of the connection between a test host and a test device in an embodiment of the present invention; Figure 3This is a diagram of the architecture of a multi-channel extended hard disk automatic testing method according to an embodiment of the present invention; Figure 4 A schematic diagram of a multi-channel extended hard disk automatic testing process according to an embodiment of the present invention; Figure 5 This is a normal power-off test flow chart in an embodiment of the present invention; Figure 6 This is a flow chart of abnormal power-off test in an embodiment of the present invention. DETAILED DESCRIPTION
[0024] It should be noted that the following detailed descriptions are illustrative and are 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 meanings as those commonly understood by those skilled in the art to which the present application belongs.
[0025] 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 "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0026] Embodiment 1 In one or more embodiments, a multi-channel extended hard disk automatic testing device is disclosed, specifically comprising: a control server, a network switch, a test host and a test device; the control server is connected to at least one test host via the network switch, each test host is connected to a test device via a programmable socket strip, and the test device is connected to multiple hard disk devices; the test device can realize automatic switching of multiple hard disks of the same test host interface according to test parameters, realize parallel operation of multiple SATA interfaces, and automatic testing of multiple hard disks.
[0027] 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 based on 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 automatic switching of multiple hard disks according to the test parameters, and control the power supply of the test host through a programmable socket strip to generate abnormal power-off test stimulus.
[0028] This embodiment uses a control server as the server and multiple test hosts as clients to form a C / S network structure in a local area network environment. The control server sends hard disk test parameters to the test host with network wake-up function and manages the test report; the test host loads the pre-installed system of the hard disk under test, automatically executes the test script and uploads the test log. In order to reduce hardware costs, enrich test cases, and improve the degree of automation, this embodiment designs a test device with automatic switching functions of multiple high-speed data channels and normal (abnormal) power-off control functions. The test device is responsible for selecting and instructing the hard disk under test, realizing 1-to-16-way time-sharing multiplexing of SATA / SAS / PCIe channels, and cooperating with the power-off test to generate normal and abnormal power-off stimuli. 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 and generates a power-off control strategy.
[0029] The control server, test host and test device of this embodiment can jointly realize an efficient, comprehensive, reliable and accurate automatic hard disk quality detection solution.
[0030] Specific, combined Figure 1 ,The control server is connected to multiple test units through a network switch, each test unit includes a test host, and each test host can be connected to one or more test devices.
[0031] The control server is mainly responsible for generating test requirements, managing test hosts, and summarizing test results. The test host has a network wake-up function and is controlled by the control server. It generates test cases according to the test strategy of the control server, calls corresponding test scripts and test tools, performs performance testing, reliability testing, identification verification, compatibility testing, and power-off testing, and records the test process and results, which are then uploaded to the control server. The test device is responsible for selecting and instructing the hard disk under test, realizing 1-to-16-way time-division multiplexing of SATA / SAS / PCIe channels, and generating normal and abnormal power-off stimuli in conjunction with the power-off test.
[0032] In this embodiment, the control server and the test host have network communication capabilities and can establish a C / S network structure connection through Socket.
[0033] The control server and the test host need to support the Internet Packet Exchange (IPX) and Transmission Control Protocol (TCP) protocols. In the LAN remote wake-up phase, it is implemented through the IPX protocol. This process requires ensuring that the LAN wake-up function (Resume by LAN) is set to on in the power settings (Power Management Setup) of the Basic Input / Output System (BIOS), and enabling the remote wake-up (Wake On LAN, WOL) function 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 phase, the control server establishes a TCP connection through Socket programming, and uses the "command-response" method to issue control and query commands, configure test parameters, and obtain status information and test results. This TCP connection mechanism ensures stable communication and allows reliable data exchange between the control server and the test host.
[0034] Network communication uses IPX protocol transmission. Since the MAC address of each test host is different, the control server needs to correspond to the test host one by one and be set to the corresponding MAC address. After the test host wakes up, it automatically runs the client program to establish remote communication with the control server.
[0035] The control server acts as a server, remotely waking up and controlling the test host through the network; the test host acts as a client, responsible for obtaining the control server settings, executing the aging test script and 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 must support the remote wake-up function; the control server and the test host use Socket programming technology for communication. The control server uses Python language to develop the server-side control program, which is used to pass test parameters and manage test logs; and the test host loads the pre-installed operating system and test script (referred to as the test environment) in the test hard disk. The test environment is written by the hard disk copier to ensure that the test environment of all test hard disks is consistent. The test environment includes background programs, aging test scripts and test configuration scripts developed in Python language, as well as third-party test tools.
[0036] In this embodiment, the test host is the basic test unit, which is connected to the test device through a USB interface, a Uart serial port (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 socket 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 be installed with the same test environment, operating system, and test script through a hard disk copier, and has the ability to communicate with the control server over the network and with the test device through a serial port.
[0037] Combination Figure 2 ,The test device specifically includes: a main control chip, a number of channel selection chips (such as ASM1456 / ASM1456B / ASM146X / ASM1480 / ASM2480B) and a power supply unit.
[0038] The main control chip is connected to each interface of the test host. The main control chip is connected to the programmable socket (i.e., programmable switch) through control line 1. The programmable socket 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 switch of each hard disk through control line 2 and can control the power on or off of each hard disk.
[0039] The main control chip is responsible for receiving hard disk test parameters, including but not limited to the number, location, power-off mode, and power-off time range of the test hard disks. The test device controls the internal timer, USB module, GPIO and other modules according to these parameters to detect the test host, select the test hard disk and generate test stimulus. The multi-channel switching chip is controlled by the main control chip and is used to expand the storage interface of the test host, expanding the single-channel SATA / SAS / PCIe interface to a multi-channel SATA / SAS / PCIe interface. The test hard disks connected through the expansion interface can be time-division multiplexed.
[0040] The test device is independently powered by the 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 channel selection chips are connected in cascade mode to expand the high-speed data channel to connect multiple test hard disks.
[0041] In terms of high-speed data interface, the main control chip of the test device controls multiple channel selection chips through the IO interface to achieve SATA / SAS / PCIe interface expansion, and automatically switches and detects 16 test hard drives in time.
[0042] 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 state of the test host (set the USB port in the BIOS to power saving mode), thereby determining whether the test host is shut down or restarted; then select the corresponding test hard disk, and load the test hard disk's operating system and test environment at the next restart.
[0043] In terms of the UART interface, the main control chip of the test device is responsible for receiving the power-off test parameters and hard disk quantity information transmitted by the test host, and automatically switches to the path of the specified test hard disk, and indicates the currently selected hard disk and test status through the LED module. The switching of the test hard disk 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 by the UART interface. In this scenario, the test case only involves power-off testing, and its parameters include power-off mode, power-off time, and hard disk switching sequence. 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.
[0044] Through the programmable socket strip, the main control chip of the test device can control the power supply of the test host and actively shut down the test host to generate abnormal test power-off stimulation.
[0045] 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, 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 abnormal power-off interval, number of test hard disks, currently selected hard disk and other information. The aging test script configures third-party test tools through the command line console, including but not limited to FIO, Burn in Test, HD Tune, Benchmark and other test tools with high recognition in the field of data storage. The background program summarizes 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 main code. At the same time, the test script is also responsible for controlling the test device to perform normal and abnormal power-off tests. After completing the test, the client uploads the test script execution results to the server.
[0046] After power-on, the test device selects test hard disk 1 by default and turns on the power of the test host. The test host obtains the currently selected test hard disk through UART. When performing an 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, thereby determining whether the test host is shut down or restarted, and performs corresponding high-speed data channel switching according to the test strategy. When performing an abnormal power-off test, the test device controls the programmable socket strip to automatically shut down the test host and directly generate a power-off stimulus. 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 the test host again through the LAN to continue the hard disk test.
[0047] In this embodiment, there are two modes for the power-off test of the hard disk: a test host restart mode and a hard disk active power-off mode.
[0048] The specific restart mode of the test host is: the test device controls the opening and closing of the programming power supply through the control line 1 to realize the forced restart of the test host. The forced restart will trigger the data preservation mechanism of the operating system and SATA / SAS / PCIe protocol, which is used to verify the reliability of hard disk data storage, especially to verify the data power-off protection and garbage collection mechanism of the solid-state hard disk, and then verify the quality of the FLASH particles and the hard disk mechanical structure.
[0049] The active power-off mode of the hard disk is specifically 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 power off or plug-in behavior of the hard disk, thereby triggering the data preservation mechanism, which can verify the recoverability of the hard disk data storage, especially 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.
[0050] The test device randomly generates power-off time nodes according to the test parameters. With the test host powered on 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 main control chip timer reaches the threshold, the test device controls the hard disk power control or the test host power control to generate a power-off test stimulus.
[0051] This embodiment builds a C / S network structure in a local area network environment by controlling the server, test host and test device, and can expand the SATA / SAS / PCIe interface of the test host to a maximum of 16 channels, and has automatic switching and power-off control functions, thereby improving the automation level of hard disk testing, reducing the demand for the number of test hosts, and meeting the low-cost, automated and distributed testing requirements in batch hard disk testing.
[0052] Embodiment 2 Based on the multi-channel extended hard disk automatic testing device disclosed in the first embodiment, this embodiment discloses a multi-channel extended hard disk automatic testing method, including the following process: 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 alarms when abnormal conditions are identified.
[0053] Combination Figure 3 The control server is the server, which has a human-computer interaction interface and can generate test strategies according to user requirements, and generate and manage test logs according to the feedback information of the test host; the test host is the client, which has a background service program and can receive 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 drivers. The control server and the test host communicate through Socket.
[0054] The test host generates an aging test script and a test configuration script according to the test strategy generated by the control server. The configuration of the aging test script includes the following parameters: test tool, test time, test case, test scope, whether to verify, etc. 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 off times, abnormal power off times, power off interval, and timeout settings.
[0055] The test host generates the test strategy according to the control server, including aging test configuration and test configuration, and sends it to the test host. The parameters of the aging test configuration include: test tools, 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 off times, abnormal power off times, power off interval, timeout settings, etc.
[0056] The test device is controlled by the test host, receives test parameters and controls the test hard disk.
[0057] Figure 4 The specific test process is given, specifically: First, use a hard disk duplicator to quickly clone the sorted test hard disks with the operating system, hard disk test tools, test environment, and client program. After completion, the test hard disk can be controlled by the server to start the operating system and load the test environment through the LAN wake-up technology. Next, the test host client program receives the test parameters transmitted by the control server and configures the test script, test device channel switching strategy, and power-off test strategy on the test host side. 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 compiles test reports and issues an alarm when an abnormal situation is identified.
[0058] In this embodiment, the power-off test includes a normal power-off test process and an abnormal power-off test process; Combination Figure 5 , the normal power-off test process is as follows: The control server (i.e., control host) 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 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 / 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, 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.
[0059] Combination Figure 6 , the abnormal power-off test process is as follows: The control server (i.e., control host) 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 identifies the test instruction and identifies it as an abnormal power-off test.
[0060] The test device recognizes the startup state of the test host through the test host USB interface, records the power-off test and starts timing.
[0061] 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 control line 1 or control line 2. 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.
[0062] It should be noted that if an abnormality occurs during the test or the test host is offline and times out, the control server can record the test failure and issue an alarm, which will be investigated by the test personnel.
[0063] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection 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, 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 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 a programmable socket strip to generate abnormal power-off test stimulus.
2. A multi-channel extended hard disk automatic testing device as claimed in claim 1, characterized in that: 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.
3. A multi-channel extended hard disk automatic testing device as claimed in claim 2, 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.
4. 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.
5. 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.
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 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.
7. 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.
8. 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 alarms when abnormal conditions are identified.
9. A multi-channel extended hard disk automatic testing method as claimed in claim 8, 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.
10. The multi-channel extended hard disk automatic testing method according to claim 8, 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
Automatic testing method and device for abnormal power failure of solid state disk
CN114265733A
Testing system and testing method for solid state disk
CN117612591A
Method, system and device for testing abnormal power failure of solid state disk
CN118312372A
Automatic testing method for dual-interface intelligent switching solid state disk
CN118942527A
Cited By
Business function test method and device, medium and product
CN120692195A
Computer mainboard firmware function testing device
CN120743655A
A computer mainboard firmware function testing device
CN120743655B
Remote testing method and system for embedded serial port equipment, terminal and storage medium
CN122470460A