Gamepad parameter verification method and device, equipment and storage medium

Through automatic connection identification, dynamic test interface generation and intelligent data analysis, combined with distributed databases and deep learning models, the problems of low efficiency and poor adaptability of traditional handle verification methods are solved, and efficient and accurate handle parameter verification and optimization are achieved. Plan generation.

CN118779196AInactive Publication Date: 2024-10-15ANHUI CHANGGAN NETWORK TECH
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411122907.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional game controller parameter verification methods are inefficient and prone to subjective errors. It is difficult to meet the quality control needs of complex controller functions and diverse models. It is also difficult to fully consider the complex relationships between parameters, resulting in possible deviations or conflicts in calibration recommendations.

Method used

It adopts automatic connection identification, dynamic test interface generation and intelligent data analysis, combined with distributed database and fuzzy matching technology, and uses the three-layer threshold recurrent network model and random forest decision-making algorithm integrated with the attention mechanism to conduct comprehensive evaluation of multi-dimensional parameters and automatic optimization solutions. generate.

Benefits of technology

Significantly reduce manual intervention, improve calibration efficiency and accuracy, achieve rapid identification and configuration loading of different models of handles, obtain more accurate handle performance data, provide more accurate calibration suggestions, and ensure the actual operability and flawless optimization of the solution. conflictual.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779196A_ABST
    Figure CN118779196A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of gamepad testing, and discloses a parameter verification method and device of a gamepad, equipment and a storage medium, and the method comprises the following steps: carrying out connection identification processing on the gamepad to obtain a gamepad model and a firmware version; loading a corresponding test configuration file according to the model of the handle, and generating a dynamic test interface; performing trajectory tracking and critical point sampling on the rocker in the dynamic test interface to obtain a rocker coordinate value and a response curve; sending a vibration instruction to the gamepad to obtain a vibration performance curve; analyzing a rocker coordinate value, a response curve and a vibration performance curve based on a three-layer threshold loop network model fused by an attention mechanism, calculating a parameter deviation value, and generating a calibration suggestion; according to the parameter deviation value and the calibration suggestion, a random forest decision algorithm is executed, the performance of the gamepad is comprehensively evaluated, a test report and an optimization scheme are output, and then intelligent gamepad verification of comprehensively analyzing multi-dimensional parameters and automatically generating the optimization scheme is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of game controller testing, and in particular to a method, device, equipment and storage medium for verifying parameters of a game controller. Background Art

[0002] With the booming development of the gaming industry, game controllers, as important input devices, have a direct impact on the players’ gaming experience through their performance and quality. Traditional controller parameter verification methods often rely on manual operations, which are not only inefficient but also prone to subjective errors. At the same time, with the increasing complexity of controller functions, the testing requirements for parameters such as joystick accuracy and vibration feedback are also increasing, and traditional methods are difficult to meet current quality control needs.

[0003] In addition, different types of handles may have different parameter configurations and functional modules, which requires the calibration method to be sufficiently flexible and adaptable. However, existing calibration systems often lack support for diverse handle models, making it difficult to achieve fast and accurate parameter identification and test configuration. Another prominent issue is that the mutual influence and complex nonlinear relationships of handle parameters mean that the adjustment of a single parameter may affect the overall performance. Traditional calibration methods often find it difficult to fully consider these complex relationships, resulting in possible deviations or conflicts in calibration recommendations. Summary of the invention

[0004] The present application provides a game controller parameter verification method, device, equipment and storage medium, thereby realizing intelligent game controller verification that comprehensively analyzes multi-dimensional parameters and automatically generates optimization solutions.

[0005] The first aspect of the present application provides a method for verifying parameters of a game controller, and the method for verifying parameters of a game controller comprises: Perform connection identification processing on the game controller, obtain PID and VID information, compare with the pre-stored database, and obtain the controller model and firmware version; According to the handle model, load the corresponding test configuration file and generate a dynamic test interface including button layout and function modules; Performing trajectory tracking and critical point sampling on the joystick in the dynamic test interface to obtain the joystick coordinate value and response curve; Sending a vibration command to the game controller, testing the vibration of the grip and the trigger respectively, recording the vibration intensity and duration, and obtaining a vibration performance curve; A three-layer threshold recurrent network model based on attention mechanism fusion analyzes the joystick coordinate value, the response curve and the vibration performance curve, calculates the parameter deviation value, and generates a calibration suggestion; According to the parameter deviation value and the calibration suggestion, a random forest decision algorithm is executed to comprehensively evaluate the handle performance, and a test report and an optimization plan are output.

[0006] A second aspect of the present application provides a parameter verification device for a game controller, the parameter verification device for the game controller comprising: The identification module is used to perform connection identification processing on the game controller, obtain PID and VID information, compare it with the pre-stored database, and obtain the controller model and firmware version; A loading module, used to load a corresponding test configuration file according to the handle model, and generate a dynamic test interface including a button layout and a functional module; A tracking module, used for tracking the trajectory and sampling the critical points of the joystick in the dynamic test interface to obtain the coordinate value and response curve of the joystick; A test module, used to send a vibration command to the game controller, test the vibration of the grip and the trigger respectively, record the vibration intensity and duration, and obtain a vibration performance curve; A calculation module, used for analyzing the rocker coordinate value, the response curve and the vibration performance curve based on a three-layer threshold recurrent network model fused with an attention mechanism, calculating a parameter deviation value, and generating a calibration suggestion; The output module is used to execute the random forest decision algorithm according to the parameter deviation value and the calibration suggestion, comprehensively evaluate the handle performance, and output a test report and an optimization plan.

[0007] The third aspect of the present application provides an electronic device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the electronic device executes the above-mentioned game controller parameter verification method.

[0008] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned game controller parameter verification method.

[0009] Compared with the prior art, the present application has the following beneficial effects: through automatic connection identification, dynamic test interface generation and intelligent data analysis, manual intervention is greatly reduced, and verification efficiency and accuracy are improved. Distributed database and fuzzy matching technology are used to realize rapid identification and configuration loading of different models of handles, thereby improving the versatility of the system. More accurate handle performance data is obtained by using high-precision rocker trajectory tracking and vibration performance curve analysis. Through the three-layer threshold recurrent network model fused with the attention mechanism, the complex relationship between parameters is deeply analyzed to provide more accurate deviation calculation and calibration suggestions. Using the random forest decision algorithm, multi-dimensional parameters are comprehensively considered to achieve a more objective and comprehensive handle performance evaluation. Through conflict detection and expert system, it is ensured that the generated optimization suggestions are practical and operable, and mutual interference between parameter adjustments is avoided. Output structured test reports and optimization plans to facilitate production management and quality tracking, thereby realizing intelligent game handle verification that comprehensively analyzes multi-dimensional parameters and automatically generates optimization plans. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0011] The structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with this technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantive technical significance. Any structural modification, change in proportion or adjustment of size, without affecting the effects and purposes that can be achieved by the present invention, should still fall within the scope of the technical contents disclosed by the present invention.

[0012] Figure 1 It is a flowchart of a method for verifying parameters of a game controller provided by an embodiment of the present invention; Figure 2 It is a schematic block diagram of the structure of a parameter verification device for a game controller provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0013] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0014] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0015] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0016] It should be further understood that the term "and / or" used in the specification and appended claims of this application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations. Figure 1 , an embodiment of the method for verifying the parameters of the game controller in the embodiment of the present application includes: Step 100: Perform connection identification processing on the game controller, obtain PID and VID information, compare with the pre-stored database, and obtain the controller model and firmware version; It is understandable that the execution subject of the present application may be a parameter verification device of a game controller, or a terminal or a server, which is not limited here. The present application embodiment is described by taking a server as the execution subject as an example.

