Implementation method of serial port tool, serial port tool, equipment and storage medium

By building an intelligent index model and AI algorithms, automated testing and integrated data management of serial port tools have been achieved, solving the problems of low efficiency and high false positive rate of traditional serial port tools, and improving testing efficiency and reliability.

CN121743550APending Publication Date: 2026-03-27SHENZHEN NEOWAY TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-05
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Traditional serial port testing tools are inefficient and prone to errors due to reliance on manual operation, while automated tools have high barriers to entry and low adoption rates, making it impossible to achieve efficient and reliable testing.

Method used

It employs AI algorithms to build an intelligent index model, generates test programs and dynamically updates them by parsing test data documents in a structured manner, supports parallel testing and result comparison across multiple devices, and achieves script automation and integrated data management.

Benefits of technology

It improves testing efficiency, reduces manual intervention, enhances script reusability and adaptability, ensures accurate and fast data retrieval, reduces the risk of misjudgment, and achieves a low-threshold, widely applicable, and highly reliable testing solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121743550A_ABST
    Figure CN121743550A_ABST
Patent Text Reader

Abstract

The invention discloses an implementation method of a serial port tool, the serial port tool, equipment and a storage medium. The implementation method of the serial port tool comprises the steps of testing current tested equipment based on an obtained test case, and generating a test program corresponding to the test case; constructing a test data document in the server, wherein the test data document comprises a serial port instruction set, a communication protocol, a test case set and a test program corresponding to each test case; the test data document is subjected to structured analysis, so that an intelligent index model of the test data document is constructed, and the intelligent index model is used for indexing related communication protocols, test case sets and test programs corresponding to the test cases in the test data document through an AI algorithm according to the index keywords. Through the mode, the test efficiency and quality of the serial port can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent testing, and in particular to a method for implementing a serial port tool. Background Technology

[0002] In the communication module industry, traditional serial port tools are still used for development and testing. These tools are relatively inefficient, and most AT commands and their execution results require human input and judgment, which may lead to input errors and misjudgments, making it difficult to detect problems in a timely manner. Although some tasks can be replaced by automated tools or systems, the development and use of automation-related tools have high barriers to entry, requiring specific systems and environments. As a result, the adoption and adaptation rates are low, making it impossible to achieve low requirements, high popularity, and high reliability. Summary of the Invention

[0003] This application mainly provides a method for implementing a serial port tool, a serial port tool, a device, and a storage medium to solve the problem of low efficiency in serial port testing.

[0004] To address the aforementioned technical problems, this application provides a method for implementing a serial port tool. This method includes: testing the device under test based on acquired test cases to generate test programs corresponding to the test cases; constructing a test data document on a server, the test data document including a serial port instruction set, communication protocol, test case set, and test programs corresponding to each test case; performing structured parsing on the test data document to construct an intelligent index model for the test data document, the intelligent index model being used to index relevant communication protocols, test case sets, and test programs corresponding to each test case in the test data document based on index keywords using an AI algorithm.

[0005] In some embodiments, the implementation method of the serial port tool further includes: dynamically updating the intelligent index model based on feedback data from the user's indexing of the intelligent index model.

[0006] In some embodiments, the implementation method of the serial port tool further includes: dynamically updating the test data document based on the test program generated by testing the new device under test.

[0007] In some embodiments, testing the current device under test based on the acquired test cases includes: establishing communication connections with multiple devices under test, wherein the multiple devices under test are different models of the same type of device or different types of device; and simultaneously testing the multiple devices under test according to the test cases.

[0008] In some embodiments, after testing the current device under test based on the acquired test cases, the method further includes: performing a problem comparison analysis based on the test results of multiple devices under test; and outputting the comparison analysis results among the multiple devices under test.

[0009] In some embodiments, outputting the comparative analysis results between multiple devices under test includes: constructing a test window corresponding to each device under test; displaying the test results of each device under test in the test window; performing comparative analysis on the test results of each test window to generate comparative analysis results between multiple devices under test.

