Serial port matching method and device, readable storage medium and electronic equipment

By obtaining the host device attributes and setting specific keywords, serial port matching is achieved, solving the problem of time-consuming serial port configuration in the existing technology and improving testing efficiency.

CN120011163AInactive Publication Date: 2025-05-16BIWIN STORAGE TECH CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510495352.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-21
Publication Date
2025-05-16
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When multiple test groups are tested simultaneously, the existing serial port tools need to turn on and configure each serial port in turn, resulting in a lot of time required for the test process and reducing the testing efficiency.

Method used

By obtaining the attributes of the host device to be matched, setting targeted first and second keywords, entering these keywords into the serial port, distinguishing between the host serial port and the device serial port, and matching between the host device and the device under test is achieved through the second keyword.

Benefits of technology

It realizes rapid matching between the serial port and the host device or chip product, improves testing efficiency and reduces the time of manual operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120011163A_ABST
    Figure CN120011163A_ABST
Patent Text Reader

Abstract

The invention discloses a serial port matching method and device, a readable storage medium and electronic equipment, and the method comprises the steps: obtaining a first attribute and a second attribute of to-be-matched host equipment, and obtaining a first keyword and a second keyword according to the first attribute and the second attribute; inputting the first keyword into the serial port of each host device and the serial port of the tested device, if a target serial port outputs a matched keyword corresponding to the first keyword, classifying the target serial port as a host serial port, otherwise, classifying the target serial port as a device serial port; traversing host devices corresponding to the host serial ports, inputting a second keyword into a target host device when traversing the target host device, and if a responded target tested device exists, pairing the host serial port corresponding to the target host device with a device serial port corresponding to the target tested device, therefore, the one-to-one correspondence relationship between the host equipment and the tested equipment is quickly established, and the test working efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of storage products, and in particular to a serial port matching method, device, readable storage medium and electronic equipment. Background Art

[0002] For the testing of existing terminal storage chip products such as EMMC (Embedded Multi Media Card) and UFS (Universal Flash Storage), the host device (host) is usually used to test the device (device) such as the chip product through the protocol. For example, the host device and the chip product output logs or input test instructions through the serial port. In the actual testing process, the host device and the chip product usually form a test group, and multiple test groups are tested simultaneously during the test process. Therefore, the test process often requires the simultaneous collection of serial port logs between multiple groups of host devices and chip products.

[0003] However, when multiple test groups are tested simultaneously, the existing serial port tools need to open and configure each serial port in turn. During configuration, the baud rate of the corresponding serial port needs to be known in advance to obtain the correct encoding output. Therefore, in application scenarios with a large number of devices to be tested, it is necessary to power on each device one by one and manually try to modify the baud rate to find the relationship between the serial port and the host device or chip product. This causes the test process to take a lot of time and reduces test efficiency. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a serial port matching method, device, readable storage medium and electronic device to achieve matching between the serial port and a host device or a chip product and improve test efficiency.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: A serial port matching method, comprising: Acquire a first attribute and a second attribute of a host device to be matched, and obtain a first keyword and a second keyword respectively according to the first attribute and the second attribute; Input the first keyword to each serial port of the host device and the serial port of the device under test, and if there is a target serial port that outputs a matching keyword corresponding to the first keyword, classify the target serial port as a host serial port, otherwise classify it as a device serial port; The host devices corresponding to the host serial port are traversed, and when a target host device is traversed, the second keyword is input into the target host device, and if there is a responding target device under test, the host serial port corresponding to the target host device is paired with the device serial port corresponding to the target device under test.

[0006] In order to solve the above technical problems, another technical solution adopted by the present invention is: A serial port matching device, comprising: An acquisition module, used to acquire a first attribute and a second attribute of a host device to be matched, and obtain a first keyword and a second keyword respectively according to the first attribute and the second attribute; a classification module, configured to input the first keyword into each of the serial ports of the host device and the serial port of the device under test, and classify the target serial port as a host serial port if there is a target serial port outputting a matching keyword corresponding to the first keyword, otherwise classify the target serial port as a device serial port; The matching module is used to traverse the host devices corresponding to the host serial port, and when traversing to the target host device, input the second keyword into the target host device, and if there is a responding target device under test, pair the host serial port corresponding to the target host device with the device serial port corresponding to the target device under test.

[0007] In order to solve the above technical problems, another technical solution adopted by the present invention is: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the various steps in the above-mentioned serial port matching method.

[0008] In order to solve the above technical problems, another technical solution adopted by the present invention is: An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step in the above-mentioned serial port matching method is implemented.