[0017] Specifically, when detecting the connection mode of the game controller, the system automatically determines whether the controller is connected through the USB OTG function or the Bluetooth protocol stack. The USB OTG function enables the mobile device to communicate directly with the controller, while the Bluetooth protocol stack analysis can identify whether the controller is connected wirelessly. Based on this analysis result, a connection type identifier is generated to indicate how the controller is connected. According to the connection type identifier, a suitable communication initialization step is selected to ensure that the communication with the controller starts normally. During the communication initialization process, an identity query instruction is sent to the game controller according to a preset communication protocol, and the instruction is used to request the controller to return an original data packet containing a PID and a VID. The original data packet is parsed and verified, and the original data packet is verified using a CRC verification algorithm to verify whether there is an error or damage in the data packet during transmission. Through verification, a verified valid PID and VID information is obtained. Using the obtained valid PID and VID information, a parallel query request is initiated to a pre-stored distributed database. Since the database is distributed, the system can query on multiple nodes at the same time, thereby improving the speed and efficiency of the query. Through parallel query, a candidate controller model list is quickly generated, which contains controller models that may match the obtained PID and VID. Perform fuzzy matching on the controller models in the list, analyze the various attributes of the controller models, and obtain the most appropriate matching result. Based on the determined controller model, send a firmware version query command to the game controller, and wait for the controller to return the corresponding firmware version information. By parsing the returned firmware version number, obtain the current firmware version of the controller, and store this information together with the controller model for subsequent verification and processing.

[0018] Step 200: Load the corresponding test configuration file according to the handle model, and generate a dynamic test interface including button layout and function modules; Specifically, the handle model is hash-encoded. By converting the handle model into a hash code, a unique configuration file retrieval key is generated, which is used to quickly locate and query the relevant test configuration file. The generated configuration file retrieval key is used to query the distributed cache system to obtain the original configuration file corresponding to the handle model. The introduction of the distributed cache system helps to significantly reduce the query time and improve the overall efficiency of the system. The original configuration file is decompressed and decrypted. The original configuration file is usually stored in a compressed and encrypted manner to protect the data security and integrity therein. By decompression and decryption, the original configuration file is converted into readable JSON format configuration data. According to the JSON format configuration data, the button layout information is vectorized and a scalable button layout image is generated. The vectorized graphics processing enables the generated button layout image to be freely scaled according to the screen size or user needs without losing the clarity and quality of the image. At the same time, the function module list in the JSON format configuration data is parsed to identify the hierarchical relationship of the function modules, that is, the subordinate and dependent relationship between different function modules. Adaptive layout calculation is performed according to the hierarchical relationship to generate a responsive interface layout solution. The layout scheme will be adjusted according to the hierarchical relationship of the functional modules and the change of screen size to ensure that the interface can maintain a good user experience on various devices and resolutions. Bind the interactive logic of the responsive interface layout scheme, connect each button and functional module on the interface with the corresponding interactive logic to ensure that users can get correct feedback and response when using the test interface, and generate an interactive dynamic test interface prototype. Call the interface rendering engine to render the dynamic test interface prototype. Convert the logically defined interface elements and interaction methods into visual images and animations, so as to present the final dynamic test interface on the screen.

[0019] Step 300: track the trajectory and sample the critical points of the joystick in the dynamic test interface to obtain the joystick coordinate value and response curve; It should be noted that the initial position of the rocker is calibrated to determine the zero position of the rocker when it is not subjected to force or operated, and obtain the zero coordinate of the rocker. According to the zero coordinate of the rocker, the boundary of the rocker motion range is detected, the limit position of the rocker in each direction is clarified, and the activity boundary of the rocker is determined. The real-time position of the rocker is sampled to obtain the original sampling point sequence, which represents the continuous position data of the rocker over a period of time. The original sampling point sequence is smoothed. By applying a smoothing algorithm, sharp changes or abnormal points between sampling points are eliminated to generate a continuous rocker motion trajectory. Feature points are extracted from the continuous rocker motion trajectory, and representative trajectory points are identified from the continuous motion trajectory to form a target trajectory point set. These feature points may include key turning points, speed change points or limit positions in the rocker motion. Based on these feature points, the response behavior of the rocker is modeled to generate the response function of the rocker. The response function describes the response of the rocker under different operating conditions. The activity boundary of the joystick is evenly divided to generate a set of critical point sampling position sets, which include key test points within the range of the joystick's motion. Fixed-point tests are performed at these critical points to measure the response of the joystick at a specific position. Combined with the critical point sampling position set and the joystick response function, the response of the joystick at different positions is tested to obtain the coordinate value and response curve of the joystick. The response curve describes the change of the output signal of the joystick over time or position as it moves from one position to another. By analyzing the response curve, the performance of the joystick is fully evaluated, including its sensitivity, linearity, and boundary behavior.

[0020] Step 400: Send a vibration command to the game controller, test the vibration of the grip and the trigger respectively, record the vibration intensity and duration, and obtain a vibration performance curve; Specifically, the vibration command protocol is parsed and processed. The vibration command protocol contains various parameters and instructions for controlling the vibration unit of the handle. By parsing these protocols, a unified and standardized vibration parameter structure is extracted to ensure that different models of handles can be controlled and tested in a consistent manner. The vibration intensity is quantified and converted into discrete vibration intensity levels. An increasing sequence is generated according to the discrete vibration intensity levels, and the vibration intensity is gradually increased to form a comprehensive vibration intensity test set. According to the vibration intensity test set, an excitation signal is sent to the grip vibration unit. Through the excitation signal, the grip vibration unit will vibrate at different intensity levels, and the system will record the vibration response data of the grip in real time. The grip vibration response data is subjected to spectrum analysis and processing to reveal the frequency characteristics of the vibration signal, that is, the response of the grip vibration at different frequencies. By analyzing the frequency characteristic curve, the main frequency distribution of the vibration and the vibration performance at different frequencies are obtained. According to the frequency characteristic curve of the grip vibration, the trigger vibration unit is parameterized and configured to generate a trigger vibration control instruction. When the system generates and sends the trigger vibration control instruction, the trigger vibration unit will execute the instruction and generate corresponding vibration performance data. Similar to grip vibration, trigger vibration performance data records the response of the trigger under different vibration intensities and frequencies. The grip vibration response data is combined with the trigger vibration performance data to comprehensively model the vibration characteristics of the entire handle and generate a complete vibration performance curve, which reflects the overall vibration performance of the handle under different vibration intensities and frequencies, including key indicators such as intensity, frequency response, and vibration duration.