[0010] In some embodiments, the implementation method of the serial port tool further includes: dynamically updating the commonly used test commands corresponding to the device under test based on the user's testing habits and the historical test results of the device under test.

[0011] To address the aforementioned technical problems, another technical solution adopted in this application is to provide a serial port tool, comprising: a testing module for testing the current device under test based on acquired test cases and generating test programs corresponding to the test cases; a construction module for constructing a test data document on a server, the test data document including a serial port instruction set, a communication protocol, a test case set, and test programs corresponding to each test case; and a parsing module for performing structured parsing on the test data document to construct an intelligent index model for the test data document, the intelligent index model being used to index related communication protocols, test case sets, and test programs corresponding to each test case in the test data document based on index keywords.

[0012] This application also provides a computer device, the computer device comprising: a memory and at least one processor, the memory storing instructions; the at least one processor calling the instructions in the memory to cause the computer device to execute the serial port tool implementation method as described above.

[0013] This application also provides a computer-readable storage medium storing instructions that, when executed by a processor, implement the serial port tool implementation method described above.

[0014] The beneficial effects of this application are as follows: Unlike existing technologies, this application discloses a method for implementing a serial port tool, including: testing the current device under test based on acquired test cases, generating test programs corresponding to the test cases; automatically generating test programs by inputting commands for the test case execution process, and saving them to the server after successful execution; simultaneously supporting the self-learning and optimization of the test programs, solving the problems of traditional serial port tools requiring manual script writing and maintenance, resulting in low efficiency and susceptibility to errors; achieving automated script generation and dynamic optimization, reducing manual intervention, and improving script reusability and adaptability. A test data document is constructed on the server, including a serial port instruction set, communication protocol, test case set, and test programs corresponding to each test case; the serial port instruction set, communication protocol, test case set, and corresponding test programs are integrated in the server to form a unified test data document, solving the problems of traditional tools lacking structured data management, and having scattered and difficult-to-associate documents; and centralized storage of scattered test resources, achieving data standardization and integrated management. The test data document is structured and parsed to build an intelligent indexing model. This model uses AI algorithms to index relevant communication protocols, test case sets, and corresponding test programs based on index keywords. By structuring and parsing the test data document, an intelligent model supporting keyword indexing is built, enabling rapid location of relevant communication protocols, test cases, and programs. This solves the problems of traditional tools relying on manual memory or manual search commands, which are inefficient and prone to misjudgment. The AI ​​algorithm enables keyword-triggered operations, improving the accuracy and speed of data retrieval. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein: Figure 1 This is a flowchart illustrating an embodiment of the serial port tool implementation method provided in this application; Figure 2 Is it like this? Figure 1 A flowchart illustrating an embodiment of step 10 of the method shown; Figure 3 Is it like this? Figure 2 A flowchart illustrating another embodiment of step 10 of the method shown; Figure 4 Is it like this? Figure 3 A flowchart illustrating an embodiment of step 14 of the method shown; Figure 5This is a schematic diagram of the structure of an embodiment of the serial port tool provided in this application; Figure 6 This is a schematic diagram of the structure of a computer device according to an embodiment of this application. Detailed Implementation

[0016] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0017] The terms "first," "second," and "third" used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.

[0018] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0019] See Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the serial port tool implementation method provided in this application. The implementation method of the serial port tool includes the following steps: 10: Test the current device under test based on the acquired test cases and generate the test program corresponding to the test cases.

[0020] The process of generating test programs based on test cases involves transforming human-understandable test steps into machine-executable automated scripts. Through techniques such as parameterization, assertions, and execution logic, it enables efficient and accurate testing of the device under test.

[0021] Test cases are structured documents or collections that define test objectives, steps, input data, and expected outputs. They are used to clarify test standards and scope, ensuring comprehensive testing; and serve as templates for generating test programs, guiding automated execution logic.

[0022] The device under test is the object being tested, such as a communication module or serial port device.

