Automatic test system and method compatible with multiple AT instructions

By designing an automated testing system compatible with multiple AT commands, automated testing of multiple target terminal devices is achieved, solving the problems of low testing efficiency and low accuracy in the existing technology and improving testing efficiency and accuracy.

CN120692187APending Publication Date: 2025-09-23济南有人物联网技术有限公司 +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510959996.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-11
Publication Date
2025-09-23

AI Technical Summary

Technical Problem

Existing AT command compatibility testing relies on manual operations, which is time-consuming, labor-intensive, and error-prone. Existing automated testing systems are inefficient and cannot perform efficient compatibility testing on multiple devices.

Method used

An automated test system compatible with multiple AT commands is designed, including a PC and a tooling board. Through command import, parsing, result comparison and display modules, it realizes automatic parsing of AT commands and multi-concurrent testing, automatically identifies the number of target terminal devices, and automatically executes AT commands and compares the results for all devices.

Benefits of technology

It improves test efficiency and accuracy, and can perform AT command compatibility tests on multiple target terminal devices at the same time, reducing manual operations, saving time and reducing costs, and providing more accurate test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120692187A_ABST
    Figure CN120692187A_ABST
Patent Text Reader

Abstract

The invention provides an automatic test system and method compatible with multiple AT instructions, and the system achieves the automatic analysis of the AT instructions into an AT instruction test set, the automatic recognition of the number of target terminal devices, the automatic test execution of the AT instructions corresponding to all target terminal devices, and the automatic comparison of results through the mutual cooperation of a PC terminal and a tool plate, achieves the multi-concurrent test, and improves the test efficiency. The AT instruction compatibility test can be carried out on multiple target terminal devices at the same time, and the test efficiency is improved. The method and the device aim at the AT instruction, multi-concurrent testing can be realized, and the testing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of communication equipment testing, and in particular relates to an automatic testing system and method compatible with multiple AT commands. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] With the continuous advancement of communication technology, products, especially terminal devices, are frequently upgraded. During this product upgrade process, AT command compatibility is crucial, directly impacting device stability and user experience. AT commands are widely used, often between terminal devices and controllers, between terminal devices, and between terminal devices and PCs. Therefore, AT command compatibility testing is necessary during terminal device upgrades.

[0004] However, existing AT command compatibility testing mostly relies on manual operations, requiring testers to manually write test scripts and compare the execution results of AT commands one by one. This is not only time-consuming and labor-intensive, but also prone to inaccurate test results due to human factors, resulting in problems such as heavy workload, low efficiency, and low accuracy.

[0005] Although some researchers have proposed using software platforms or automated testing modules to implement command testing, this type of testing is generally not specifically targeted at AT commands, and is generally implemented on a single device through line-by-line comparison, which is inefficient. Summary of the Invention

[0006] In order to solve the above problems, the present invention proposes an automated testing system and method compatible with multiple AT commands. The present invention is targeted at AT commands and can implement multiple concurrent tests to improve test efficiency.

[0007] According to some embodiments, the present invention adopts the following technical solutions: An automated test system compatible with multiple AT commands, including a tooling board and a PC, wherein: The PC terminal includes a command import module, a command parsing module, and a result comparison and display module. The command import module is used to import the predetermined AT command name, format, parameters, range, and expected results; The command parsing module is used to extract key information of the imported AT command and automatically parse and form an AT command set for query and setting according to the command format; The result comparison and display module is used to obtain the execution result and response time returned by the AT instruction set executed and parsed by the target terminal device, recorded by the tooling board, compare it with the expected result and execution time, determine whether there is a difference between the two, and display the execution result and comparison result; The tooling board includes a communication circuit, a communication interface and a control module. The communication circuit is used to communicate with the PC to receive the AT instruction set parsed by the instruction parsing module; The communication interface includes a plurality of interfaces, each of which is connected to a target terminal device; The control module is used to identify the target terminal devices connected to the communication interface and their number, send predetermined AT commands to all currently connected target terminal devices according to the parsed AT command set, and receive and record the execution results and response time returned by each target terminal device.