[0021] Step 500: Analyze the rocker coordinate values, response curves, and vibration performance curves based on the three-layer threshold recurrent network model fused with the attention mechanism, calculate the parameter deviation value, and generate calibration suggestions; Specifically, the rocker coordinate values, response curves, and vibration performance curves are preprocessed, and these time series data are segmented using a Hanning window of length 128. A 50% overlap rate is applied to ensure the continuity of each data segment on the time axis to generate input sequences of equal length. Data feature extraction is performed on input sequences of equal length. During the feature extraction process, the 4th-order Daubechies wavelet transform algorithm is used to calculate the time-frequency features at 5 scales, and a multi-scale feature matrix with a dimension of 128x5 is obtained, which reflects the frequency changes of the data at different time scales. The multi-scale feature matrix is ​​normalized, and the Z-score normalization method is used to calculate the mean μ and standard deviation σ of each feature, and the features are converted into standardized feature vectors to eliminate the scale differences between different features. The standardized feature vector is input into a three-layer gated recurrent network model based on attention mechanism fusion, and forward calculation is performed through the first-layer gated recurrent unit. This layer uses a gated recurrent unit (GRU) structure with 64 hidden units. By calculating the update gate and reset gate, it captures the long-term and short-term dependencies in the time series data and generates a first-layer hidden state of 128x64. The attention weight is calculated for this hidden state, and the scaled dot product attention mechanism is used to calculate the attention score to obtain the weighted first-layer output. The state is updated by the second-layer gated recurrent unit. This layer uses a long short-term memory (LSTM) structure with 32 hidden units. The candidate cell state is calculated by the tanh activation function to generate a second-layer hidden state of 128x32. This hidden state is self-attentioned, using an 8-head multi-head attention mechanism with a dimension of 4 for each head. By calculating 8 different attention weights in parallel and concatenating them, the context-aware second-layer output is generated to capture multiple potential relationships in the data. The context-aware second-layer output is input to the third-layer gated recurrent unit for long-term and short-term memory fusion. This layer uses a bidirectional LSTM structure with 16 hidden units, 8 units in the forward and reverse directions, to generate the final 128x16 hidden state. Through bidirectional processing, the past and future information of the data are taken into account at the same time, making the expression of the hidden state more comprehensive. The final hidden state is mapped through a fully connected layer, using a two-layer fully connected network, the first layer contains 64 neurons, the second layer contains 32 neurons, and the activation function is ReLU, generating a 32-dimensional high-dimensional feature representation. Based on this high-dimensional feature representation, the distance between the current feature and the standard feature is calculated by the Euclidean distance measurement method to obtain the deviation value of each parameter, which represents the difference between the actual measured value and the standard value. Threshold judgment is performed on these deviation values, and the quartile-based adaptive threshold algorithm is used to calculate the quartiles Q1, Q2, and Q3 of the deviation value, and the threshold is set to Q3 plus 1.5 times the interquartile range (Q3-Q1). Any parameter exceeding this threshold is judged to need calibration, thereby generating a list of parameters that need calibration.Combined with the correlation analysis between parameters, a calibration strategy is generated to generate a calibration suggestion based on comprehensive analysis to ensure that all parameters of the game controller operate within the ideal range.

[0022] Step 600: Execute the random forest decision algorithm based on the parameter deviation value and calibration suggestion, comprehensively evaluate the handle performance, and output a test report and optimization plan.

[0023] Specifically, the parameter deviation values ​​and calibration suggestions are feature vectorized, and the deviation values ​​of each parameter and the corresponding calibration suggestions are converted into an n-dimensional feature input vector X. According to the n-dimensional feature input vector X, each decision tree in the random forest decision algorithm is calculated in parallel. In the random forest model, each decision tree is trained and predicted in an independent manner. In order to determine the best split point of the tree node, the Gini coefficient is used as the node splitting criterion. The Gini coefficient helps the decision tree select the features that can best reduce classification errors at each node by measuring the impurity of the data, thereby improving the classification accuracy. Each decision tree generates an independent prediction result, and the system obtains m independent tree prediction results. The m independent tree prediction results are voted and counted using the weighted majority voting method, in which the weight of each tree is determined by its error rate. Trees with lower error rates have higher weights in the voting process, thereby enhancing the stability and accuracy of the overall model. Through weighted voting, a comprehensive performance score is obtained to reflect the comprehensive performance of the handle in each parameter. The performance level of the handle is divided based on the comprehensive performance score. The score is divided into 5 levels using the K-means clustering algorithm. Calculate the feature importance of the random forest decision algorithm. Feature importance refers to the contribution of each feature in the decision tree model. The importance of the feature is measured by using the average impurity reduction method. Calculate the average impurity reduction of each feature in all tree nodes and generate a parameter importance ranking. Generate a preliminary optimization suggestion list based on the parameter importance ranking. The list contains optimization suggestions for each controller parameter, arranged in order of importance. Perform conflict detection on the preliminary optimization suggestion list. Identify and detect the dependencies between optimization suggestions by building an optimization suggestion dependency graph. If there are circular dependencies or conflicts, adjust them to ensure that the final generated optimization solution is feasible and effective. Generate a test report and optimization solution document based on the controller performance level label, parameter importance ranking, and optimization solution. The test report describes the overall performance of the controller, while the optimization solution document provides specific improvement measures. Through these documents, understand the current status of the controller and how to improve its performance, so as to achieve the optimal configuration and user experience of the controller.

[0024] In the embodiment of the present application, manual intervention is greatly reduced and verification efficiency and accuracy are improved through automatic connection identification, dynamic test interface generation and intelligent data analysis. Distributed database and fuzzy matching technology are used to realize rapid identification and configuration loading of different models of handles, thereby improving the versatility of the system. More accurate handle performance data is obtained by using high-precision rocker trajectory tracking and vibration performance curve analysis. Through the three-layer threshold recurrent network model fused with the attention mechanism, the complex relationship between parameters is deeply analyzed to provide more accurate deviation calculation and calibration suggestions. Using the random forest decision algorithm, multi-dimensional parameters are comprehensively considered to achieve a more objective and comprehensive handle performance evaluation. Through conflict detection and expert system, it is ensured that the generated optimization suggestions are practical and operational, and mutual interference between parameter adjustments is avoided. Output structured test reports and optimization plans to facilitate production management and quality tracking, thereby realizing intelligent game handle verification that comprehensively analyzes multi-dimensional parameters and automatically generates optimization plans.

[0025] In a specific embodiment, the process of executing step 100 may specifically include the following steps: Automatically detect the connection mode of the game controller and obtain the connection type identification through USB OTG function or Bluetooth protocol stack analysis; According to the connection type identifier, the game controller is initialized for communication, and an identity query instruction is sent through the set communication protocol to obtain an original data packet containing PID and VID; Parse and verify the original data packet, use the CRC check algorithm to ensure data integrity, and obtain valid PID and VID information; According to the valid PID and VID information, a pre-stored distributed database is queried in parallel to obtain a list of candidate controller models; Perform fuzzy matching on the candidate handle model list to obtain the handle model; Based on the controller model, send a firmware version query command to the game controller, parse the returned data through the version number, and get the firmware version.

