Automatic testing method and system for hot plug of solid-state hardware
The solid-state hardware hot-swap testing method, which utilizes automated control and real-time electrical parameter acquisition, solves the problems of low testing efficiency and poor consistency in existing technologies. It achieves an efficient and accurate testing process, ensuring the reliability of solid-state hardware and system stability.
Patent Information
- Application Number
- CN202610100313.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-26
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2046-01-26
AI Technical Summary
Existing hot-swap testing for solid-state hardware relies on manual operation, resulting in low testing efficiency, poor consistency, and susceptibility to human error. It also lacks real-time status monitoring and automated verification of hardware system status identification, making it impossible to fully assess the impact of hot-swap operations.
The system receives test configuration parameters through automated scripts, controls auxiliary fixtures to perform on/off operations on power and data lines, collects electrical parameters in real time, performs anomaly detection and system verification, and generates test reports.
It improves testing efficiency and accuracy, ensures the consistency and repeatability of the testing process, reduces human error, and avoids hardware damage and system failure.
Smart Images

Figure CN121579293A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer hardware testing, in particular to a solid-state hardware hot plug automated testing method and system. BACKGROUND
[0002] The hot plug testing of hardware devices such as solid-state disks is an important link for evaluating the reliability and stability of the hardware devices. The existing testing process mainly relies on manual operation or basic automated tools. The tester needs to manually control the on-off operation of the power cord and data cord of the hard disk, and at the same time, uses an oscilloscope or a measuring device to observe the changes of electrical parameters, and records the test results manually. This operation mode significantly reduces the testing efficiency, and it is difficult to guarantee the consistency and repeatability of the testing process, and human operation errors can easily cause distortion of the test data. In multiple plug-in and plug-out cycle tests, manual operation cannot accurately control the on-off timing between the power cord and the data cord, for example, the time interval between the disconnection of the power cord and the disconnection of the data cord is difficult to maintain stably, which may cause instantaneous overload of the hardware or system crash, and further cause physical damage of the hardware or failure of the operating system. Although some existing automated testing solutions can realize simple on-off function, they generally lack real-time state monitoring capability for the testing process, and cannot dynamically collect key electrical parameters such as voltage and current during the operation process, nor can they analyze the collected data in real time to identify abnormal states. When these solutions detect sudden changes in electrical parameters, they cannot automatically pause the testing process or save the on-site state, making it difficult to trace the abnormal causes. In addition, the existing technology lacks an automated verification mechanism for the identification state of the hardware in the operating system, for example, it cannot automatically query the device identification state, transmission bandwidth or connection rate information, nor can it capture error information in the system kernel log, so it is difficult to fully evaluate the impact of the hot plug operation on the hardware function and the overall stability of the system. The above problems make the test results unreliable, which cannot meet the high-precision and high-repeatability testing requirements, and restrict the quality verification efficiency of the hardware products.
[0003] The above content is only used to assist in understanding the technical solutions of the present application, and does not represent the acknowledgement of the above content as prior art. SUMMARY
[0004] The main purpose of the present application is to provide a solid-state hardware hot plug automated testing method and system, which aims to improve the testing efficiency and testing precision of the solid-state hardware hot plug.
[0005] To achieve the above purpose, the present application provides a solid-state hardware hot plug automated testing method, which comprises: receiving test configuration parameters input by a user through an automated script; the test configuration parameters include plug-in and plug-out interval time and plug-in and plug-out cycle number; The test configuration parameters are sent to the auxiliary jig to perform the on-off operation of the power line and the data line of the solid-state hardware through the auxiliary jig, and the electrical parameters are collected during the on-off operation to obtain electrical parameter data; The electrical parameter data is compared with a preset threshold to generate an abnormality judgment result; When the abnormality judgment result indicates that the operation is successful, after completing one on-off operation, the identification state of the solid-state hardware in the system is verified to generate a system verification result; Based on the abnormality judgment result, the system verification result, and the plug-in cycle number in the test configuration parameters, the success number is counted and test report data is generated.
[0006] In an embodiment, the step of sending the test configuration parameters to the auxiliary jig to perform the on-off operation of the power line and the data line of the solid-state hardware through the auxiliary jig, and collecting the electrical parameters during the on-off operation to obtain electrical parameter data includes: The plug-in interval time is extracted from the test configuration parameters, time control data is generated, and the plug-in cycle number is extracted from the test configuration parameters, and cycle control data is generated; Based on the time control data and the cycle control data, a wireless control instruction containing a sequence of disconnect instructions and connect instructions is generated; The wireless control instruction is sent to the wireless communication module of the auxiliary jig through wireless communication to control the electromagnetic relay array of the auxiliary jig to simultaneously perform the on-off operation of the power line and the data line of the solid-state hardware; During the on-off operation of the electromagnetic relay array, the power line voltage change and the power line current change are collected by the state monitoring circuit of the auxiliary jig to obtain power line voltage change data and power line current change data; The power line voltage change data and the power line current change data are returned through wireless communication to obtain electrical parameter data.
[0007] In an embodiment, the step of sending the wireless control instruction to the wireless communication module of the auxiliary jig through wireless communication to control the electromagnetic relay array of the auxiliary jig to simultaneously perform the on-off operation of the power line and the data line of the solid-state hardware includes: The wireless control instruction is sent to the wireless communication module of the auxiliary jig; The electromagnetic coil on-off of the electromagnetic relay array is controlled through the wireless communication module to drive the relay contact to perform the on-off operation of the power line of the solid-state hardware; At the same time of controlling the electromagnetic relay array, the on-off operation of the data line of the solid-state hardware is synchronously controlled through the auxiliary contact of the electromagnetic relay array.
[0008] In an embodiment, the method further includes: After sending the disconnection instruction, the electromagnetic relay array is controlled to disconnect the solid-state hardware power line first, and then disconnect the data line, and the time interval between the two is less than the preset minimum time interval. After sending the connection instruction, the electromagnetic relay array is controlled to connect the solid-state hardware power line first, and then connect the data line, and the time interval between the two is less than the preset minimum time interval.
[0009] In an embodiment, during the on-off operation of the electromagnetic relay array, the step of collecting the power line voltage change and the power line current change by the state monitoring circuit of the auxiliary jig to obtain the power line voltage change data and the power line current change data includes: When the electromagnetic relay array performs the disconnection operation, the voltage value change of the solid-state hardware power line is monitored in real time at a preset first sampling frequency; When the electromagnetic relay array performs the connection operation, the current value change of the solid-state hardware power line is monitored in real time at a preset second sampling frequency; During the monitoring process, when a sudden change in the voltage value or the current value is detected, the sampling frequency is increased to obtain high-resolution electrical parameter data; The high-resolution electrical parameter data is combined with the power line voltage change data and the power line current change data to obtain complete electrical parameter data.
[0010] In an embodiment, the step of comparing the electrical parameter data with the preset threshold to generate an abnormality judgment result includes: The electrical parameter data is received, and the voltage change data and the current change data in the electrical parameter data are extracted; The voltage change data is compared with a preset voltage threshold, and when the voltage change data exceeds the preset voltage threshold range, a voltage abnormality identifier is generated and the specific time point and the exceeding value of the voltage abnormality are recorded; The current change data is compared with a preset current threshold, and when the current change data exceeds the preset current threshold range, a current abnormality identifier is generated and the specific time point and the exceeding value of the current abnormality are recorded; Based on the voltage abnormality identifier and the current abnormality identifier, an abnormality judgment result is generated.
[0011] In an embodiment, the step of generating an abnormality judgment result based on the voltage abnormality identifier and the current abnormality identifier includes: When the voltage abnormality identifier indicates that there is a voltage abnormality or the current abnormality identifier indicates that there is a current abnormality, it is determined that the current plug-in operation is abnormal, and an operation abnormality identifier is generated; The occurrence time point of the operation abnormality identifier and the corresponding electrical parameter data are recorded to obtain abnormality record data; The number of continuous operation exception identifiers is counted, when the number of continuous exceptions reaches a preset pause threshold, a pause instruction is generated and subsequent plug-in cycles are stopped, and when the number of continuous exceptions reaches a preset termination threshold, a test termination instruction is generated and a safe power-off operation is performed.
[0012] In an embodiment, when the abnormality judgment result indicates that the operation is successful, after completing one on-off operation, the step of verifying the identification state of the solid-state hardware in the system to generate a system verification result comprises: After completing one on-off operation, the device identification state of the solid-state hardware in the operating system is queried through a system command; When the solid-state hardware is identified, the transmission bandwidth and connection rate information of the solid-state hardware are further queried to generate hardware performance data; When the solid-state hardware is not identified, the device identification error information in the system kernel log is recorded to generate a system error log; Based on the device identification state, the hardware performance data and the system error log, a system verification result is generated.
[0013] In an embodiment, based on the abnormality judgment result, the system verification result and the number of plug-in cycles in the test configuration parameters, the number of successes is counted and test report data is generated, which comprises: Based on the number of plug-in cycles in the test configuration parameters, the number of completed plug-in cycles, the number of successfully executed plug-in operations and the number of plug-in operations with exceptions are counted to generate number statistics data; The abnormality judgment result, the system verification result, the electrical parameter data and the number statistics data are integrated to generate test process data; The abnormality mode in the test process data is analyzed, and the abnormality mode is classified as a power line abnormality, a data line abnormality or a system identification abnormality to generate abnormality classification data; The test process data, the abnormality classification data and the test configuration parameters are merged and analyzed to generate test report data; the test report data includes the total number of plug-ins, the number of successes, the abnormality type, the electrical parameter over-standard record and the abnormality occurrence mode.
[0014] In addition, to achieve the above-mentioned purpose, the present application also provides a solid-state hardware hot plug-in automated test system, which comprises a memory, a processor and a solid-state hardware hot plug-in automated test program stored in the memory and executable on the processor, and the solid-state hardware hot plug-in automated test program is configured to implement the steps of the solid-state hardware hot plug-in automated test method.
[0015] The solid-state hardware hot plug automatic test method and system provided by the application can receive test configuration parameters input by a user through an automatic script, control an auxiliary jig to perform on-off operation of a power line and a data line of the solid-state hardware, collect electrical parameters in real time for analysis, and automatically verify system recognition state, so that the test process can be efficiently and accurately completed, the test efficiency of the solid-state hardware hot plug can be improved, the consistency and repeatability of the test process can be ensured, human operation errors can be reduced, the test precision of the solid-state hardware hot plug can be improved, and hardware damage and system failure can be avoided. BRIEF DESCRIPTION OF DRAWINGS
[0016] The drawings incorporated in the specification and forming a part thereof illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.
[0018] Figure 1 A flowchart is provided for an embodiment of the solid-state hardware hot plug automatic test method of the present application. Figure 2 A structural diagram is provided for an embodiment of the solid-state hardware hot plug automatic test system of the present application.
[0019] Explanation of reference numerals: 10, memory; 20, processor.
[0020] The purpose of the present application, functional characteristics and advantages will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0021] The technical solutions in the present application will be described clearly and completely in the present application with reference to the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments. The components of the present application described and shown in the accompanying drawings can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0022] It should be understood that like numerals and letters refer to like items throughout the drawings, and once an item is defined in one drawing, it is not necessary to further define and explain it in the subsequent drawings. Meanwhile, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0023] In the prior art, the hardware device hot plug test method such as solid state disk mainly relies on manual operation or simple automatic tool, resulting in low test efficiency, poor consistency, and being easily affected by human error. Manual operation is difficult to accurately control the on-off timing of power line and data line, which may cause hardware damage. The existing automatic scheme lacks real-time state monitoring, abnormal response and automatic verification ability of hardware system identification state, and cannot fully evaluate the influence of hot plug operation.
[0024] Based on this, the embodiment of the present application provides a solid state hardware hot plug automatic test method, referring to Figure 1 The solid state hardware hot plug automatic test method comprises steps S100-S500, wherein: Step S100, receiving test configuration parameters input by a user through an automatic script; the test configuration parameters include plug interval time and plug cycle number; Step S200, sending the test configuration parameters to an auxiliary jig to perform on-off operation of power line and data line of the solid state hardware through the auxiliary jig, and collecting electrical parameters in the on-off operation process to obtain electrical parameter data; Step S300, comparing the electrical parameter data with a preset threshold to generate an abnormality judgment result; Step S400, when the abnormality judgment result indicates that the operation is successful, verifying the identification state of the solid state hardware in the system after completing one on-off operation to generate a system verification result; Step S500, based on the abnormality judgment result, the system verification result and the plug cycle number in the test configuration parameters, counting the success number and generating test report data.
[0025] In this embodiment, the automation script refers to a pre-written program code that is configured to automatically perform a series of operations, such as receiving user input, sending instructions, processing data, etc., to achieve the automation of the test process. The test configuration parameters refer to the setting values used to define the specific behavior of the hot plug test, which include the plug interval time and the plug cycle number. The plug interval time is used to control the time interval between each on-off operation, while the plug cycle number defines the total number of on-off operations that need to be performed in the entire test process. The auxiliary jig refers to a specially designed hardware device that is used to physically control the on-off of the power line and data line of the solid-state hardware, and is integrated with sensors to collect electrical parameters. The jig is usually connected to the test system through a communication interface, receives control instructions and returns collected data. The solid-state hardware refers to the target device for hot plug testing, such as solid-state drives (SSDs) or other storage devices using flash memory technology.
[0026] In this embodiment, the electrical parameter data refers to the data set of voltage, current, etc. that changes with time collected by the sensor during the on-off operation of the power line and data line of the solid-state hardware. The preset threshold refers to the pre-set judgment standard or range when comparing the electrical parameter data. When the collected electrical parameter data exceeds the threshold range, it is judged as abnormal. The abnormality judgment result refers to the judgment of whether the current hot plug operation is successful or abnormal according to the comparison result of the electrical parameter data and the preset threshold. The system verification result refers to the verification and evaluation of whether the solid-state hardware is correctly identified in the system, whether its performance meets the expectations, etc. after completing an on-off operation of the solid-state hardware. The test report data refers to the comprehensive report generated after integrating and analyzing the various data, statistical results, abnormal situations and system verification results in the test process.
[0027] In this embodiment, the solid-state hardware hot plug automation test method first receives the test configuration parameters input by the user through the automation script. The test configuration parameters can include the plug interval time and the plug cycle number. For example, the user can manually input these parameters through the command line interface, or input them through the text box or drop-down menu of the graphical user interface (GUI). These parameters are used to guide the subsequent test process, for example, the plug interval time can be set to a fixed value, and the plug cycle number can be set to a preset integer value.
[0028] Subsequently, the received test configuration parameters are sent to the auxiliary jig. The auxiliary jig is configured to perform the on-off operation of the power line and the data line of the solid-state hardware according to these parameters. In the process of performing the on-off operation, the auxiliary jig simultaneously collects electrical parameters to obtain electrical parameter data. Specifically, the test configuration parameters can be sent to the auxiliary jig through a wired connection (such as USB, serial port), and after the controller inside the auxiliary jig receives the instructions, it drives the relay or other switching elements to physically connect or disconnect the power line and the data line of the solid-state hardware. When these operations occur, the sensors on the auxiliary jig can be configured to continuously monitor the voltage and current changes on the power line and the data line, and record these raw data to form electrical parameter data.
[0029] Further, the collected electrical parameter data is compared with a preset threshold to generate an abnormality judgment result. The comparison process can be performed by a processor in the test system. For example, the voltage value or the current value in the electrical parameter data can be compared point by point with a fixed upper limit or lower limit value. If any data point exceeds the preset range, it can be marked as abnormal. The preset threshold can be an empirical value or manually set according to the specification of the solid-state hardware. After the comparison is completed, the system generates an abnormality judgment result indicating whether the on-off operation is normal according to the comparison result.
[0030] In this embodiment, when the abnormality judgment result indicates that the operation is successful, after completing an on-off operation, the identification state of the solid-state hardware in the system is verified to generate a system verification result. The verification process can be performed on the host of the test system. For example, whether the solid-state hardware is correctly identified and mounted by the operating system can be queried by executing standard commands (such as lsusb, lspci, diskpart, etc.) provided by the operating system. If the solid-state hardware is identified, it is considered that the system identification state is normal. If it is not identified, manual inspection of the system log may be required. The verification result is recorded for subsequent analysis.
[0031] Finally, based on the abnormality judgment result, the system verification result, and the number of plug-in cycles in the test configuration parameters, the number of successful times is counted and test report data is generated. The counting and report generation process can be completed on the main processor of the test system. For example, the system can simply add up all the plug-in times that are judged to be successful operations, and record the total number of plug-in cycles. The test report data can be a simple text file containing the total number of tests, the number of successful times, and a brief record of the abnormality judgment result and the system verification result of each operation.
[0032] In this embodiment, the test configuration parameters are received by an automated script, which drives the auxiliary jig to accurately perform the on-off operation of the power line and data line of the solid-state hardware, effectively solving the problems of low efficiency and inaccurate timing control of traditional manual operation. By collecting electrical parameters in real time during the on-off process and comparing them with the preset threshold, electrical abnormalities can be detected in a timely manner. At the same time, the identification state of the solid-state hardware in the system is automatically verified, and the impact of hot-plugging operation on hardware function and system stability is comprehensively evaluated. Thus, the method improves the test efficiency, ensures the consistency and accuracy of the test process, and provides comprehensive test report data, which helps to quickly locate and analyze potential problems in the hot-plugging process of solid-state hardware.
[0033] In a feasible implementation, the step of sending the test configuration parameters to the auxiliary jig to perform the on-off operation of the power line and data line of the solid-state hardware and collecting electrical parameters during the on-off operation to obtain electrical parameter data includes: extracting the plug-in interval time from the test configuration parameters, generating time control data, and extracting the plug-in cycle number from the test configuration parameters, generating cycle control data; based on the time control data and the cycle control data, generating a wireless control instruction containing a sequence of disconnect instructions and connect instructions; sending the wireless control instruction to the wireless communication module of the auxiliary jig through wireless communication to control the electromagnetic relay array of the auxiliary jig to simultaneously perform the on-off operation of the power line and data line of the solid-state hardware; during the on-off operation of the electromagnetic relay array, collecting the power line voltage change and power line current change through the state monitoring circuit of the auxiliary jig to obtain power line voltage change data and power line current change data; and returning the power line voltage change data and power line current change data through wireless communication to obtain the electrical parameter data.
[0034] In this embodiment, after the automated script receives the test configuration parameters input by the user, these parameters need to be parsed and structured. The plug-in interval time is the time interval between each on-off operation, usually in seconds or milliseconds, used to control the frequency of operation. The plug-in cycle number is the total number of times the on-off operation needs to be repeated during the entire test process. These raw parameters are converted into a format that can be recognized and processed by the system, i.e., time control data and cycle control data, for example, they can be stored as integer or floating-point number variables, or encapsulated in a specific data structure, so that the subsequent instruction generation module can use them.
[0035] In this embodiment, after obtaining the time control data and the cycle control data, the automation script or the control module logically constructs a series of operation instructions based on these data. These instructions include "turn-off instructions" for turning off the power lines and data lines of the solid-state hardware, and "turn-on instructions" for turning on the power lines and data lines of the solid-state hardware. The generation of the instruction sequence takes into account the plug-in interval time, ensuring sufficient waiting time between each turn-on and turn-off operation, and repeatedly generates corresponding instruction pairs according to the number of plug-in cycles. For example, an instruction sequence containing a "turn-on-wait-turn-off-wait" cycle can be generated, where the waiting time is determined by the plug-in interval time, and the cycle number is determined by the cycle control data. These instructions are finally packaged into a format suitable for wireless transmission, forming wireless control instructions.
[0036] In this embodiment, the generated wireless control instructions are sent to the auxiliary jig through wireless communication technology. The wireless communication module can be a Bluetooth module, a Wi-Fi module, a ZigBee module, or a dedicated radio frequency module, etc., which functions to receive wireless control instructions from the automation script and convert them into electrical signals recognizable by the internal controller of the auxiliary jig. After receiving the instructions, the controller inside the auxiliary jig drives the electromagnetic relay array. The electromagnetic relay array is composed of multiple electromagnetic relays, each responsible for controlling the turn-on and turn-off of one or more signals in the power lines or data lines of the solid-state hardware. Through wireless communication, physical isolation between the test system and the auxiliary jig can be achieved, improving the flexibility and safety of testing, and reducing the complexity of wiring. At the same time, the execution of turn-on and turn-off operations means that the power line and data line disconnection or connection actions are closely coordinated in time to simulate a real hot-plug scenario.
[0037] In this embodiment, when the electromagnetic relay array performs turn-on and turn-off operations on the power lines and data lines of the solid-state hardware according to the wireless control instructions, the status monitoring circuit inside the auxiliary jig works synchronously, collecting voltage and current values on the power lines in real time. The status monitoring circuit usually contains a high-precision analog-to-digital converter (ADC), a voltage sensor, and a current sensor (such as a Hall sensor or a shunt resistor), which can convert analog voltage and current signals into digital signals. The collected data reflects the changes in electrical characteristics of the power lines at the moment of turn-on and turn-off, such as voltage drop and current surge. These raw voltage and current data are recorded, forming power line voltage change data and power line current change data, providing a basis for subsequent electrical parameter analysis.
[0038] In this embodiment, the power line voltage change data and power line current change data collected by the state monitoring circuit of the auxiliary jig need to be transmitted back to the automated test system for further analysis and processing. The wireless communication module of the auxiliary jig is responsible for transmitting these collected electrical parameter data back through wireless means while receiving control instructions. The transmitted data can be raw sample data stream or data packets after preliminary processing (such as packing and compression). Through wireless transmission, the test system can obtain the electrical behavior of the solid-state hardware during the hot plug process in real time, without additional wired connection, further enhancing the automation and remote monitoring capability of the test system. These transmitted data collectively constitute the electrical parameter data.
[0039] In this embodiment, through the above technical solutions, the application can realize accurate automated control of solid-state hardware hot plug operation and efficient electrical parameter collection. Specifically, by extracting the plug-in interval time and plug-in cycle number from the test configuration parameters, and generating time control data and cycle control data accordingly, it is ensured that the test process is strictly executed according to the user's preset conditions, improving the accuracy and repeatability of the test. Based on these control data, wireless control instructions containing sequences of disconnect instructions and connect instructions are generated, so that the auxiliary jig can perform on-off operation according to the predetermined timing and cycle number, realizing high automation. Through wireless communication, these instructions are sent to the wireless communication module of the auxiliary jig, and the electromagnetic relay array is controlled to perform on-off operation of the power line and data line at the same time, effectively avoiding the complexity of traditional wired connection, improving the deployment flexibility and remote control capability of the test system. At the same time, during the on-off operation, the state monitoring circuit of the auxiliary jig can collect the power line voltage change and power line current change in real time and accurately, capture the electrical characteristics at the moment of hot plug, and transmit these data back through wireless communication, providing a comprehensive and reliable basis for subsequent electrical abnormality judgment. This wireless and automated control and data collection mechanism significantly improves the efficiency, reliability and convenience of solid-state hardware hot plug test.
[0040] In a feasible implementation, the step of sending wireless control instructions to the wireless communication module of the auxiliary jig through wireless communication to control the electromagnetic relay array of the auxiliary jig to perform on-off operation of the power line and data line of the solid-state hardware at the same time includes: sending the wireless control instructions to the wireless communication module of the auxiliary jig; controlling the electromagnetic coil of the electromagnetic relay array through the wireless communication module to drive the relay contact to perform on-off operation of the power line of the solid-state hardware; while controlling the electromagnetic relay array, synchronously controlling the on-off operation of the data line of the solid-state hardware through the auxiliary contact of the electromagnetic relay array.
[0041] In this embodiment, the wireless communication module of the auxiliary tool is used to transmit the wireless control instructions generated by the automation script, which include sequences of disconnect and connect instructions, to the auxiliary tool. The wireless communication module can be implemented using various wireless communication technologies, such as Bluetooth, Wi-Fi, Zigbee, or proprietary wireless protocols. The selection of the appropriate wireless communication technology should consider factors such as transmission distance, data rate, power consumption, and anti-interference ability. Before transmission, the wireless control instructions are usually encoded and packaged to ensure the integrity and accuracy of data transmission. After receiving these instructions, the auxiliary tool will analyze them and perform the corresponding operations according to the instruction content.
[0042] Further, the electromagnetic coil of the electromagnetic relay array is controlled by the wireless communication module to drive the relay contact to perform the on-off operation of the solid-state hardware power line. After receiving and analyzing the wireless control instructions, the wireless communication module will convert them into electrical signals to control the electromagnetic coil in the electromagnetic relay array. The electromagnetic coil will generate a magnetic field after being powered on, attracting the armature, thereby driving the relay contact to close or open. For the on-off operation of the solid-state hardware power line, the main contact of the relay is usually used to control the connection and disconnection of the power circuit. When the electromagnetic coil is powered on, the power line contact is closed and the power is turned on; when the electromagnetic coil loses power, the power line contact is opened and the power is cut off. This control method can achieve precise control of the power supply of the solid-state hardware.
[0043] On this basis, while controlling the electromagnetic relay array, the on-off operation of the solid-state hardware data line is simultaneously controlled through the auxiliary contact of the electromagnetic relay array. To achieve the synchronous on-off of the power line and the data line, this scheme utilizes the auxiliary contact of the electromagnetic relay array. The auxiliary contact is another set of contacts that are mechanically linked or electrically associated with the main contact (used for power line control). When the electromagnetic coil of the electromagnetic relay array is powered on or loses power, its main contact and auxiliary contact will act simultaneously or with a very small, controllable time difference. By connecting the data line of the solid-state hardware to these auxiliary contacts, we can ensure that the on-off operation of the data line is highly synchronized in time with the on-off operation of the power line. This design avoids the synchronization errors that may be introduced by using independent control mechanisms, thereby ensuring the coordination of power and data signals during hot plug.
[0044] In the embodiment, the wireless control instruction is sent to the wireless communication module of the auxiliary jig, and the module is used to control the on-off of the electromagnetic coils of the electromagnetic relay array to drive the relay contacts to perform the on-off operation of the solid-state hardware power line. More importantly, while controlling the electromagnetic relay array, the on-off operation of the solid-state hardware data line is synchronously controlled through the auxiliary contacts of the electromagnetic relay array. This design enables the on-off operation of the power line and the data line to be highly synchronized, effectively solving the problem of system instability or data damage caused by the asynchronous power and data signals in the hot plug process. Since the power line and the data line are controlled by the main contacts and auxiliary contacts of the same electromagnetic relay array, the complexity and timing deviation that may be introduced by using independent control mechanisms are avoided, thereby improving the accuracy and reliability of the hot plug test and ensuring the stable identification and normal operation of the solid-state hardware in the system.
[0045] In a feasible implementation, the method further includes: after sending the disconnection instruction, controlling the electromagnetic relay array to disconnect the solid-state hardware power line first and then disconnect the data line, and the time interval between the two is less than a preset minimum time interval; after sending the connection instruction, controlling the electromagnetic relay array to connect the solid-state hardware power line first and then connect the data line, and the time interval between the two is less than a preset minimum time interval.
[0046] In the embodiment, when the system issues a disconnection instruction, as the trigger condition for starting the subsequent disconnection sequence, the control logic of the auxiliary jig first drives the corresponding relay in the electromagnetic relay array to cut off the power supply of the solid-state hardware. After the power line is disconnected, another relay or auxiliary contact is driven to cut off the data line connection of the solid-state hardware. This sequence of disconnecting the power first and then the data is designed to ensure that the solid-state hardware is in a de-energized state when the data line is cut off, thereby avoiding data damage or electrical failure that may be caused by the data line being live when it is pulled out. The time difference between the disconnection of the power line and the disconnection of the data line is set to a small value, such as microseconds or milliseconds, to ensure the rapidity of the disconnection operation while ensuring that the power line is effectively cut off before the data line is cut off. The preset minimum time interval can be empirically set or determined through experiments according to the electrical characteristics of the solid-state hardware and the system response time, to optimize the test efficiency while ensuring safety.
[0047] In this embodiment, similarly, when the system issues a turn-on instruction, as the trigger condition for starting the subsequent turn-on sequence, the control logic of the auxiliary jig first drives the corresponding relay in the electromagnetic relay array to provide power supply for the solid-state hardware. After the power supply is stably turned on, another relay or auxiliary contact is driven to turn on the data line connection of the solid-state hardware. This sequence of first power supply and then data connection is intended to ensure that the solid-state hardware has obtained a stable working voltage before the data line connection, thereby avoiding initialization abnormalities or data transmission errors that may be caused by the data line connection before the power supply connection. The time difference between the power line connection and the data line connection is also set to a small value to ensure the rapidity of the turn-on operation while being sufficient to ensure that the power line has stably supplied power before the data line connection. The preset minimum time interval can also be adjusted according to the electrical characteristics of the solid-state hardware and the system response time to improve the test efficiency while ensuring system stability.
[0048] In this embodiment, through the above technical solutions, accurate control of the on-off timing of the power line and the data line can be achieved when the solid-state hardware performs hot plug operations. Specifically, during the disconnection operation, the power line is first disconnected and then the data line is disconnected, effectively avoiding data damage or electrical shock that may be caused by the removal of the data line under a live state, protecting the safety of the solid-state hardware and the host system. During the turn-on operation, the power line is first connected and then the data line is connected, ensuring that the solid-state hardware obtains stable power supply before the data line connection, thereby avoiding initialization failures or data transmission errors caused by unstable power supply, and improving the recognition success rate and stability of the solid-state hardware in the system. By controlling the on-off time interval between the power line and the data line within the preset minimum time interval, the safety of the operation is ensured, and the efficiency of the test is also considered, making the entire hot plug automated test process more reliable and efficient, and significantly reducing the risk of hardware failure and data loss caused by improper operation.
[0049] In a feasible implementation, during the on-off operation of the electromagnetic relay array, the step of collecting the power line voltage change and the power line current change by the state monitoring circuit of the auxiliary jig to obtain power line voltage change data and power line current change data includes: monitoring the voltage value change of the power line of the solid-state hardware in real time at a preset first sampling frequency when the electromagnetic relay array performs the disconnection operation; monitoring the current value change of the power line of the solid-state hardware in real time at a preset second sampling frequency when the electromagnetic relay array performs the turn-on operation; during the monitoring process, when a sudden change in the voltage value or the current value is detected, the sampling frequency is increased to obtain high-resolution electrical parameter data; and the high-resolution electrical parameter data is merged with the power line voltage change data and the power line current change data to obtain complete electrical parameter data.
[0050] In the present embodiment, the real-time monitoring of the voltage variation of the solid-state hardware power line at a preset first sampling frequency during the disconnection operation of the electromagnetic relay array refers to the continuous acquisition of the voltage value on the power line by the state monitoring circuit at a preset, relatively low sampling frequency during the disconnection of the solid-state hardware power line by the auxiliary jig's electromagnetic relay array. The first sampling frequency is usually set according to the expected speed of the power line voltage variation and the system resource limitations, aiming to obtain the voltage baseline data and preliminary variation trend during the disconnection operation. For example, the power line voltage can be periodically sampled by an analog-to-digital converter (ADC) and the sampling results can be stored.
[0051] In the present embodiment, the real-time monitoring of the current variation of the solid-state hardware power line at a preset second sampling frequency during the connection operation of the electromagnetic relay array refers to the continuous acquisition of the current value on the power line by the state monitoring circuit at a preset, relatively low sampling frequency during the connection of the solid-state hardware power line by the auxiliary jig's electromagnetic relay array. The second sampling frequency is also set according to the expected speed of the power line current variation and the system resource limitations, aiming to obtain the current baseline data and preliminary variation trend during the connection operation. For example, the current can be converted into a voltage signal by a current sensor (such as a shunt resistor or a Hall effect sensor), and then periodically sampled by an analog-to-digital converter. The first sampling frequency and the second sampling frequency can be the same or different, depending on the characteristics of the voltage and current variation.
[0052] In the present embodiment, the mutation detection can be realized by comparing whether the difference between the current sampling value and the previous sampling value exceeds a preset threshold, or by calculating whether the rate of change of voltage or current (i.e. the first derivative) exceeds a preset threshold. Once a mutation is detected, the state monitoring circuit will immediately switch to a higher sampling frequency for data acquisition. For example, the working clock frequency of the analog-to-digital converter can be dynamically adjusted, or a dedicated transient capture module with a higher sampling rate can be enabled. High-resolution electrical parameter data means that more sampling points are obtained in a short time, so that the transient waveform of voltage or current can be more finely depicted, and key details such as spikes, drops or oscillations that are easily missed under traditional fixed sampling frequency can be captured.
[0053] In this embodiment, the merging of high-resolution electrical parameter data with power line voltage variation data and power line current variation data to obtain complete electrical parameter data refers to the integration of regular data collected through a pre-set sampling frequency with high-resolution data collected through an increased sampling frequency when a mutation occurs. This merging operation usually involves timestamp alignment, ensuring that all data points are arranged in chronological order according to their occurrence, forming a continuous and detailed electrical parameter time series. The complete electrical parameter data after merging not only contains the macroscopic change trend of the on-off operation process, but more importantly, it accurately records the microscopic details during the transient mutation, providing a comprehensive and accurate basis for subsequent abnormality judgment.
[0054] In this embodiment, through the above technical solution, during the on-off operation process of solid-state hardware hot plug, the system can intelligently adjust the sampling frequency according to the change of electrical parameters. In the smooth stage, a lower frequency is used to save resources, while in the moment of dramatic transient change of voltage or current, the sampling frequency is quickly increased, so as to capture high-resolution electrical parameter data. This adaptive sampling mechanism effectively solves the problem of missing key transient events with fixed sampling frequency, ensures the integrity and accuracy of electrical parameter data, and enables subsequent abnormality judgment to be based on more detailed and comprehensive data, significantly improving the sensitivity and reliability of hot plug abnormality detection, and thus more accurately evaluating the electrical stability of solid-state hardware in the hot plug scenario.
[0055] In a feasible implementation, the step of comparing the electrical parameter data with a pre-set threshold to generate an abnormality judgment result includes: receiving the electrical parameter data and extracting voltage variation data and current variation data from the electrical parameter data; comparing the voltage variation data with a pre-set voltage threshold, and when the voltage variation data exceeds the pre-set voltage threshold range, generating a voltage abnormality identifier and recording the specific time point and exceeding value of the voltage abnormality; comparing the current variation data with a pre-set current threshold, and when the current variation data exceeds the pre-set current threshold range, generating a current abnormality identifier and recording the specific time point and exceeding value of the current abnormality; and generating an abnormality judgment result based on the voltage abnormality identifier and the current abnormality identifier.
[0056] In this embodiment, after receiving the electrical parameter data, it is first necessary to parse and classify it. The electrical parameter data usually contains real-time monitoring values of the power line voltage and current during the on-off operation of the solid-state hardware, and can exist in the form of time series data packets or structured records. Extracting voltage change data and current change data refers to separating the parts belonging to voltage measurement values and the parts belonging to current measurement values in these original data streams to form two independent data sets. For example, the numerical sequence of voltage and current can be identified and separated by the data parsing module according to the predefined protocol or data format, so as to carry out subsequent independent analysis.
[0057] In this embodiment, the preset voltage threshold value generally defines the acceptable voltage fluctuation range, for example, the upper and lower limits of the nominal operating voltage of the solid-state hardware. When any value in the voltage change data exceeds this preset range, it is determined to be a voltage anomaly. At this time, the system generates a voltage anomaly identifier, which can be a Boolean value or a specific status code indicating that the voltage is abnormal. At the same time, in order to facilitate subsequent fault analysis, the system accurately records the specific time point of the voltage anomaly and the specific voltage value or excess amount exceeding the threshold. These information can be stored in log files or databases.
[0058] In this embodiment, the preset current threshold value is set according to the power consumption characteristics, starting current, steady-state current, and transient current characteristics that may occur during the hot-plug process of the solid-state hardware. When any value in the current change data exceeds this preset range, it is determined to be a current anomaly. The system generates a current anomaly identifier and records the specific time point and the excess value of the current anomaly. For example, a short surge current may occur at the moment the solid-state hardware is turned on, but its peak value and duration should be within the preset current threshold range, and exceeding this range is considered abnormal.
[0059] In this embodiment, based on the generated voltage anomaly identifier and current anomaly identifier, an abnormality judgment result is comprehensively generated. This process involves logical judgment on the two independent anomaly identifiers. For example, if the voltage anomaly identifier is true or the current anomaly identifier is true, the final abnormality judgment result can indicate that there is an electrical anomaly in this on-off operation. More detailed judgment can distinguish different types of anomalies according to the combination of the two identifiers, for example, only voltage anomaly may indicate unstable power supply, and voltage and current anomalies may indicate internal failure of the solid-state hardware. The abnormality judgment result can be a comprehensive status code indicating the success or failure of the operation or the specific type of anomaly.
[0060] In this embodiment, the collected electrical parameter data is subdivided into voltage change data and current change data, and compared with their respective preset thresholds. This detailed comparison method can more accurately identify whether it is a voltage anomaly or a current anomaly, avoiding false positives or false negatives that may be caused by general judgments. By generating voltage anomaly and current anomaly identifiers and recording specific abnormal time points and exceeding values, detailed and targeted data support is provided for subsequent fault diagnosis, allowing testers to quickly locate the problem source and improve the efficiency and accuracy of fault analysis. Finally, based on these independent anomaly identifiers, an anomaly judgment result is generated, which not only improves the accuracy of anomaly judgment, but also provides a solid foundation for the reliability of solid-state hardware hot plug automated testing.
[0061] In a feasible implementation, based on the voltage anomaly identifier and the current anomaly identifier, the step of generating an anomaly judgment result includes: when the voltage anomaly identifier indicates that there is a voltage anomaly or the current anomaly identifier indicates that there is a current anomaly, determining that the current plug-in operation is abnormal, generating an operation anomaly identifier; recording the occurrence time point of the operation anomaly identifier and the corresponding electrical parameter data to obtain anomaly record data; counting the number of consecutive operation anomaly identifiers, when the number of consecutive anomalies reaches a preset pause threshold, generating a pause instruction and stopping the subsequent plug-in cycle; when the number of consecutive anomalies reaches a preset termination threshold, generating a test termination instruction and performing a safe power-off operation.
[0062] In this embodiment, when the system receives any of the voltage anomaly identifier or the current anomaly identifier, it is considered that the current plug-in operation is abnormal, and an operation anomaly identifier is generated accordingly. The operation anomaly identifier is a unified summary of electrical parameter anomalies, simplifying the subsequent judgment logic. In order to facilitate subsequent fault analysis and traceability, the system will record in detail the occurrence time point of each operation anomaly and the electrical parameter data corresponding to the anomaly, which together constitute anomaly record data, providing detailed raw information for the test report.
[0063] In this embodiment, in order to more effectively manage abnormal conditions in the test process, the application also introduces a statistical mechanism for the number of consecutive abnormalities. The system continuously tracks the number of consecutive occurrences of the operation abnormality identifier. If an operation does not have an abnormality, the consecutive abnormality counter is cleared. When the number of consecutive abnormalities reaches a preset pause threshold, the system will automatically generate a pause instruction and stop the subsequent plug-in cycle. For example, when three consecutive plug-in operations all have electrical abnormalities, the system will pause the test so that the test personnel can intervene to check, analyze the problem and perform necessary intervention, thereby avoiding unnecessary consumption of test resources and potential damage to the equipment. Further, if the abnormal condition continues to deteriorate and the number of consecutive abnormalities reaches a preset termination threshold (usually higher than the pause threshold, for example, five consecutive abnormalities), the system will generate a test termination instruction and immediately perform a safe power-off operation. This is intended to maximize the protection of the solid-state hardware being tested and the auxiliary fixtures from irreversible damage, ensuring the safety of the test process.
[0064] In this embodiment, through the above technical solutions, the application can integrate discrete electrical abnormality information into a unified operation abnormality identifier, and based on the degree of consecutive abnormalities, implement hierarchical and intelligent test intervention. This mechanism not only can timely discover and record electrical abnormalities in the test process, but more importantly, it can automatically take measures to pause or terminate the test according to the persistence and severity of the abnormality, and perform a safe power-off, thereby effectively avoiding equipment damage and test resource waste caused by consecutive abnormalities. At the same time, detailed abnormality record data also provides a key basis for subsequent fault diagnosis and test optimization, significantly improving the safety, reliability and efficiency of solid-state hardware hot plug-in automated testing.
[0065] In a feasible implementation, when the abnormality judgment result indicates that the operation is successful, after completing one on-off operation, the step of verifying the identification state of the solid-state hardware in the system to generate a system verification result includes: after completing one on-off operation, querying the device identification state of the solid-state hardware in the operating system through a system command; when the solid-state hardware is identified, further querying the transmission bandwidth and connection rate information of the solid-state hardware to generate hardware performance data; when the solid-state hardware is not identified, recording device identification error information in the system kernel log to generate a system error log; and generating a system verification result based on the device identification state, the hardware performance data and the system error log.
[0066] In this embodiment, after the solid-state hardware completes a power line and data line on-off operation once, the system will call the standard command or API interface provided by the operating system through an automated script, for example, in the Linux system, you can use `lsblk`, `lsscsi` or `lspci` command, in the Windows system, you can use `Get-Disk` or `Get-PnpDevice` PowerShell command, or through the device manager API, to query whether the currently connected solid-state hardware is successfully recognized and enumerated by the operating system. This step aims to confirm that the solid-state hardware not only connects normally in the electrical layer, but also successfully integrates into the operating system in the logical layer and becomes a usable device. If the solid-state hardware is successfully recognized by the operating system, the system will further perform performance-related query operations. This includes using the tools or interfaces provided by the operating system or hardware manufacturers to obtain information such as the transmission bandwidth (such as PCIe link width and generation number) and connection speed (such as SATA protocol version or NVMe negotiation speed) of the solid-state hardware. For example, for NVMe solid-state disks, you can query their PCIe link speed and width through the `nvme-cli` tool; for SATA solid-state disks, you can query their negotiated SATA version. These query results will be collected and integrated into hardware performance data for evaluating whether the performance of the solid-state hardware after hot plug meets the expectations. If the solid-state hardware fails to be recognized by the operating system after completing the on-off operation, the system will not perform performance queries, but will record diagnostic information instead. At this time, the automated script will access the kernel log of the operating system (such as the `dmesg` output or ` / var / log / syslog` of the Linux system, the Event Viewer of the Windows system), and find error information related to device recognition failure, driver loading exception or hardware enumeration error. These error information will be extracted and integrated into system error logs to provide key clues for subsequent problem troubleshooting. Finally, the system will comprehensively analyze the device recognition status (successful recognition or non-recognition), hardware performance data (if recognized successfully) and system error logs (if not recognized) obtained in the above steps. According to these information, a comprehensive system verification result is generated. The result can be a boolean value (pass / fail), or a structured data containing detailed status description, such as "recognition successful, performance normal", "recognition successful, performance decreased", "non-recognition, kernel error exists" and so on. This system verification result is the final judgment of the functional integrity and performance of the solid-state hardware after hot plug in the system level.
[0067] In the embodiment, in the solid-state hardware hot plug automatic test process, not only whether the electrical parameters are normal is concerned, but further, after the abnormal judgment result indicates that the operation is successful, the verification of the recognition state of the solid-state hardware in the system is introduced. Specifically, the device recognition state is queried through the system command to ensure that the solid-state hardware is correctly recognized by the operating system; if the recognition is successful, the transmission bandwidth and the connection rate information are further queried to generate the hardware performance data, so as to evaluate whether the function and the performance are normal; if the recognition is not successful, the device recognition error information in the system kernel log is recorded to generate the system error log, which provides the basis for fault diagnosis. Based on these comprehensive information, the system verification result is generated. This method makes up for the deficiency of relying on the electrical parameter monitoring only, can find the potential fault that the electrical connection is normal but the system recognition or performance has a problem, thereby providing more comprehensive and more accurate solid-state hardware hot plug test result, significantly improving the reliability and effectiveness of the test, and ensuring the stability and compatibility of the solid-state hardware in the actual application.
[0068] In a feasible implementation, based on the abnormal judgment result, the system verification result and the plug-in cycle number in the test configuration parameter, the step of counting the success number and generating the test report data includes: based on the plug-in cycle number in the test configuration parameter, counting the completed plug-in cycle number, the plug-in operation number of successful execution and the plug-in operation number of abnormal occurrence, to generate the number statistics data; integrating the abnormal judgment result, the system verification result, the electrical parameter data and the number statistics data, to generate the test process data; analyzing the abnormal mode in the test process data, classifying the abnormal mode into power line abnormality, data line abnormality or system recognition abnormality, to generate the abnormal classification data; merging and analyzing the test process data, the abnormal classification data and the test configuration parameter, to generate the test report data; the test report data includes the total number of plug-in, the success number, the abnormal type, the electrical parameter exceeding record and the abnormal occurrence mode.
[0069] In the embodiment, when the number statistics data is generated, the system will count the total number of the plug-in operation actually completed according to the plug-in cycle number set in the test configuration parameter in real time or after the test is completed. At the same time, combined with the abnormal judgment result and the system verification result of each operation, the number of the plug-in operation of successful execution and the number of the plug-in operation of abnormal occurrence are distinguished and added. For example, three counters can be maintained: one is used to record the total number of completed cycles, one is used to record all the operations judged to be successful, and the other is used to record all the operations judged to be abnormal. The data of these counters together constitute the number statistics data, which provides a quantitative basis for the macro performance of the test.
[0070] In this embodiment, when generating test process data, the system will integrate the collected abnormality judgment results, system verification results, electrical parameter data, and the above-mentioned generated frequency statistics data. This integration can be to associate data from different sources according to timestamps or operation cycle numbers, and store them in a structured data set, such as a database table, a JSON file, or an XML file. In this way, all relevant information of each plug-in operation, including electrical waveforms, abnormality identification, system identification status, and overall statistical information, are collected together to form a comprehensive test process record, facilitating subsequent queries and analysis.
[0071] In this embodiment, when generating abnormality classification data, the system will conduct in-depth analysis on the integrated test process data to identify and classify abnormal patterns. For example, if the abnormality judgment result indicates that there is a voltage abnormality (such as voltage drop or overshoot), the abnormality may be classified as a power line abnormality. If the system verification result shows that the solid-state hardware is not recognized by the operating system, the abnormality is classified as a system recognition abnormality. If there are data line-related abnormality characteristics in the electrical parameter data (for example, through specific signal integrity analysis or association with system recognition abnormalities), it can be classified as a data line abnormality. This classification can be done through a pre-set rule set or based on a machine learning algorithm, aiming to convert the original abnormal signal into a fault type with clear physical meaning, thereby guiding fault elimination.
[0072] In this embodiment, when generating test report data, the system will merge and analyze the above-mentioned generated test process data, abnormality classification data, and initial test configuration parameters. This step aims to extract and organize all key information into an easy-to-understand report. The report not only includes the total number of plug-in and the number of successful times, but also lists the types of detected abnormalities (such as power line abnormalities, data line abnormalities, and system recognition abnormalities), records the specific time points and values of electrical parameter exceedance, and analyzes the patterns of abnormality occurrence (for example, whether the abnormality is concentrated in a certain plug-in cycle, or more likely to occur in the connection / disconnection stage). This report can be presented in multiple formats, such as PDF, HTML, or CSV, providing test engineers and product developers with a comprehensive overview of test results and in-depth fault diagnosis basis.
[0073] In this embodiment, by the above technical solution, firstly, the completed plug-in cycle number, the number of successfully executed plug-in operations and the number of plug-in operations with exceptions are counted, which can provide a quantitative overview of the test process, so that the tester can quickly master the overall progress and success rate of the test. Secondly, the abnormal judgment result, the system verification result, the electrical parameter data and the number of statistical data are integrated to form comprehensive test process data, which ensures the centralized management of all key information and lays a foundation for subsequent in-depth analysis. Further, by analyzing the abnormal mode in the test process data and classifying it into power line abnormality, data line abnormality or system identification abnormality, the ambiguous abnormality indication can be converted into a clear fault type, greatly improving the accuracy and efficiency of fault positioning. Finally, these processed data are combined with the test configuration parameters for analysis to generate test report data containing the total number of plug-in, the number of successes, the type of exception, the electrical parameter exceeding record and the abnormality occurrence mode, which provides comprehensive, structured and easy-to-understand diagnostic information for the performance evaluation of solid-state hardware hot plug, and significantly improves the usability of test results and the efficiency of fault elimination.
[0074] In the embodiments of the present application, the solid-state hardware hot plug automated test method receives test configuration parameters input by the user through an automated script, controls an auxiliary jig to perform on-off operations of the power line and data line of the solid-state hardware, collects electrical parameters in real time for analysis, and automatically verifies the system identification state, so as to efficiently and accurately complete the test process, improve the test efficiency of the solid-state hardware hot plug, ensure the consistency and repeatability of the test process, reduce human operation errors, improve the test accuracy of the solid-state hardware hot plug, and avoid hardware damage and system failure.
[0075] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the solid-state hardware hot plug automated test method of the present application. More forms of simple transformation based on this technical concept are within the protection scope of the present application.
[0076] The present application also provides a solid-state hardware hot plug automated test system, which refers to Figure 2 The solid-state hardware hot plug automated test system includes a memory 10, a processor 20 and a solid-state hardware hot plug automated test program stored on the memory 10 and executable on the processor 20, and the solid-state hardware hot plug automated test program is configured to implement the steps of the solid-state hardware hot plug automated test method.
[0077] The solid-state hardware hot plug automation test system provided by the application adopts the solid-state hardware hot plug automation test method in the above embodiment, and can improve the test efficiency and test precision of the solid-state hardware hot plug. Compared with the prior art, the solid-state hardware hot plug automation test system provided by the application has the same beneficial effects as the solid-state hardware hot plug automation test method provided by the above embodiment, and other technical features in the solid-state hardware hot plug automation test system are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0078] It should be understood that various parts of the present application can be realized by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0079] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any equivalent structural transformation made by using the content of the present application specification and drawings, or direct / indirect application in other related technical fields is included in the patent protection scope of the present application.
Claims
1. A method for solid state hardware hot plug automated testing, the method comprising: The method comprises: Receiving user input test configuration parameters through an automated script; the test configuration parameters include plug-in interval time and plug-in cycle number; Sending the test configuration parameters to the auxiliary jig to perform on-off operation of the solid-state hardware power line and data line through the auxiliary jig, and collecting electrical parameters during the on-off operation to obtain electrical parameter data; Comparing the electrical parameter data with the preset threshold to generate an abnormality judgment result; When the abnormality judgment result indicates successful operation, verifying the recognition state of the solid-state hardware in the system after completing one on-off operation to generate a system verification result; Based on the abnormality judgment result, the system verification result, and the plug-in cycle number in the test configuration parameters, counting the number of successes and generating test report data.
2. The solid state hardware hot plug automated testing method of claim 1, wherein, The step of sending the test configuration parameters to the auxiliary jig to perform on-off operation of the solid-state hardware power line and data line through the auxiliary jig, and collecting electrical parameters during the on-off operation to obtain electrical parameter data comprises: Extracting the plug-in interval time from the test configuration parameters to generate time control data, and extracting the plug-in cycle number from the test configuration parameters to generate cycle control data; Based on the time control data and the cycle control data, generating a wireless control instruction containing a sequence of disconnect instructions and connect instructions; Sending the wireless control instruction to the wireless communication module of the auxiliary jig through wireless communication to control the electromagnetic relay array of the auxiliary jig to simultaneously perform on-off operation of the solid-state hardware power line and data line; During the on-off operation of the electromagnetic relay array, collecting power line voltage changes and power line current changes through the state monitoring circuit of the auxiliary jig to obtain power line voltage change data and power line current change data; Retransmitting the power line voltage change data and the power line current change data through wireless communication to obtain the electrical parameter data.
3. The solid state hardware hot swap automated testing method of claim 2, wherein, The step of sending the wireless control instruction to the wireless communication module of the auxiliary jig through wireless communication to control the electromagnetic relay array of the auxiliary jig to simultaneously perform on-off operation of the solid-state hardware power line and data line comprises: Sending the wireless control instruction to the wireless communication module of the auxiliary jig; Controlling the electromagnetic coil of the electromagnetic relay array to turn on and off through the wireless communication module to drive the relay contact to perform on-off operation of the solid-state hardware power line; Synchronously controlling the on-off operation of the solid-state hardware data line through the auxiliary contact of the electromagnetic relay array at the same time as controlling the electromagnetic relay array.
4. The solid state hardware hot swap automated testing method of claim 3, wherein, The method further comprises: After sending the disconnect instruction, controlling the electromagnetic relay array to first disconnect the solid-state hardware power line and then disconnect the data line, and the time interval between the two is less than a preset minimum time interval; After sending the connect instruction, controlling the electromagnetic relay array to first connect the solid-state hardware power line and then connect the data line, and the time interval between the two is less than a preset minimum time interval.
5. The solid state hardware hot swap automated testing method of claim 2, wherein, The step of collecting power line voltage changes and power line current changes through the state monitoring circuit of the auxiliary jig to obtain power line voltage change data and power line current change data during the on-off operation of the electromagnetic relay array comprises: The voltage value change of the solid-state hardware power line is monitored in real time at a preset first sampling frequency when the electromagnetic relay array performs the off operation; The current value change of the solid-state hardware power line is monitored in real time at a preset second sampling frequency when the electromagnetic relay array performs the on operation; During the monitoring process, when a sudden change in the voltage value or the current value is detected, the sampling frequency is increased to obtain high-resolution electrical parameter data; The high-resolution electrical parameter data is combined with the power line voltage change data and the power line current change data to obtain complete electrical parameter data.
6. The solid state hardware hot swap automated testing method of claim 1, wherein, The step of comparing the electrical parameter data with the preset threshold to generate an abnormality judgment result includes: Receiving the electrical parameter data and extracting the voltage change data and the current change data from the electrical parameter data; Comparing the voltage change data with a preset voltage threshold, and when the voltage change data exceeds the preset voltage threshold range, generating a voltage abnormality identifier and recording the specific time point and the exceeding value of the voltage abnormality; Comparing the current change data with a preset current threshold, and when the current change data exceeds the preset current threshold range, generating a current abnormality identifier and recording the specific time point and the exceeding value of the current abnormality; Generating an abnormality judgment result based on the voltage abnormality identifier and the current abnormality identifier.
7. The solid state hardware hot swap automated testing method of claim 6, wherein, The step of generating an abnormality judgment result based on the voltage abnormality identifier and the current abnormality identifier includes: When the voltage abnormality identifier indicates the presence of a voltage abnormality or the current abnormality identifier indicates the presence of a current abnormality, determining that the current plug-in operation is abnormal, generating an operation abnormality identifier; Recording the occurrence time point of the operation abnormality identifier and the corresponding electrical parameter data to obtain abnormality record data; When the number of consecutive operation abnormality identifiers reaches a preset pause threshold, generating a pause instruction and stopping the subsequent plug-in cycle; when the number of consecutive abnormality identifiers reaches a preset termination threshold, generating a test termination instruction and performing a safe power-off operation.
8. The solid state hardware hot swap automated testing method of claim 1, wherein, When the abnormality judgment result indicates that the operation is successful, after completing one on-off operation, verifying the recognition state of the solid-state hardware in the system to generate a system verification result, the step includes: After completing one on-off operation, querying the device recognition state of the solid-state hardware in the system through a system command; When the solid-state hardware is recognized, further querying the transmission bandwidth and connection rate information of the solid-state hardware to generate hardware performance data; When the solid-state hardware is not recognized, recording the device recognition error information in the system kernel log to generate a system error log; Generating a system verification result based on the device recognition state, the hardware performance data, and the system error log.
9. The solid state hardware hot swap automated testing method of claim 1, wherein, The step of counting the number of successes and generating test report data based on the abnormality judgment result, the system verification result, and the number of plug-in cycles in the test configuration parameters includes: Counting the number of completed plug-in cycles, the number of successfully executed plug-in operations, and the number of plug-in operations with abnormalities based on the number of plug-in cycles in the test configuration parameters to generate number statistics data; Integrating the abnormality judgment result, the system verification result, the electrical parameter data, and the number statistics data to generate test process data; Analyze the abnormal pattern in the test process data, classify the abnormal pattern as a power line abnormality, a data line abnormality, or a system identification abnormality to generate abnormal classification data; Merge and analyze the test process data, the abnormal classification data, and the test configuration parameters to generate test report data; the test report data includes the total number of plug-in times, the number of successful times, the abnormal type, the electrical parameter exceeding record, and the abnormal occurrence pattern.
10. A solid state hardware hot plug automated test system, characterized by, The solid-state hardware hot plug automatic test system includes a memory, a processor, and a solid-state hardware hot plug automatic test program stored on the memory and executable on the processor. The solid-state hardware hot plug automatic test program is configured to implement the steps of the solid-state hardware hot plug automatic test method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Hot plug system and method for field test bus function module
CN110780626A
Hot plug test method, device and equipment
CN112015609A
NVMe SSD hot plug test method and device, equipment and storage medium
CN114356677A
Batch NVME SSD (Non-Volatile Memory Express Solid State Disk) hot plug test method based on query equipment
CN116932294A
Method and system for testing hot plug of nvme solid state disk
CN119311496A