[0008] In the above technical solution, the present invention realizes automatic parsing of AT commands into AT command test sets through the cooperation between the PC end and the tooling board, automatically identifies the number of target terminal devices (i.e., test devices), automatically executes tests on the AT commands corresponding to all target terminal devices, and automatically compares the results, thereby realizing multi-concurrent testing, being able to perform AT command compatibility tests on multiple target terminal devices (i.e., test devices) at the same time, and improving test efficiency.

[0009] As an optional embodiment, the command import module is configured to import a predetermined AT command name, format, parameters, range, and expected result, determine the format of the imported document, and if the document format conforms to the preset format, apply a regular expression to extract the AT command, the extracted content including the configurable value, range, and format, and combine it into a predetermined format file; If the document format is incorrect, an error message will be returned; If no AT command is extracted, an error will be recorded and a prompt will be given that there is no valid command.

[0010] As an optional embodiment, the instruction parsing module is configured to read a predetermined format file, determine whether it contains parameters, and if so, extract the parameter range and type, save it according to the predetermined format file with parameters, and parse it to generate a list of all instructions to be executed and a response format; If not, the command is marked as parameterless, saved in a parameterless predetermined format file, and parsed to generate a list of all commands to be executed and a response format.

[0011] As an optional implementation, the communication interface is an expandable interface.

[0012] As an optional implementation, the control module is configured to identify the target terminal devices connected to the communication interface and their number, traverse the parsed AT instruction set, determine the number of target terminal devices connected at this time, and send all AT instructions in the AT instruction set to the target terminal devices for execution through the corresponding communication interface, and receive and record the execution results and response time returned by all target terminal devices.

[0013] As an optional implementation, the result comparison and display module is configured to compare the execution result and response time returned by each target terminal device with the expected result and execution time, obtain a comparison result, and display it to determine the AT command compatibility test result of each target terminal device; The execution results and response times returned by each target terminal device are compared to obtain a comparison result, which is then displayed to determine the compatibility differences of AT commands between the target terminal devices.

[0014] As an optional implementation, the tooling board further includes a power supply circuit, which provides a DC voltage to other modules / circuits of the tooling board.

[0015] As an optional implementation, the tooling board further includes a storage circuit or a storage module for storing the parsed AT instruction set sent by the PC, as well as the execution results and response time returned by each target terminal device.

[0016] As an optional implementation, the tooling board further includes an indicator light circuit, which is connected to the control module and is used to indicate whether there are any abnormalities in the power supply of the tooling board, the AT command comparison status, and the working status of the control module.

[0017] As an optional implementation, the PC terminal further includes a report generation module for generating a test report and a problem report according to the comparison results of the result comparison and display module.

[0018] The test method based on the above-mentioned automated test system includes the following steps: The command import module imports the predetermined AT command name, format, parameters, range and expected results; The instruction parsing module extracts the key information of the imported AT instructions and automatically parses and forms the query and setting AT instruction set according to the instruction format, and sends it to the tooling board; The control module of the tooling board identifies the target terminal devices connected to the communication interface and their number, sends the predetermined AT commands to all the currently connected target terminal devices according to the parsed AT command set, and receives and records the execution results and response time returned by each target terminal device; The result comparison and display module obtains the execution result and response time returned by the AT instruction set recorded by the tooling board and executed by the corresponding target terminal device, compares it with the expected result and execution time, determines whether there is a difference between the two, and displays the execution result and comparison result to generate a report.

[0019] Compared with the prior art, the present invention has the following beneficial effects: The present invention changes the existing test process of manually arranging test cases, manually executing test sets, and then comparing them one by one. Through the cooperation between the PC end and the tooling board, the AT commands are automatically parsed into AT command test sets, the number of target terminal devices is automatically identified, the AT commands corresponding to all target terminal devices are automatically tested, and the results are automatically compared. Multi-concurrent testing is achieved, and AT command compatibility testing can be performed on multiple target terminal devices at the same time. The test efficiency is improved, the test is repeatable, a large amount of test time is saved, and costs are sustainably reduced.

[0020] The present invention can connect to multiple target terminal devices simultaneously through an expandable communication interface to achieve multi-concurrent testing. AT commands can be sent and received very quickly without any lag, and can achieve μs-level collection and comparison of command response time, making the test results more accurate.

[0021] The present invention reads and sets AT commands and accurately collects command response time through the control module of the tooling board, and can quickly and accurately complete the comparative test of AT commands in an automated manner, greatly reducing the workload of manual operation and improving test efficiency and accuracy.