[0026] Specifically, the connection mode of the game controller is detected. Different connection modes require different communication protocols and initialization steps. The game controller is connected via a wired method (such as USB OTG) or a wireless method (such as Bluetooth). The USB OTG (On-The-Go) function allows devices to communicate directly without the intervention of an intermediate device. When the controller is connected via USBOTG, the system directly identifies and establishes a communication link. When the controller is connected via Bluetooth, the system analyzes through the Bluetooth protocol stack to determine key information such as the device's connection status and protocol version. Through analysis, a connection type identifier is obtained to indicate the connection mode of the controller. According to the connection type identifier, the game controller is initialized for communication. For a controller connected to USB OTG, communication initialization may include the configuration of the USB bus and the setting of endpoints; while for a controller connected to Bluetooth, Bluetooth pairing, service discovery and other operations need to be completed. After the communication initialization is completed, an identity query instruction is sent through the set communication protocol. This instruction is intended to request the controller to return its hardware identification information, including the product ID (PID) and the vendor ID (VID). This information is usually packaged in a raw data packet and sent back to the system through a communication link. When the system receives the raw data packet, it parses and verifies the data packet. The parsing process involves extracting key information such as PID and VID from the data packet, while the verification process ensures that the data has not been erroneous or tampered with during transmission. The data packet is verified using the CRC (Cyclic Redundancy Check) algorithm. The CRC check detects the integrity of the data by generating a redundant check code. The CRC algorithm treats the data as a polynomial, calculates the check code through modulo-2 division and appends it to the end of the data. The receiver recalculates the check code through the same algorithm and compares it with the received check code to verify whether the data is complete. If the verification is successful, valid PID and VID information is obtained. Using these valid PID and VID information, parallel queries are performed on the pre-stored distributed database. The distributed database stores data on multiple nodes, and through parallel queries, a list of candidate models related to the current controller is quickly extracted from a large amount of data. Each candidate model may correspond to a different hardware configuration and feature set, and the model is identified through a fuzzy matching algorithm. The fuzzy matching algorithm determines the closest controller model by comparing the similarity between each controller model in the candidate model list and the feature information extracted from the data packet. Set a similarity function sim ,in represents the feature vector of the candidate model, Represents the handle feature vector extracted from PID and VID. The similarity can be measured by Euclidean distance, as follows: ; in, and They represent the first Quantity, is the dimension of the feature vector. By calculating the similarity of all candidate models, the model closest to the current controller is identified. After determining the controller model, a firmware version query command is sent to the game controller based on this model, requesting the controller to return the firmware version information currently running. After receiving the query command, the controller encapsulates the version number in the response data packet and returns it to the system. By parsing the version number of the response data packet, the firmware version information is extracted.

[0027] In a specific embodiment, the process of executing step 200 may specifically include the following steps: Perform hash coding on the controller model to obtain the configuration file retrieval key, and query the distributed cache system based on the configuration file retrieval key to obtain the original configuration file; Decompressing and decrypting the original configuration file to obtain readable JSON format configuration data, and performing vector graphics processing on the button layout information according to the JSON format configuration data to obtain a scalable button layout image; Parse the function module list in the JSON format configuration data to obtain the hierarchical relationship of the function modules, and perform adaptive layout calculation on the test interface based on the hierarchical relationship of the function modules to obtain a responsive interface layout solution; The interactive logic binding is performed on the responsive interface layout solution to obtain an interactive dynamic test interface prototype, and the interface rendering engine is executed according to the interactive dynamic test interface prototype to obtain a dynamic test interface.

[0028] Specifically, after receiving the handle model, the system encodes the model through a hash function and converts the handle model into a fixed-length string or value, effectively reducing storage space and improving data retrieval efficiency. Specifically, the hash function can be expressed as: ; in, Indicates the handle model The encoded value after being processed by the hash function, the hash function represents a specific hash algorithm such as SHA-256 or MD5. This encoding method ensures that even controller models with very small differences will be mapped to different hash values, thereby reducing the possibility of conflict. The hash code is used as the configuration file retrieval key, and the distributed cache system is queried through this key value. The distributed cache system provides efficient and fast data access capabilities by storing data on multiple nodes. The purpose of the query is to find the original configuration file associated with the controller model, which contains key information such as the controller's button layout, functional module configuration, etc. When the system successfully retrieves the original configuration file, it decompresses and decrypts the file. By decompression, the file is restored to its original size and format; by decryption, the file content is converted into a readable format. Assuming that the original configuration file is encrypted using AES, the decryption process can be expressed as: ; in, Indicates the decrypted configuration file content. is the decryption algorithm, is the key used for decryption, Represents the encrypted file content. Through this process, the original configuration file is converted into readable JSON format configuration data. The button layout information in the JSON format configuration data is processed. The button layout is usually a two-dimensional graphic representation, which needs to be processed by vector graphics to generate a scalable button layout image. Vector graphics have the advantages of no distortion and arbitrary scalability, and are suitable for display on devices with different resolutions and screen sizes. This processing process can use graphics libraries, such as SVG (scalable vector graphics) format, to convert the button layout information into vector graphics to achieve high-quality scalable button layout images. Parse the list of functional modules in the JSON format configuration data. Functional modules define the functions and relationships of different buttons, joysticks and other interactive components on the handle. By parsing these modules, a hierarchical relationship diagram of functional modules is constructed to reflect the nesting and dependency relationships between functional modules. For example, some functions may only be activated under certain conditions, while other functions may rely on the joint work of multiple modules. According to the hierarchical relationship of functional modules, adaptive layout calculation is performed to generate a responsive interface layout solution. Responsive layout means that the interface can automatically adjust the layout according to the screen size and resolution of the device to provide the best user experience. Use layout algorithms such as grid layout or flexbox layout to ensure that interface elements can be arranged and displayed reasonably under different screen sizes. The goal of the layout algorithm is to minimize space waste and maintain the logical relationship and ease of use between various functional modules. Perform interactive logic binding on the responsive interface layout scheme, associate each element in the interface with the corresponding functional module or operation, so that the user's operation can correctly trigger the corresponding function. For example, after pressing a button, the system should be able to correctly identify and call the functional module bound to the button. Usually, an event-driven programming model is used to achieve this by listening to user input events and responding accordingly. Based on the completed interactive logic binding, these interface elements are input into the interface rendering engine for rendering, and the interface description at the logical level is converted into a specific graphical display. Assuming that an OpenGL-based rendering engine is used, the rendering process can be represented as drawing each interface element to a specified position on the screen and displaying it according to the designed layout.

[0029] In a specific embodiment, the process of executing step 300 may specifically include the following steps: Calibrate the initial position of the joystick to obtain the joystick zero point coordinates, and perform boundary detection on the joystick motion range based on the joystick zero point coordinates to obtain the joystick activity boundary; The real-time position of the joystick is sampled to obtain an original sampling point sequence, and the joystick trajectory is smoothed according to the original sampling point sequence to obtain a continuous joystick motion trajectory; Extract feature points from the continuous rocker motion trajectory to obtain a target trajectory point set, and model the rocker response based on the target trajectory point set to obtain a rocker response function; The joystick activity boundary is evenly divided to obtain a critical point sampling position set, and a fixed-point test is performed on the joystick according to the critical point sampling position set and the joystick response function to obtain the joystick coordinate value and response curve.

