A USB storage device batch speed detection system based on interface feature recognition
Patent Information
- Application Number
- CN202611233696.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-14
- Publication Date
- 2026-10-20
AI Technical Summary
(1)系统运行时,通过对USB存储设备接入及运行过程中的接口动态状态信息进行采集、分析和处理,将设备接口行为特征识别与读写性能检测相结合,实现对USB存储设备真实性状态及性能状态的综合判断。相比于现有仅依靠设备静态信息或单次读写速度进行检测的方式,本发明能够更加全面地反映USB存储设备从接入、枚举、配置至稳定运行过程中的行为特征,提高异常设备识别准确性,并提升多个USB存储设备批量检测过程中的可靠性和检测效率。
Smart Images

Figure FT_1 
Figure FT_2
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer equipment testing technology, specifically to a batch speed testing system for USB storage devices based on interface feature recognition. Background Technology
[0002] With the continuous development of information technology and data storage technology, electronic data storage devices are widely used in people's daily work, industrial production, and information management. Computer equipment testing technology, as an important means to ensure the reliability of electronic equipment operation, is increasingly involved in the testing and analysis of the performance status of external connection devices, data interaction devices, and storage media. Among them, external storage devices based on Universal Serial Bus (USB) interfaces are widely used in personal computer data transmission, enterprise data backup, industrial equipment data acquisition, and batch data exchange applications due to their convenient connection, high transmission speed, and ease of portability. USB storage devices typically include USB flash drives, portable solid-state storage devices, and portable storage media. In practical applications, it is necessary to use testing equipment to detect their interface connection status, device operating status, and data read / write performance to determine whether the USB storage device meets the usage requirements. Therefore, interface status identification and read / write performance testing of USB storage devices have gradually become important technical directions in the field of computer equipment testing.
[0003] Existing detection methods for USB storage devices typically involve reading device identification information, obtaining device description information, and performing read / write tests to assess the basic status and performance parameters of the USB storage device. For example, when testing multiple USB storage devices in batches, the testing device usually obtains device enumeration information, device capacity information, and interface configuration information through the USB interface, and calculates the corresponding read / write speeds by writing and reading test data to and from the storage device. However, existing detection methods mainly focus on the static information of the USB storage device at a certain moment or the final read / write performance results, lacking continuous analysis of the interface state changes during the process of USB storage device access, enumeration, interface configuration, and stable operation. This makes it difficult to effectively identify abnormal state changes during device access. Furthermore, some abnormal USB storage devices may exhibit external characteristics similar to normal devices by simulating device description information, modifying device parameters, or falsifying performance indicators, making it difficult for existing detection methods to accurately distinguish between genuine devices and those exhibiting abnormal behavior.
[0004] The aforementioned problems primarily stem from the fact that current USB storage device testing processes typically treat device interface information collection, authenticity assessment, and performance testing as independent processes, lacking a comprehensive analysis mechanism based on the dynamic behavior of the interfaces. When USB storage devices exhibit firmware emulation, abnormal interface responses, abnormal state transitions, or discrepancies between actual and declared performance, relying solely on device description information or single read / write speed test results can easily lead to misjudgments. For example, some abnormal devices may return standard-compliant data description information during the device enumeration phase, but experience response delays, state jumps, or abnormal transmission performance during subsequent interface configuration or data transfer, resulting in test results that fail to accurately reflect the actual device state. Furthermore, in batch testing scenarios, fixed speed testing methods cannot perform targeted testing based on different device states, potentially leading to reduced testing efficiency and insufficient accuracy in identifying abnormal devices. Therefore, existing USB storage device testing technologies still suffer from insufficient ability to recognize dynamic interface behavior, low accuracy in authenticity assessment, and inadequate adaptability to batch performance testing. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a batch speed testing system for USB storage devices based on interface feature recognition, which solves the problems mentioned in the background art.
[0006] To achieve the above objectives, the present invention is implemented through the following technical solution: a batch speed test and detection system for USB storage devices based on interface feature recognition, comprising an interface feature acquisition module, an interface dynamic feature sequence construction module, a device authenticity analysis module, a batch speed test and detection module, and a detection result evaluation module; The interface feature acquisition module is used to acquire dynamic interface status information generated during the process of connecting a USB storage device to stable operation. The dynamic interface status information includes USB device enumeration status information, device description information, interface configuration status information, and data transmission response status information, and generates dynamic interface acquisition data based on the dynamic interface status information. The interface dynamic feature sequence construction module is used to sort the dynamically collected interface data according to the time change relationship during the USB storage device access process, and form an interface dynamic feature sequence to characterize the entire process of USB storage device from device access, device enumeration, interface configuration to stable operation. The device authenticity analysis module is used to match and analyze the dynamic feature sequence of the interface with the preset interface behavior feature model, and generate a device authenticity judgment result based on the matching relationship between the USB storage device interface state change process and the preset normal state. The batch speed test module is used to perform corresponding read and write performance test operations on multiple USB storage devices based on the device authenticity judgment results, and obtain batch speed test data. The test result evaluation module is used to comprehensively test and evaluate USB storage devices based on the device authenticity judgment results and batch speed test data, and generate test results.
[0007] Preferably, the interface feature acquisition module includes a device access detection unit, an interface status acquisition unit, and an acquisition data generation unit; The device access detection unit is used to detect USB storage device access events, and determine the dynamic detection start time of the corresponding USB storage device and the complete detection process from device access to stable operation based on the changes in the USB device connection status. The interface status acquisition unit is used to continuously acquire the dynamic interface status information generated by the USB storage device during the device access phase, device enumeration phase, interface configuration phase, and data transmission phase according to a preset acquisition cycle or interface status change triggering method during the complete detection process. The dynamic interface status information includes USB device enumeration status information, device description information, interface configuration status information, and data transmission response status information. The data acquisition generation unit is used to associate the acquired interface dynamic status information with the corresponding acquisition time information, device identification information and status stage information to generate interface dynamic acquisition data for constructing interface dynamic feature sequences.
[0008] Preferably, the dynamically acquired data from the interface includes device identification information, acquisition time information, interface status information, and data transmission response information; The device identification information includes the device address, device port number, and device descriptor information; The acquisition time information includes the acquisition time corresponding to the dynamic state of each interface and the time interval between the dynamic states of adjacent interfaces. The interface status information includes device access status, device enumeration status, interface configuration status, and interface operation status; The data transmission response information includes USB control transmission response information, data transmission establishment status information, data transmission rate information, and data transmission error response information; The data acquisition generation unit is used to establish time and state relationships between corresponding interface dynamic states based on the device identification information, acquisition time information, interface status information, and data transmission response information, and generate interface dynamic acquisition data with continuous time sequence characteristics.
[0009] Preferably, the interface dynamic feature sequence construction module includes a stage identification unit, a state association unit, and a feature sequence generation unit; The stage identification unit is used to divide the USB storage device access process into stages based on the interface status information and collection time information in the dynamically collected interface data, and to determine the interface status nodes corresponding to the device access stage, device enumeration stage, interface configuration stage and stable operation stage. The state association unit is used to establish the state transition relationship between adjacent interface state nodes according to the occurrence order of each interface state node, and to form a dynamic state transition path for the USB storage device interface by combining the state duration corresponding to each interface state node and the data transmission response change characteristics. The feature sequence generation unit is used to construct an interface dynamic feature sequence that characterizes the complete interface behavior process of a USB storage device based on the interface dynamic state transition path, the state characteristics corresponding to each interface state node, and the state duration parameter.
[0010] Preferably, the device authenticity analysis module includes a behavior feature extraction unit, a behavior matching analysis unit, and an authenticity judgment unit; The behavior feature extraction unit is used to extract interface state node features, state transition path features, state duration features, and data transmission response change features from the interface dynamic feature sequence to generate interface behavior feature data. The behavior matching analysis unit is used to match the interface behavior feature data with the preset interface behavior feature model, calculate the matching results of interface state nodes, state transition paths, state duration and data transmission response change features respectively, and generate a comprehensive interface behavior matching result based on each matching result. The authenticity judgment unit is used to determine the degree of conformity between the USB storage device interface behavior and the preset normal interface behavior based on the comprehensive matching result of the interface behavior, and to generate the authenticity judgment result of the device interface behavior.
[0011] Preferably, the authenticity judgment unit is used to obtain the matching results corresponding to the interface state node, state transition path, state duration and data transmission response change characteristics, and generate a comprehensive interface behavior matching degree based on each matching result; The authenticity judgment unit first determines whether there is a preset abnormal state transition path in the dynamic feature sequence of the interface based on the state transition path between the interface state nodes. When there is a preset abnormal state transition path, the USB storage device interface behavior is determined to be abnormal, and the corresponding device interface behavior authenticity judgment result is generated. When there is no preset abnormal state transition path in the interface dynamic feature sequence, the comprehensive matching degree of the interface behavior is compared with the preset matching threshold. When the comprehensive matching degree of the interface behavior is not lower than the preset matching threshold, the USB storage device interface behavior is determined to be in a normal state; when the comprehensive matching degree of the interface behavior is lower than the preset matching threshold, the USB storage device interface behavior is determined to be in an abnormal state, and the corresponding device interface behavior authenticity judgment result is generated.
[0012] Preferably, the batch speed measurement and detection module includes a speed measurement strategy determination unit, a performance detection unit, and a speed measurement data generation unit; The speed test strategy determination unit is used to determine the speed test detection strategy for the corresponding USB storage device based on the authenticity judgment result of the device interface behavior. Different speed test detection strategies correspond to different test data capacity, data read and write methods and speed test times. The performance testing unit is used to perform read and write performance testing on multiple USB storage devices according to the speed testing strategy, and to obtain read and write speed data and response time data of each USB storage device. The speed test data generation unit is used to generate batch speed test data based on the read / write speed data, response time data, and device identification information of each USB storage device.
[0013] Preferably, the speed test strategy determination unit is further used to dynamically adjust the current speed test strategy based on the read and write speed data, response time data, and device interface behavior authenticity judgment results obtained during the read and write performance test. When the read / write performance test results are consistent with the device interface behavior authenticity judgment results, the speed test is completed according to the current speed test strategy. When the read / write performance test results are inconsistent with the device interface behavior authenticity judgment results, the speed test strategy is redefined, and the performance test unit is controlled to perform at least one verification speed test to obtain verification speed test data. The speed measurement data generation unit is used to associate the verification speed measurement data with the initial speed measurement data to generate the final batch speed measurement detection data.
[0014] Preferably, the detection result evaluation module includes a result correlation unit, a comprehensive evaluation unit, and a result generation unit; The result association unit is used to associate the device interface behavior authenticity judgment result, batch speed test data and verification speed test data to establish the detection result association relationship for each USB storage device. The comprehensive evaluation unit is used to comprehensively evaluate each USB storage device based on the authenticity status of the device interface behavior, read and write speed data, response time data, and verification speed test results, and determine the detection status of the corresponding USB storage device. The result generation unit is used to generate a comprehensive test result for the USB storage devices based on the detection status of each USB storage device.
[0015] Preferably, the result generation unit is used to classify USB storage devices according to their authenticity detection status and performance detection status, and generate corresponding detection reports. The test report includes at least device identification information, interface behavior authenticity judgment results, speed test strategy, read / write performance test results, verification speed test results, and comprehensive test evaluation results, which are used to reflect the authenticity of the interface behavior and performance test status of the USB storage device.
[0016] This invention provides a batch speed testing system for USB storage devices based on interface feature recognition, which has the following advantages: (1) During system operation, the dynamic status information of the interface during the access and operation of USB storage devices is collected, analyzed, and processed. The device interface behavior feature identification is combined with read and write performance detection to achieve a comprehensive judgment on the authenticity and performance status of USB storage devices. Compared with the existing methods that rely solely on static device information or single read and write speed for detection, this invention can more comprehensively reflect the behavior characteristics of USB storage devices from access, enumeration, configuration to stable operation, improve the accuracy of abnormal device identification, and enhance the reliability and detection efficiency in the batch detection of multiple USB storage devices.
[0017] (2) This invention continuously collects dynamic status information of the interface during the USB storage device access process and establishes a correlation between the device identification information, collection time information, interface status information, and data transmission response information, so that the collected data can reflect the process of device interface status changes over time. On this basis, the interface status corresponding to different operating stages is divided, and the status nodes of the device access stage, device enumeration stage, interface configuration stage, and stable operation stage are extracted. The dynamic feature sequence of the interface is constructed by combining the state transition relationship between adjacent status nodes, the state duration, and the transmission response change characteristics. This avoids the information loss caused by judging based on only a single device parameter, and enables the detection process to obtain more accurate device characteristics from the perspective of complete device access behavior, providing a reliable data foundation for subsequent authenticity analysis.
[0018] (3) Based on the constructed interface dynamic feature sequence, this invention performs matching analysis on the interface state nodes, state transition paths, state durations, and data transmission response change characteristics of USB storage devices, and judges whether the device interface behavior conforms to the normal device operation rules based on the matching results. When abnormal state transition paths or interface behavior characteristics differ significantly from preset normal characteristics during the detection process, abnormal device interface behavior can be identified in a timely manner. At the same time, the corresponding speed test detection strategy is selected based on the authenticity judgment result of the device interface behavior, and the strategy is adjusted during the speed test based on the consistency between the read and write performance test results and the authenticity judgment results. For devices suspected of being abnormal, a verification speed test operation is performed, thereby improving the targeting of the speed test detection process and reducing the deviation of the detection results caused by abnormal devices.
[0019] (4) This invention performs correlation analysis on the device interface behavior authenticity judgment results, read / write performance test data, and verification speed test data to comprehensively evaluate the interface behavior status and performance test status of the USB storage device, and generates corresponding test results and test reports. By simultaneously recording the device authenticity status, speed test strategy, read / write performance results, and verification test results, the test results can not only reflect the transmission performance of the USB storage device, but also reflect whether the device interface behavior conforms to the normal operation rules, thereby improving the ability to screen abnormal USB storage devices in batch testing scenarios and providing a more accurate basis for subsequent device management, quality testing, and application selection. Attached Figure Description
[0020] Figure 1 This is a block diagram of a batch speed testing system for USB storage devices based on interface feature recognition according to the present invention. Figure 2 This is a flowchart illustrating the dynamic feature recognition and authenticity analysis process of a USB storage device interface based on interface feature recognition, according to the present invention. Detailed Implementation
[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0022] Example 1 This embodiment uses a batch testing scenario for USB storage devices as an example for illustration. Specifically, during enterprise production testing, storage device quality screening, or device factory testing, it is necessary to uniformly test multiple USB storage devices to determine whether each USB storage device has abnormal interface behavior or read / write performance that does not meet requirements.
[0023] In the application scenario set in this embodiment, the detection platform includes a USB detection terminal, a data acquisition module, and a data processing module. The USB detection terminal is equipped with multiple USB connection ports for simultaneously connecting multiple USB storage devices to be tested. The USB storage devices may include mobile storage devices, portable flash memory devices, and other storage media that transmit data based on the USB interface.
[0024] Specifically, when multiple USB storage devices to be tested are inserted into the corresponding connection ports of the USB testing terminal, the testing platform sequentially performs interface status testing and performance testing on each USB storage device. During the testing process, the platform first acquires dynamic status information of the USB storage devices from connection, device identification, interface configuration to stable data transmission, and analyzes whether the device interface behavior conforms to normal operating rules based on the collected status change data.
[0025] After determining the interface behavior status of the USB storage device, the testing platform further performs read and write performance tests based on the corresponding test results. By writing preset test data to the USB storage device and reading the stored test data, the platform obtains the corresponding write performance parameters, read performance parameters, and data transmission response parameters of the device. Finally, the platform combines the interface behavior test results and performance test results to generate a comprehensive test result for the USB storage device.
[0026] In this embodiment, the USB storage device to be tested can be a storage device produced in the same batch, or it can be multiple storage devices of different models that need to be screened for quality, evaluated for performance, or troubleshooted. Through the above application scenario, unified and automated testing of multiple USB storage devices can be achieved, providing a foundation for subsequent dynamic status acquisition of interfaces, analysis of interface behavior characteristics, and batch speed testing.
[0027] This invention provides a batch speed testing system for USB storage devices based on interface feature recognition. Please refer to [link / reference]. Figure 1 It includes an interface feature acquisition module, an interface dynamic feature sequence construction module, an equipment authenticity analysis module, a batch speed measurement and detection module, and a detection result evaluation module; The interface feature acquisition module is used to acquire dynamic interface status information generated during the process of connecting a USB storage device to stable operation. The dynamic interface status information includes USB device enumeration status information, device description information, interface configuration status information, and data transmission response status information, and generates dynamic interface acquisition data based on the dynamic interface status information. The interface dynamic feature sequence construction module is used to sort the dynamically collected interface data according to the time change relationship during the USB storage device access process, and form an interface dynamic feature sequence to characterize the entire process of USB storage device from device access, device enumeration, interface configuration to stable operation. The device authenticity analysis module is used to match and analyze the dynamic feature sequence of the interface with the preset interface behavior feature model, and generate a device authenticity judgment result based on the matching relationship between the USB storage device interface state change process and the preset normal state. The batch speed test module is used to perform corresponding read and write performance test operations on multiple USB storage devices based on the device authenticity judgment results, and obtain batch speed test data. The test result evaluation module is used to comprehensively test and evaluate USB storage devices based on the device authenticity judgment results and batch speed test data, and generate test results.
[0028] Example 2 This embodiment is a further explanation based on the batch testing application scenario of USB storage devices set in Embodiment 1. Please refer to... Figure 1 Specifically: The interface feature acquisition module includes a device access detection unit, an interface status acquisition unit, and an acquisition data generation unit.
[0029] Specifically, in this embodiment, the interface feature acquisition module is located inside the USB detection terminal and is used to acquire interface status change information of the USB storage device under test from connection to normal operation. When multiple USB storage devices are connected to the USB detection terminal simultaneously, the interface feature acquisition module establishes a corresponding data acquisition task for each USB connection port, and distinguishes different USB storage devices by device connection port, device address, and device description information to ensure that the subsequently acquired data can correspond to the specific detection object.
[0030] The device access detection unit is used to detect USB storage device access events, and determine the dynamic detection start time of the corresponding USB storage device and the complete detection process from device access to stable operation based on the changes in the USB device connection status.
[0031] Specifically: The device access detection unit continuously monitors the connection status of the USB connection port. When it detects that the USB interface changes from an unconnected state to a connected state and receives the device response information returned by the USB storage device, it determines that an access event has occurred for the USB storage device and records the current time as the start time of the dynamic detection of the device.
[0032] Specifically: After confirming device access, the device access detection unit continuously acquires status change information during subsequent communication with the USB storage device, including whether the device has completed initialization, device identification, interface configuration, and data transmission channel establishment. When the device can respond normally to data transmission requests and maintain a stable communication state for multiple consecutive detection cycles, this point in time is determined as the point at which the device enters a stable operating state.
[0033] It should be noted that the criteria for determining a stable operating state can be set based on the actual operating conditions of the device. For example, if the USB storage device remains configured in a consistent manner during several consecutive status acquisitions, and there are no transmission interruptions, response timeouts, or communication failures during data transmission, then the device is considered to have entered a stable operating phase.
[0034] The interface status acquisition unit is used to continuously acquire the dynamic interface status information generated by the USB storage device during the device access phase, device enumeration phase, interface configuration phase, and data transmission phase according to a preset acquisition cycle or interface status change triggering method during the complete detection process. The dynamic interface status information includes USB device enumeration status information, device description information, interface configuration status information, and data transmission response status information.
[0035] Specifically: The interface status acquisition unit acquires communication data during device operation via the USB communication interface and records interface status information according to preset acquisition rules. During the device access phase, it primarily acquires the USB device connection status, device response status, and device address allocation status. During the device enumeration phase, it acquires the device description information returned by the USB device and the response information during the enumeration interaction process. During the interface configuration phase, it acquires the current interface configuration status of the device and the establishment status of the data communication interface. During the data transmission phase, it acquires the response time, transmission status, and transmission performance parameters during the actual read / write process of the device.
[0036] Specifically, the preset acquisition period is set according to the detection requirements. When it is necessary to capture the rapid state changes of the USB device, a shorter data acquisition interval can be set; when the main focus is on the stable operating state of the device, the acquisition interval can be appropriately increased. In this embodiment, the acquisition period can be set to a millisecond-level time interval according to the USB communication speed and detection accuracy requirements to ensure that key state changes during the device access process can be recorded.
[0037] Specifically, in addition to collecting data at fixed intervals, the interface status acquisition unit can trigger additional data collection when a critical status change is detected. For example, when the device completes enumeration, the interface configuration is completed, or a data transmission anomaly occurs, the corresponding interface status information is recorded immediately to avoid missing critical statuses due to fixed-period data collection.
[0038] The data acquisition generation unit is used to associate the acquired interface dynamic status information with the corresponding acquisition time information, device identification information and status stage information to generate interface dynamic acquisition data for constructing interface dynamic feature sequences.
[0039] Specifically: The data generation unit first acquires the dynamic status information of the interface obtained from each acquisition, and adds device identification information, acquisition time information, and current status stage information to the corresponding data. Among them, the device identification information is used to determine the USB storage device to which the data belongs, the acquisition time information is used to record the specific time when the status occurred, and the status stage information is used to indicate the specific stage in the current data's corresponding device access, device enumeration, interface configuration, or data transmission.
[0040] Specifically: During the data association process, the data generation unit classifies the data from different USB storage devices according to the device identification information, and then arranges the data generated by the same device in chronological order of collection time, so that the status information of each device from the start of access to stable operation forms a continuous data record.
[0041] Specifically, for example, when a USB storage device completes device access, the data acquisition and generation unit first records the device access status and corresponding time information; then it records the device enumeration completion status, interface configuration completion status, and data transmission establishment status, and associates the data from the above different stages in the order of occurrence, thereby forming dynamic interface acquisition data that can reflect the complete operation process of the device.
[0042] The dynamically collected data from the interface includes device identification information, collection time information, interface status information, and data transmission response information.
[0043] Specifically: In this embodiment, the interface dynamically collected data is used to describe the operating status of the USB storage device at different time stages. The data content includes at least information for distinguishing the device identity, time information for indicating the state change process, interface status information for describing the device's operating stage, and data transmission response information for reflecting the communication status.
[0044] The device identification information includes the device address, device port number, and device descriptor information.
[0045] Specifically: the device address is used to represent the identification information of the USB storage device in the current communication environment; the device port number is used to represent the specific physical interface location where the USB storage device is connected to the USB detection terminal; and the device descriptor information is used to record the device type, manufacturer information, and product information returned by the USB device.
[0046] Specifically: When multiple USB storage devices are connected to the detection terminal at the same time, the data generation unit associates them together through device address, device port number and device descriptor information to ensure that each set of collected data corresponds to a unique USB storage device.
[0047] The acquisition time information includes the acquisition time corresponding to the dynamic state of each interface and the time interval between the dynamic states of adjacent interfaces.
[0048] Specifically: The acquisition time information is generated by the system clock of the detection terminal and appended to each interface status acquisition record. By recording the device access time, device enumeration completion time, interface configuration completion time, and data transmission start time, the duration of different operating phases of the USB storage device can be determined.
[0049] Specifically, the time interval between the dynamic states of adjacent interfaces is used to describe the speed of device state transitions. For example, by comparing the time difference between the device enumeration completion time and the device access time, the time required for the device to complete the identity recognition process can be determined; by comparing the time difference between the interface configuration completion time and the data transmission start time, the time required for the device to establish communication capabilities can be determined.
[0050] The interface status information includes device access status, device enumeration status, interface configuration status, and interface operation status.
[0051] Specifically, the interface status information is divided according to the actual operation process of the USB storage device. Among them, the device access status indicates whether the device has completed the physical connection; the device enumeration status indicates whether the device has completed identity verification; the interface configuration status indicates whether the device has completed the communication interface establishment; and the interface operation status indicates whether the device has entered the normal data interaction stage.
[0052] Specifically: During the acquisition process, the interface status acquisition unit determines the current interface status based on the actual return results during USB communication and records the corresponding status information into the interface dynamic acquisition data.
[0053] The data transmission response information includes USB control transmission response information, data transmission establishment status information, data transmission rate information, and data transmission error response information.
[0054] Specifically: USB control transmission response information is used to record the return status of USB devices to control requests, including whether the request was successfully completed and whether the response timed out; data transmission establishment status information is used to record whether the device successfully established a data transmission channel; data transmission rate information is used to record the actual transmission capacity of the device during data transmission; data transmission exception response information is used to record abnormal situations that occur during data transmission, including response failure, transmission interruption, and abnormal data return.
[0055] Specifically: When acquiring data transmission rate information, the interface status acquisition unit counts the amount of data transmission completed within a preset time range and determines the current transmission performance parameters by combining the corresponding time information, thereby forming a data record that can reflect the actual operating capability of the device.
[0056] The data acquisition generation unit is used to establish time and state relationships between corresponding interface dynamic states based on the device identification information, acquisition time information, interface status information, and data transmission response information, and generate interface dynamic acquisition data with continuous time sequence characteristics.
[0057] Specifically: During the data processing, the data acquisition and generation unit first filters all acquisition records belonging to the same USB storage device according to the device identification information, and then arranges each record according to the acquisition time order, so that the different states of the device during operation are combined according to the actual occurrence order.
[0058] Specifically: Subsequently, the data acquisition and generation unit establishes state associations based on the state changes between adjacent acquisition records. For example, when the device state changes from the device enumeration state to the interface configuration state, this state change process is recorded as an interface state transition; when the device enters the data transmission state from the interface configuration state, the corresponding data transmission establishment process is recorded.
[0059] It should be noted that, through the above processing method, the dynamically collected data from the interface is no longer an independent state record, but a continuous data set containing device identity information, time change information, state change process, and data transmission response status, providing basic data for subsequent construction of dynamic feature sequences of the interface and analysis of device interface behavior.
[0060] Example 3 This embodiment is a further explanation based on the batch testing application scenario of USB storage devices set in Embodiments 1 and 2. Please refer to... Figure 1 Specifically: The interface dynamic feature sequence construction module includes a stage identification unit, a state association unit, and a feature sequence generation unit; Specifically, in this embodiment, the interface dynamic feature sequence construction module is located in the data processing module and is used to further process the interface dynamic acquisition data generated in Embodiment 2. This module receives USB storage device interface status data arranged in chronological order, and converts multiple discretely acquired status records into a dynamic feature sequence that reflects the complete device access process based on the status change relationship during device operation.
[0061] The stage identification unit is used to divide the USB storage device access process into stages based on the interface status information and collection time information in the dynamically collected interface data, and to determine the interface status nodes corresponding to the device access stage, device enumeration stage, interface configuration stage and stable operation stage. Specifically, the stage identification unit first reads the interface status information from the dynamically collected interface data and determines the order in which each status occurs by combining it with the corresponding collection time information. In this embodiment, based on the actual communication process of the USB storage device, the device operation process is divided into the device access stage, the device enumeration stage, the interface configuration stage, and the stable operation stage.
[0062] Specifically: During the device access phase, the phase identification unit determines the start position of the phase based on changes in the USB port connection status and device response information. When the USB storage device completes the physical connection and returns device response information, the corresponding collected record is identified as the data node of the device access phase.
[0063] Specifically: During the device enumeration phase, the phase identification unit identifies devices based on the interaction process of device description information. When a USB storage device returns device description information, configuration description information, or completes device identification interaction, the corresponding status record is attributed to the device enumeration phase.
[0064] Specifically: During the interface configuration phase, the phase identification unit makes judgments based on the interface configuration status information. When it is detected that the USB storage device has completed interface configuration and established the corresponding communication interface, the corresponding status record for that phase is identified as the data node for the interface configuration phase.
[0065] Specifically: During the stable operation phase, the phase identification unit makes judgments based on the data transmission status. When the USB storage device completes interface configuration, can continuously respond to data read and write requests, and maintains normal data transmission status over multiple consecutive sampling periods, the corresponding status record is identified as a data node in the stable operation phase.
[0066] It should be noted that the criteria for dividing different stages can be adjusted according to the actual object being tested. For example, for high-speed USB storage devices, the focus can be on the enumeration completion time, interface configuration completion time, and data transmission establishment time; for low-speed or malfunctioning devices, the frequency of status sampling can be increased to obtain a more detailed state change process.
[0067] The state association unit is used to establish the state transition relationship between adjacent interface state nodes according to the occurrence order of each interface state node, and to form a dynamic state transition path for the USB storage device interface by combining the state duration corresponding to each interface state node and the data transmission response change characteristics. Specifically: The state association unit receives the interface state nodes determined by the phase identification unit, arranges the state nodes in the order of collection time, and then determines whether there is a continuous state change relationship between two adjacent state nodes.
[0068] Specifically, for example, during the normal operation of a USB storage device, the state association unit can determine, based on the time sequence of data collection, that the device transitions from the device access state to the device enumeration state, then from the device enumeration state to the interface configuration state, and finally to the stable operation state. The state association unit correlates these continuous changes to form a state transition relationship that represents the device's operation process.
[0069] Specifically, during the establishment of state transition relationships, the state association unit simultaneously acquires the duration information corresponding to each interface state node. For example, it records the time required for the device to complete the enumeration process, the time required for the interface configuration process, and the continuous running time after entering a stable operating state, and uses the above time information as the characteristic parameters of the corresponding state node.
[0070] Specifically, the state association unit further acquires the data transmission response change characteristics corresponding to each state node, including changes in data transmission response time, changes in transmission rate, and abnormal response conditions. When the device experiences a significant increase in response time, abnormal changes in transmission state, or repeated state switching during different state transitions, the corresponding change information is recorded in the state transition path.
[0071] It should be noted that the state transition path does not only record the names of the states the device has passed through, but also records the order in which the states occur, the time of the state transition, and the response changes during the state transition process. This allows subsequent analysis to determine whether the device interface behavior conforms to normal patterns based on the complete running trajectory.
[0072] The feature sequence generation unit is used to construct an interface dynamic feature sequence that characterizes the complete interface behavior process of a USB storage device based on the interface dynamic state transition path, the state characteristics corresponding to each interface state node, and the state duration parameter.
[0073] Specifically: The feature sequence generation unit receives the interface dynamic state transition path output by the state association unit, and combines the data corresponding to each state node according to the actual operating sequence of the device, associating the interface state information, duration information and data transmission response information corresponding to each state node.
[0074] Specifically, in this embodiment, the interface dynamic feature sequence includes at least device access status information, device enumeration status information, interface configuration status information, and stable operation status information, and records the transition process between each state. For example, when a device enters the interface configuration stage from the device enumeration stage, the feature sequence simultaneously retains the occurrence time, duration, and communication response changes corresponding to this transition process.
[0075] Specifically: Through the above processing method, the discrete interface dynamic acquisition data obtained in Example 2 is converted into a data sequence that can reflect the complete access behavior process of the USB storage device, so that the subsequent device authenticity analysis module can make a judgment based on the overall operation process of the device, rather than just based on a single device parameter.
[0076] The device authenticity analysis module includes a behavior feature extraction unit, a behavior matching analysis unit, and an authenticity judgment unit; Specifically: In this embodiment, the device authenticity analysis module is used to further analyze the dynamic feature sequence of the interface. By extracting the behavioral features during the device access process and comparing them with the operating features of a normal USB storage device, it is determined whether the USB storage device to be detected has abnormal interface behavior.
[0077] The behavior feature extraction unit is used to extract interface state node features, state transition path features, state duration features, and data transmission response change features from the interface dynamic feature sequence to generate interface behavior feature data. Specifically, the behavior feature extraction unit first reads the information of each state node in the dynamic feature sequence of the interface and extracts the interface state content corresponding to each state node. For example, it extracts state information such as whether the device has completed enumeration, whether the interface has completed configuration, and whether data transmission has been established.
[0078] Specifically: Subsequently, the behavior feature extraction unit extracts the transition relationships between different state nodes, including the state transition order, the state transition process, and the corresponding time change information during the transition.
[0079] Specifically: At the same time, the behavior feature extraction unit reads the duration parameters of each stage, such as the time required for the device to complete enumeration, the time required for interface configuration, and the changes in response time during stable transmission, and generates complete interface behavior feature data by combining the changes in data transmission rate and abnormal response.
[0080] The behavior matching analysis unit is used to match the interface behavior feature data with the preset interface behavior feature model, calculate the matching results of interface state nodes, state transition paths, state duration and data transmission response change features respectively, and generate a comprehensive interface behavior matching result based on each matching result. Specifically: In this embodiment, a preset interface behavior feature model is stored in the data processing module of the detection terminal. The model includes the interface status information, state transition relationship, time range, and data response change range corresponding to the normal USB storage device during access, enumeration, configuration, and stable operation.
[0081] Specifically, the behavior matching analysis unit compares the interface behavior feature data generated by the USB storage device to be detected with the corresponding features in the preset interface behavior feature model.
[0082] Specifically: for interface status node matching, the behavior matching analysis unit determines whether the device under test completes device access, device enumeration and interface configuration according to the normal process; for state transition path matching, it determines whether the sequence of device state changes conforms to the normal device operation path; for state duration matching, it determines whether the duration of each stage is within the preset normal range; for data transmission response change matching, it determines whether there are abnormal fluctuations in the response status of the device during the transmission process.
[0083] It should be noted that the matching results can be represented in various ways depending on different detection needs, such as recording as "matching", "not matching", or "match degree information". When a certain state node is missing, the state transition order is abnormal, or the response change exceeds the set range, the corresponding feature matching result is marked as abnormal.
[0084] The authenticity judgment unit is used to determine the degree of conformity between the USB storage device interface behavior and the preset normal interface behavior based on the comprehensive matching result of the interface behavior, and to generate the authenticity judgment result of the device interface behavior.
[0085] Specifically, the authenticity judgment unit receives multiple feature matching results output by the behavior matching analysis unit and performs comprehensive analysis on each matching result. When the interface state node, state transition path, state duration, and data transmission response changes all conform to the preset normal interface behavior characteristics, the USB storage device interface behavior is judged to be normal.
[0086] Specifically: When a state node is missing, a state transition is abnormal, the duration of a phase deviates significantly from the normal range, or a data transmission response is abnormal during the detection process, the authenticity judgment unit determines that the device interface behavior is abnormal based on the corresponding abnormal characteristics and generates the corresponding device interface behavior authenticity judgment result.
[0087] It should be noted that the device interface behavior authenticity judgment result is used to indicate whether the operation process of the USB storage device interface conforms to the normal device behavior pattern, rather than judging solely based on the device model or device description information, thereby improving the accuracy of identifying abnormal USB storage devices.
[0088] Example 4 This embodiment is a further explanation based on the batch testing application scenario of USB storage devices set in Embodiments 1 to 3. Please refer to... Figure 1 Specifically: In this embodiment, after constructing the interface dynamic feature sequence and performing interface behavior feature matching analysis, the authenticity of the USB storage device's interface behavior is further judged based on the matching analysis results, and a corresponding speed testing strategy is selected based on the judgment results. By associating the interface behavior analysis results with the performance testing process, targeted testing methods can be adopted for USB storage devices in different states.
[0089] The authenticity judgment unit is used to obtain the matching results corresponding to the interface state node, state transition path, state duration and data transmission response change characteristics, and generate a comprehensive matching degree of interface behavior based on each matching result; Specifically: The authenticity judgment unit receives the feature matching results output by the behavior matching analysis unit. Among them, the interface status node matching result is used to indicate whether the status of the USB storage device in the device access, device enumeration, interface configuration and stable operation stages conforms to the preset normal state; the state transition path matching result is used to indicate whether the transition order between the various operation stages of the device conforms to the normal device operation process; the state duration matching result is used to indicate whether the operation time of each stage is within the preset normal range; and the data transmission response change feature matching result is used to indicate whether there is a response anomaly during the device data interaction process.
[0090] Specifically, the authenticity assessment unit comprehensively processes the multiple matching results to generate a comprehensive interface behavior matching result that reflects the degree of conformity of the USB storage device interface behavior. In this embodiment, corresponding evaluation parameters can be set for different types of matching results according to different detection requirements. For example, a higher degree of abnormal impact can be set for abnormal state transition paths, and a lower degree of impact can be set for slight time deviations, thereby forming a comprehensive judgment basis.
[0091] It should be noted that the generation of the comprehensive matching degree of interface behavior does not rely on a single state parameter, but rather comprehensively considers multiple dynamic characteristics of the device throughout the entire access and operation process, so that the device authenticity judgment result can more comprehensively reflect the actual interface behavior of the USB storage device.
[0092] The authenticity judgment unit first determines whether there is a preset abnormal state transition path in the dynamic feature sequence of the interface based on the state transition path between the interface state nodes. When there is a preset abnormal state transition path, the USB storage device interface behavior is determined to be abnormal, and the corresponding device interface behavior authenticity judgment result is generated. Specifically: The authenticity determination unit first reads the state transition path information in the interface dynamic feature sequence and compares it with the pre-stored normal USB storage device state change paths. When it detects that the state change process in the interface dynamic feature sequence does not conform to the preset normal change pattern, it determines that there is an abnormal state transition path.
[0093] Specifically, the abnormal state transition paths include, but are not limited to, the following situations: the device enters the data transmission state before completing the device enumeration process; the device repeatedly returns to the device enumeration state after completing the interface configuration; the device frequently enters the interface reconfiguration state during stable operation; and the device experiences a long period of no response during the state transition process.
[0094] Specifically: When the above-mentioned abnormal state transition is detected, the authenticity judgment unit can determine that the current USB storage device has an abnormal interface behavior without waiting for the comprehensive matching result, and generate the corresponding device interface behavior authenticity judgment result.
[0095] It should be noted that by prioritizing the detection of abnormal state transition paths, USB storage devices with obvious interface behavior abnormalities can be quickly identified, reducing unnecessary subsequent detection processes and improving batch detection efficiency.
[0096] When there is no preset abnormal state transition path in the interface dynamic feature sequence, the comprehensive matching degree of the interface behavior is compared with the preset matching threshold. When the comprehensive matching degree of the interface behavior is not lower than the preset matching threshold, the USB storage device interface behavior is determined to be in a normal state; when the comprehensive matching degree of the interface behavior is lower than the preset matching threshold, the USB storage device interface behavior is determined to be in an abnormal state, and the corresponding device interface behavior authenticity judgment result is generated.
[0097] Specifically: When no obvious abnormal state transition path is found in the dynamic feature sequence of the interface, the authenticity judgment unit further makes a comprehensive judgment on the characteristics such as interface state nodes, state duration, and data transmission response changes.
[0098] Specifically, in this embodiment, the preset matching threshold is set based on the test results of normal USB storage device samples. Testing personnel can collect interface behavior data from multiple USB storage devices under normal operating conditions. By statistically analyzing the characteristic change ranges of different devices during access, enumeration, configuration, and stable operation phases, the matching range corresponding to normal devices can be determined, and this range can be used as the basis for judgment.
[0099] Specifically: when the comprehensive matching result of the interface behavior of the USB storage device to be tested reaches the preset normal range, a normal state judgment result is generated; when the comprehensive matching result of the interface behavior is lower than the preset range, it is considered that the interface behavior of the device is significantly different from that of a normal device, and an abnormal state judgment result is generated.
[0100] The batch speed measurement and detection module includes a speed measurement strategy determination unit, a performance detection unit, and a speed measurement data generation unit. Specifically, in this embodiment, the batch speed test module is located in the data processing module of the USB testing terminal. It is used to perform corresponding read / write performance tests on multiple USB storage devices based on the authenticity judgment results of the device interface behavior. Different USB storage devices can select different test parameters according to their own interface behavior status to improve the adaptability of the testing process.
[0101] The speed test strategy determination unit is used to determine the speed test detection strategy for the corresponding USB storage device based on the authenticity judgment result of the device interface behavior. Different speed test detection strategies correspond to different test data capacity, data read and write methods and speed test times. Specifically: The speed measurement strategy determination unit receives the authenticity judgment result of the device interface behavior output by the authenticity judgment unit, and selects the corresponding speed measurement parameters based on the judgment result.
[0102] Specifically: For USB storage devices with normal interface behavior, a larger test data capacity and standard read / write test methods can be used for performance testing to obtain read / write performance data that is closer to real-world usage scenarios; for USB storage devices with abnormal interface behavior or suspected abnormalities, further verification can be performed by increasing the number of speed tests, adjusting the test data capacity, or changing the data read / write method.
[0103] Specifically, the speed test strategy includes parameters such as test data capacity, continuous read / write mode, random read / write mode, and number of test executions. These parameters can be adjusted according to the type of object being tested, the accuracy requirements, and the time requirements.
[0104] The performance testing unit is used to perform read and write performance testing on multiple USB storage devices according to the speed testing strategy, and to obtain read and write speed data and response time data of each USB storage device. Specifically: The performance testing unit determines the testing parameters output by the unit according to the speed testing strategy, sends test data write requests to multiple USB storage devices respectively, and records the amount of data written, the write completion time and the device response status during the data writing process.
[0105] Specifically: After completing the write test, the performance testing unit reads the corresponding test data from the USB storage device and records the amount of data read, the read completion time, and the device response during the reading process.
[0106] Specifically: Based on the above collection results, the performance testing unit obtains the write speed data, read speed data, and data transfer response time data corresponding to the USB storage device, and saves the data corresponding to different USB storage devices separately.
[0107] The speed test data generation unit is used to generate batch speed test data based on the read / write speed data, response time data, and device identification information of each USB storage device.
[0108] Specifically: The speed data generation unit first classifies the speed data generated by different USB storage devices according to the device identification information, and then associates the write speed data, read speed data and response time data of the corresponding devices to form the speed test data corresponding to a single device.
[0109] Specifically: When multiple USB storage devices are tested simultaneously, the speed test data generation unit saves the test results of each device according to the device identification information, thereby forming batch speed test data containing the performance parameters of multiple USB storage devices.
[0110] The speed test strategy determination unit is also used to dynamically adjust the current speed test strategy based on the read and write speed data, response time data, and device interface behavior authenticity judgment results obtained during the read and write performance test. Specifically: During the initial speed test, the speed test strategy determination unit continuously acquires read / write speed data and response time data fed back by the performance testing unit, and performs correlation analysis with the above data and the results of the device interface behavior authenticity judgment.
[0111] Specifically: When the device interface behavior authenticity judgment result shows that the device interface behavior is normal, and the read / write speed data and response time data are both within the normal performance range, the current speed test strategy is maintained to continue the test.
[0112] Specifically: When there is a significant difference between the device interface behavior authenticity judgment result and the performance test result, such as the device interface behavior is judged to be normal but the actual read and write performance is significantly lower than expected, or the device interface behavior is abnormal but the speed test result is normal, it is considered that the current test result needs further verification and the speed test strategy adjustment is triggered.
[0113] When the read / write performance test results are consistent with the device interface behavior authenticity judgment results, the speed test is completed according to the current speed test strategy. Specifically: When the interface behavior authenticity judgment result corresponds to the read and write performance test result, the speed test strategy determination unit does not change the current test parameters, and the performance test unit continues to complete the test according to the current test data capacity, read and write method and test number, and saves the final speed test data.
[0114] When the read / write performance test results are inconsistent with the device interface behavior authenticity judgment results, the speed test strategy is redefined, and the performance test unit is controlled to perform at least one verification speed test to obtain verification speed test data. Specifically, when inconsistencies arise in the test results, the speed test strategy determination unit readjusts the test parameters. For example, it may increase the number of tests, change the test data capacity, or use different read / write modes for retesting to further confirm the actual performance status of the USB storage device.
[0115] Specifically: The performance testing unit performs verification speed testing according to the redefined speed testing strategy, and then acquires device read / write speed data, response time data, and data transmission status information again.
[0116] The speed measurement data generation unit is used to associate the verification speed measurement data with the initial speed measurement data to generate the final batch speed measurement detection data.
[0117] Specifically: After acquiring the verification speed measurement data, the speed measurement data generation unit associates the verification speed measurement data with the initial speed measurement data according to the equipment identification information, and organizes them in the order of detection time.
[0118] Specifically: For USB storage devices that have undergone verification speed testing, the final batch speed test data includes both the initial speed test results and the verification speed test results, enabling the subsequent test result evaluation module to make a comprehensive judgment by combining multiple test data.
[0119] It should be noted that, through the above processing method, the batch speed test process no longer uses fixed test parameters, but adapts to the behavior and actual performance of the USB storage device interface. This allows the test process to use a more suitable test method for devices in different states, improving the accuracy of identifying abnormal USB storage devices and the reliability of performance testing.
[0120] Example 5 This embodiment is a further explanation based on the batch testing application scenario of USB storage devices set in Embodiments 1 to 4. Please refer to... Figure 2 Specifically: In this embodiment, after completing the USB storage device interface behavior authenticity analysis and read / write performance testing, the data generated at different testing stages are further correlated, and a comprehensive testing result is generated based on the device interface behavior status and performance testing results. By unifying the analysis of interface behavior testing data and speed test data, the testing results can simultaneously reflect the interface operational reliability and actual data transmission performance of the USB storage device.
[0121] The detection result evaluation module includes a result correlation unit, a comprehensive evaluation unit, and a result generation unit; Specifically: The detection result evaluation module is set in the data processing module of the USB detection terminal. It is used to receive the device interface behavior authenticity judgment result, batch speed test data and verification speed test data generated in Example 4, and to process the above detection data in a unified manner.
[0122] The result association unit is used to associate the device interface behavior authenticity judgment result, batch speed test data and verification speed test data to establish the detection result association relationship for each USB storage device. Specifically: The result association unit first obtains the device identification information corresponding to each USB storage device, and uses the device identification information as the basis for data association to match the authenticity judgment results of the interface behavior generated by the same USB storage device, the initial speed test data, and the verification speed test data.
[0123] Specifically: When multiple USB storage devices are detected simultaneously, the result association unit determines the corresponding device object based on the USB device address, device connection port number, and device description information. Then, it binds the interface behavior analysis data and performance test data corresponding to the device object to avoid confusion between test data from different USB storage devices.
[0124] Specifically: For USB storage devices that are subjected to verification speed tests, the result association unit further obtains the initial speed test data and verification speed test data of the corresponding device, and arranges them in the order of detection time, so that the detection result evaluation module can simultaneously obtain the initial performance performance of the device and the performance performance after verification.
[0125] It should be noted that by establishing a correlation between the test results, it can be ensured that the authentic status data and performance test data used in the subsequent comprehensive evaluation process all come from the same USB storage device, thereby improving the accuracy of the test results.
[0126] The comprehensive evaluation unit is used to comprehensively evaluate each USB storage device based on the authenticity status of the device interface behavior, read and write speed data, response time data, and verification speed test results, and determine the detection status of the corresponding USB storage device. Specifically: The comprehensive evaluation unit receives the associated data output by the result association unit, and reads the device interface behavior authenticity judgment result, writes performance data, reads performance data, data transmission response time, and verifies the speed test result.
[0127] Specifically, during the comprehensive evaluation, the comprehensive evaluation unit first determines the device interface behavior status based on the results of the interface behavior authenticity judgment. For example, when the device interface status change process conforms to the preset normal interface behavior characteristics, the device interface behavior status is determined to be normal; when the device exhibits abnormal state transitions, abnormal responses, or does not conform to the normal interface behavior patterns, the device interface behavior status is determined to be abnormal.
[0128] Specifically, the comprehensive evaluation unit then analyzes the device's read / write performance data, comparing the actual acquired write speed, read speed, and response time data with preset performance testing conditions. These performance testing conditions can be set according to the USB storage device type, application requirements, and testing standards, such as setting minimum read / write speed requirements, maximum response time ranges, or performance fluctuation ranges.
[0129] Specifically: when the USB storage device interface behaves normally and the read / write performance data meets the preset performance conditions, the comprehensive evaluation unit determines that the device detection status is normal; when the device interface behaves abnormally or the performance test results do not meet the preset requirements, the device detection status is determined to be abnormal.
[0130] Specifically: For USB storage devices that have undergone verification speed testing, the comprehensive evaluation unit further compares the consistency between the initial speed test results and the verification speed test results. When both speed test results are within a similar performance range, it indicates that the device performance is stable; when there is a significant difference between the two speed test results, the device performance fluctuation is recorded and used as a basis for comprehensive evaluation.
[0131] The result generation unit is used to generate a comprehensive test result for the USB storage devices based on the detection status of each USB storage device.
[0132] Specifically, the result generation unit generates a corresponding comprehensive detection result for each USB storage device based on the detection status output by the comprehensive evaluation unit. The comprehensive detection result includes at least the device interface behavior authenticity status, read / write performance detection status, and overall detection status.
[0133] Specifically: In this embodiment, the comprehensive test results can be categorized according to the equipment's test status. For example: When the USB storage device interface behaves normally and the read and write performance meets the testing requirements, the device is marked as being in a normal testing state. When the USB storage device interface exhibits abnormal behavior but the performance test results are normal, the device will be marked as having abnormal interface behavior. When the USB storage device interface behaves normally, but the read and write performance is lower than the test requirements, the device will be marked as having abnormal performance. When a USB storage device exhibits both interface behavior anomalies and performance anomalies, the device will be marked as being in a combined anomaly state.
[0134] The result generation unit is used to classify USB storage devices according to their authenticity detection status and performance detection status, and generate corresponding detection reports. Specifically, the result generation unit further categorizes and organizes multiple USB storage devices based on the authenticity status of device interface behavior and performance detection status, and generates corresponding detection reports.
[0135] Specifically: The test report is organized according to the device identification information. A test record is generated for each USB storage device to show the complete test information of the device from interface behavior test to performance test.
[0136] The test report includes at least device identification information, interface behavior authenticity judgment results, speed test strategy, read / write performance test results, verification speed test results, and comprehensive test evaluation results, which are used to reflect the authenticity of the interface behavior and performance test status of the USB storage device.
[0137] Specifically: Device identification information is used to identify the USB storage device object corresponding to the test report; Interface behavior authenticity judgment result is used to record whether the device access process conforms to the normal interface operation rules; Speed test strategy is used to record the actual data capacity, read and write methods, and number of tests used by the device; Read and write performance test result is used to record the device's write speed, read speed, and response time data; Verification speed test result is used to record the performance data after secondary testing; Comprehensive test evaluation result is used to indicate the final test status of the device.
[0138] Specifically: In this embodiment, the test report can be stored in the data storage module of the test terminal or output to an external management device for subsequent USB storage device quality screening, device management, and abnormal device tracking.
[0139] It should be noted that the above evaluation process combines the test results of the USB storage device interface behavior with the actual read and write performance test results. This avoids the problem of judging the device status based on a single performance indicator or a single interface information, and makes the final test results more comprehensively reflect the actual operation of the USB storage device.
[0140] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A batch speed testing system for USB storage devices based on interface feature recognition, characterized in that: It includes an interface feature acquisition module, an interface dynamic feature sequence construction module, an equipment authenticity analysis module, a batch speed measurement and detection module, and a detection result evaluation module; The interface feature acquisition module is used to acquire dynamic interface status information generated during the process of connecting a USB storage device to stable operation. The dynamic interface status information includes USB device enumeration status information, device description information, interface configuration status information, and data transmission response status information, and generates dynamic interface acquisition data based on the dynamic interface status information. The interface dynamic feature sequence construction module is used to sort the dynamically collected interface data according to the time change relationship during the USB storage device access process, and form an interface dynamic feature sequence to characterize the entire process of USB storage device from device access, device enumeration, interface configuration to stable operation. The device authenticity analysis module is used to match and analyze the dynamic feature sequence of the interface with the preset interface behavior feature model, and generate a device authenticity judgment result based on the matching relationship between the USB storage device interface state change process and the preset normal state. The batch speed test module is used to perform corresponding read and write performance test operations on multiple USB storage devices based on the device authenticity judgment results, and obtain batch speed test data. The test result evaluation module is used to comprehensively test and evaluate USB storage devices based on the device authenticity judgment results and batch speed test data, and generate test results.
2. The batch speed testing system for USB storage devices based on interface feature recognition according to claim 1, characterized in that: The interface feature acquisition module includes a device access detection unit, an interface status acquisition unit, and an acquisition data generation unit; The device access detection unit is used to detect USB storage device access events, and determine the dynamic detection start time of the corresponding USB storage device and the complete detection process from device access to stable operation based on the changes in the USB device connection status. The interface status acquisition unit is used to continuously acquire the dynamic interface status information generated by the USB storage device during the device access phase, device enumeration phase, interface configuration phase, and data transmission phase according to a preset acquisition cycle or interface status change triggering method during the complete detection process. The dynamic interface status information includes USB device enumeration status information, device description information, interface configuration status information, and data transmission response status information. The data acquisition generation unit is used to associate the acquired interface dynamic status information with the corresponding acquisition time information, device identification information and status stage information to generate interface dynamic acquisition data for constructing interface dynamic feature sequences.
3. The batch speed testing system for USB storage devices based on interface feature recognition according to claim 2, characterized in that: The dynamically collected data from the interface includes device identification information, collection time information, interface status information, and data transmission response information; The device identification information includes the device address, device port number, and device descriptor information; The acquisition time information includes the acquisition time corresponding to the dynamic state of each interface and the time interval between the dynamic states of adjacent interfaces. The interface status information includes device access status, device enumeration status, interface configuration status, and interface operation status; The data transmission response information includes USB control transmission response information, data transmission establishment status information, data transmission rate information, and data transmission error response information; The data acquisition generation unit is used to establish time and state relationships between corresponding interface dynamic states based on the device identification information, acquisition time information, interface status information, and data transmission response information, and generate interface dynamic acquisition data with continuous time sequence characteristics.
4. The batch speed testing system for USB storage devices based on interface feature recognition according to claim 3, characterized in that: The interface dynamic feature sequence construction module includes a stage identification unit, a state association unit, and a feature sequence generation unit; The stage identification unit is used to divide the USB storage device access process into stages based on the interface status information and collection time information in the dynamically collected interface data, and to determine the interface status nodes corresponding to the device access stage, device enumeration stage, interface configuration stage and stable operation stage. The state association unit is used to establish the state transition relationship between adjacent interface state nodes according to the occurrence order of each interface state node, and to form a dynamic state transition path for the USB storage device interface by combining the state duration corresponding to each interface state node and the data transmission response change characteristics. The feature sequence generation unit is used to construct an interface dynamic feature sequence that characterizes the complete interface behavior process of a USB storage device based on the interface dynamic state transition path, the state characteristics corresponding to each interface state node, and the state duration parameter.
5. The batch speed testing system for USB storage devices based on interface feature recognition according to claim 4, characterized in that: The device authenticity analysis module includes a behavior feature extraction unit, a behavior matching analysis unit, and an authenticity judgment unit; The behavior feature extraction unit is used to extract interface state node features, state transition path features, state duration features, and data transmission response change features from the interface dynamic feature sequence to generate interface behavior feature data. The behavior matching analysis unit is used to match the interface behavior feature data with the preset interface behavior feature model, calculate the matching results of interface state nodes, state transition paths, state duration and data transmission response change features respectively, and generate a comprehensive interface behavior matching result based on each matching result. The authenticity judgment unit is used to determine the degree of conformity between the USB storage device interface behavior and the preset normal interface behavior based on the comprehensive matching result of the interface behavior, and to generate the authenticity judgment result of the device interface behavior.
6. The batch speed testing system for USB storage devices based on interface feature recognition according to claim 5, characterized in that: The authenticity judgment unit is used to obtain the matching results corresponding to the interface state node, state transition path, state duration and data transmission response change characteristics, and generate a comprehensive matching degree of interface behavior based on each matching result; The authenticity judgment unit first determines whether there is a preset abnormal state transition path in the dynamic feature sequence of the interface based on the state transition path between the interface state nodes. When there is a preset abnormal state transition path, the USB storage device interface behavior is determined to be abnormal, and the corresponding device interface behavior authenticity judgment result is generated. When there is no preset abnormal state transition path in the interface dynamic feature sequence, the comprehensive matching degree of the interface behavior is compared with the preset matching threshold. When the comprehensive matching degree of the interface behavior is not lower than the preset matching threshold, the USB storage device interface behavior is determined to be in a normal state. When the overall matching degree of interface behavior is lower than the preset matching threshold, the USB storage device interface behavior is determined to be in an abnormal state, and a corresponding device interface behavior authenticity judgment result is generated.
7. The batch speed testing system for USB storage devices based on interface feature recognition according to claim 6, characterized in that: The batch speed measurement and detection module includes a speed measurement strategy determination unit, a performance detection unit, and a speed measurement data generation unit. The speed test strategy determination unit is used to determine the speed test detection strategy for the corresponding USB storage device based on the authenticity judgment result of the device interface behavior. Different speed test detection strategies correspond to different test data capacity, data read and write methods and speed test times. The performance testing unit is used to perform read and write performance testing on multiple USB storage devices according to the speed testing strategy, and to obtain read and write speed data and response time data of each USB storage device. The speed test data generation unit is used to generate batch speed test data based on the read / write speed data, response time data, and device identification information of each USB storage device.
8. The batch speed testing system for USB storage devices based on interface feature recognition according to claim 7, characterized in that: The speed test strategy determination unit is also used to dynamically adjust the current speed test strategy based on the read and write speed data, response time data, and device interface behavior authenticity judgment results obtained during the read and write performance test. When the read / write performance test results are consistent with the device interface behavior authenticity judgment results, the speed test is completed according to the current speed test strategy. When the read / write performance test results are inconsistent with the device interface behavior authenticity judgment results, the speed test strategy is redefined, and the performance test unit is controlled to perform at least one verification speed test to obtain verification speed test data. The speed measurement data generation unit is used to associate the verification speed measurement data with the initial speed measurement data to generate the final batch speed measurement detection data.
9. A batch speed testing system for USB storage devices based on interface feature recognition according to claim 8, characterized in that: The detection result evaluation module includes a result correlation unit, a comprehensive evaluation unit, and a result generation unit; The result association unit is used to associate the device interface behavior authenticity judgment result, batch speed test data and verification speed test data to establish the detection result association relationship for each USB storage device. The comprehensive evaluation unit is used to comprehensively evaluate each USB storage device based on the authenticity status of the device interface behavior, read and write speed data, response time data, and verification speed test results, and determine the detection status of the corresponding USB storage device. The result generation unit is used to generate a comprehensive test result for the USB storage devices based on the detection status of each USB storage device.
10. A batch speed testing system for USB storage devices based on interface feature recognition according to claim 1, characterized in that: The result generation unit is used to classify USB storage devices according to their authenticity detection status and performance detection status, and generate corresponding detection reports. The test report includes at least device identification information, interface behavior authenticity judgment results, speed test strategy, read / write performance test results, verification speed test results, and comprehensive test evaluation results, which are used to reflect the authenticity of the interface behavior and performance test results of the USB storage device.