[0009] The beneficial effect of the present invention lies in that after obtaining the attributes of the host device to be matched, a targeted first keyword and a second keyword are set according to the attributes of the host device, so that after the first keyword is input into all serial ports, only the host serial port can output the corresponding matching keyword, thereby distinguishing the host serial port from the device serial port, and then by inputting the second keyword into the host device, only the device under test corresponding to the host device can respond, thereby achieving matching between the host device and the device under test, thereby being able to quickly establish a one-to-one correspondence between the host device and the device under test, thereby improving the test work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A flowchart of a serial port matching method according to an embodiment of the present invention; Figure 2 A flowchart of a serial port tool software for executing a serial port matching method in an embodiment of the present invention; Figure 3 A schematic diagram of a software screen created by a serial port matching method in an embodiment of the present invention; Figure 4 It is a structural schematic diagram of a serial port matching device in an embodiment of the present invention; Figure 5 The figure is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0011] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

[0012] A serial port matching method, comprising: Acquire a first attribute and a second attribute of a host device to be matched, and obtain a first keyword and a second keyword respectively according to the first attribute and the second attribute; Input the first keyword to each serial port of the host device and the serial port of the device under test, and if there is a target serial port that outputs a matching keyword corresponding to the first keyword, classify the target serial port as a host serial port, otherwise classify it as a device serial port; The host devices corresponding to the host serial port are traversed, and when a target host device is traversed, the second keyword is input into the target host device, and if there is a responding target device under test, the host serial port corresponding to the target host device is paired with the device serial port corresponding to the target device under test.

[0013] From the above description, it can be seen that the beneficial effect of the present invention is that after obtaining the properties of the host device to be matched, a targeted first keyword and a second keyword are set according to the properties of the host device, so that after the first keyword is input into all serial ports, only the host serial port can output the corresponding matching keyword, thereby realizing the distinction between the host serial port and the device serial port, and then by inputting the second keyword into the host device, only the device under test corresponding to the host device can respond, realizing the matching between the host device and the device under test, so that a one-to-one correspondence between the host device and the device under test can be quickly established, thereby improving the test work efficiency.

[0014] Furthermore, before inputting the first keyword into each serial port of the host device and the serial port of the device under test, the method further includes: Create all serial port connections in the current environment at the default baud rate, and create a separate object for each serial port connection; Open all serial ports at the default baud rate.

[0015] From the above description, it can be seen that after the serial port connection is created by the default baud rate, a separate object is established for each serial port connection, so that each serial port can be effectively distinguished.

[0016] Further, the step of opening all serial ports at the default baud rate includes: Get the serial port number and configuration timestamp corresponding to each serial port; Configure the log file output path corresponding to each serial port, and generate the file name of the log file corresponding to each serial port according to the serial port number and the timestamp.

[0017] From the above description, it can be seen that by configuring the log file output path for each serial port and generating a file name according to its corresponding serial port number and timestamp, it is possible to avoid repeated naming of file names, thereby distinguishing the log file output path corresponding to each serial port at different times, making it easier to find.

[0018] Further, the step of inputting the first keyword into each serial port of the host device and the serial port of the device under test comprises: If the target serial port is classified as a host serial port, setting the baud rate of the target serial port to the default baud rate; If the target serial port is classified as a device serial port, the baud rate of the target serial port is set to a preset baud rate.

[0019] From the above description, it can be seen that the baud rate of the target serial port is changed according to the classification result of the target serial port, that is, the corresponding baud rate can be automatically set after the classification of the target serial port is determined, thereby eliminating the need for manual setting one by one, thereby improving test efficiency.

[0020] Furthermore, the host device and the device under test are powered in a one-to-one correspondence; The second keyword includes a restart instruction; The inputting the second keyword into the target host device comprises: When the target host device executes the restart instruction, if there is a target tested device that simultaneously executes the restart instruction, the host serial port corresponding to the target host device is paired with the device serial port corresponding to the target tested device.

[0021] From the above description, it can be seen that by powering the host device and the device under test one by one, that is, the device under test is powered by the corresponding host device; therefore, when the target host device executes the restart command, its corresponding device under test will also restart in the same way, thereby achieving a match between the target host device and the target device under test.

[0022] Furthermore, the step of inputting the first keyword into each serial port includes: creating a human-computer interaction interface; The step of inputting the first keyword into each serial port comprises: If the target serial port is classified as a host serial port, setting the window of the target serial port at a first preset position of the human-computer interaction interface; If the target serial port is classified as a device serial port, the window of the target serial port is set at a second preset position of the human-computer interaction interface.