[0030] Specifically, the initial position of the joystick is calibrated, and its position is sampled multiple times when the joystick is stationary. The random errors are eliminated through multiple sampling, and the average value of the sampling positions is taken to obtain the zero-point coordinate of the joystick. The boundary of the joystick's motion range is detected according to the zero-point coordinate of the joystick, and the limit position of the joystick in each direction, that is, the activity boundary of the joystick, is determined. The joystick is pushed to the limit position in each direction, and sampling is performed when the joystick moves to each limit position, and the limit coordinates are recorded. Through multi-directional boundary detection, the complete activity range of the joystick is constructed, and the motion boundary of the joystick is defined. The real-time position of the joystick is sampled to generate an original sampling point sequence. During the use of the joystick, the user operates the joystick at different speeds and forces, causing its position to change continuously. The trajectories of these changes are recorded through sampling to form a discrete time series. Since there may be jitter or noise in actual operation, the original sampling point sequence is smoothed to eliminate the influence of jitter and noise on the trajectory, and a more continuous and smooth joystick motion trajectory is generated. Commonly used smoothing algorithms include moving average or Gaussian filter, which can effectively reduce high-frequency noise in the trajectory and make the trajectory smoother. Feature point extraction is performed on the smoothed rocker motion trajectory. Feature points are key position points in the trajectory, usually including the starting point, end point, turning point and speed change point of the trajectory. By extracting these feature points, the target trajectory point set is obtained. In order to establish the response model of the rocker, the change law of the target trajectory point set is analyzed and converted into a mathematical function form. The rocker response function is a function that describes the relationship between the rocker position and time or input signal, reflecting the response characteristics of the rocker under different operating conditions. Assume that the rocker response function can be expressed as: ; in, Indicates the joystick at time Response, is the time variable, is the input signal or force. Through regression analysis of the target trajectory point set, a function model that best represents the response characteristics of the joystick is fitted. This model is used to predict the response behavior of the joystick under different input conditions and is an important basis for joystick performance evaluation and testing. The joystick activity boundary is evenly divided to determine the critical point sampling position set. The critical point refers to the key test point of the joystick within the activity range, which is usually selected near the joystick movement boundary. By evenly dividing the activity boundary, a critical point sampling position set covering all directions is obtained to ensure the comprehensiveness of the test. Based on the critical point sampling position set and combined with the joystick response function, the joystick is tested at a fixed point to measure the specific response behavior of the joystick at each critical point, and generate detailed joystick coordinate values ​​and response curves. The response curve is a curve that describes the change of the output signal of the joystick during the movement process, reflecting the dynamic characteristics of the joystick under different operating conditions.

[0031] In a specific embodiment, the process of executing step 400 may specifically include the following steps: The vibration command protocol is parsed to obtain a standardized vibration parameter structure, and the vibration intensity is quantified according to the standardized vibration parameter structure to obtain discrete vibration intensity levels; Generate an incremental sequence of discrete vibration intensity levels to obtain a vibration intensity test set, and send an excitation signal to the handle vibration unit according to the vibration intensity test set to obtain handle vibration response data; Performing spectrum analysis on the grip vibration response data to obtain a frequency characteristic curve of the grip vibration, and performing parameter configuration on the trigger vibration unit according to the frequency characteristic curve to obtain a trigger vibration control instruction; The trigger vibration control command is executed to obtain the trigger vibration performance data, and the vibration characteristics are comprehensively modeled according to the grip vibration response data and the trigger vibration performance data to obtain the vibration performance curve.