[0022] The present invention has a wide range of applications. It can not only obtain the comparison results of the AT command compatibility and preset values ​​of the target terminal device, but also obtain the performance test between multiple target terminal devices tested simultaneously. It can be applied to iterative upgrade testing and competitive product analysis of various communication devices that support AT commands, and has application prospects.

[0023] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0025] Figure 1 This is a structural connection diagram of an automated test system compatible with multiple AT commands according to an embodiment; Figure 2This is a flow chart of an AT command import process according to an embodiment; Figure 3 This is a flow chart of AT command parsing according to an embodiment; Figure 4 This is a schematic diagram of a flow chart of AT command execution according to an embodiment; Figure 5 is a flowchart of a report generation module according to an embodiment; Figure 6 This is a schematic diagram of the communication interface structure of an embodiment. DETAILED DESCRIPTION

[0026] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0027] It should be noted that the following detailed descriptions are illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the present invention belongs.

[0028] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, they indicate the presence of features, steps, operations, devices, components and / or combinations thereof.

[0029] In the absence of conflict, the embodiments and features in the embodiments of this application can be combined with each other.

[0030] Example 1 An automated test system compatible with multiple AT commands, such as Figure 1 As shown, it includes a tooling board and a PC end, where: The PC terminal includes a command import module, a command parsing module, and a result comparison and display module. The command import module is used to import the predetermined AT command name, format, parameters, range, and expected results; The command parsing module is used to extract key information of the imported AT command and automatically parse and form an AT command set for query and setting according to the command format; The result comparison and display module is used to obtain the execution result and response time returned by the AT instruction set executed and parsed by the target terminal device, recorded by the tooling board, compare it with the expected result and execution time, determine whether there is a difference between the two, and display the execution result and comparison result; The tooling board includes a communication circuit, a communication interface and a control module. The communication circuit is used to communicate with the PC end, realize information interaction with the PC end, receive the AT command set of the PC end and send back the output results, response time and other records of the tested device.

[0031] The communication interface includes a plurality of interfaces, each of which is connected to a target terminal device; The control module is used to identify the target terminal devices connected to the communication interface and their number, send predetermined AT commands to all currently connected target terminal devices according to the parsed AT command set, and receive and record the execution results and response time returned by each target terminal device.

[0032] The solution provided in this embodiment, through the cooperation between the PC and the tooling board, automatically parses AT commands into AT command test sets, automatically identifies the number of target terminal devices (i.e., test devices), automatically executes tests on the AT commands corresponding to all target terminal devices, and automatically compares the results, thereby achieving multi-concurrent testing. It can simultaneously perform AT command compatibility tests on multiple target terminal devices (i.e., test devices), thereby improving test efficiency.

[0033] In this embodiment, the functions of each module on the PC side can be implemented through software or programs.

[0034] In this embodiment, the instruction import module is as follows: Figure 2 As shown, it is configured to import the predetermined AT command name, format, parameters, range and expected result, judge the format of the imported document, and if the document format meets the preset format, apply regular expressions to extract the AT command. The extracted content includes the configurable value, range and format, and is combined into a json file; If the document format is incorrect, an error message will be returned and the tester will be required to re-import the correct document; If no AT command is extracted, an error will be recorded and a prompt will be given that there is no valid command.

[0035] In this embodiment, the format of the json file includes the AT command itself, the meaning of the AT command, the parameter range supported by the AT command, the AT command format, the AT command parameter type, and other contents.

[0036] like Figure 3 As shown, the instruction parsing module is configured to read a predetermined format file, determine whether it contains parameters, and if so, extract the parameter range and type, save it according to the predetermined format file with parameters, and parse it to generate a list of all instructions to be executed and a response format; If not, the command is marked as parameterless, saved in a parameterless predetermined format file, and parsed to generate a list of all commands to be executed and a response format.

[0037] After all the instructions are parsed, an AT instruction set is generated that can be imported into the tooling board and executed.

[0038] The executable AT command set includes the AT command itself, the meaning of the AT command, various specific parameters of the parsed AT command, various formats of the parsed AT command, and various parameter types of the parsed AT command.