[0023] From the above description, it can be seen that by creating a human-computer interaction interface during testing and setting the window of the target serial port at the corresponding preset position according to the classification result of the target serial port, the host serial port and the device serial port can be distinguished more intuitively, which facilitates the subsequent modification of the information of the host serial port and the device serial port.

[0024] Furthermore, it also includes: Receive interactive instructions, including modifying the baud rate, modifying the log path, and opening or closing the serial port; The window of the target serial port is operated according to the interactive instruction.

[0025] From the above description, it can be seen that by setting interactive commands such as changing the baud rate, changing the log path, opening or closing the serial port, etc., different interactive commands can be set according to the test requirements, and the information corresponding to the serial port in the window can be modified to meet the test requirements.

[0026] Another embodiment of the present invention provides a serial port matching device, comprising: An acquisition module, used to acquire a first attribute and a second attribute of a host device to be matched, and obtain a first keyword and a second keyword according to the first attribute and the second attribute respectively; a classification module, configured to input the first keyword into each of the serial ports of the host device and the serial port of the device under test, and classify the target serial port as a host serial port if there is a target serial port outputting a matching keyword corresponding to the first keyword, otherwise classify the target serial port as a device serial port; The matching module is used to traverse the host devices corresponding to the host serial port, and when traversing to the target host device, input the second keyword into the target host device, and if there is a responding target device under test, pair the host serial port corresponding to the target host device with the device serial port corresponding to the target device under test.

[0027] Another embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned serial port matching method are implemented.

[0028] Another embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements each step in the above-mentioned serial port matching method when executing the computer program.

[0029] The serial port matching method, device, readable storage medium and electronic device provided by the present invention can be applied to the scenario of terminal storage product testing, and are described below through specific implementation methods: Embodiment 1 Please refer to Figure 1 as well as Figure 2 A serial port matching method is packaged into a serial port tool software for use, specifically comprising the following steps: S0. Create all serial port connections in the current environment at the default baud rate, create a separate object for each serial port connection, and open all serial ports at the default baud rate. For example, if there are three host devices and three devices under test, the test terminal generates 6 serial port connections; each host and its corresponding device is a set of test environments, and the test terminal needs to find a one-to-one corresponding test environment from multiple hosts and multiple devices; that is, the host accesses the test terminal through the serial port, and the device also accesses the test terminal through the serial port, and the serial port baud rates used by the host and the device are different; the serial port tool runs on the test terminal and communicates with the host and the device respectively. Define the default baud rate as 115200, and use the default baud rate of 115200 to create all serial port connections in the current environment, and each serial port connection is an independent object (class), that is, the serial port tool will create as many objects as there are serial ports on the test terminal where the serial port tool is running, and use it to open all serial ports with one click; at the same time, each serial port object will automatically configure the log file output path corresponding to the serial port, obtain the serial port number corresponding to the serial port and configure the timestamp, and then generate the file name of the log file corresponding to the serial port according to the serial port number and timestamp to avoid duplication of the output path and file name. Among them, when it is judged that the number of serial ports in the current environment is 0, it is prompted that there is no serial port in the current environment.

[0030] S1. Obtain the first attribute and the second attribute of the host device to be matched, and obtain the first keyword and the second keyword respectively according to the first attribute and the second attribute. The attribute of the host device (host) may be the characteristics of the device itself, operation or artificially set preset feedback, such as making the host device output an expected keyword or value according to a specific keyword, or making the host device perform a restart operation according to a restart instruction, etc. In this embodiment, the first attribute is that the host device outputs an expected keyword according to a specific keyword, and the second attribute is that the host device performs a restart operation according to a restart instruction to obtain the first keyword bw and the second keyword reset (restart) respectively as an example for explanation.

[0031] S2. Input the first keyword into the serial port of each of the host devices and the serial port of the device under test. If there is a target serial port outputting a matching keyword corresponding to the first keyword, the target serial port is classified as a host serial port, otherwise it is classified as a device serial port. Since the baud rates corresponding to the host serial port and the device serial port are different, the host serial port can correctly parse the received bit stream at the default baud rate, while the device serial port cannot correctly parse the received bit stream, resulting in data errors; therefore, when the first keyword bw is input into each serial port, for the input target serial port, if the expected output received is also bw, the target serial port is classified as a host serial port, and the baud rate of the target serial port is set to the default baud rate, that is, the baud rate of the host serial port is marked; if the pre-fetched output received is not bw, the target serial port is classified as a device interface, and the baud rate of the target serial port is set to a preset baud rate, such as other baud rates customized by the tester, such as a baud rate of 921600, etc., so that the host serial port and the device serial port are distinguished by the first keyword bw without manual operation.