[0032] Specifically, after the system receives the vibration command protocol, it parses the content of the protocol. The vibration command protocol usually contains multiple parameters for controlling the vibration unit, such as vibration intensity, duration, frequency, etc. These parameters are usually expressed in different formats and units. They are converted into a unified, standardized parameter structure to obtain a standardized vibration parameter structure. According to the standardized vibration parameter structure, the vibration intensity is quantized, and the continuous vibration intensity value is discretized into several levels. Assuming that the vibration intensity is divided into 10 levels, each level can be represented as a discrete value, and these values ​​are evenly distributed between 0 and 1 after standardization. Quantization can be expressed as: ; in, Indicates discrete vibration intensity levels, is the total number of vibration levels, Indicates the number of the current level (from 1 to . Through this method, the vibration intensity is quantified into discrete levels. An increasing sequence is generated for the discrete vibration intensity levels to form a vibration intensity test set. The vibration intensity test set covers all vibration levels, arranged in sequence from the minimum intensity to the maximum intensity. The vibration unit of the handle is tested step by step through this test set. During the test, according to each level in the vibration intensity test set, an excitation signal is sent to the grip vibration unit in turn, and the intensity of the excitation signal corresponds to the vibration level in the test set. In this way, the response data of the grip under different vibration intensities is recorded. The grip vibration response data is subjected to spectral analysis and the vibration response data is converted from the time domain to the frequency domain to identify the main frequency components of the vibration signal. The time series data of the grip vibration is converted into a spectrum diagram through fast Fourier transform. Assume that the grip vibration response data is , its spectrum representation can be obtained by fast Fourier transform: ; in, Indicates frequency The vibration amplitude under For time The vibration response signal on the grip is obtained by analyzing the spectrum diagram, identifying the main frequency characteristic curve of the grip vibration, describing the intensity distribution of the vibration at different frequencies, and revealing the dynamic characteristics of the grip vibration. According to the frequency characteristic curve of the grip vibration, the trigger vibration unit is parameterized. The vibration characteristics of the trigger vibration unit may be different from those of the grip. According to the frequency characteristics of the grip, the control parameters of the trigger vibration, such as vibration intensity, frequency, and duration, are adjusted. By configuring these parameters, a trigger vibration control instruction is generated, which can accurately control the behavior of the trigger vibration unit to ensure that its vibration characteristics are consistent with or complementary to the performance of the grip. After the trigger vibration control instruction is generated and sent, the response of the trigger vibration unit is tested and its vibration performance data is recorded. Similar to the grip vibration response, the trigger vibration performance data reflects the behavior of the trigger under different control parameters. These data are compared and analyzed with the grip vibration response data to evaluate the collaborative work of the two vibration units. Based on the grip vibration response data and the trigger vibration performance data, the vibration characteristics of the entire handle are comprehensively modeled to generate an overall vibration performance curve to describe the vibration performance of the handle under different operating conditions. By integrating the vibration data of the grip and trigger, a comprehensive vibration model is established to predict and optimize the vibration feedback of the handle.

[0033] In a specific embodiment, the process of executing step 500 may specifically include the following steps: Data preprocessing was performed on the rocker coordinate values, response curves, and vibration performance curves. A Hanning window with a length of 128 was used for time series segmentation, and an overlap rate of 50% was applied to obtain input sequences of equal length. Data features are extracted based on input sequences of equal length, and the 4th-order Daubechies wavelet transform algorithm is used to calculate the time-frequency features of 5 scales to obtain a multi-scale feature matrix with a dimension of 128x5; Normalize the multi-scale feature matrix, use the Z-score standardization method, calculate the mean μ and standard deviation σ of each feature, and convert it to a standardized feature vector; According to the standardized feature vector, forward calculation is performed through the first-layer gated recurrent unit in the three-layer gated recurrent network model based on the attention mechanism fusion, and the update gate and reset gate are calculated using the GRU structure containing 64 hidden units to obtain the hidden state of the first layer with 128x64 dimensions; Calculate the attention weights for the hidden states of the first layer with 128x64 dimensions, use the scaled dot product attention mechanism, calculate the attention scores, and get the weighted first layer output; According to the weighted first-layer output, the state is updated through the second-layer gated recurrent unit in the three-layer gated recurrent network model based on the attention mechanism fusion. The LSTM structure containing 32 hidden units is used to calculate the candidate cell state through the tanh activation function to obtain the second-layer 128x32-dimensional hidden state; The hidden state of the second layer with 128x32 dimensions is self-attentioned, using an 8-head multi-head attention mechanism with a dimension of 4 for each head. By calculating 8 different attention weights in parallel and concatenating them, the context-aware second-layer output is obtained. According to the context-aware second-layer output, the third-layer gated recurrent unit in the three-layer gated recurrent network model based on attention mechanism fusion is used to perform long-term and short-term memory fusion, and a bidirectional LSTM structure containing 16 hidden units, 8 units in the forward and reverse directions, is used to obtain the final 128x16-dimensional hidden state; The final 128x16 dimensional hidden state is fully connected layer mapped using a two-layer fully connected network with 64 neurons in the first layer and 32 neurons in the second layer. The activation function is ReLU, and a 32-dimensional high-dimensional feature representation is obtained. Calculate the parameter deviation based on the high-dimensional feature representation, use the Euclidean distance measurement method to calculate the distance between the current feature and the standard feature, and obtain the deviation value of each parameter; The deviation values ​​of various parameters are judged by thresholds. The quartile-based adaptive threshold algorithm is used to calculate the quartiles Q1, Q2, and Q3 of the deviation values. The threshold is set to Q3+1.5*(Q3-Q1). Parameters exceeding this threshold are judged to need calibration, and a list of parameters that need calibration is obtained. The calibration strategy is generated based on the list of parameters that need to be calibrated, and the calibration suggestions are obtained by combining the correlation analysis between the parameters.

[0034] Specifically, the rocker coordinate values, response curves and vibration performance curves are preprocessed. A Hanning window with a length of 128 is used to segment the data in time series. The Hanning window is a weighted function used to reduce the edge effect when segmenting time series data. By segmenting the data into 128 window segments of fixed length, the segmented data is kept smooth. In order to improve the coverage of the time series, a 50% overlap rate is applied, which means that half of the data in adjacent windows overlap, thereby ensuring a smooth transition between each window segment. Data feature extraction is performed based on input sequences of equal length to extract more meaningful information from the original data. The 4th-order Daubechies wavelet transform algorithm is used to calculate the time-frequency features of 5 scales. Wavelet transform is a time-frequency analysis tool that can provide information in both the time domain and the frequency domain. The 4th-order Daubechies wavelet is widely used in signal processing due to its good smoothness and compact support characteristics. By calculating the features of 5 scales, a multi-scale feature matrix with a dimension of 128x5 is generated, where each row represents a time window segment and each column represents the frequency features at different scales. The multi-scale feature matrix is ​​normalized to eliminate the scale differences between different features. The normalization adopts the Z-score normalization method. The data is transformed by calculating the mean μ and standard deviation of each feature. The mean of all features is adjusted to 0 and the standard deviation is adjusted to 1, so that different features can be compared at the same scale. The normalized feature vector is input into a three-layer gated recurrent network model based on attention mechanism fusion for analysis. In the first layer of the model, the forward calculation is performed by the gated recurrent unit (GRU). GRU is an improved recurrent neural network structure with update gate and reset gate, which can effectively handle long-term dependencies in time series data. In this layer, 64 hidden units are used to generate a hidden state with a dimension of 128x64. After the first layer of hidden states are generated, the attention weights are calculated. The attention mechanism can help the model focus on the key parts of the input sequence, and the scaled dot product attention mechanism is used to calculate the attention score. The scaled dot product attention mechanism obtains a more representative output by calculating the weighted average of the input sequence, and then these weighted outputs are used as the final output of the first layer. Based on the weighted output of the first layer, the gated recurrent unit in the second layer is used for state update. In this layer, a long short-term memory network (LSTM) structure with 32 hidden units is used. LSTM effectively captures and memorizes long-term dependencies by using input gates, forget gates, and output gates. In this layer, the candidate cell states are calculated by the tanh activation function to generate a hidden state with a dimension of 128x32. Self-attention is performed on the hidden state of the second layer.The self-attention mechanism uses a multi-head attention mechanism to enhance the model's understanding of different contexts. Each head has a dimension of 4. The system calculates 8 different attention weights in parallel and splices them together to generate a context-aware second-layer output. According to the context-aware second-layer output, it enters the third-layer gated recurrent unit for long-term and short-term memory fusion. In this layer, a bidirectional LSTM structure with 16 hidden units is used, with 8 units in the forward and reverse directions. The bidirectional LSTM structure allows the system to consider the context information of the time series data at the same time and generate a more comprehensive final hidden state with a dimension of 128x16. The 128x16-dimensional hidden state is mapped through a fully connected layer to generate a high-dimensional feature representation. In the fully connected layer, a two-layer network is used, with the first layer containing 64 neurons and the second layer containing 32 neurons. The ReLU activation function is used to introduce nonlinear factors to generate a 32-dimensional high-dimensional feature representation. Based on the high-dimensional feature representation, parameter deviation is calculated. The Euclidean distance metric method is used to calculate the distance between the current feature and the standard feature. The formula is:. ; in, represents the Euclidean distance, and The first Quantity, is the dimension of the feature. Through calculation, the deviation value of each parameter is obtained. The threshold value is judged for the deviation value. The quartile-based adaptive threshold algorithm is used to calculate the quartiles Q1, Q2 and Q3 of the deviation value, and then the threshold is set as: ; Any parameter exceeding this threshold is determined to require calibration, and a list of parameters that require calibration is generated accordingly. Based on the list of parameters that require calibration, combined with correlation analysis between parameters, calibration strategies and recommendations are generated. For example, suppose that during testing, it is found that the response curve of one axis of the joystick has a large deviation. Through the above process, it is determined that the signal of this axis needs to be calibrated, and based on the performance of other related parameters, specific hardware or software adjustments are recommended to ensure the balance and stability of the overall performance.

[0035] In a specific embodiment, the process of executing step 600 may specifically include the following steps: Perform feature vectorization on the parameter deviation value and calibration suggestion to obtain an n-dimensional feature input vector X; According to the n-dimensional feature input vector X, each decision tree in the random forest decision algorithm is calculated in parallel, and the Gini coefficient is used as the node splitting criterion to obtain m independent tree prediction results; The prediction results of m independent trees are voted and counted, using a weighted majority voting method, where the weights are based on the errors of each tree to obtain a comprehensive performance score; According to the comprehensive performance score, the handle performance level is divided into 5 levels using the K-means clustering algorithm to obtain the handle performance level label; The feature importance of the random forest decision algorithm is calculated. The average impurity reduction method is used to calculate the average impurity reduction of each feature in all tree nodes to obtain the parameter importance ranking; Generate optimization solutions based on the order of parameter importance and obtain a preliminary optimization suggestion list; Perform conflict detection on the preliminary optimization suggestion list, build an optimization suggestion dependency graph and detect circular dependencies to obtain an optimization solution; Generate test reports and optimization plan documents based on handle performance level labels, parameter importance rankings and optimization plans.

[0036] Specifically, the parameter deviation values ​​and calibration suggestions are processed by feature vectorization to convert the multi-dimensional information into a unified n-dimensional feature input vector Each deviation value and calibration suggestion can be regarded as a feature, and the n-dimensional feature input vector The dimensionality of depends on the number of parameters and the diversity of calibration suggestions. Assuming there are k different parameter deviation values ​​and L different calibration suggestions, the dimension n of the feature vector will be equal to k plus L. The input is processed in the random forest decision algorithm. Random forest is an ensemble learning algorithm that enhances the prediction performance of the model by building multiple decision trees. In order to process the input feature vector, each decision tree in the random forest is calculated in parallel. The node splitting criterion of the decision tree uses the Gini coefficient to measure the impurity of the data set, that is, the degree of mixing of samples of different categories in the data set. The calculation formula of the Gini coefficient is: ; in, represents the Gini coefficient, is the number of categories, It is The proportion of samples of the class. Select the split method that minimizes the Gini coefficient at each node to create an optimized decision tree structure. After completing the calculation of each decision tree, m independent tree prediction results are obtained. In order to summarize these results, they are voted and counted. The voting statistics use the weighted majority voting method, in which the weight of each tree is based on its prediction error. The tree with smaller error has a greater impact on the final result. The formula of the weighted majority voting method is: ; in, represents the overall performance score, is the number of decision trees, It is The weight of a tree, It is The prediction results of the tree. In this way, a comprehensive performance score is obtained, which reflects the overall performance of the controller under the current configuration. The performance level of the controller is divided according to the comprehensive performance score. The K-means clustering algorithm is used to divide these scores into 5 levels. The K-means algorithm distributes all score points into k clusters through iterative optimization, so that the distance between the score points in each cluster and the cluster center is minimized. Assume that each score point is , the cluster center is , then the objective function of the K-means algorithm is: ; in, Indicates the rating points Is it a cluster? , if yes, then 1, otherwise 0; is the Euclidean distance between the scoring point and the cluster center. Through K-means clustering, the comprehensive performance score is divided into 5 levels, and a performance level label is assigned to each handle. The feature importance in the random forest decision algorithm is calculated. The feature importance reflects the importance of each feature to the final decision. The average impurity reduction method is used to calculate the average impurity reduction of each feature in all tree nodes. Formulaically, the feature importance can be expressed as: ; in, Representation characteristics The importance of is the number of decision trees, Contains features The set of all nodes of Is a node The reduction in the Gini coefficient at . An importance score is calculated to assign each feature, and a parameter importance ranking is generated based on it. A preliminary optimization suggestion list is generated based on the parameter importance ranking. The preliminary optimization suggestion is a strategy for adjusting the importance of each parameter to improve the overall performance of the controller. Conflict detection is performed on the preliminary optimization suggestion list. By constructing an optimization suggestion dependency graph, the dependencies between optimization suggestions are identified and detected. If there are circular dependencies, these conflicts are resolved by adjusting the priority or rearranging the optimization order to generate a conflict-free optimization plan. Based on the controller performance level label, parameter importance ranking, and the final optimization plan, a test report and an optimization plan document are generated. The test report describes the performance of the controller in various dimensions, while the optimization plan document provides specific improvement suggestions. For example, if the system detects that the joystick sensitivity parameter of a controller has a large deviation and this parameter ranks high in the parameter importance ranking, the system may recommend improving its performance by adjusting the joystick hardware calibration or optimizing the signal processing algorithm.

[0037] The above describes the parameter verification method of the game controller in the embodiment of the present application. The following describes the parameter verification device 10 of the game controller in the embodiment of the present application. Figure 2 In the embodiment of the present application, an embodiment of the parameter verification device 10 of the game controller includes: The identification module 11 is used to perform connection identification processing on the game controller, obtain PID and VID information, compare with the pre-stored database, and obtain the controller model and firmware version; The loading module 12 is used to load the corresponding test configuration file according to the handle model and generate a dynamic test interface including the button layout and function modules; Tracking module 13, used for tracking the trajectory and sampling the critical points of the joystick in the dynamic test interface to obtain the coordinate value and response curve of the joystick; The test module 14 is used to send a vibration command to the game controller, test the vibration of the grip and the trigger respectively, record the vibration intensity and duration, and obtain a vibration performance curve; A calculation module 15, used for analyzing the rocker coordinate value, response curve and vibration performance curve based on a three-layer threshold recurrent network model fused with an attention mechanism, calculating a parameter deviation value, and generating a calibration suggestion; The output module 16 is used to execute the random forest decision algorithm according to the parameter deviation value and the calibration suggestion, comprehensively evaluate the handle performance, and output the test report and optimization plan.

[0038] Through the collaboration of the above components, through automatic connection identification, dynamic test interface generation and intelligent data analysis, manual intervention is greatly reduced, and the verification efficiency and accuracy are improved. Distributed database and fuzzy matching technology are used to realize the rapid identification and configuration loading of different models of handles, improving the versatility of the system. High-precision joystick trajectory tracking and vibration performance curve analysis are used to obtain more accurate handle performance data. Through the three-layer threshold recurrent network model fused with attention mechanism, the complex relationship between parameters is deeply analyzed to provide more accurate deviation calculation and calibration suggestions. The random forest decision algorithm is used to comprehensively consider multi-dimensional parameters to achieve a more objective and comprehensive handle performance evaluation. Through conflict detection and expert system, the generated optimization suggestions are ensured to be practical and operable to avoid mutual interference between parameter adjustments. The structured test report and optimization plan are output to facilitate production management and quality tracking, thereby realizing the intelligent game handle verification that comprehensively analyzes multi-dimensional parameters and automatically generates optimization plans.

[0039] The present application also provides an electronic device, which includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the game controller parameter verification method in the above-mentioned embodiments.

[0040] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the game controller parameter verification method.

[0041] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0042] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable an electronic device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0043] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for checking parameters of a game controller, characterized in that: The parameter verification method of the game controller includes: Perform connection identification processing on the game controller, obtain PID and VID information, compare with the pre-stored database, and obtain the controller model and firmware version; According to the handle model, load the corresponding test configuration file and generate a dynamic test interface including button layout and function modules; Performing trajectory tracking and critical point sampling on the joystick in the dynamic test interface to obtain the joystick coordinate value and response curve; Sending a vibration command to the game controller, testing the vibration of the grip and the trigger respectively, recording the vibration intensity and duration, and obtaining a vibration performance curve; A three-layer threshold recurrent network model based on attention mechanism fusion analyzes the joystick coordinate value, the response curve and the vibration performance curve, calculates the parameter deviation value, and generates a calibration suggestion; According to the parameter deviation value and the calibration suggestion, a random forest decision algorithm is executed to comprehensively evaluate the handle performance, and a test report and an optimization plan are output.