[0023] Test programs are scripts or code that can be automatically executed based on test cases. They are used to replace manual operations, automate the testing process, improve efficiency, and reduce human error.

[0024] Further, see Figure 2 Step 10 also includes the following steps: 11: Establish communication connections with multiple devices under test, which may be different models of the same type of equipment or different types of equipment.

[0025] Through hardware interface adaptation, parameter configuration, and connection verification, stable communication between the serial port tool and multiple devices under test is achieved.

[0026] Specifically, multiple devices under test are connected to the tool's multi-serial port interface via serial cables. The serial port tool automatically scans and identifies the connected devices, and matches the device model and communication protocol using its documentation learning function.

[0027] The tool automatically configures core parameters such as serial port number, baud rate, data bits, stop bits, and parity bits based on the device model.

[0028] For different models of the same type of device, the serial port tool saves the differentiated configurations through the storage optimization function, and automatically recalls them the next time a similar device is connected, reducing repetitive operations.

[0029] 12: Test multiple devices under test simultaneously according to the test cases.

[0030] By synchronously sending commands, collecting results in parallel, and using AI-assisted comparative analysis, efficient parallel testing of multiple devices can be achieved.

[0031] Specifically, users import test case sets, and the tool uses AI algorithms to parse the test steps, input commands, and expected results within the test cases. Based on the parsing results, the tool generates test scripts adapted to multiple devices and adjusts the command order through optimization features to ensure compatibility and execution across different device models.

[0032] When users select the "Synchronous Execution" mode in the tool interface, the serial port tool uses multi-threading / multi-process technology to send test commands to all devices under test simultaneously.

[0033] Optionally, for different types of devices, the serial port tool dynamically adjusts the command sending interval based on the device characteristics learned from the documentation, ensuring that low-performance devices are not blocked by high-load commands.

[0034] By using parallel access of multiple devices for synchronous instruction execution and AI-assisted comparative analysis, this method solves the problems of low single-device testing efficiency and difficulty in comparing results across multiple devices in traditional serial port tools. It is particularly suitable for scenarios involving compatibility testing of different models of the same type of device or verification of protocol consistency of different types of devices, ultimately achieving improved testing efficiency and quality assurance.

[0035] Optionally, after step 12, the following steps are also included: 13: Compare and analyze the problems based on the test results of multiple tested devices.

[0036] Raw test data is collected in real time from simultaneous testing of multiple devices under test. A synchronous execution mechanism ensures that the test steps of each device are consistent in time, avoiding incomparable results due to deviations in execution order.

[0037] 14: Output the comparative analysis results between multiple tested devices.

[0038] The tool uses two or more execution result test windows to display the test results of each device in separate windows, and intuitively presents the differences in results between different devices.

[0039] Optionally, the serial port tool can highlight test results that differ between different devices using markers such as highlighting or underlining.

[0040] By using real-time comparison across multiple interfaces to automatically identify differences and using document-driven root cause analysis, the problem of traditional serial port tools requiring manual comparison of results and reliance on experience to determine the cause of problems has been solved.

[0041] Further, see Figure 3 Step 14 also includes the following steps: 141: Construct the test window corresponding to each device under test.

[0042] When multiple devices under test are connected to the serial port tool via serial ports, the tool automatically assigns an independent test window to each device. The number of test windows matches the number of connected devices and can be dynamically increased or decreased. Based on its documentation learning function, the tool automatically configures window display parameters according to the device model.

[0043] Optionally, each window is automatically associated with the basic information of the device under test, such as device model, serial port number, communication protocol, etc., and displayed in the window title bar to avoid confusion between multiple devices.

[0044] 142: Display the test results of each device under test in the test window.

[0045] During the test, the window receives the response data from the device under test through a real-time data transmission channel and updates it dynamically in a streaming output mode, replacing the manual refresh or pagination loading of traditional tools.

[0046] AI algorithms automatically parse the raw response data and highlight key information based on the expected results database. Users can perform operations directly within the window, such as pausing / continuing the test, clearing the current results, saving the single-window log, or accessing AI-assisted functions via the right-click menu.

