Method, device and equipment for automatically processing and continuing testing of high and low temperature test SSD system exception and storage medium
By using automated processing methods to detect lower-level machine anomalies, save status information, force a restart, and generate a continuation test command, the problem of test interruption during SSD high and low temperature testing is solved, and automatic recovery and accurate continuation of testing are achieved without manual intervention.
Patent Information
- Application Number
- CN202611228400.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-11-27
AI Technical Summary
In SSD high and low temperature mass production testing, the lower-level machine system malfunction caused test interruption. The lack of automated malfunction recovery and breakpoint resumption solutions led to delays in manual intervention, repeated testing, and data corruption, affecting testing efficiency and product yield.
By sending status requests to the lower-level machine, determining the type of abnormality, obtaining and saving the operating status information, and using the external hardware control unit to force a power-off restart, the channel status after restart is checked and a continuation test command is generated, enabling the lower-level machine to resume testing without manual intervention.
It enables automatic recovery of the test environment without manual intervention after a lower-level machine malfunction, avoiding delays and repeated testing, and ensuring the accuracy and efficiency of test data.
Smart Images

Figure CN123178173A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of testing technology, specifically to a method, apparatus, equipment, and computer-readable storage medium for automated handling and continued testing after an SSD system malfunctions during high and low temperature testing. Background Technology
[0002] In the field of SSD high and low temperature mass production testing, the mainstream testing architecture in the industry adopts a test mode of separating the host and slave devices. Specifically, the Windows system acts as the host device, which is responsible for issuing various test commands, monitoring the test process, and summarizing and storing test data; the Linux system device acts as the slave device, which directly interacts with the SSD under test and executes specific test operations. This architecture is widely used in high and low temperature testing scenarios for SSD performance and reliability.
[0003] In long-term mass production testing, lower-level machines are prone to various system anomalies, including system malfunctions causing abnormal interruptions in the test software, system command freezes preventing subsequent test commands from responding properly, and system crashes with black screens. These lower-level machine anomalies are random and unpredictable; once they occur, the testing process will be directly interrupted, and all SSDs under test mounted on the current test device will fail.
[0004] Currently, the industry lacks mature automated anomaly recovery and breakpoint resumption solutions. After anomalies occur, problems can only be detected through manual inspection, followed by manual restarting of the equipment, resetting the test environment, and re-initiating the entire batch of tests. This approach has many drawbacks: manual intervention is significantly delayed, greatly extending the testing cycle; furthermore, hardware mapping relationships can easily change after equipment restart, leading to problems such as test data corruption and data loss. In addition, repeated testing of the entire machine results in a significant waste of testing resources and time, severely reducing the efficiency of SSD mass production testing, restricting production line capacity, and indirectly affecting product yield due to frequent invalid tests and data anomalies. This approach fails to meet the demands of modern SSD mass production for efficient, automated, and high-precision testing and production. Summary of the Invention
[0005] This application provides a method, apparatus, device, and computer-readable storage medium for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing. It can solve the technical problems existing in the prior art where, during the high and low temperature SSD testing process, when the test is interrupted due to anomalies such as system crash or software freeze, the test environment can be automatically restored without manual intervention, and the test can be accurately resumed from the breakpoint before the anomaly occurred. This avoids delays caused by manual intervention, wasted time on repeated tests, and data corruption caused by changes in device mapping relationships after restarting.
[0006] In a first aspect, embodiments of this application provide a method for automated handling and continued testing after an SSD system malfunctions during high and low temperature testing, characterized by comprising: Send a status request to the lower-level machine, and determine whether the lower-level machine has encountered an abnormality based on the response result obtained from the lower-level machine; When it is determined that the lower-level machine is abnormal, the current operating status information of the lower-level machine is obtained and saved. The operating status information includes at least: a device identifier for uniquely identifying the lower-level machine, the correspondence between each connection channel of the lower-level machine and the SSD under test, and the test progress information of each SSD under test. The lower-level machine that malfunctions is forced to shut down and restart via an external hardware control unit. After the lower-level machine is powered on again, the target lower-level machine after restarting is identified according to the saved device identifier, the channel status information of the target lower-level machine after restarting is obtained, and the consistency of the channel status information after restarting is checked by using the saved correspondence between the connection channel and the SSD under test. After verification, a continuation test instruction is generated based on the verification results and the saved test progress information and sent to the target lower-level machine, so that the target lower-level machine continues to execute the test at the test position determined by the continuation test instruction.
[0007] In conjunction with the first aspect, in one implementation, determining whether the lower-level machine has malfunctioned based on the obtained response result from the lower-level machine includes: Through communication interaction with the lower-level machine, the response result of the lower-level machine to the status request is obtained, and the abnormality type of the lower-level machine is determined based on the response result, wherein the determination method includes any one or a combination of the following; When the response result meets the first preset condition, it is determined that the lower-level machine has crashed. The first preset condition includes not receiving a response from the lower-level machine to the status request within a preset time, or receiving a response but still not responding to the further sent connectivity probe command within a preset time. When the response result meets the second preset condition, it is determined that the lower-level machine has experienced a software freeze. The second preset condition includes receiving the response from the lower-level machine to the status request within a preset time, but the content of the response remains unchanged within the preset time.
[0008] In conjunction with the first aspect, in one implementation, the step of acquiring and saving the current operating status information of the lower-level machine when it is determined that an abnormality has occurred includes: Send a device enumeration request to the lower-level machine; Receive device enumeration information returned by the lower-level machine, the device enumeration information including the physical address of each connection channel and the SSD serial number corresponding to each physical address; The correspondence between the physical address and the SSD serial number is saved as the correspondence between the connection channel and the SSD under test.
[0009] In conjunction with the first aspect, in one implementation, the step of acquiring and saving the current operating status information of the lower-level machine when it is determined that an abnormality has occurred includes: Send a progress query command to the lower-level machine; Receive the list of completed SSD tests and the number of the test item currently being executed from the lower-level machine; The list of completed test items and the number of the currently executing test item are saved as the test progress information.
[0010] In conjunction with the first aspect, in one implementation, the step of performing a forced power-off and power-on operation on the malfunctioning lower-level machine via an external hardware control unit includes: A power-off control command is sent to the external hardware control unit via the USB interface, causing the external hardware control unit to respond to the power-off control command and disconnect the power connection of the lower-level machine; After a preset delay, a power-on control command is sent to the external hardware control unit via the USB interface, causing the external hardware control unit to respond to the power-on control command and restore the power connection of the lower-level machine.
[0011] In conjunction with the first aspect, in one implementation, after the lower-level machine is powered on again, the target lower-level machine after restarting is identified according to the saved device identifier, the channel status information of the target lower-level machine after restarting is obtained, and the consistency of the channel status information after restarting is checked using the saved correspondence between the connection channel and the SSD under test, including: After the lower-level machine is powered on again, the target lower-level machine after restarting is identified according to the saved device identifier, and a device enumeration request is sent to the target lower-level machine to obtain the physical channel address and the corresponding SSD serial number after restarting. The physical channel address and corresponding SSD serial number after the reboot are compared one by one with the saved correspondence: If the physical channel address and its corresponding SSD serial number match the saved correspondence, the verification is considered successful, and the channel is allowed to continue the test. If there are cases where the physical channel address is the same but the SSD serial number is inconsistent or cannot be read, the channel is determined to be abnormal, the channel is marked and the continued testing of the SSD corresponding to the channel is skipped.
[0012] In conjunction with the first aspect, in one implementation, the step of generating a continuation test instruction based on the verification result and the saved test progress information and sending it to the lower-level machine, so that the lower-level machine continues to execute the test at the test position determined by the continuation test instruction, includes: Based on the saved list of completed test items and the number of the currently executing test item, generate a continuation test instruction containing breakpoint location information; Based on the verification results, the corresponding breakpoint location information is bound to the channels that have passed the verification. The continued testing command is sent to the target lower-level machine, so that the target lower-level machine is on the channel that has been verified; Based on the breakpoint location information, skip completed test items and continue execution from the next test sub-item of the currently executing test item.
[0013] Secondly, embodiments of this application provide an apparatus for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing. The apparatus includes: The sending and judging module is used to send status requests to the lower-level machine and judge whether the lower-level machine has encountered an abnormality based on the response result obtained from the lower-level machine. The first acquisition module is used to acquire and save the current operating status information of the lower-level machine when it is determined that the lower-level machine has an abnormality. The operating status information includes at least: a device identifier for uniquely identifying the lower-level machine, the correspondence between each connection channel of the lower-level machine and the SSD under test, and the test progress information of each SSD under test. The power-off and power-on module is used to perform forced power-off and power-on operations on the lower-level machine that malfunctions through an external hardware control unit; The second acquisition module is used to identify the target lower-level machine after the lower-level machine is powered on again according to the saved device identifier, acquire the channel status information of the target lower-level machine after restarting, and use the saved correspondence between the connection channel and the SSD under test to perform a consistency check on the channel status information after restarting. The testing module is used to generate a continuation test instruction based on the verification result and the saved test progress information after the verification is completed, and send it to the target lower-level machine so that the target lower-level machine can continue to execute the test at the test position determined by the continuation test instruction.
[0014] Thirdly, embodiments of this application provide a device for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing. The device includes a processor, a memory, and a program for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, stored in the memory and executable by the processor. When the program for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing is executed by the processor, it implements the steps of the method described above for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing.
[0015] Fourthly, embodiments of this application provide a computer-readable storage medium storing a program for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing. When the program is executed by a processor, it implements the steps of the method described above for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing.
[0016] The beneficial effects of the technical solutions provided in this application include: The system sends status requests to a lower-level machine and determines whether the lower-level machine is malfunctioning based on its response. When a malfunction is detected, the system acquires and saves the current operating status information of the lower-level machine. This operating status information includes at least: a device identifier uniquely identifying the lower-level machine, the correspondence between each connection channel of the lower-level machine and the SSD under test, and the test progress information of each SSD under test. An external hardware control unit performs a forced power-off and power-on operation on the malfunctioning lower-level machine. After the lower-level machine is powered on again, the system identifies the restarted target lower-level machine based on the saved device identifier, acquires the channel status information of the restarted target lower-level machine, and utilizes the saved connection status information... The system establishes a correspondence between the channel and the SSD under test, and performs a consistency check on the channel status information after the restart. After the check is completed, a continuation test instruction is generated based on the check result and the saved test progress information and sent to the target lower-level machine. This allows the target lower-level machine to continue executing the test at the test position determined by the continuation test instruction. This solves the technical problem in related technologies where, during high and low temperature SSD testing, the test is interrupted due to abnormalities such as system crashes or software freezes. The system can automatically restore the test environment and accurately resume the test from the breakpoint before the abnormality occurred without manual intervention, thus avoiding delays caused by manual intervention, wasted time on repeated tests, and data corruption caused by changes in device mapping relationships after restarting. Attached Figure Description
[0017] Figure 1This is a flowchart illustrating the first embodiment of the method for automated handling and continued testing after an SSD system malfunction during high and low temperature testing, as described in this application. Figure 2 This is a schematic diagram of the functional modules of an embodiment of the apparatus for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, as described in this application. Figure 3 This is a schematic diagram of the hardware structure of the device for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, as described in the embodiments of this application. Detailed Implementation
[0018] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0019] This invention provides a method for automating the handling of SSD system malfunctions during high and low temperature testing and continuing testing. The method is applied to a test system comprising a host computer (control terminal), a slave computer, an external hardware control unit (relay module), and the SSD under test. The system is deployed within a high and low temperature environmental test chamber to automate the reliability testing of SSDs under extreme temperature conditions.
[0020] The system hardware topology is as follows: The host computer is a Windows system control host, deployed in a normal temperature environment, and establishes a communication connection with the slave computer via Ethernet. The lower-level machine is a Linux system host deployed in a high and low temperature test chamber. It connects multiple SSDs under test through PCIe or SATA interfaces and serves as the execution terminal for test commands. The relay module communicates with the host computer via a USB interface, and the controlled switch pin of the relay module is connected to the power-on pin of the lower computer via DuPont wires.
[0021] NAND: A type of non-volatile storage medium, also known as NAND flash memory chip (NAND Flash). SSD: Solid State Drive, a data storage device composed of several NAND Flash arrays; AHCI: A communication protocol; NVMe: NVM (Non-Volatile Memory) Express, an SSD interface protocol based on PCIe (PCI Express) data transfer; PCIe: An interface standard that uses NVMe for communication and transmits data through the PCIe mainline; OS: Operating System, which in this article may refer to Linux or Windows operating systems; DUT: Device Under Test, which in this article refers to SSD; Chamber: A high and low temperature chamber that can be controlled by software to change the temperature; Lspci: This command is used to display information about all PCI buses on the current host, as well as information about all connected PCI devices. Relay: An electromagnetic relay that triggers power-on by simulating a short circuit of the power switch pins (PWR+ / PWR-) on the motherboard; DuPont wires: In the electronics industry, DuPont wires can be used to expand the pins of experimental boards, add experimental projects, etc. They can connect to the pins very reliably without soldering, making it easy to quickly conduct circuit tests.
[0022] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0023] In one aspect, embodiments of this application provide a method for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing.
[0024] In one embodiment, reference is made to Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the method for automatically handling and continuing testing after an SSD system malfunction during high and low temperature testing, as described in this application. Figure 1 As shown, the automated handling methods for continuing testing after an SSD system malfunctions during high and low temperature testing include: Step S10: Send a status request to the lower-level machine, and determine whether the lower-level machine has encountered an abnormality based on the response result obtained from the lower-level machine; As an example, the host computer sends status requests to the slave computer at a preset frequency. Upon receiving a heartbeat message, the slave computer returns a response in real time. The host computer determines whether the slave computer has encountered an anomaly based on whether a response was received and its content. For example, if the host computer does not receive any heartbeat response from the slave computer within 3 consecutive seconds, it initially determines that the slave computer may be in a frozen state; if the host computer receives a heartbeat response, but the response content, such as the slave computer's system load or test progress indicator, remains completely unchanged within 5 consecutive seconds, it determines that the slave computer's test software may be experiencing a freeze.
[0025] Specifically, determining whether the lower-level machine has malfunctioned based on the obtained response result from the lower-level machine includes: obtaining the response result of the lower-level machine to the status request through communication interaction with the lower-level machine, and determining the malfunction type of the lower-level machine based on the response result, wherein the determination method includes any one or a combination of the following: when the response result meets a first preset condition, the lower-level machine is determined to have crashed, the first preset condition including not receiving a response from the lower-level machine to the status request within a preset time, or receiving a response but still not responding to the further sent connectivity probe command within a preset time; when the response result meets a second preset condition, the lower-level machine is determined to have software stuck, the second preset condition including receiving a response from the lower-level machine to the status request within a preset time, but the content of the response remains unchanged within a preset duration.
[0026] As an example, the host computer sends heartbeat messages to the slave computer at a preset frequency. The first level of judgment—heartbeat timeout judgment: The host computer starts a timer. If no response to the heartbeat message is received from the slave computer within the preset time window, the host computer initially judges that the slave computer may be experiencing a system crash. The second level of confirmation—network layer connectivity detection: To avoid misjudgments caused by delayed heartbeat message processing due to network congestion or excessive load on the slave computer's operating system, the host computer further sends a network layer connectivity test command to the slave computer after not receiving a heartbeat response. If no ICMP Echo Reply response is received from the slave computer within the preset time, the host computer finally confirms that the slave computer is in a crashed state. Through these two levels of judgment, two different abnormal scenarios can be effectively distinguished: a complete system crash of the slave computer's operating system and only an unresponsive application layer software test where the operating system is still running normally. This avoids unnecessary forced restarts of slave computers where the operating system is still running normally.
[0027] The host computer receives the heartbeat message response from the slave computer within a preset time. However, by parsing the response content, the host computer finds that the CPU utilization, memory usage, or heartbeat count field of the slave computer remains completely unchanged within the preset time. This indicates that the slave computer's operating system is still running normally, but the test software running on the slave computer has stopped executing new test tasks and is in a frozen state. The host computer then determines that the slave computer's test software has experienced a software freeze anomaly. This determination method categorizes slave computer anomalies into two types: system crashes and software freezes, providing a basis for different subsequent handling strategies. For example, a system crash requires a forced power-off restart to recover; while a software freeze can be recovered by either a forced power-off restart or simply restarting the test service.
[0028] Step S20: When it is determined that the lower-level machine is abnormal, the current operating status information of the lower-level machine is obtained and saved. The operating status information includes at least: a device identifier for uniquely identifying the lower-level machine, the correspondence between each connection channel of the lower-level machine and the SSD under test, and the test progress information of each SSD under test. As an example, when the host computer determines that the slave computer has encountered an anomaly, it immediately initiates a state preservation process. Before forcibly restarting the slave computer, it acquires and saves the current operating status information of the slave computer. The host computer sends a device enumeration request and a progress query request to the slave computer to acquire and save three types of information: Device identifier: the unique identifier of the slave computer, which in this embodiment is a combination of the slave computer's MAC address and IP address, used to uniquely identify the slave computer that has encountered an anomaly and needs to be restarted in subsequent steps; Mapping relationship between connection channels and the SSD under test: the correspondence between the physical channels of the slave computer, such as the BDF address of the PCIe slot or the unique serial number (SN) of the SSD mounted on the SATA port number; Test progress information: the list of tests that have been completed for each SSD, such as high-temperature read / write tests, low-temperature retention tests, etc., and the test item number currently being executed.
[0029] Specifically, when it is determined that the lower-level machine has malfunctioned, the step of acquiring and saving the current operating status information of the lower-level machine includes: sending a device enumeration request to the lower-level machine; receiving device enumeration information returned by the lower-level machine, wherein the device enumeration information includes the physical address of each connection channel and the SSD serial number corresponding to each physical address; and saving the correspondence between the physical address and the SSD serial number as the correspondence between the connection channel and the SSD under test.
[0030] As an example, after the host computer determines that the slave device has encountered an anomaly, before forcibly restarting the slave device, if the slave device's operating system is still responsive, the host computer sends a device enumeration request to the slave device via a pre-established SSH channel to obtain and save the slave device's current operating status information. If the slave device's operating system is unresponsive, a power-off restart is performed directly, and information is not obtained via SSH. In this embodiment, the device enumeration request command is a combination of the `lspci` and `lsblk` commands under the Linux system. The slave device responds to the received device enumeration request command, executes the corresponding command, and transmits the returned device enumeration information to the host computer via the SSH channel. In this embodiment, the device enumeration information includes: the BDF address (Bus:Device.Function) of the PCIe channel, for example, "0000:03:00.0" represents the PCIe slot location corresponding to bus 3, device 0, and function 0; the SSD device node corresponding to each BDF address, for example, " / dev / nvme0n1"; and the serial number (SN) of each SSD, which is read by executing the command `nvme id-ctrl / dev / nvme0n1` or `hdparm -I / dev / sdb`. The host computer establishes an association between the obtained physical channel addresses and their corresponding SSD serial numbers (SNs), generates a mapping table, and saves it to the host computer's local database. It should be noted that the device enumeration instructions listed above are only specific examples. In other embodiments, other device enumeration instructions or out-of-band management protocols with the same function can also be used to obtain the above information. This embodiment does not impose specific limitations.
[0031] Specifically, when it is determined that the lower-level machine has malfunctioned, the step of acquiring and saving the current operating status information of the lower-level machine includes: sending a progress query command to the lower-level machine; receiving a list of completed SSD test items and the number of the currently executing test item returned by the lower-level machine; and saving the list of completed test items and the number of the currently executing test item as the test progress information.
[0032] As an example, after determining that the slave device has encountered an anomaly, the host computer sends a progress query command to the slave device before forcibly restarting it. In this embodiment, the progress query command is a custom test management command, such as "GET_TEST_PROGRESS". Responding to the received progress query command, the slave device obtains the real-time test progress of each mounted SSD from the currently running test process and returns the progress information to the host computer. In this embodiment, the returned progress information is organized in JSON (JavaScript Object Notation) format, and the host computer saves the received test progress information as breakpoint information. To associate the breakpoint information with a specific slave device, the host computer saves the device identifier (the slave device's MAC address + IP address) together with the breakpoint information, forming a "device identifier - breakpoint information" association. The saving format can be a database table or a local configuration file; this embodiment does not impose specific limitations. In the subsequent test continuation phase, the host computer can find the corresponding breakpoint information based on the device identifier, thereby accurately determining the start point of the test continuation.
[0033] Step S30: Through an external hardware control unit, perform a forced power-off and power-on operation on the lower-level machine that has malfunctioned; As an example, the host computer sends a power-off control command to the relay module via a USB interface. Upon receiving the command, the relay module activates its internal relay, disconnecting the power-on pin of the slave device, thus forcibly powering off the slave device. After a preset delay, the host computer sends a power-on control command to the relay module again via the USB interface. The relay module restores the power connection to the slave device, and the slave device begins to restart.
[0034] Specifically, the step of performing forced power-off and power-on operations on the malfunctioning lower-level machine via an external hardware control unit includes: sending a power-off control command to the external hardware control unit via a USB interface, causing the external hardware control unit to respond to the power-off control command and disconnect the power connection of the lower-level machine; and after a preset delay, sending a power-on control command to the external hardware control unit via a USB interface, causing the external hardware control unit to respond to the power-on control command and restore the power connection of the lower-level machine.
[0035] In an exemplary manner, the external hardware control unit employs a relay module, communicating with the host computer via a USB interface. The controlled switch pin of the relay module is connected to the power-on pin of the lower-level computer via DuPont wires. The host computer sends a power-off control command to the relay module via the USB interface; in this embodiment, this command is a hexadecimal command frame "AT+RELAY=OFF". Upon receiving the power-off control command, the relay module parses the command frame and identifies that the controlled switch pin needs to be placed in the off state. The internal drive circuit of the relay module energizes the relay coil, causing the contacts to open, thereby cutting off the electrical connection between the lower-level computer's power-on pin and the power supply, forcibly powering down the lower-level computer. After the lower-level computer is powered down, the host computer enters a waiting state for a preset delay. In this embodiment, the preset delay is 10 seconds to ensure that the capacitors on the lower-level computer's motherboard are completely discharged and the system is completely powered off. After the delay, the host computer proceeds to the next step. After the preset delay ends, the host computer sends a power-on control command to the relay module via the USB interface. In this embodiment, the command is a hexadecimal command frame "AT+RELAY=ON".
[0036] After receiving the power-on control command, the relay module drives the relay coil to de-energize, the contacts close, and the electrical connection between the lower-level machine's power-on pin and the power supply is restored. The lower-level machine then powers on and starts the operating system. It should be noted that the aforementioned "AT+RELAY=OFF" and "AT+RELAY=ON" command formats are merely specific examples. Other command formats can be used in other embodiments, as long as they can achieve the on / off control of the relay module. This embodiment does not impose specific limitations.
[0037] Step S40: After the lower-level machine is powered on again, the target lower-level machine after restarting is identified according to the saved device identifier, the channel status information of the target lower-level machine after restarting is obtained, and the consistency of the channel status information after restarting is checked by using the saved correspondence between the connection channel and the SSD under test. As an example, after the lower-level machine completes a power-on and boots up its operating system, the upper-level machine, based on the saved device identifier (MAC address + IP address), identifies the target lower-level machine after it reconnects to the network. Subsequently, the upper-level machine sends a device enumeration request to the target lower-level machine to obtain its physical channel address and corresponding SSD serial number information after the reboot. Because the Linux system may reallocate device nodes after a reboot, the mapping between the physical channel address and SSD serial number after the reboot may differ from that before the anomaly. The upper-level machine compares the mapping obtained after the reboot with the saved mapping one by one.
[0038] If the SSD serial number corresponding to a physical channel address matches the saved serial number, the channel is considered to have passed the verification, and the SSD on that channel is allowed to continue the test. If the SSD serial number corresponding to a physical channel address does not match the saved serial number, or a valid SSD serial number cannot be read on that channel, the channel is considered abnormal, the channel is marked, and the continued test of the SSD corresponding to that channel is skipped.
[0039] Specifically, after the lower-level machine is powered on again, the target lower-level machine after restarting is identified according to the saved device identifier, the channel status information of the target lower-level machine after restarting is obtained, and the consistency of the channel status information after restarting is checked using the saved correspondence between the connection channel and the SSD under test. This includes: after the lower-level machine is powered on again, the target lower-level machine after restarting is identified according to the saved device identifier, and a device enumeration request is sent to the target lower-level machine to obtain the physical channel address and the corresponding SSD serial number after restarting; the physical channel address and the corresponding SSD serial number after restarting are compared with the saved correspondence one by one; if each physical channel address and its corresponding SSD serial number are consistent with the saved correspondence, the check is deemed to be successful, and the channel is allowed to continue testing; if there is a case where the physical channel address is consistent but the SSD serial number is inconsistent or cannot be read, the channel is deemed abnormal, the channel is marked, and the continued testing of the SSD corresponding to the channel is skipped.
[0040] As an example, after the lower-level machine powers on again and boots its operating system, the upper-level machine saves the device identifier (MAC address + IP address in this embodiment) for device discovery within the local area network. For example, the upper-level machine saves the IP address of an abnormal lower-level machine, such as 192.168.1.100, and the MAC address, such as AA:BB:CC:DD:EE:FF. After the lower-level machine restarts and reconnects to the network, the upper-level machine uses the ARP table or actively pings to detect whether the IP address has returned to online status. When the IP address is detected to be online again, the upper-level machine compares the MAC address to confirm that the lower-level machine is the target lower-level machine after restarting. The upper-level machine then sends a device enumeration request to the confirmed target lower-level machine to obtain the physical channel address and corresponding SSD serial number information of the target lower-level machine after restarting. Because the allocation order of device nodes may differ after a Linux system reboot, for example, before a reboot, the BDF address "0000:03:00.0" corresponds to the SSD serial number "S3Z8NA0RB00001", and the device node is " / dev / nvme0n1"; after a reboot, the BDF address "0000:03:00.0" still corresponds to the SSD serial number "S3Z8NA0RB00001", but the device node may become " / dev / nvme0n2". Therefore, the device node ( / dev / nvme0nX) alone cannot reliably identify the SSD; it must be confirmed through a dual binding of the physical channel address and the SSD serial number.
[0041] The host computer will compare the mapping between the physical channel addresses and SSD serial numbers obtained after the reboot with the saved mapping, channel by channel. Under normal circumstances, each physical channel address and its corresponding SSD serial number will be completely consistent with the saved mapping. For example, if the SSD with serial number "S3Z8NA0RB00001" is still located at BDF address "0000:03:00.0", then the channel is considered to have passed the verification, and the SSD on that channel is allowed to continue testing. Under abnormal circumstances, if the SSD serial number corresponding to a certain physical channel address, such as BDF address "0000:03:00.0", is inconsistent with the saved serial number, or if a valid SSD serial number cannot be read from that channel, then the channel is considered abnormal. The host computer will mark this channel and skip the continued testing of the SSD corresponding to this channel in subsequent testing processes.
[0042] By using the above comparison method, it can be ensured that subsequent test operations are only performed on the same physical disk as before the anomaly, avoiding the problem of writing test data to the wrong disk due to drive letter drift, thereby ensuring the accuracy of test data and the validity of test results.
[0043] Step S50: After the verification is completed, a continuation test instruction is generated based on the verification result and the saved test progress information and sent to the target lower-level machine, so that the target lower-level machine continues to execute the test at the test position determined by the continuation test instruction.
[0044] As an example, after completing the consistency check, the host computer generates a continuation test command based on the saved test progress information and check results, and sends it to the target slave computer. The continuation test command includes breakpoint location information and channel information that has passed the check.
[0045] After receiving the continuation test instruction, the target lower-level machine skips the completed test items on the verified channel according to the breakpoint position information and continues to execute the test from the next test sub-item of the currently executing test item, without having to start from the first test item again.
[0046] Specifically, the step of generating a continuation test instruction based on the verification result and the saved test progress information, and sending it to the lower-level machine so that the lower-level machine continues to execute the test at the test position determined by the continuation test instruction, includes: generating a continuation test instruction containing breakpoint position information based on the saved list of completed test items and the number of the currently executing test item; binding the corresponding breakpoint position information to the channel that has passed the verification based on the verification result; sending the continuation test instruction to the target lower-level machine so that the target lower-level machine continues to execute the test on the channel that has passed the verification; and skipping the completed test items based on the breakpoint position information and continuing to execute the test from the next test sub-item of the currently executing test item.
[0047] As an example, the host computer generates a continuation test instruction based on the saved test progress information. The continuation test instruction is organized in JSON format and includes breakpoint location information and channel information. The host computer sends the generated continuation test instruction to the target slave computer via an SSH channel. Upon receiving the continuation test instruction, the target slave computer parses the instruction content and, on the channel specified in the continuation test instruction, skips completed test items based on the breakpoint location information, continuing execution from the next test sub-item of the currently executing test item. For example, taking the SSD on channel "0000:03:00.0" as an example: this SSD has completed "high temperature read / write test" and "low temperature read / write test," and is currently executing the third sub-item of "temperature cycle test." Therefore, during continuation test, the completed "high temperature read / write test" and "low temperature read / write test," as well as the first three sub-items of "temperature cycle test," are skipped, and execution directly begins from the fourth sub-item of "temperature cycle test."
[0048] By using the above method, it is ensured that only channels that have passed the verification are tested, and channels with abnormalities are automatically skipped. This avoids wasting production capacity by repeated testing and prevents data errors that may occur when testing abnormal channels.
[0049] In this embodiment, a status request is sent to the lower-level machine, and the response result from the lower-level machine is used to determine whether the lower-level machine has malfunctioned. When the lower-level machine is determined to be malfunctioning, its current operating status information is acquired and saved. This operating status information includes at least: a device identifier that uniquely identifies the lower-level machine, the correspondence between each connection channel of the lower-level machine and the SSD under test, and the test progress information of each SSD under test. An external hardware control unit performs a forced power-off and power-on operation on the malfunctioning lower-level machine. After the lower-level machine is powered on again, the target lower-level machine after restarting is identified based on the saved device identifier, the channel status information of the target lower-level machine after restarting is acquired, and the saved... The correspondence between the connection channel and the SSD under test is used to verify the consistency of the channel status information after the restart. After the verification is completed, a continuation test instruction is generated based on the verification result and the saved test progress information and sent to the target lower-level machine. This allows the target lower-level machine to continue the test at the test position determined by the continuation test instruction. This solves the technical problem in related technologies where, during the high and low temperature testing of SSDs, the test is interrupted due to abnormalities such as system crashes or software freezes. The problem is how to automatically restore the test environment without manual intervention and accurately resume the test from the breakpoint before the abnormality occurred, so as to avoid the delay caused by manual intervention, the waste of time in repeated tests, and the data corruption caused by changes in the device mapping relationship after the restart.
[0050] Secondly, embodiments of this application also provide an apparatus for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing.
[0051] In one embodiment, reference is made to Figure 2 , Figure 2 This is a functional module diagram of an embodiment of the apparatus for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, as described in this application. Figure 2 As shown, the device for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing includes: The sending and judging module 10 is used to send a status request to the lower-level machine and judge whether the lower-level machine has an abnormality based on the response result obtained from the lower-level machine. The first acquisition module 20 is used to acquire and save the current operating status information of the lower-level machine when it is determined that the lower-level machine has an abnormality. The operating status information includes at least: a device identifier for uniquely identifying the lower-level machine, the correspondence between each connection channel of the lower-level machine and the SSD under test, and the test progress information of each SSD under test. The power-off and power-on module 30 is used to perform forced power-off and power-on operations on the lower-level machine that has malfunctioned through an external hardware control unit. The second acquisition module 40 is used to identify the target lower-level machine after the lower-level machine is powered on again according to the saved device identifier, acquire the channel status information of the target lower-level machine after restarting, and use the saved correspondence between the connection channel and the SSD under test to perform a consistency check on the channel status information after restarting. The testing module 50 is used to generate a continuation test instruction based on the verification result and the saved test progress information after the verification is completed, and send it to the target lower-level machine so that the target lower-level machine continues to execute the test at the test position determined by the continuation test instruction.
[0052] Furthermore, in one embodiment, the sending and determining module 10 is used for: Through communication interaction with the lower-level machine, the response result of the lower-level machine to the status request is obtained, and the abnormality type of the lower-level machine is determined based on the response result, wherein the determination method includes any one or a combination of the following; When the response result meets the first preset condition, it is determined that the lower-level machine has crashed. The first preset condition includes not receiving a response from the lower-level machine to the status request within a preset time, or receiving a response but still not responding to the further sent connectivity probe command within a preset time. When the response result meets the second preset condition, it is determined that the lower-level machine has experienced a software freeze. The second preset condition includes receiving the response from the lower-level machine to the status request within a preset time, but the content of the response remains unchanged within the preset time.
[0053] Furthermore, in one embodiment, the first acquisition module 20 is used to: Send a device enumeration request to the lower-level machine; Receive device enumeration information returned by the lower-level machine, the device enumeration information including the physical address of each connection channel and the SSD serial number corresponding to each physical address; The correspondence between the physical address and the SSD serial number is saved as the correspondence between the connection channel and the SSD under test.
[0054] Furthermore, in one embodiment, the first acquisition module 20 is used to: Send a progress query command to the lower-level machine; Receive the list of completed SSD tests and the number of the test item currently being executed from the lower-level machine; The list of completed test items and the number of the currently executing test item are saved as the test progress information.
[0055] Furthermore, in one embodiment, the power-off and power-on module 30 is used for: A power-off control command is sent to the external hardware control unit via the USB interface, causing the external hardware control unit to respond to the power-off control command and disconnect the power connection of the lower-level machine; After a preset delay, a power-on control command is sent to the external hardware control unit via the USB interface, causing the external hardware control unit to respond to the power-on control command and restore the power connection of the lower-level machine.
[0056] Furthermore, in one embodiment, the second acquisition module 40 is used for: After the lower-level machine is powered on again, the target lower-level machine after restarting is identified according to the saved device identifier, and a device enumeration request is sent to the target lower-level machine to obtain the physical channel address and the corresponding SSD serial number after restarting. The physical channel address and corresponding SSD serial number after the reboot are compared one by one with the saved correspondence: If the physical channel address and its corresponding SSD serial number match the saved correspondence, the verification is considered successful, and the channel is allowed to continue the test. If there are cases where the physical channel address is the same but the SSD serial number is inconsistent or cannot be read, the channel is determined to be abnormal, the channel is marked and the continued testing of the SSD corresponding to the channel is skipped.
[0057] Furthermore, in one embodiment, the test module 50 is used for: Based on the saved list of completed test items and the number of the currently executing test item, generate a continuation test instruction containing breakpoint location information; Based on the verification results, the corresponding breakpoint location information is bound to the channels that have passed the verification. The continued testing command is sent to the target lower-level machine, so that the target lower-level machine is on the channel that has been verified; Based on the breakpoint location information, skip completed test items and continue execution from the next test sub-item of the currently executing test item.
[0058] The functions of each module in the above-mentioned device for automatically handling and continuing testing after an SSD system malfunction during high and low temperature testing correspond to the steps in the above-mentioned method embodiment for automatically handling and continuing testing after an SSD system malfunction during high and low temperature testing. Their functions and implementation processes will not be described in detail here.
[0059] Thirdly, this application provides a device for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing. This device can be a personal computer (PC), laptop, server, or other device with data processing capabilities.
[0060] Reference Figure 3 , Figure 3 This is a schematic diagram of the hardware structure of the device for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, as described in an embodiment of this application. In this embodiment, the device for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing may include a processor, memory, a communication interface, and a communication bus.
[0061] The communication bus can be of any type and is used to interconnect the processor, memory, and communication interface.
[0062] Communication interfaces include input / output (I / O) interfaces, physical interfaces, and logical interfaces. These interfaces are used for interconnecting internal devices within the SSD system to automate testing and allow continued testing after an anomaly. They also serve as interfaces for interconnecting the system with other devices (such as other computing devices or user equipment). Physical interfaces can be Ethernet interfaces, fiber optic interfaces, ATM interfaces, etc.; user equipment can be displays, keyboards, etc.
[0063] Memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0064] The processor can be a general-purpose processor, which can call a program stored in memory for automated handling and continued testing after an SSD system malfunction during high and low temperature testing, and execute the method for automated handling and continued testing after an SSD system malfunction during high and low temperature testing provided in this application. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the program for automated handling and continued testing after an SSD system malfunction during high and low temperature testing is called can refer to the various embodiments of the method for automated handling and continued testing after an SSD system malfunction during high and low temperature testing in this application, and will not be repeated here.
[0065] Those skilled in the art will understand that Figure 3The hardware structure shown does not constitute a limitation of this application and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0066] Fourthly, embodiments of this application also provide a computer-readable storage medium.
[0067] The present application stores a program on a computer-readable storage medium for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing. When the program is executed by a processor, it implements the steps of the method described above for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing.
[0068] The method implemented when the program for automatically handling and continuing testing after an SSD system malfunction during high and low temperature testing is executed can refer to the various embodiments of the method for automatically handling and continuing testing after an SSD system malfunction during high and low temperature testing in this application, and will not be repeated here.
[0069] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0070] The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus. The terms "first," "second," and "third," etc., are used to distinguish different objects, etc., and do not indicate a sequence, nor do they limit "first," "second," and "third" to different types.
[0071] In the description of the embodiments of this application, terms such as "exemplary," "for example," or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a concrete manner.
[0072] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.
[0073] In some processes described in the embodiments of this application, multiple operations or steps are included in a specific order. However, it should be understood that these operations or steps may not be executed in the order they appear in the embodiments of this application, or they may be executed in parallel. The sequence number of the operation is only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.
[0074] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device to execute the methods described in the various embodiments of this application.
[0075] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, characterized in that, include: Send a status request to the lower-level machine, and determine whether the lower-level machine has encountered an abnormality based on the response result obtained from the lower-level machine; When it is determined that the lower-level machine is abnormal, the current operating status information of the lower-level machine is obtained and saved. The operating status information includes at least: a device identifier for uniquely identifying the lower-level machine, the correspondence between each connection channel of the lower-level machine and the SSD under test, and the test progress information of each SSD under test. The lower-level machine that malfunctions is forced to shut down and restart via an external hardware control unit. After the lower-level machine is powered on again, the target lower-level machine after restarting is identified according to the saved device identifier, the channel status information of the target lower-level machine after restarting is obtained, and the consistency of the channel status information after restarting is checked by using the saved correspondence between the connection channel and the SSD under test. After verification, a continuation test instruction is generated based on the verification results and the saved test progress information and sent to the target lower-level machine, so that the target lower-level machine continues to execute the test at the test position determined by the continuation test instruction.
2. The method for automated handling and continued testing after an SSD system malfunctions during high and low temperature testing, as described in claim 1, is characterized in that... The step of determining whether the lower-level machine has malfunctioned based on the obtained response result from the lower-level machine includes: Through communication interaction with the lower-level machine, the response result of the lower-level machine to the status request is obtained, and the abnormality type of the lower-level machine is determined based on the response result, wherein the determination method includes any of the following: When the response result meets the first preset condition, it is determined that the lower-level machine has crashed. The first preset condition includes not receiving a response from the lower-level machine to the status request within a preset time, or receiving a response but still not responding to the further sent connectivity probe command within a preset time. When the response result meets the second preset condition, it is determined that the lower-level machine has experienced a software freeze. The second preset condition includes receiving the response from the lower-level machine to the status request within a preset time, but the content of the response remains unchanged within the preset time.
3. The method for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, as described in claim 1, is characterized in that... When it is determined that the lower-level machine has malfunctioned, the step of acquiring and saving the current operating status information of the lower-level machine includes: Send a device enumeration request to the lower-level machine; Receive device enumeration information returned by the lower-level machine, the device enumeration information including the physical address of each connection channel and the SSD serial number corresponding to each physical address; The correspondence between the physical address and the SSD serial number is saved as the correspondence between the connection channel and the SSD under test.
4. The method for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, as described in claim 1, is characterized in that... When it is determined that the lower-level machine has malfunctioned, the step of acquiring and saving the current operating status information of the lower-level machine includes: Send a progress query command to the lower-level machine; Receive the list of completed SSD tests and the number of the test item currently being executed from the lower-level machine; The list of completed test items and the number of the currently executing test item are saved as the test progress information.
5. The method for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, as described in claim 1, is characterized in that... The process of performing forced power-off and power-on operations on the malfunctioning lower-level machine via an external hardware control unit includes: A power-off control command is sent to the external hardware control unit via the USB interface, causing the external hardware control unit to respond to the power-off control command and disconnect the power connection of the lower-level machine; After a preset delay, a power-on control command is sent to the external hardware control unit via the USB interface, causing the external hardware control unit to respond to the power-on control command and restore the power connection of the lower-level machine.
6. The method for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, as described in claim 1, is characterized in that... After the lower-level machine is powered on again, the target lower-level machine after restarting is identified according to the saved device identifier, the channel status information of the target lower-level machine after restarting is obtained, and the consistency of the channel status information after restarting is checked using the saved correspondence between the connection channel and the SSD under test, including: After the lower-level machine is powered on again, the target lower-level machine after restarting is identified according to the saved device identifier, and a device enumeration request is sent to the target lower-level machine to obtain the physical channel address and the corresponding SSD serial number after restarting. The physical channel address and corresponding SSD serial number after the reboot are compared one by one with the saved correspondence: If the physical channel address and its corresponding SSD serial number match the saved correspondence, the verification is considered successful, and the channel is allowed to continue the test. If there are cases where the physical channel address is the same but the SSD serial number is inconsistent or cannot be read, the channel is determined to be abnormal, the channel is marked and the continued testing of the SSD corresponding to the channel is skipped.
7. The method for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, as described in claim 1, is characterized in that... The step of generating a continuation test instruction based on the verification result and the saved test progress information, and sending it to the lower-level machine, so that the lower-level machine continues to execute the test at the test position determined by the continuation test instruction, includes: Based on the saved list of completed test items and the number of the currently executing test item, generate a continuation test instruction containing breakpoint location information; Based on the verification results, the corresponding breakpoint location information is bound to the channels that have passed the verification. The continued testing instruction is sent to the target lower-level machine, so that the target lower-level machine, on the channel that has passed the verification, skips the completed test items according to the breakpoint position information and continues to execute the test from the next test sub-item of the currently executing test item.
8. A device for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, characterized in that, The device for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing includes: The sending and judging module is used to send status requests to the lower-level machine and judge whether the lower-level machine has encountered an abnormality based on the response result obtained from the lower-level machine. The first acquisition module is used to acquire and save the current operating status information of the lower-level machine when it is determined that the lower-level machine has an abnormality. The operating status information includes at least: a device identifier for uniquely identifying the lower-level machine, the correspondence between each connection channel of the lower-level machine and the SSD under test, and the test progress information of each SSD under test. The power-off and power-on module is used to perform forced power-off and power-on operations on the lower-level machine that malfunctions through an external hardware control unit; The second acquisition module is used to identify the target lower-level machine after the lower-level machine is powered on again according to the saved device identifier, acquire the channel status information of the target lower-level machine after restarting, and use the saved correspondence between the connection channel and the SSD under test to perform a consistency check on the channel status information after restarting. The testing module is used to generate a continuation test instruction based on the verification result and the saved test progress information after the verification is completed, and send it to the target lower-level machine so that the target lower-level machine can continue to execute the test at the test position determined by the continuation test instruction.
9. A device for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing, characterized in that, The device for automatically handling and continuing testing after an SSD system malfunction during high and low temperature testing includes a processor, a memory, and a program for automatically handling and continuing testing after an SSD system malfunction during high and low temperature testing, which is stored in the memory and can be executed by the processor. When the program for automatically handling and continuing testing after an SSD system malfunction during high and low temperature testing is executed by the processor, it implements the steps of the method for automatically handling and continuing testing after an SSD system malfunction during high and low temperature testing as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing. When the program is executed by a processor, it implements the steps of the method for automatically handling and continuing testing after an SSD system malfunctions during high and low temperature testing as described in any one of claims 1 to 7.