2. The method for verifying the parameters of a game controller according to claim 1, characterized in that: The process of performing connection identification processing on the game controller, obtaining PID and VID information, and comparing with a pre-stored database to obtain the controller model and firmware version includes: Automatically detect the connection mode of the game controller and obtain the connection type identification through USB OTG function or Bluetooth protocol stack analysis; Initialize the communication of the game controller according to the connection type identifier, send an identity query instruction through a set communication protocol, and obtain an original data packet including a PID and a VID; Parse and verify the original data packet, use CRC checksum algorithm to ensure data integrity, and obtain valid PID and VID information; According to the valid PID and VID information, a pre-stored distributed database is queried in parallel to obtain a list of candidate handle models; Performing fuzzy matching processing on the candidate handle model list to obtain a handle model; Based on the controller model, a firmware version query instruction is sent to the game controller, and the returned data is parsed through the version number to obtain the firmware version.

3. The method for verifying the parameters of a game controller according to claim 1, characterized in that: According to the handle model, the corresponding test configuration file is loaded to generate a dynamic test interface including button layout and function modules, including: Performing hash coding on the handle model to obtain a configuration file retrieval key, and querying the distributed cache system according to the configuration file retrieval key to obtain the original configuration file; Decompressing and decrypting the original configuration file to obtain readable JSON format configuration data, and performing vector graphics processing on the button layout information according to the JSON format configuration data to obtain a scalable button layout image; Parse the function module list in the JSON format configuration data to obtain the hierarchical relationship of the function modules, and perform adaptive layout calculation on the test interface according to the hierarchical relationship of the function modules to obtain a responsive interface layout solution; The responsive interface layout scheme is interactively bound with logic to obtain an interactive dynamic test interface prototype, and an interface rendering engine is executed according to the interactive dynamic test interface prototype to obtain a dynamic test interface.