[0047] 143: Compare and analyze the test results of each test window to generate comparative analysis results between multiple tested devices.

[0048] The process of building a test window and displaying results upgrades the traditional single-device manual monitoring to intelligent parallel management of multiple devices through multi-window isolation, AI-assisted analysis, and real-time data interaction. This improves testing efficiency, reduces the risk of misjudgment, optimizes the user experience, and ultimately enhances work efficiency and quality.

[0049] 20: Build a test data document on the server. The test data document includes the serial port instruction set, communication protocol, test case set, and test program corresponding to each test case.

[0050] Collect four types of original documents from local or external systems: serial port instruction sets, communication protocols, test case sets, and test programs. Use the document import function of the AI ​​serial port tool to batch upload these documents to the server; supported formats include TXT, PDF, Excel, and script files.

[0051] A serial port command set is a collection of commands used to control serial port devices. For example, the AT command "AT+CGATT=1" is used for network attachment, to standardize device operation commands, and to ensure the accuracy of test commands.

[0052] A communication protocol is a set of rules that define the data transmission format, rate, and verification method, and is used to ensure the reliable transmission of test data between the tool and the device under test.

[0053] By using AI-driven document standardization and centralized server storage, the problems of traditional test data being scattered, having chaotic formats, and having low reusability are solved, ultimately achieving high reliability and widespread availability of test data, and providing data support for the testing process of serial port tools.

[0054] 30: Perform structured parsing of test data documents to build an intelligent indexing model for the test data documents. The intelligent indexing model is used to index relevant communication protocols, test case sets, and test programs corresponding to each test case in the test data documents based on index keywords and AI algorithms.

[0055] By leveraging AI algorithms such as Natural Language Processing (NLP), instruction set parsing, protocol parsing, test case parsing, and test program parsing are extracted from documents. This process of transforming unstructured documents into structured data enables machines to understand and retrieve document content, addressing the inefficiency of manual searching using traditional tools.

[0056] AI algorithms are used to extract core keywords and semantic features from structured data, establish relationships between different types of data, store these relationships as a knowledge graph, and support complex relationship queries.

[0057] Optionally, the implementation method of the serial port tool also includes: dynamically updating the intelligent index model based on the feedback data of the user indexing in the intelligent index model.

[0058] The dynamic updating of the intelligent indexing model is a process that optimizes the index structure based on user search feedback data and improves the accuracy and efficiency of keyword retrieval through AI algorithms.

[0059] Specifically, it collects user search behavior data within the intelligent indexing model, removes outlier data, and standardizes feedback labels. The behavioral data generated during user interaction with the indexing model serves to provide a real-world basis for model optimization, replacing the rules of traditional static indexing.

[0060] By analyzing feedback data using reinforcement learning algorithms, the association weights between keywords and resources in the indexing model are adjusted. The semantic vector model is fine-tuned using user feedback data to optimize the matching accuracy of synonyms and near-synonyms. Based on newly discovered resource associations, the relationship paths in the knowledge graph are automatically completed.

[0061] Optionally, the implementation method of the serial port tool also includes: dynamically updating the test data document based on the test program generated by testing the new device under test.

[0062] Dynamic updating of test data documents refers to automatically integrating the test procedures for new devices under test into existing documents, ensuring the real-time nature and completeness of test resources.

[0063] Specifically, after performing tests on the new device under test, the tool automatically generates corresponding test programs based on the test cases. Key metadata, including test case ID, device model, execution parameters, and expected results, is extracted from the test programs for subsequent structured storage.

[0064] AI algorithms are used to structure the new test program, extracting instruction sequences, logical branches, and exception handling rules, and converting them into a standardized format. The parsed structured data is then written into a database of test data documents and associated with the device model and communication protocol.

[0065] Optionally, the implementation method of this serial port tool also includes: dynamically updating the commonly used test commands corresponding to the device under test based on the user's testing habits and the historical test results of the device under test.