[0032] S3, traverse the host devices corresponding to the host serial port, and when traversing to the target host device, input the second keyword to the target host device, and if there is a target device under test that responds, pair the host serial port corresponding to the target host device with the device serial port corresponding to the target device under test. The host device and the device under test are powered one-to-one; input the second keyword reset to each host device in turn, that is, each operation of inputting the second keyword reset can only determine a set of corresponding relationships between the host device and the device under test; when the target host device receives the second keyword reset, the target host device will execute the restart instruction. Since the device under test is powered by the host device, when the host device executes the restart instruction, its corresponding device under test will also restart and have output content on the serial port, that is, if there is a target device under test that simultaneously executes the restart instruction and outputs the expected output content, it is considered that the target host device and the target device under test correspond one-to-one, and the host serial port corresponding to the target host device is paired with the device serial port corresponding to the target device under test.

[0033] In an optional implementation, a human-computer interaction interface is created to enable the tester to more intuitively see the corresponding relationship between the host device and the device under test, and to modify the corresponding parameters of the host device and the device under test. Specifically: When executing step S2, if the target serial port is classified as a host serial port, the window of the target serial port is set at the first preset position of the human-computer interaction interface; if the target serial port is classified as a device serial port, the window of the target serial port is set at the second preset position of the human-computer interaction interface.

[0034] Please refer to Figure 3 For example, the UI corresponding to the host device (host) is placed in the first line of the entire UI interface, and the UI corresponding to the device (device) is placed in the second line of the entire UI interface, thereby distinguishing the device from the host, and the process is automatically completed by the software without manual operation. Figure 3 As shown in the figure, the interface after the software is opened is displayed, showing two rows of serial port windows, a total of 6 windows. The number of windows is determined by the number of serial ports in the current environment; in the first row of UI: COM68, COM73, and COM74 are windows corresponding to the three host devices (host); in the second row of UI: COM11, COM70, and COM72 are windows corresponding to the three devices under test (device).

[0035] At the same time, the human-computer interaction interface also includes interactive commands, including modifying the baud rate, modifying the log path, opening or closing the serial port, and other interactive command controls; based on the interactive command controls, the corresponding windows can be controlled. For example, pressing the part of the name in each window, such as <com68>or <com73>After you click on the name, you can drag the corresponding window to the desired location. For example, if you need to drag the second row <com11>and <com70>To swap, hold down the mouse <com11>arrive <com70>After the location is set, the software will automatically <com70>Move to <com11>The position of the window can be moved. When in use, the device under test can also be dragged to the same column as the corresponding host device.

[0036] Embodiment 2 Please refer to Figure 4 , a serial port matching device, comprising: An acquisition module, used to acquire a first attribute and a second attribute of a host device to be matched, and obtain a first keyword and a second keyword according to the first attribute and the second attribute respectively; a classification module, configured to input the first keyword into each of the serial ports of the host device and the serial port of the device under test, and classify the target serial port as a host serial port if there is a target serial port outputting a matching keyword corresponding to the first keyword, otherwise classify the target serial port as a device serial port; The matching module is used to traverse the host devices corresponding to the host serial port, and when traversing to the target host device, input the second keyword into the target host device, and if there is a responding target device under test, pair the host serial port corresponding to the target host device with the device serial port corresponding to the target device under test.

[0037] Embodiment 3 A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the various steps of the serial port matching method described in the first embodiment.

[0038] Embodiment 4 An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements each step of the serial port matching method described in the first embodiment when executing the computer program.

[0039] In summary, the serial port matching method, device, readable storage medium and electronic device provided by the present invention can open all serial ports in the current environment with one click, and automatically configure a log file path with a timestamp for each serial port; at the same time, a targeted first keyword and a second keyword are set according to the attributes of the host device, so that after the first keyword is input into all serial ports, only the host serial port can output the corresponding matching keyword, thereby automatically identifying the baud rate of the corresponding serial port and distinguishing the host serial port from the device serial port; and then by inputting the second keyword into the host device, only the device under test corresponding to the host device can respond, thereby achieving matching between the host device and the device under test, and the host device and the device under test can also be paired by manually dragging the UI, so that a one-to-one correspondence between the host device and the device under test can be quickly established, thereby improving the test work efficiency.