[0039] The communication interface is an expandable interface. In this embodiment, Figure 6 As shown, it includes a multi-protocol transceiver, which is connected to an RS232 / RS485 / RS422 interface and a TTL interface, and can support four serial communication modes: 232, 485, 422, and TTL.

[0040] The control module, which may also be an MCU control circuit, is used to identify the target terminal devices connected to the communication interface and their number, traverse the parsed AT instruction set, determine the number of target terminal devices connected at this time, and send all AT instructions in the AT instruction set to the target terminal devices for execution through the corresponding communication interface, and receive and record the execution results and response time returned by all target terminal devices.

[0041] In this embodiment, the method for the tooling board to automatically identify the target terminal devices and their number connected to the communication interface can be adopted by including a corresponding instruction in the AT instruction set executed by the tooling board to enter / detect whether the tested device has entered the AT instruction state. After executing the instruction several times (such as 3 times) in a row, if the communication interface has no response, it is determined that there is no tested device on the communication interface; when the communication interface has a response, the tooling board automatically records and counts it.

[0042] In this embodiment, the control module or tooling board further includes a storage module / storage circuit for storing the parsed data and the test data returned by each target terminal device.

[0043] In this embodiment, if Figure 4 As shown in the figure, taking two test devices (i.e., target terminal devices) as an example, the tester connects the two test devices to the expandable interface, and the PC automatically recognizes the two test devices; after the PC sends the parsed instruction set to the tooling board, the tooling board automatically traverses the content in the AT instruction set and records the output results and response time of test devices A and B in real time in the storage circuit; after the AT instruction set traversal is completed, the tooling board automatically sends the stored information back to the PC, and the result comparison and display module compares the execution results and response time of test devices A and B and generates a comparison result.

[0044] In this embodiment, the result comparison and display module is configured to compare the execution result and response time returned by each target terminal device with the expected result and execution time, obtain a comparison result, and display it to determine the AT command compatibility test result of each target terminal device; The execution results and response times returned by the various target terminal devices may also be compared to obtain and display the comparison results, thereby determining the AT command compatibility differences between the various target terminal devices.

[0045] In some other embodiments, the tooling plate may further include: A power supply circuit, used for providing the DC voltage required by the tooling board; The storage circuit is used to store the AT command set sent by the PC to the tooling board, and the output results and response time of the tested device sent by the tooling board to the PC; The indicator light circuit is used to indicate power, AT command comparison status, and normal system operation. The corresponding indicator light will not light up when an abnormal state occurs.

[0046] In some embodiments, the PC terminal further includes a report generation module, such as Figure 5 As shown, it is used to generate a test report and a problem report based on the comparison results of the result comparison and display module.

[0047] Example 2 A testing method for an automated testing system provided in an embodiment includes the following steps: The command import module imports the predetermined AT command name, format, parameters, range and expected results; The instruction parsing module extracts the key information of the imported AT instructions and automatically parses and forms the query and setting AT instruction set according to the instruction format, and sends it to the tooling board; The control module of the tooling board identifies the target terminal devices connected to the communication interface and their number, sends the predetermined AT commands to all the currently connected target terminal devices according to the parsed AT command set, and receives and records the execution results and response time returned by each target terminal device; The result comparison and display module obtains the execution result and response time returned by the AT instruction set recorded by the tooling board and executed by the corresponding target terminal device, compares it with the expected result and execution time, determines whether there is a difference between the two, and displays the execution result and comparison result to generate a report.

[0048] The execution process of each module / component can refer to the process provided in Example 1 and will not be described in detail here.

[0049] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of one or more computer-usable storage media (including but not limited to disk storage, CD - ROM , optical storage, etc.).

[0050] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0051] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0052] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0053] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made by those skilled in the art that fall within the spirit and principles of the present invention and do not require creative effort are intended to be within the scope of protection of the present invention.

Claims