[0066] The dynamic updating of frequently used test commands is based on user operating habits and historical test results, automatically adjusting the command recommendation priority to improve user operating efficiency.

[0067] Specifically, it records user input frequency, command combination sequences, operation time distribution, and other habitual data. It also calculates the execution success rate, average response time, and anomaly cause distribution for each command. A multi-dimensional weighted model is constructed, and the weights are recalculated and the list of frequently used commands is updated for each time window. Commands within the preset ranking are displayed in real-time in the user interface via a shortcut bar.

[0068] The purpose of dynamically adjusting recommended content based on user characteristics and scenarios is to reduce the user's memory burden and improve the efficiency of command input.

[0069] The dynamic update mechanism is the core embodiment of the serial port tool's self-learning and continuous optimization. The intelligent indexing model iteratively optimizes retrieval accuracy through user feedback data; test data documents keep resources up-to-date through the automated integration of new test programs; and frequently used test commands are personalized recommendations based on user habits and historical results. These three elements work synergistically to ultimately achieve the tool's design goals of low barrier to entry, high accessibility, and high reliability, significantly improving testing efficiency and quality.

[0070] The implementation method of the serial port tool in the embodiments of the present invention has been described above. The serial port tool in the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 5 One embodiment of the image-based serial port tool in this invention includes: Test module 210 is used to test the current device under test based on the acquired test cases and generate test programs corresponding to the test cases.

[0071] Module 220 is used to build a test data document on the server. The test data document includes a serial port instruction set, communication protocol, test case set, and test program corresponding to each test case.

[0072] The parsing module 230 is used to perform structured parsing of the test data document in order to build an intelligent index model for the test data document. The intelligent index model is used to index the relevant communication protocols, test case sets, and test programs corresponding to each test case in the test data document based on the index keywords.

[0073] above Figure 5The serial port tool device in the embodiments of the present invention will be described in detail from the perspective of modular functional entities. The computer device in the embodiments of the present invention will be described in detail from the perspective of hardware processing.

[0074] Figure 6 This is a schematic diagram of a computer device 500 provided in an embodiment of the present invention. The computer device 500 can vary significantly due to different configurations or performance characteristics. It may include one or more central processing units (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing application programs 533 or data 532. The memory 520 and storage media 530 may be temporary or persistent storage. The program stored in the storage media 530 may include one or more modules (not shown in the diagram), each module may include a series of instruction operations on the computer device 500. Furthermore, the processor 510 may be configured to communicate with the storage media 530 and execute the series of instruction operations in the storage media 530 on the computer device 500.

[0075] Computer device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 560, and / or one or more operating systems 531, such as Windows Server, MacOSX, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 6 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0076] The present invention also provides a computer device, the computer device including a memory and a processor, the memory storing computer-readable instructions, which, when executed by the processor, cause the processor to perform the steps of the serial port tool implementation method in the above embodiments.

[0077] The present invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when the instructions are executed on a computer, cause the computer to perform the steps of the implementation method of the serial port tool.

[0078] Unlike existing technologies, this application supports importing documents such as serial port instruction sets, communication protocols, and test case sets into a server. AI algorithms are used to learn and train on the document content, constructing a structured knowledge base and enabling keyword-triggered operations. AI automatically learns the documents and generates scripts, replacing the traditional tool's manual input of instructions and judgment of results. Keyword-based script retrieval avoids repetitive writing and solves the problem of limited script storage functionality in traditional tools. Instructions and scripts can be invoked via keyword triggering, meeting the design goals of low requirements and high accessibility. AI automatically matches device communication parameters based on imported protocol documents, avoiding the problems of manual protocol configuration and low compatibility rates in traditional tools. This application innovatively provides two or more execution result display interfaces, supporting the connection of multiple devices under test within the same tool. Before executing commands or scripts, a synchronous execution mode can be selected, allowing the tested device and comparison device to run simultaneously, enabling real-time comparison of functional and performance differences. Results are analyzed by AI algorithms and displayed in the comparison interface. Through a multi-window comparison interface, real-time observation of command response differences between different devices or versions is possible, overcoming the limitation of traditional tools' inability to compare simultaneously. Abnormal differences are automatically marked, and the causes are inferred based on the protocol documents.