4. The method for verifying the parameters of a game controller according to claim 1, wherein: The performing trajectory tracking and critical point sampling on the joystick in the dynamic test interface to obtain the joystick coordinate value and response curve includes: Calibrate the initial position of the joystick to obtain the zero-point coordinates of the joystick, and perform boundary detection on the range of motion of the joystick according to the zero-point coordinates of the joystick to obtain the activity boundary of the joystick; Sampling the real-time position of the joystick to obtain an original sampling point sequence, and smoothing the joystick trajectory according to the original sampling point sequence to obtain a continuous joystick motion trajectory; Extracting feature points from the continuous rocker motion trajectory to obtain a target trajectory point set, and modeling the rocker response based on the target trajectory point set to obtain a rocker response function; The joystick activity boundary is evenly divided to obtain a critical point sampling position set, and a fixed-point test is performed on the joystick according to the critical point sampling position set and the joystick response function to obtain a joystick coordinate value and a response curve.

5. The method for verifying the parameters of a game controller according to claim 1, characterized in that: The sending of a vibration command to the game controller, testing the vibration of the grip and the trigger respectively, recording the vibration intensity and duration, and obtaining a vibration performance curve includes: The vibration command protocol is parsed to obtain a standardized vibration parameter structure, and the vibration intensity is quantified according to the standardized vibration parameter structure to obtain discrete vibration intensity levels; Generating an increasing sequence for the discrete vibration intensity levels to obtain a vibration intensity test set, and sending an excitation signal to the handle vibration unit according to the vibration intensity test set to obtain handle vibration response data; Performing spectrum analysis on the grip vibration response data to obtain a frequency characteristic curve of the grip vibration, and parameterizing the trigger vibration unit according to the frequency characteristic curve to obtain a trigger vibration control instruction; The trigger vibration control instruction is executed to obtain trigger vibration performance data, and the vibration characteristics are comprehensively modeled according to the grip vibration response data and the trigger vibration performance data to obtain a vibration performance curve.

6. The method for verifying the parameters of a game controller according to claim 1, characterized in that: The three-layer threshold recurrent network model based on attention mechanism fusion analyzes the rocker coordinate value, the response curve and the vibration performance curve, calculates the parameter deviation value, and generates a calibration suggestion, including: Performing data preprocessing on the rocker coordinate value, the response curve and the vibration performance curve, using a Hanning window with a length of 128 to perform time series segmentation, and applying a 50% overlap rate to obtain input sequences of equal length; Data feature extraction is performed according to the input sequences of equal length, and the time-frequency features of 5 scales are calculated using a 4th-order Daubechies wavelet transform algorithm to obtain a multi-scale feature matrix with a dimension of 128x5; Normalizing the multi-scale feature matrix, using the Z-score normalization method, calculating the mean μ and standard deviation σ of each feature, and converting to obtain a standardized feature vector; According to the standardized feature vector, forward calculation is performed through the first-layer threshold recurrent unit in the three-layer threshold recurrent network model based on attention mechanism fusion, and the update gate and reset gate are calculated using a GRU structure containing 64 hidden units to obtain the hidden state of the first layer with 128x64 dimensions; Calculate the attention weights for the hidden states of the first layer with 128x64 dimensions, use the scaled dot product attention mechanism, calculate the attention scores, and get the weighted first layer output; According to the weighted first-layer output, the state is updated by the second-layer gated recurrent unit in the three-layer gated recurrent network model based on the attention mechanism fusion, and the candidate cell state is calculated by the tanh activation function using an LSTM structure including 32 hidden units to obtain the second-layer 128x32-dimensional hidden state; The hidden state of the second layer with 128x32 dimensions is self-attentioned, using a multi-head attention mechanism with 8 heads, each with a dimension of 4. By calculating 8 different attention weights in parallel and concatenating them, the context-aware second layer output is obtained. According to the second-layer output of the context perception, long-short term memory fusion is performed through the third-layer threshold recurrent unit in the three-layer threshold recurrent network model based on attention mechanism fusion, and a bidirectional LSTM structure including 16 hidden units, 8 units in the forward direction and 8 units in the reverse direction, is used to obtain the final hidden state of 128x16 dimensions; The final 128x16 dimensional hidden state is fully connected layer mapped, using a two-layer fully connected network, with 64 neurons in the first layer and 32 neurons in the second layer, and the activation function is ReLU, to obtain a 32-dimensional high-dimensional feature representation; Calculate the parameter deviation according to the high-dimensional feature representation, use the Euclidean distance measurement method to calculate the distance between the current feature and the standard feature, and obtain the deviation value of each parameter; A threshold judgment is performed on the deviation values ​​of the parameters, and a quartile-based adaptive threshold algorithm is used to calculate the quartiles Q1, Q2, and Q3 of the deviation values. The threshold is set to Q3+1.5*(Q3-Q1). Parameters exceeding this threshold are judged to need calibration, and a list of parameters that need calibration is obtained; A calibration strategy is generated based on the list of parameters that need to be calibrated, and a calibration suggestion is obtained in combination with correlation analysis between the parameters.

7. The method for verifying the parameters of a game controller according to claim 1, characterized in that: The method of executing a random forest decision algorithm based on the parameter deviation value and the calibration suggestion, comprehensively evaluating the handle performance, and outputting a test report and an optimization plan includes: Performing feature vectorization processing on the parameter deviation value and the calibration suggestion to obtain an n-dimensional feature input vector X; According to the n-dimensional feature input vector X, each decision tree in the random forest decision algorithm is calculated in parallel, and the Gini coefficient is used as a node splitting criterion to obtain m independent tree prediction results; Voting and counting the prediction results of the m independent trees, using a weighted majority voting method, where the weights are based on the errors of each tree, to obtain a comprehensive performance score; According to the comprehensive performance score, the handle performance level is divided, and the score is divided into 5 levels using the K-means clustering algorithm to obtain the handle performance level label; The feature importance of the random forest decision algorithm is calculated, and the average impurity reduction method is used to calculate the average impurity reduction of each feature in all tree nodes to obtain the parameter importance ranking; Generate an optimization plan based on the importance ranking of the parameters to obtain a preliminary optimization suggestion list; Perform conflict detection on the preliminary optimization suggestion list, construct an optimization suggestion dependency graph and detect circular dependencies to obtain an optimization solution; A test report and an optimization solution document are generated according to the handle performance grade label, the parameter importance ranking and the optimization solution.

8. A parameter verification device for a game controller, characterized in that: The parameter verification device of the game controller comprises: The identification module is used to perform connection identification processing on the game controller, obtain PID and VID information, compare it with the pre-stored database, and obtain the controller model and firmware version; A loading module, used to load a corresponding test configuration file according to the handle model, and generate a dynamic test interface including a button layout and a functional module; A tracking module, used for tracking the trajectory and sampling the critical points of the joystick in the dynamic test interface to obtain the coordinate value and response curve of the joystick; A test module, used to send a vibration command to the game controller, test the vibration of the grip and the trigger respectively, record the vibration intensity and duration, and obtain a vibration performance curve; A calculation module, used for analyzing the rocker coordinate value, the response curve and the vibration performance curve based on a three-layer threshold recurrent network model fused with an attention mechanism, calculating a parameter deviation value, and generating a calibration suggestion; The output module is used to execute the random forest decision algorithm according to the parameter deviation value and the calibration suggestion, comprehensively evaluate the handle performance, and output a test report and an optimization plan.

9. An electronic device, characterized in that: The electronic device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instruction in the memory so that the electronic device executes the parameter verification method of the game controller as described in any one of claims 1-7.

10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by the processor, the parameter verification method of the game controller as described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Calibration test method and system for game joystick

    CN119733229A

  • A calibration test method and system for a game joystick

    CN119733229B

  • Interactive paperless conference control method and system

    CN120729844A