1. An automated testing system compatible with multiple AT commands, characterized in that: Including tooling board and PC end, including: The PC terminal includes a command import module, a command parsing module, and a result comparison and display module. The command import module is used to import the predetermined AT command name, format, parameters, range, and expected results; The command parsing module is used to extract key information of the imported AT command and automatically parse and form an AT command set for query and setting according to the command format; The result comparison and display module is used to obtain the execution result and response time returned by the AT instruction set executed and parsed by the target terminal device, recorded by the tooling board, compare it with the expected result and execution time, determine whether there is a difference between the two, and display the execution result and comparison result; The tooling board includes a communication circuit, a communication interface and a control module. The communication circuit is used to communicate with the PC to receive the AT instruction set parsed by the instruction parsing module; The communication interface includes a plurality of interfaces, each of which is connected to a target terminal device; The control module is used to identify the target terminal devices connected to the communication interface and their number, send predetermined AT commands to all currently connected target terminal devices according to the parsed AT command set, and receive and record the execution results and response time returned by each target terminal device.

2. The automated test system compatible with multiple AT commands as claimed in claim 1, characterized in that: The command import module is configured to import a predetermined AT command name, format, parameters, range, and expected result, determine the format of the imported document, and if the document format conforms to the preset format, extract the AT command using a regular expression, and combine the extracted content, including the configurable value, range, and format, into a file in the predetermined format; If the document format is incorrect, an error message will be returned; If no AT command is extracted, an error will be recorded and a prompt will be given that there is no valid command.

3. The automated test system compatible with multiple AT commands as claimed in claim 1, characterized in that: The instruction parsing module is configured to read a predetermined format file, determine whether it contains parameters, and if so, extract the parameter range and type, save it according to the predetermined format file with parameters, and parse it to generate a list of all instructions to be executed and a response format; If not, the command is marked as parameterless, saved in a parameterless predetermined format file, and parsed to generate a list of all commands to be executed and a response format.

4. The automated test system compatible with multiple AT commands as claimed in claim 1, characterized in that: The communication interface is an expandable interface.

5. The automated test system compatible with multiple AT commands as claimed in claim 1, characterized in that: The control module is configured to identify the target terminal devices connected to the communication interface and their number, traverse the parsed AT instruction set, determine the number of target terminal devices connected at this time, and send all AT instructions in the AT instruction set to the target terminal devices for execution through the corresponding communication interface, and receive and record the execution results and response time returned by all target terminal devices.

6. The automated test system compatible with multiple AT commands as claimed in claim 1, characterized in that: The result comparison and display module is configured to compare the execution result and response time returned by each target terminal device with the expected result and execution time, obtain a comparison result, and display it to determine the AT command compatibility test result of each target terminal device; The execution results and response times returned by each target terminal device are compared to obtain a comparison result, which is then displayed to determine the compatibility differences of AT commands between the target terminal devices.

7. The automated test system compatible with multiple AT commands as claimed in claim 1, characterized in that: The tooling board also includes a power supply circuit, which provides a DC voltage to other modules / circuits of the tooling board; Alternatively, the tooling board further includes an indicator light circuit, which is connected to the control module and is used to indicate whether there are any abnormalities in the power supply of the tooling board, the AT command comparison status, and the working status of the control module.

8. The automated test system compatible with multiple AT commands as claimed in claim 1, characterized in that: The tooling board also includes a storage circuit or a storage module for storing the parsed AT instruction set sent by the PC, as well as the execution results and response time returned by each target terminal device.

9. The automated test system compatible with multiple AT commands as claimed in claim 1, characterized in that: The PC terminal also includes a report generation module for generating a test report and a problem report based on the comparison results of the result comparison and display module.

10. A testing method for an automated testing system according to any one of claims 1 to 9, characterized in that: The following steps are involved: The command import module imports the predetermined AT command name, format, parameters, range and expected results; The instruction parsing module extracts the key information of the imported AT instructions and automatically parses and forms the query and setting AT instruction set according to the instruction format, and sends it to the tooling board; The control module of the tooling board identifies the target terminal devices connected to the communication interface and their number, sends the predetermined AT commands to all the currently connected target terminal devices according to the parsed AT command set, and receives and records the execution results and response time returned by each target terminal device; The result comparison and display module obtains the execution result and response time returned by the AT instruction set recorded by the tooling board and executed by the corresponding target terminal device, compares it with the expected result and execution time, determines whether there is a difference between the two, and displays the execution result and comparison result to generate a report.

Citation Information

Patent Citations

  • Mobile terminal testing method and device based on AT instruction and storage medium

    CN114218104A

  • Compatibility testing method, terminal equipment and computer readable storage medium

    CN116302928A

  • Automatic test method of network security equipment and related device

    CN118764422A