[0079] Document import and AI learning functions transform scattered instruction sets, use cases, and scripts into a structured knowledge base, avoiding the problems of messy documentation and difficulty in reuse found in traditional tools. Scripts and index models are continuously optimized through self-learning, adapting to new devices and scenarios. This solution addresses the pain points of traditional serial port tools—low efficiency, high false positive rate, high operational threshold, and lack of comparison functionality—through three key technologies: AI document learning, automated script optimization, and multi-window comparison. Ultimately, it achieves the technical goals of improving work efficiency and quality, low requirements, high accessibility, and high reliability.

[0080] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on its differences from other embodiments. In particular, the storage medium embodiments and computer device embodiments are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0081] This application can be used in a wide range of general-purpose or specialized in-vehicle computing system environments or configurations. Examples include: personal computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, network PCs, minicomputers, and distributed computing environments including any of the above systems or devices.

[0082] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative; multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed.

[0083] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0084] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0085] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A method for implementing a serial port tool, characterized in that, The implementation method of the serial port tool includes: Based on the acquired test cases, the device under test is tested, and the test program corresponding to the test cases is generated. A test data document is constructed on the server. The test data document includes a serial port instruction set, a communication protocol, a test case set, and a test program corresponding to each test case. The test data document is structured and parsed to construct an intelligent index model for the test data document. The intelligent index model is used to index related communication protocols, test case sets, and test programs corresponding to each test case in the test data document based on index keywords and AI algorithms.

2. The method for implementing the serial port tool according to claim 1, characterized in that, The implementation method of the serial port tool also includes: The intelligent index model is dynamically updated based on user feedback data from indexing operations performed by the user.

3. The method for implementing the serial port tool according to claim 1, characterized in that, The implementation method of the serial port tool also includes: The test data document is dynamically updated based on the test program generated from testing the new device under test.

4. The method for implementing the serial port tool according to claim 1, characterized in that, The testing of the current device under test based on the acquired test cases includes: Establish communication connections with multiple devices under test, wherein the multiple devices under test are different models of the same type of device or different types of devices; Multiple devices under test are tested simultaneously according to the test cases.

5. The method for implementing the serial port tool according to claim 4, characterized in that, After testing the current device under test based on the acquired test cases, the process further includes: A comparative analysis of the problems was conducted based on the test results of multiple devices under test. Output the comparative analysis results between multiple devices under test.

6. The method for implementing the serial port tool according to claim 5, characterized in that, The output of comparative analysis results among multiple devices under test includes: Construct test windows corresponding to each of the devices under test; The test results of each of the devices under test are displayed in the test window; The test results of each test window are compared and analyzed to generate comparative analysis results among multiple devices under test.

7. The method for implementing the serial port tool according to claim 1, characterized in that, The implementation method of the serial port tool also includes: Based on the user's testing habits and the historical test results of the device under test, the commonly used test commands corresponding to the device under test are dynamically updated.

8. A serial port tool, characterized in that, The serial port tool includes: The testing module is used to test the current device under test based on the acquired test cases and generate the test program corresponding to the test cases. A construction module is used to build a test data document on the server. The test data document includes a serial port instruction set, a communication protocol, a test case set, and a test program corresponding to each test case. The parsing module is used to perform structured parsing on the test data document to construct an intelligent index model for the test data document. The intelligent index model is used to index related communication protocols, test case sets, and test programs corresponding to each test case in the test data document based on index keywords.

9. A computer device, characterized in that, The computer device includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor invokes the instructions in the memory to cause the computer device to execute the implementation method of the serial port tool as described in any one of claims 1-7.

10. A computer-readable storage medium storing instructions thereon, characterized in that, When the instruction is executed by the processor, it implements the serial port tool implementation method as described in any one of claims 1-7.