[0040] After obtaining the properties of the host device to be matched, a targeted first keyword and a second keyword are set according to the properties of the host device, so that after the first keyword is input into all serial ports, only the host serial port can output the corresponding matching keyword, thereby distinguishing the host serial port from the device serial port, and then by inputting the second keyword into the host device, only the device under test corresponding to the host device can respond, thereby achieving a match between the host device and the device under test, thereby being able to quickly establish a one-to-one correspondence between the host device and the device under test, thereby improving test work efficiency.

[0041] In the above embodiments provided in the present application, it should be understood that the disclosed methods, devices, computer-readable storage media, and electronic devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple components or modules can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or components or modules, which can be electrical, mechanical or other forms.

[0042] The components described as separate components may or may not be physically separated, and the components shown as components may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the components may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0043] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each component may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0044] If the integrated module is implemented in the form of a software function module 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 invention, in essence, 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 for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0045] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0046] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0047] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A serial port matching method, characterized in that: include: Acquire a first attribute and a second attribute of a host device to be matched, and obtain a first keyword and a second keyword respectively according to the first attribute and the second attribute; Input the first keyword to each serial port of the host device and the serial port of the device under test, and if there is a target serial port that outputs a matching keyword corresponding to the first keyword, classify the target serial port as a host serial port, otherwise classify it as a device serial port; The host devices corresponding to the host serial port are traversed, and when a target host device is traversed, the second keyword is input into the target host device, and if there is a responding target device under test, the host serial port corresponding to the target host device is paired with the device serial port corresponding to the target device under test.

2. A serial port matching method according to claim 1, characterized in that: The step of inputting the first keyword into each serial port of the host device and the serial port of the device under test comprises: Create all serial port connections in the current environment at the default baud rate, and create a separate object for each serial port connection; Open all serial ports at the default baud rate.

3. A serial port matching method according to claim 2, characterized in that: The step of opening all serial ports at the default baud rate includes: Get the serial port number and configuration timestamp corresponding to each serial port; Configure the log file output path corresponding to each serial port, and generate the file name of the log file corresponding to each serial port according to the serial port number and the timestamp.

4. A serial port matching method according to claim 2, characterized in that: The step of inputting the first keyword into each serial port of the host device and the serial port of the device under test comprises: If the target serial port is classified as a host serial port, setting the baud rate of the target serial port to the default baud rate; If the target serial port is classified as a device serial port, the baud rate of the target serial port is set to a preset baud rate.

5. A serial port matching method according to claim 1, characterized in that: The host device and the device under test are supplied with power in a one-to-one correspondence; The second keyword includes a restart instruction; The inputting the second keyword into the target host device comprises: When the target host device executes the restart instruction, if there is a target tested device that simultaneously executes the restart instruction, the host serial port corresponding to the target host device is paired with the device serial port corresponding to the target tested device.

6. A serial port matching method according to claim 1, characterized in that: The step of inputting the first keyword into each serial port includes: creating a human-computer interaction interface; The step of inputting the first keyword into each serial port comprises: If the target serial port is classified as a host serial port, setting the window of the target serial port at a first preset position of the human-computer interaction interface; If the target serial port is classified as a device serial port, the window of the target serial port is set at a second preset position of the human-computer interaction interface.

7. A serial port matching method according to claim 6, characterized in that: Also includes: Receive interactive instructions, including modifying the baud rate, modifying the log path, and opening or closing the serial port; The window of the target serial port is operated according to the interactive instruction.

8. A serial port matching device, characterized in that: include: An acquisition module, used to acquire a first attribute and a second attribute of a host device to be matched, and obtain a first keyword and a second keyword respectively according to the first attribute and the second attribute; a classification module, configured to input the first keyword into each of the serial ports of the host device and the serial port of the device under test, and classify the target serial port as a host serial port if there is a target serial port outputting a matching keyword corresponding to the first keyword, otherwise classify the target serial port as a device serial port; The matching module is used to traverse the host devices corresponding to the host serial port, and when traversing to the target host device, input the second keyword into the target host device, and if there is a responding target device under test, pair the host serial port corresponding to the target host device with the device serial port corresponding to the target device under test.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the serial port matching method according to any one of claims 1 to 7 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, each step of the serial port matching method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Identification method and identification system of test device

    CN105632381A

  • Serial port query method and device and computer storage medium

    CN109597779A

  • Automatic test method and device, storage medium and electronic equipment

    CN111462811A

  • Verification system of basic input output system and verification method thereof

    US20230359536A1