Performance testing method and performance testing system for dual-mode communication module

By using test script files and ordered instruction sets to describe the performance test cases of the dual-mode communication module, the problem of frequent modification of the source code of software tools in the prior art is solved, and the effect of simplifying the development model and reducing R&D costs is achieved.

CN115833964BActive Publication Date: 2025-02-18BEIJING SMARTCHIP SEMICON TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211425400.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-14
Publication Date
2025-02-18
Estimated Expiration
2042-11-14

AI Technical Summary

Technical Problem

The performance testing of existing dual-mode communication modules requires frequent modification of the software tool source code, which increases the R&D cycle and cost, and is difficult to support the expansion of personalized testing requirements and test cases.

Method used

By using a test script file to describe the ordered set of instructions for performance test cases, parsing and executing these instructions sets to achieve performance testing of the dual-mode communication module.

Benefits of technology

It simplifies the development model, shortens the development and maintenance cycle of test system, reduces R&D and update maintenance costs, and supports personalized test customization and flexible expansion of test cases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115833964B_ABST
    Figure CN115833964B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a performance testing method and a performance testing system for a dual-mode communication module, which belongs to the field of wireless communication technology. The performance testing method for the dual-mode communication module includes: obtaining a test script file, the test script file includes an ordered instruction set for describing a performance test case of the dual-mode communication module, wherein each instruction in the ordered instruction set corresponds to an indivisible operation function when the dual-mode communication module performs a performance test; parsing the test script file to obtain the ordered instruction set; and performing a performance test on the dual-mode communication module according to the ordered instruction set. The test case uses a test script file to describe its test process and test content, realizing the transition from writing code to text description to complete performance testing, greatly simplifying the development model, shortening the test system development and maintenance cycle, and reducing R&D and update maintenance costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to a performance testing method and a performance testing system for a dual-mode communication module. Background Art

[0002] The dual-mode communication module combines HRF wireless technology with power technology and is widely used in the field of wireless meter reading. For example, it can be applied to a concentrator that complies with the State Grid standard Q / GDW 1376.2-2013 or a DL / T 645-2007 smart meter, where the dual-mode communication module master node is plugged into the concentrator and the dual-mode communication module slave node is plugged into the smart meter. After the master and slave nodes complete the wireless networking in accordance with the agreed communication protocol, the concentrator is responsible for organizing wireless communication with each smart meter to achieve remote wireless meter reading and network maintenance.

[0003] Each dual-mode communication module needs to be tested for performance before leaving the factory to ensure that the module meets various performance indicators and supply requirements. At present, the performance test cases for dual-mode communication module HRF recognized by the industry include: operating frequency band and power spectrum density, maximum input level, maximum transmit power, spurious radiation limit, frequency deviation tolerance, adjacent channel interference, receiving sensitivity, transmit spectrum template and multipath channel performance. For the above performance tests, each dual-mode communication module manufacturer will also have other test indicators of concern, and there is an objective demand for the expansion of personalized test cases.

[0004] The existing dual-mode communication module HRF performance test mainly divides all test cases into functional modules according to their test process, then defines the data interaction interface between each functional module, then writes the code of each functional module, and finally debugs all the codes and compiles them to generate the corresponding test software. Obviously, the test logic of these test cases is solidified in the software code implementation. The shortcomings of the existing technology are as follows:

[0005] 1) When any one or more aspects of the test parameters, hardware or business logic of the test case change, the R&D personnel will inevitably need to modify the software tool source code, re-debug, compile, and generate new software to meet the new requirements, which will increase the R&D cycle and cost. The modification may also bring instability to the original software.

[0006] 2) If there is an expansion requirement for adding new test cases, R&D personnel need to add test case classes to the original code framework structure and implement all its test logic function module codes, re-debug, compile, and generate new software to meet the new requirements. This will also increase the R&D cycle and cost, and the modification may also bring instability to the original software;

[0007] 3) The existing technical solutions can only perform standardized tests, that is, they only provide the test process and test conclusions set by the test program. If the test fails, the details and reasons for the failure cannot be provided. There is a lack of personalized customization requirements for testing. To improve this situation, secondary development is still needed, and the above-mentioned problems 1) and 2) are also faced. Summary of the invention

[0008] The purpose of the embodiment of the present invention is to provide a performance test method for a dual-mode communication module, which can solve the above-mentioned shortcomings of the existing HRF performance test of the dual-mode communication module.

[0009] In order to achieve the above-mentioned purpose, an embodiment of the present invention provides a performance testing method for a dual-mode communication module, and the performance testing method for a dual-mode communication module comprises: obtaining a test script file, the test script file comprising an ordered instruction set for describing a performance test case of the dual-mode communication module, wherein each instruction in the ordered instruction set corresponds to an indivisible operation function when the dual-mode communication module performs a performance test; parsing the test script file to obtain the ordered instruction set; and executing the ordered instruction set to perform a performance test on the dual-mode communication module.

[0010] Optionally, the data structure of the test script file includes: one or more performance test cases; one or more test execution steps corresponding to each of the one or more performance test cases; one or more instructions corresponding to each of the one or more test execution steps; and an instruction parameter group corresponding to each of the one or more instructions.

[0011] Optionally, before obtaining the test script file, the performance testing method of the dual-mode communication module also includes generating the test script file, wherein each instruction in the ordered instruction set and the corresponding instruction parameter group are defined through an instruction set definition layer, the presentation method of each instruction defined by the instruction set definition layer and the presentation method of each parameter in the corresponding instruction parameter group are described through an instruction description layer, the one or more test execution steps corresponding to each performance test case are defined through a test function description layer, and the instructions corresponding to each execution step are described through the instruction description layer.

[0012] Optionally, each execution step includes: test parameter initialization, hardware initialization, test business logic and test result output.

[0013] Optionally, executing the ordered instruction set to perform performance testing on the dual-mode communication module includes: sequentially acquiring each instruction in the ordered instruction set and the corresponding instruction parameter group; for each instruction, acquiring the corresponding instruction execution function; and executing the corresponding instruction execution function in the order of instruction acquisition through each instruction and the corresponding instruction parameter group.

[0014] Optionally, executing the corresponding instruction execution function in the instruction acquisition order includes: the execution result of the instruction execution function of the previous instruction participates in the execution decision of the next instruction.

[0015] Optionally, the performance testing method of the dual-mode communication module also includes: obtaining a corresponding instruction execution function according to a display class instruction in the ordered instruction set; executing the instruction execution function through an instruction parameter group corresponding to the display class instruction, and outputting display data to a specified location.

[0016] An embodiment of the present invention also provides a control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a performance testing method for a dual-mode communication module according to any one of the above items.

[0017] An embodiment of the present invention further provides a machine-readable storage medium, on which instructions are stored, and the instructions enable a machine to execute the performance testing method of the dual-mode communication module according to any one of the above items.

[0018] An embodiment of the present invention also provides a performance testing system for a dual-mode communication module, the performance testing system for the dual-mode communication module comprising: a test shielding box, used to shield wireless signals outside the box and suppress reflected waves from the inner wall of the box; the above-mentioned control device; and a test instrument group, used to read or write test data required for the dual-mode communication module according to the control of the control device.

[0019] Optionally, the test shielding box includes: a test tool for connecting the dual-mode communication module to be tested; a main control unit for configuring the test parameters of the dual-mode communication module and for transparently transmitting the uplink test data of the dual-mode communication module to the control device; a coupling plate and an antenna for sending and receiving signals between the dual-mode communication module and the test instrument group.

[0020] Optionally, a first data buffer is provided between the main control unit and the control device.

[0021] Optionally, the test instrument group includes: a programmable attenuator, used to set the signal attenuation value on the communication link between the dual-mode communication module and the test instrument group; a listening station, configured with a listening station interface, used to listen to test data on the communication link between the dual-mode communication module and the test instrument group; a signal source, configured with a signal source interface, used to output test data required for the receiving performance of the dual-mode communication module or output test parameters for setting the signal source; a spectrum analyzer, configured with a spectrum analyzer interface, used to input test data required for the transmission performance of the dual-mode communication module or output test parameters for setting the spectrum analyzer.

[0022] Optionally, the test instrument group also includes a power divider and a combiner, and the listening station, the signal source, and the spectrum analyzer are connected to the programmable attenuator via the power divider and the combiner, and the power divider and the combiner are used to split or combine the radio frequency signals corresponding to the test data.

[0023] Optionally, a second data buffer is provided between the listening station and the control device.

[0024] Optionally, the performance test system of the dual-mode communication module further includes a switch, and the test shielding box and the test instrument group communicate with the control device through the switch, and the switch is also used to expand the LAN port.

[0025] Optionally, the control device includes: an instruction analysis module, used to parse the test script file to obtain each instruction in the ordered instruction set and its instruction parameter group; an instruction execution module, used to perform performance testing on the dual-mode communication module according to the current instruction and its instruction parameter group orderly input by the instruction analysis module; and an output test result module, used to output display data showing the test results to a specified location.

[0026] Optionally, the instruction execution module includes an instruction processing unit, an instruction execution function unit and a peripheral communication interface unit.

[0027] Through the above technical scheme, the embodiment of the present invention uses a test script file to describe the test process and test content of the dual-mode communication module for the performance test of the dual-mode communication module, which realizes the transformation from writing code to text description to complete the performance test, greatly simplifies the development mode, shortens the test system development and maintenance cycle, and reduces the research and development and update maintenance costs. The embodiment of the present invention also provides a custom instruction set, in which each instruction in the instruction set only realizes an independent and single operation function, and is an instruction that cannot be divided again; the test process of each test case can be decomposed into a combination of several ordered instructions; in various application scenarios such as changes in test cases or the need for new test cases, it is only necessary to change and add the instruction combination to which the corresponding test case belongs in the test script file, without changing the test system tool source code, to realize the change and addition of the test case. This design flexibility makes the embodiment of the present invention have strong scalability. Further, the performance test of the unit under test DUT (dual-mode communication module) is realized by using a test script file and an instruction analysis and processing structure; the test script file makes the performance test of the dual-mode communication module configurable; the instruction analysis and processing structure makes the performance test of the dual-mode communication module independent of the test case and the test process.

[0028] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0030] Figure 1 It is a flow chart of the performance test of the existing dual-mode communication module HRF;

[0031] Figure 2 is a flow chart of a performance testing method for a dual-mode communication module provided by an embodiment of the present invention;

[0032] Figure 3 This is a flow chart of the sample test script file generation process;

[0033] Figure 4 is a schematic diagram of the structure of a performance test system for a dual-mode communication module provided by an embodiment of the present invention;

[0034] Figure 5 is a schematic diagram of the structural framework of an example performance test system;

[0035] Figure 6 is through Figure 5 A schematic diagram of a flow chart of an example performance testing system implementing a performance test on a dual-mode communication module;

[0036] Figure 7 is a schematic diagram of the structure of an example control device;

[0037] Figure 8 is through Figure 7 A schematic diagram of a flow chart of an exemplary control device implementing a performance test on a dual-mode communication module.

[0038] Description of Reference Numerals

[0039] 10-test shielding box; 20-test instrument set; 30-control device. DETAILED DESCRIPTION

[0040] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0041] Before describing the embodiments of the present invention in detail, the prior art and its defects are briefly introduced.

[0042] The performance test of the existing dual-mode communication module HRF mainly divides all test cases into functional modules according to their test process, then defines the data interaction interface between each functional module, writes the code of each functional module, and finally debugs all the codes and compiles them to generate the corresponding test software. Obviously, the test logic of these test cases is solidified in the software code implementation.

[0043] like Figure 1 As shown, the existing test method takes each test case as a basic processing unit, and then establishes a test case class for each basic processing unit. The test case class implements its test process logic function, and the test logic function may include: test parameter initialization module, hardware initialization module, test case business logic implementation module and test result output module. Among them, the test parameter initialization module is responsible for setting the initial values ​​of the parameters involved in this test case; the hardware initialization module is responsible for setting the initial values ​​of the hardware used in this test case; the business logic implementation module is responsible for implementing the test process steps of this test case test, organizing the hardware used in each step of reading and writing, etc., and the test result output module is responsible for outputting the final test results of this test case.

[0044] If a test case i in the above test needs to be modified, for example, if any one or more aspects of the test parameters, hardware or business logic of the test case i change, it is necessary to modify the class corresponding to the test case i in the software code, and compile and generate a new version of the test software after the modification is completed; for another example, when there is an expansion requirement for a new test case n+1, it is necessary to create a class corresponding to the test case n+1 in the original code framework structure, implement all its test logic function module codes, jointly debug all codes and compile and generate a new version of the test software. The above test processes all require modification of the source code, which will increase the R&D cycle and cost. Modifying the source code may also bring instability to the normal operation of the original test software. The existing technical solutions can only perform standardized testing, that is, only provide test cases and test conclusions set by the test program. For test failures, the details and reasons for failure cannot be provided, and the personalized customization requirements of the test cannot be met.

[0045] Figure 2 is a flow chart of a performance test method for a dual-mode communication module provided by an embodiment of the present invention. Figure 2 , the performance testing method of the dual-mode communication module may include the following steps:

[0046] Step S110: Obtain a test script file.

[0047] The test script file includes an ordered instruction set for describing a performance test case of the dual-mode communication module, wherein each instruction in the ordered instruction set corresponds to an indivisible operation function when the dual-mode communication module executes a performance test.

[0048] The embodiment of the present invention is based on a test script file, which is a text file with a certain data format. The script file uses a custom ordered instruction set to describe the test process of each test case. The description is completed in the script file and does not need to be solidified in the software code. The embodiment of the present invention makes the performance test of the dual-mode communication module have the feature of configurability.

[0049] Among them, each instruction in the customized ordered instruction set can be used to describe a specific functional operation when the dual-mode communication module test is implemented, such as read or write operation, judgment greater than operation, judgment less than operation, judgment equal operation, conditional jump operation, display operation, etc.; the instruction execution function corresponding to each instruction is used to implement the function of each instruction; the test script file describes the test process of the test case by configuring the appropriate ordered instruction set. Therefore, the modification of the test script file is the change of the ordered instruction set, the change of the ordered instruction set is the change of the instruction execution (function), the change of the instruction execution (function) is the change of the test process, and finally the test content of the test case is changed, which makes the performance test of the dual-mode communication module have the characteristics of configurability.

[0050] The embodiment of the present invention also provides an example of detailed instruction extraction of the instruction set. According to the characteristic analysis of the performance test case of the dual-mode communication module HRF, the specific test process can be refined, segmented, and abstracted, and finally the instructions can be designed and defined to form an instruction set. Different subsets (one or more instruction combinations) in the instruction set are used to describe the test process of each test case. The instruction set is shown in Table 1:

[0051] Table 1 Instruction set

[0052]

[0053]

[0054]

[0055] Each instruction in Table 1 includes an instruction symbol and an instruction parameter group. The size of each instruction parameter group and the meaning of the parameters are shown in Table 1. It should be noted that the number of parameters corresponding to the instructions in Table 1 is for illustration only, and the number of parameters can be set according to the corresponding instructions. Each instruction can represent an operation, a function, and cannot be divided; different combinations of instructions (ordered subsets of the instruction set in Table 1) can achieve different functions.

[0056] For each instruction in Table 1, there is a corresponding instruction execution function (hereinafter referred to as the instruction execution function). The function can obtain the instruction parameter group from the corresponding instruction to implement the operation function corresponding to the instruction, that is, the function is the interpretation and execution of the instruction operation function. These functions can be implemented by the test software and solidified in the code. When the performance test needs to execute a certain instruction, the test software can automatically call the instruction execution function corresponding to the instruction. The example instruction interpretation and execution function corresponding to the example instruction in Table 1 can be shown in Table 2:

[0057] Table 2 Instruction execution function

[0058]

[0059]

[0060] The description of the operation function and instruction parameter group of the example instruction execution function in Table 2 is shown in Table 3:

[0061] Table 3 Function operation and instruction parameter group

[0062]

[0063]

[0064]

[0065]

[0066] Preferably, before step S110, the performance testing method of the dual-mode communication module further includes generating the test script file.

[0067] Among them, each instruction in the ordered instruction set and the corresponding instruction parameter group are defined through the instruction set definition layer, the presentation method of each instruction defined by the instruction set definition layer and the presentation method of each parameter in the corresponding instruction parameter group are described through the instruction description layer, the one or more test execution steps corresponding to each performance test case are defined through the test function description layer, and the instructions corresponding to each execution step are described through the instruction description layer.

[0068] To illustrate with an example, the way the add instruction is presented in the description layer is "addition operation-add-addend-addend-sum", where "add", "addend", "addend" and "sum" are all data of the add instruction. When this instruction is described in a script file, the relationship should be described simply and clearly. The instruction description layer can take the form of key-value pairs as a way to describe and present these original data. For example, (instruction symbol = "add") is used to describe "add", and a (number of parameters = "3") is added to describe the total number of parameters of this instruction, and (parameter 1 = "operand 1") is used to describe the "addend", and (parameter 2 = "operand 2") is used to describe the "addend", and (parameter 3 = "result") is used to describe the "sum".

[0069] Preferably, each of the execution steps in the embodiment of the present invention may include: test parameter initialization, hardware initialization, test business logic and test result output.

[0070] By way of example, the test script file of the embodiment of the present invention is a text file with a certain data format, which can be generated by three parts: an instruction set definition layer, an instruction description layer, and a test function description layer. Figure 3 As shown, the instruction set definition layer can define various instructions used to describe all test cases, such as instruction symbols and instruction parameter groups, as shown in Table 1. The instruction description layer defines the format for describing the attributes of each instruction, which includes the instruction symbol, the number of parameters carried by the instruction, and the instruction parameter group; it can be described in the form of a key-value pair, for example, the addition instruction add can be described as: instruction symbol = "add", number of parameters = "3", parameter 1 = "operand 1", parameter 2 = "operand 2", parameter 3 = "result", meaning: the function of the add instruction is to add operands 1 and 2, and store the result of executing add in parameter 3, where the instruction symbol represents the add instruction, parameters 1 to 3 represent the parameters in the add instruction parameter group, and the number of parameters represents the number of parameters in the add instruction parameter group. The test function description layer defines the test steps of each test case, which can include test parameter initialization, hardware initialization, test business logic, and test result output. Each part of the content can be described by using the instruction description layer to describe several instruction subsets.

[0071] The data structure of the test script file preferably in an embodiment of the present invention may include: one or more performance test cases; one or more test execution steps corresponding to each of the one or more performance test cases; one or more instructions corresponding to each of the one or more test execution steps; and an instruction parameter group corresponding to each of the one or more instructions.

[0072] The instruction parameter group includes one or more parameters, and the instruction parameter group may also be empty, that is, the corresponding instruction has no parameters, such as: no operation nop.

[0073] The test script file of the embodiment of the present invention uses a customized ordered instruction set and a specific data structure to describe the test process of each performance test case. The data structure describes the test content and test process of the performance test case with a four-layer data structure of performance test case, test execution step, instruction, and instruction parameter group. For example, the test script file includes several performance test cases; each performance test case is divided into several test execution steps; each test execution step is composed of several instructions; and the instruction parameter group of each instruction carries several parameters. Among them, the test execution step is defined in the above-mentioned test function description layer, the instruction's own attributes are described in the instruction description layer, and the instruction and its parameter group are defined in the instruction set definition layer.

[0074] The data structure of the example ordered instruction set is shown in Table 4:

[0075] Table 4 Data structure of the example test script file

[0076]

[0077]

[0078] As shown in the example of Table 4, the test script file (parsed ordered instruction set) describes that the performance test of the dual-mode communication module includes: N performance test cases; the i-th performance test case (for example, sensitivity) has N1 test execution steps; the first test execution step has N2 instructions to be executed; the instruction parameter group length of the i-th instruction is N3; the contents of N3 instruction parameters.

[0079] The test script file corresponding to the example in Table 4 can be as follows:

[0080] Total number of performance test cases TI N =1, performance test case name TI N1 = Receiver sensitivity, number of test execution steps TI for performance test cases SN1 =4, module type under test TI DUTType =1, test result standard index value TI StandardValue =-106dBm;

[0081] The first test execution step (parameter initialization) includes, for example, 23 ordered instructions: TI OPN =23,TI ODName1 =writePara,TI ODName2 =writePara,TI ODName3 =writePara, ...;

[0082] TI ODName1 Parameter group corresponding to the instruction: TI ODS1 [0] = 1001, TI ODS1 [1] = IP, TI ODS1 [2] = 192.168.1.2, TI ODS1 [3] = Port, TI ODS1 [4] = 8088, TI ODS1 [5] = Main control unit,

[0083] TI ODName2 Parameter group corresponding to the instruction: TI ODS2 [0] = 2001, TI ODS2 [1] = IP, TI ODS2 [2] = 192.168.1.112, TI ODS2[3] = Port, TI ODS2 [4] = 4196, TI ODS2 [5] = Programmable attenuator,

[0084] TI ODName3 Parameter group corresponding to the instruction: TI ODS3 [0] = 4001, TI ODS3 [1] = Address, TI ODS3 [2]=TCPIP0::192.168.1.254::inst1::INSTR,TI ODS3 [3] = spectrum analyzer, ….

[0085] The second test execution step (hardware initialization) includes, for example, three sequential instructions: TI OPN =3,TI ODName1 =writeDevice,…,TI ODName3 =writeDevice;

[0086] TI ODName1 Parameter group corresponding to the instruction: TI ODS1 [0] = MainConUnit, TI ODS1 [1] = 1001, TI ODS1 [2] = 80, TI ODS1 [3] = 7321332133, TI ODS1 [4] = TCP, TI ODS1 [5] = result,

[0087] TI ODName3 Parameter group corresponding to the instruction: TI ODS3 [0] = MainConUnit, TI ODS3 [1] = 1001, TI ODS3 [2] = 92, TI ODS3 [3] = AAAAAAAAAAAA, TI ODS3 [4] = TCP, TI ODS3 [5] = result.

[0088] The third test execution step (test service) includes, for example, 88 sequential instructions: TI OPN =88,TI ODName1 =open,…,TI ODName7 =delay,TI ODName8 =little,TI ODName9 =loopC,…,TI ODName86 =sub;TI ODName87 =jmp,TI ODName88=add;

[0089] TI ODName1 Parameter group corresponding to the instruction: TI ODS1 [0] = 4001, TI ODS1 [1] = TCP, TI ODS1 [2] = Address, TI ODS1 [3] = SpectrumAnalyzer, TI ODS1 [4] = result, …,

[0090] TI ODName7 Parameter group corresponding to the instruction: TI ODS7 [0] = 5000, TI ODS7 [1] = ms,

[0091] TI ODName8 Parameter group corresponding to the instruction: TI ODS8 [0] = powerValue, TI ODS8 [1]=TestSensitivityLimitValue,TI ODS8 [2] = TestPowerFlag,

[0092] TI ODName9 Parameter group corresponding to the instruction: TI ODS9 [0] = -1, TI ODS9 [1] = TestPowerFlag, TI ODS9 [2] = 1, TI ODS9 [3] = 79, TI ODS9 [4] = 80, …,

[0093] TI ODName86 Parameter group corresponding to the instruction: TI ODS86 [0] = powerValue, TI ODS86 [1] = TestPowerOffset, TI ODS86 [2] = powerValue,

[0094] TI ODName87 Parameter group corresponding to the instruction: TI ODS87 [0] = StaticFlag, TI ODS87 [1] = 2, TI ODS87 [2] = 0,

[0095] TI ODName88 Parameter group corresponding to the instruction: TI ODS88 [0] = powerValue, TI ODS88 [1] = 1, TI ODS88[2] = powerValue.

[0096] The fourth test execution step (test conclusion) includes, for example, 24 sequential instructions: TI OPN =24,TI ODName1 =writeData,TI ODName2 =mul,…,T IODName24 =display;

[0097] TI ODName1 Parameter group corresponding to the instruction: TI ODS1 [0] = count, TI ODS1 [1]=TestSuccessPackageNum,

[0098] TI ODName2 Parameter group corresponding to the instruction: TI ODS2 [0] = count, TI ODS2 [1] = 100, TI ODS2 [2] = count, ...,

[0099] T IODName24 Parameter group corresponding to the instruction: TI ODS24 [0] = Receiver sensitivity test conclusion: TI ODS24 [1] = TestResult, TI ODS24 [2] = Failed, TI ODS24 [3] = string.

[0100] Step S120: Parse the test script file to obtain the ordered instruction set.

[0101] As shown in the test script file corresponding to the example in Table 4 above, the parsed ordered instruction set includes instructions for all performance test cases for the performance test of the current dual-mode communication module and the instruction parameter group corresponding to each instruction. Among them, the instructions are ordered instructions, showing all test contents and execution order of the dual-mode communication module performance test.

[0102] Step S130: Execute the ordered instruction set to perform a performance test on the dual-mode communication module.

[0103] Step S130 preferably in an embodiment of the present invention may include: sequentially acquiring each instruction in the ordered instruction set and the corresponding instruction parameter group; acquiring the corresponding instruction execution function for each instruction; and executing the corresponding instruction execution function in the order of instruction acquisition through each instruction and the corresponding instruction parameter group.

[0104] The preferred execution of the corresponding instruction execution function in the instruction acquisition sequence in the embodiment of the present invention includes: the execution result of the instruction execution function of the previous instruction participates in the execution decision of the next instruction.

[0105] For example, the ordered instruction set parsed from the test script file corresponding to the example in Table 4 above is as follows: the first instruction (TI) corresponding to the first test execution step (parameter initialization) of the first performance test case (for example, Table 4 has one performance test case) ODName1 = writePara) to start the performance test, and execute in order until the 24th instruction (T IODName24 =display). For example, the first instruction (TI ODName1 = writePara) is the instruction "write parameter" test in Table 1, obtains the corresponding instruction execution function void writePara (string object, string ip, string ipValue, string port, string portValue) in Table 2, and converts the corresponding instruction parameter group (TI ODS1 [0]-TI ODS5 [0]) is passed to the instruction execution function, the function is called and executed, and the function execution result is returned; all instructions are executed in sequence according to the instruction order to complete the performance test of the dual-mode communication module.

[0106] Preferably, the performance testing method of the dual-mode communication module may further include: obtaining a corresponding instruction execution function according to a display class instruction in the ordered instruction set; executing the instruction execution function through an instruction parameter group corresponding to the display class instruction, and outputting display data to a specified location.

[0107] To illustrate by way of example, the test script file may also include display instructions for indicating the display of test results (for example, display format, display location, etc.). For example, after all test instructions in the ordered instruction set (such as the instructions in the above example) are executed, the corresponding instruction execution function is obtained according to the display instructions, and the function is called and executed to output the content of the data to be displayed to the specified location.

[0108] Accordingly, in the embodiment of the present invention, for the performance test of the dual-mode communication module, the test case adopts a test script file to describe its test process and test content, thereby realizing the transition from writing code to text description to complete the performance test, greatly simplifying the development model, shortening the test system development and maintenance cycle, and reducing the R&D and update maintenance costs.

[0109] The embodiment of the present invention also provides a user-defined instruction set, in which each instruction only realizes an independent single operation function and is an indivisible instruction; the test process of each test case can be decomposed into a combination of several ordered instructions; in various application scenarios such as changes in test cases or the need for new test cases, it is only necessary to add or change the instruction combination to which the corresponding test case belongs in the test script file, without changing the source code of the test system tool, to realize the change and addition of the test case, etc. This design flexibility makes the embodiment of the present invention have strong scalability.

[0110] Specifically, if a test case i needs to be modified, for example, any one or more aspects of its test parameters, hardware or business logic implementation change, it is only necessary to change the description of the ordered instruction set in the test function description part corresponding to the test case i in the test script file outside the software code. It will not affect the code corresponding to the performance test and does not need to be recompiled. The test can be run directly. If there is an expansion requirement for a new test case n+1, it is only necessary to add a description of the ordered instruction set corresponding to the test function description part of the test case n+1 in the test script file outside the software code. After the addition is completed, the test can be run directly.

[0111] An embodiment of the present invention also provides a control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the performance testing method of the dual-mode communication module according to steps S110-S130.

[0112] An embodiment of the present invention further provides a machine-readable storage medium, characterized in that the machine-readable storage medium stores instructions, which enable the machine to execute the performance testing method of the dual-mode communication module described in steps S110-S130.

[0113] Figure 4 is a schematic diagram of the structure of the performance test system of the dual-mode communication module provided by the embodiment of the present invention, please refer to Figure 4 The performance test system of the dual-mode communication module may include: a test shielding box 10, used to shield wireless signals outside the box and suppress reflected waves from the inner wall of the box; the above-mentioned control device 30; and a test instrument group 20, used to read or write the test data required by the dual-mode communication module according to the control of the control device.

[0114] Figure 5 This is a schematic diagram of the structural framework of the sample performance test system. Please refer to Figure 5The test shielding box 10 preferably includes: a test tool for connecting the dual-mode communication module to be tested; a main control unit for configuring the test parameters of the dual-mode communication module and for transparently transmitting the uplink test data of the dual-mode communication module to the control device; a coupling plate and an antenna for sending and receiving signals between the dual-mode communication module and the test instrument group.

[0115] Please refer to Figure 5 , by way of example, the test shielding box 10 also includes a module under test DUT (i.e., a dual-mode communication module to be tested); a test tooling, used to connect the dual-mode communication module, and can provide the dual-mode communication module with a strong and weak current interface socket, a UART communication interface, and a power supply required for operation; a main control unit, used to configure the test parameters of the dual-mode communication module, and also used to transparently transmit uplink test data to the control device, that is, after the dual-mode communication module receives the data, it does not perform any processing and directly sends the received data out; a coupling plate and an antenna, used for signal reception and transmission between the dual-mode communication module and the test instrument group, for example, the coupling plate and the antenna can receive a signal transmitted by the dual-mode communication module to the test instrument group or transmit a wireless signal transmitted by the test instrument group to the dual-mode module.

[0116] To illustrate by way of example, in the test shielding box, the module under test DUT can be inserted into the test fixture and connected to the performance test system; the test fixture sends the uplink transparent data of the DUT to the main control unit through its UART communication port; the module under test DUT sends and receives wireless link signals and communicates with the test instruments in the test instrument group through the coupling board and the antenna.

[0117] refer to Figure 5 Preferably, the test instrument group 20 may include: a programmable attenuator, used to set the signal attenuation value on the communication link between the dual-mode communication module and the test instrument group; a listening station, configured with a listening station interface, used to listen to the test data on the communication link between the dual-mode communication module and the test instrument group; a signal source, configured with a signal source interface, used to output the test data required for the receiving performance of the dual-mode communication module or output the test parameters for setting the signal source; a spectrum analyzer, configured with a spectrum analyzer interface, used to input the test data required for the transmission performance of the dual-mode communication module or output the test parameters for setting the spectrum analyzer.

[0118] Further preferably, the test instrument group 20 may also include a power divider and a combiner, and the listening station, the signal source, and the spectrum analyzer are connected to the programmable attenuator via the power divider and the combiner, and the power divider and the combiner are used to split or combine the radio frequency signals corresponding to the test data.

[0119] Continuing with the above example, the signal source is used to test the receiving performance of the module under test DUT; the spectrum analyzer is used to test the transmitting performance of the module under test DUT; the programmable attenuator is used to adjust the signal attenuation on the wireless communication link; the listening station is used to monitor the communication data on the wireless link for data comparison and inspection; the power divider and combiner are used for the separation or combination of wireless RF signals.

[0120] Preferably, the performance test system of the dual-mode communication module may further include a switch, through which the test shielding box and the test instrument group communicate with the control device, and the switch is also used to expand the LAN port.

[0121] Continuing with the above example, the switch and serial port server can be used to expand the LAN port and serial port on the PC industrial computer respectively; the control device is configured on the PC industrial computer, and under the control of the control device, it completes the communication and testing tasks with the above peripheral hardware in an orderly manner.

[0122] Figure 6 is through Figure 5 For a flow chart of the performance test system for implementing the performance test of the dual-mode communication module, please refer to Figure 6 , to illustrate by way of example, the dual-mode communication module DUT to be tested is placed on the test fixture during the test. The control device can obtain the test script file from its memory, parse the test script file, and obtain the ordered instruction set; extract the instruction symbol of each instruction in the ordered instruction, its instruction parameter group, and the parameter data corresponding to the parameter array one by one, and query the instruction execution function corresponding to the current test instruction, after finding the function, pass the instruction parameter group and the parameter data corresponding to the parameter array as the function's entry parameters, and then call and execute the instruction execution function corresponding to the instruction, and output the corresponding test result. The control device can control and call peripherals through the instruction execution function, so the PC industrial computer described in the control device is equipped with a variety of peripheral communication interfaces. For example, it can communicate with a listening station, a spectrum analyzer, a signal source, a main control unit, a programmable attenuator, etc.

[0123] Among them, the listening station interface, its input can be the data output by the control device to control the listening station, and the working parameters of the listening station are configured according to the data so that it can listen to the wireless signals on the radio frequency line in real time.

[0124] Please combine Figure 5 and Figure 6 Preferably, a second data buffer (e.g., data buffer 2) is provided between the listening station and the control device for storing the data intercepted by the listening station. When the current instruction executed is a read instruction to read the listening station data, the instruction execution function corresponding to the instruction will read the data from the data buffer 2.

[0125] The spectrum analyzer interface may input the data for controlling the spectrum analyzer output by the control device, configure the working parameters of the spectrum analyzer according to the data, so that it can display the spectrum data of the signal under the configured parameters; or read the spectrum analyzer measurement data according to the data, and return (output) the measurement data to the control device.

[0126] The signal source interface may be inputted by the control device for outputting data for controlling the signal source, and the working parameters of the signal source may be configured according to the data; or the signal source may be required to output a specified test signal according to the data.

[0127] The main control unit interface may have input for the data output by the control device for controlling the main control unit, and configures the working parameters of the main control unit according to the data so that it can communicate normally with the test fixture.

[0128] Preferably, a first data buffer (eg, data buffer 1) is provided between the main control unit and the control device for storing data uploaded by the test tool.

[0129] The programmable attenuator interface may have input for data output by the control device for controlling the programmable attenuator, and configures the working parameters of the programmable attenuator according to the data so that the attenuation value of the signal on the radio frequency communication link can be changed.

[0130] The test script file of the embodiment of the present invention includes an ordered instruction set, that is, a set of several instructions as shown in Table 1, and the instruction analysis and processing structure in the control device can be regarded as a processing unit of several instruction execution functions corresponding to the set of several instructions; the test script file is outside the control device, and the instruction analysis and processing structure is arranged in the control device; the test script file describes the test case and the test flow in the form of an ordered instruction set, and the instruction analysis and processing structure is an instruction corresponding to a test step under a test case and a corresponding test flow to execute; the test script file can control the entire execution flow of the performance test, and the instruction analysis and processing structure is to passively interpret and execute each instruction. Therefore, in various application scenarios such as the need to change the test case or add a new test case, it is only necessary to change or add the instruction combination to which the corresponding test case belongs in the test script file, without changing the source code of the test system tool, to realize the update and change of the test case. This design flexibility makes the embodiment of the present invention have strong scalability.

[0131] For a better explanation and implementation of each instruction in the ordered instruction set, please refer to Figure 7The control device preferably in the embodiment of the present invention may include: an instruction analysis module, used to parse the test script file to obtain each instruction in the ordered instruction set and its instruction parameter group; an instruction execution module, used to perform performance testing on the dual-mode communication module according to the current instruction and its instruction parameter group sequentially input by the instruction analysis module; and an output test result module, used to output display data showing the test results to a specified location.

[0132] Please refer to Figure 7 , using an example, the script file reading module reads the test script file content into the memory (e.g., data buffer) for use by the instruction analysis module. The instruction analysis module (i.e., instruction analysis processor) obtains all instructions in the ordered instruction set of the test case from the memory, and extracts the instructions in sequence; it can extract only one instruction at a time, and pass the instruction to the instruction execution module (i.e., instruction execution processor) or the output test result module. The instruction execution module processes one instruction at a time, obtains the instruction from the instruction analysis module, then extracts the instruction symbol and instruction parameter group of the instruction, then queries the instruction execution function corresponding to the instruction, passes the parameter data corresponding to the instruction parameter group to the instruction execution function, calls and executes the function, and returns the function execution result to the instruction analysis module. The output test result module can obtain the display class instruction from the instruction analysis module, then extract the instruction parameter group of the instruction, query the instruction execution function corresponding to the instruction, call and execute the function, and output the data content to be displayed to the specified location.

[0133] The embodiment of the present invention also provides a modular design of an instruction analysis module (i.e., an instruction analysis processor). The instruction analysis processor is used to analyze and process data imported from a test script file. The instruction analysis processor can be set according to the data structure of an ordered instruction set in the test script file (e.g., test case, test step, instruction, instruction parameter set), and can take a performance test case as a basic processing unit, and then divide the hierarchical relationship according to the test process steps and define the data of each layer.

[0134] By way of example, in conjunction with the relevant example in Table 4, the data model of the instruction analysis processor may include the total number of performance test cases TI N and characteristic parameters of each test case, the total number of test cases TI N is the number of groups of the test case characteristic parameters that the current instruction analysis processor needs to create; each group of the test case characteristic parameters may include a test case name TI Name , the number of test case steps TI SN , each group of test steps TI SS ; Each group of test steps TI SS Can include step name TI StepName, the total number of instructions TI that make up the step OPN , each instruction TI OP ; Each instruction TI OP The instruction symbol TI may be included OPName Its instruction parameter group TI OPS ; Instruction parameter group TI OPS Each parameter may include the entry parameter carried by the instruction symbol and the result information parameter returned after the instruction is executed; after the instruction analysis processor parses the ordered instruction set in the test script file, the steps, instructions, and instruction parameter sets included in the characteristic parameters of the test case can be input into the instruction execution processor in sequence. If the instruction has a return value, the return value result information is returned to the instruction analysis processor.

[0135] Please refer to the test script file corresponding to the example in Table 4 above. After establishing the above data model, the instruction analysis processor obtains the data of the test script file and creates N groups of test cases and N groups of feature parameter data structures according to the number of performance test cases N in the test script file; then creates N1 groups of step data data structures according to the number of test step groups N1 under each test case in the test script file; then creates N2 instruction data structures according to the total number of instructions N2 under each step in the test script file; and finally creates N3 parameter variables according to the number of parameters N3 in the instruction parameter group under each instruction in the test script file.

[0136] Based on this, the data model of the instruction analysis processor can be established. Obviously, the number of characteristic parameter groups N of the performance test cases of the instruction analysis processor, the number of test step groups N1 contained in each test case, the total number of instructions N2 contained in each test step, and the number of parameters N3 in the instruction parameter group contained in each instruction can be changed according to the data of the test script file, while the data structure of the instruction analysis processor will not change. Only after the instruction analysis processor loads the test script file, can it quickly establish the test data structure of the instruction analysis processor (such as the content of Table 4) according to the data (ordered instruction set) of the test script file.

[0137] The instruction execution module preferably in the embodiment of the present invention may include an instruction processing unit, an instruction execution function unit and a peripheral communication interface unit.

[0138] The embodiment of the present invention also provides a modular design of an instruction execution module (i.e., an instruction execution processor). The instruction execution processor may include an instruction processing unit, an instruction interpretation and execution function unit, and an external device communication interface unit. The instruction processing unit is responsible for extracting the instruction information obtained from the instruction analysis processor, and then providing the information to the instruction execution function unit; the instructions that the instruction processing unit can process may include read instructions, write instructions, output instructions, device opening instructions, device closing instructions, loop instructions, comparison instructions, jump instructions, delay instructions, data arithmetic instructions, data logic instructions, etc. (as shown in Table 1); the instruction execution function unit is a set of several functions (as shown in Table 2), each function in the set corresponds to an instruction (as shown in Table 1), and the function is used to interpret and execute the function of its corresponding instruction; the external device communication unit interface is also a function set, which is used to communicate with various external devices (such as test instruments in a test instrument group), and a corresponding function set can be created for each type of external device for read or write operations.

[0139] The instruction execution processor searches for the corresponding instruction execution function based on the instruction, instruction symbol and instruction parameter group input by the instruction analyzer, wherein the function name corresponds to the instruction symbol, the function input parameter corresponds to the instruction parameter group, and the function return value corresponds to the return value information in the instruction parameter group; after the function is executed, the execution result information is returned to the instruction analysis processor.

[0140] Please refer to Figure 8 , taking the above-mentioned example control device as an example, the performance test process of the dual-mode communication module is described:

[0141] 1) The dual-mode communication module DUT to be tested is placed on the test fixture during testing.

[0142] 2) After the test is started, the script file reading module can read the text data in the test script file into the memory (for example, data buffer 0). Among them, data buffer 0 is a data area in the memory, which is used to store the text data read from the test script file and output the text data to the instruction analysis processor.

[0143] 3) The instruction analysis module (i.e., instruction analysis processor) takes as input all the instructions in the ordered instruction set of data buffer 0, extracts the instructions one by one in order, and their corresponding instruction symbols and instruction parameter groups, and outputs each instruction to the instruction execution processor in turn; after the instruction execution module (i.e., instruction execution processor) executes the instruction, it returns (inputs) the execution result information to the instruction analysis processor, and the instruction analysis processor makes a comprehensive judgment and decision on the next test process of the performance test based on the execution result information and the next instruction extracted. If the instruction symbol extracted by the instruction analysis processor this time is a display instruction, it will directly output the instruction to the test result report module.

[0144] 4) Test result report module, used to save and display the test result data output by the instruction analysis processor.

[0145] 5) Instruction execution module (i.e., instruction execution processor), whose input is a certain instruction output by the instruction analysis processor, and its corresponding instruction symbol and instruction parameter group. According to the instruction, the corresponding instruction execution function is queried, and after finding the function, the parameter data of the instruction is passed in as the entry parameter of the function, and then the function is called and executed, and the function result is returned (output) by the instruction execution processor to the instruction analysis processor. The instruction analysis processor can control and call peripherals through the instruction execution function, so the instruction analysis processor can be configured with a variety of peripheral communication interfaces. For example, it can communicate with a listening station, a spectrum analyzer, a signal source, a main control unit, a programmable attenuator, etc.

[0146] 6) A listening station interface, whose input may be data for controlling the listening station output by the instruction execution processor, and the working parameters of the listening station are configured according to the data, so that it can listen to the wireless signals on the radio frequency line in real time. Preferably, the listening station is configured with a second data buffer (e.g., data buffer 2) for storing the data it listens to. When the current instruction executed is a read instruction to read the listening station data, the instruction execution function corresponding to the instruction will read the data from the data buffer 2.

[0147] 7) A spectrum analyzer interface, whose input may be the data for controlling the spectrum analyzer output by the instruction execution processor, and the working parameters of the spectrum analyzer may be configured according to the data so that the spectrum analyzer can display the spectrum data of the signal under the configured parameters; or the spectrum analyzer measurement data may be read according to the data, and the measurement data may be returned (output) to the instruction execution processor.

[0148] 8) A signal source interface, whose input may be data for controlling the signal source output by the instruction execution processor, and the working parameters of the signal source may be configured according to the data; or a specified test signal may be output according to the data requirements.

[0149] 9) A main control unit interface, whose input may be the data output by the instruction execution processor for controlling the main control unit, and the working parameters of the main control unit are configured according to the data so that it can communicate normally with the test fixture. Preferably, the main control unit is configured with a first data buffer (e.g., data buffer 1) for storing data uploaded by the test fixture.

[0150] 10) A programmable attenuator interface, whose input may be data output by the instruction execution processor for controlling the programmable attenuator, and the working parameters of the programmable attenuator are configured according to the data so that the attenuation value of the signal on the RF communication link can be changed.

[0151] Please refer to the test script file corresponding to the example in Table 4 above. For example, a dual-mode communication module HRF receiving sensitivity test, the DUT type is configured as the main node module TI DUTType =1, the number of packets sent by the signal source in each round of testing is TI SendNum =10, DUT packet receiving pass rate TI RxRate =90%, receiving sensitivity threshold TI StandardValue =-106dBm. According to the above structural configuration, the instruction analysis processor obtains parameter initialization, hardware initialization, test service and each instruction TI parsed from the test script file ODName Its TI ODS The information is output to the instruction execution processor; the instruction execution processor executes the specific operation logic according to the instruction execution function corresponding to the instruction and returns the execution data; this cycle repeats, and the test tasks are implemented according to the instructions of the instruction analysis processor, and finally the test results are output. If you need to output the data results of the intermediate steps, you only need to add an output instruction in the configuration structure of the test script file to track the required data results.

[0152] Among them, the test parameter initialization module is responsible for setting the initial values ​​of the parameters involved in this test case, such as the type value of the DUT under test, the test progress status value, the test result value, the test round value, the timeout value of each test round, the number of retransmissions, the test link attenuation compensation value, etc.

[0153] The hardware initialization module is responsible for setting the initial values ​​of the hardware used in this test case, such as the IP address, port number and initial attenuation value of the programmable attenuator, the communication address and initial test parameter value of the signal source, the communication address and initial test parameter value of the spectrum analyzer, and the serial port communication parameter value of the listening station.

[0154] The business logic implementation module is responsible for implementing the test process steps of this test case test, organizing the hardware used in each step of reading and writing, etc.

[0155] The test result output module is responsible for outputting the final test result of this test case, for example, whether the test is completed, whether the test passes, the test result data value, the test time, etc.

[0156] To illustrate, take the third test execution step (test business) described above as an example, in the 84th instruction executed in the third test execution step, the instruction output to the instruction execution processor according to the instruction analysis processor is TI ODName84 =greatE (greater than or equal to judgment operation), the instruction parameter group TI of the instruction ODS84 [0]=TestStandardRata_flag, TI ODS84 [1] = count, TI ODS84[2] = TestStandardRata; and the 85th instruction adjacent to the 84th instruction is TI ODName85 =jmp (equal to jump operation), the instruction parameter set TI of the instruction ODS85 [0]=TestStandardRata_flag, TI ODS85 [1] = 1, TI ODS85 [2] = 3; the execution process of the instruction execution processor is: the execution processor obtains the current TI ODName84 Instruction symbol greatE and its instruction parameter group TI ODS84 [0] TI ODS84 [1]TI ODS84 [2], the instruction execution function with the same name as the instruction symbol greatE will be called (please refer to Table 2), and the parameter TI in the instruction parameter group will be ODS84 [0] TI ODS84 [1]TI ODS84 [2] as the input parameter data of the function, and then execute the operation function of the greatE function; determine TI ODS84 [1] Is it greater than or equal to TI? ODS84 [2] means: whether the number of test packets received by the main control unit is greater than or equal to the number of test packets received by the test configuration standard TestStandardRata; if it is greater than or equal to the logical relationship, the flag TI will be judged ODS84 [0] = TestStandardRata_flag is set to 1; otherwise, the flag TI is determined. ODS84 [0] = TestStandardRata_flag is set to 0. Then, the instruction execution processor obtains the 85th TI from the instruction analysis processor. ODName85 Instruction symbol jmp and its instruction parameter group TI ODS85 [0] TI ODS85 [1]TI ODS85 [2], call the instruction execution function with the same name as the instruction symbol jmp (please refer to Table 2), and set the parameter TI in the instruction parameter group ODS85 [0] TI ODS85 [1]TI ODS85 [2] as the input parameter data of the function, and then execute the operation function of the jmp function; determine the flag bit TI ODS85 [0] = the value of TestStandardRata_flag; if T IODS85 [0] is 1, jump down to TI based on the 85th instruction ODS85[1] The processing logic of the instruction is performed at the instruction pointed to by the instruction; otherwise, jump down to TI based on the 85th instruction ODS85 The instruction processing logic of the instruction is performed at the instruction indicated in [2]. The instruction execution processor executes the instructions in order according to the instruction information input by the instruction analysis processor until all the instructions of the analysis processor are executed.

[0157] The test results of a complete test in the test script file corresponding to the example in Table 4 above are as follows:

[0158] The listening station receives data[1]:

[0159] 500000000001FF680F00CA000000000000041000DE16

[0160] The listening station receives data [2]:

[0161] 500000000001FF680F00CA000000000000041000DE16

[0162] The listening station receives data [3]:

[0163] 500000000001FF680F00CA000000000000041000DE16

[0164] The listening station receives data[4]:

[0165] 500000000001FF680F00CA000000000000041000DE16

[0166] The listening station receives data[5]:

[0167] 500000000001FF680F00CA000000000000041000DE16

[0168] The listening station receives data[6]:

[0169] 500000000001FF680F00CA000000000000041000DE16

[0170] The listening station receives data[7]:

[0171] 500000000001FF680F00CA000000000000041000DE16

[0172] The listening station receives data[8]:

[0173] 500000000001FF680F00CA000000000000041000DE16

[0174] The listening station receives data[9]:

[0175] 500000000001FF680F00CA000000000000041000DE16

[0176] The listening station receives data

[10] :

[0177] 500000000001FF680F00CA000000000000041000DE16

[0178] Data transmitted to the master control [1]: 680F00CA000000000000041000DE16

[0179] Data transmitted to the master control [2]: 680F00CA000000000000041000DE16

[0180] Data transmitted to the master control [3]: 680F00CA000000000000041000DE16

[0181] Data transmitted to the master control [4]: ​​680F00CA000000000000041000DE16

[0182] Data transmitted to the master control [5]: 680F00CA000000000000041000DE16

[0183] Data transmitted to the master control [6]: 680F00CA000000000000041000DE16

[0184] Data transmitted to the master control [7]: 680F00CA000000000000041000DE16

[0185] Data transmitted to the master control [8]: 680F00CA000000000000041000DE16

[0186] Data transmitted to the master control [9]: 680F00CA000000000000041000DE16

[0187] Data transmitted to the master control

[10] : 680F00CA000000000000041000DE16

[0188] Test results: Strength: -116dBm; Total number of tests: 10; Number of successful packet reception: 10; Number of failed packet reception: 0; Packet error rate: 0%; Receiving sensitivity test conclusion: 1, passed.

[0189] The 10 packets of data received by the intercept station and transparently transmitted to the main control unit are the number of packets sent by the test signal source in each round of the test parameter initialization. SendNum Configuration value 10; data [1] to

[10] received by the listening station is used to verify whether the DUT has sent test data from the wireless communication link, which is used to verify the performance of the test system itself; data [1] to

[10] transmitted to the main control are used to calculate the reception success rate. In the above round of test, 10 packets were sent and 10 packets were received correctly, with a packet error rate of 0%. The receiving sensitivity threshold value TI in the test parameter initialization StandardValue The configuration is -106dBm, and the test value is -116dBm, which is much smaller than TI StandardValue Therefore, the conclusion of this test is: the test passed.

[0190] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0191] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, 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 generate 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 flowchart and / or block diagram. 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.

[0192] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate 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 1A function specified in one or more boxes.

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

[0194] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0195] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0196] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0197] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0198] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A performance testing method for a dual-mode communication module, characterized in that: The performance testing method of the dual-mode communication module includes: Acquire a test script file, the test script file comprising an ordered instruction set for describing a performance test case of the dual-mode communication module, wherein each instruction in the ordered instruction set corresponds to an indivisible operation function when the dual-mode communication module performs a performance test; Parsing the test script file to obtain the ordered instruction set; and Execute the ordered instruction set to perform a performance test on the dual-mode communication module, and the data structure of the test script file includes: One or more performance test cases; one or more test execution steps corresponding to each of the one or more performance test cases; one or more instructions corresponding to each of the one or more test execution steps; an instruction parameter group corresponding to each of the one or more instructions, Before obtaining the test script file, the performance test method of the dual-mode communication module further includes generating the test script file. Wherein, each instruction in the ordered instruction set and the corresponding instruction parameter group are defined by the instruction set definition layer, The instruction description layer describes the presentation mode of each instruction defined in the instruction set definition layer and the presentation mode of each parameter in the corresponding instruction parameter group. The one or more test execution steps corresponding to each performance test case are defined through the test function description layer, and the instructions corresponding to each execution step are described through the instruction description layer.

2. The performance testing method of the dual-mode communication module according to claim 1, characterized in that: Each of the execution steps includes: test parameter initialization, hardware initialization, test business logic and test result output.

3. The performance testing method of the dual-mode communication module according to claim 1, characterized in that: The executing the ordered instruction set to perform a performance test on the dual-mode communication module includes: Obtain each instruction in the ordered instruction set and the corresponding instruction parameter group in sequence; For each instruction, obtain a corresponding instruction execution function; Through each instruction and the corresponding instruction parameter group, the corresponding instruction execution function is executed in the instruction acquisition order.

4. The performance testing method of the dual-mode communication module according to claim 3, characterized in that: The executing of the corresponding instruction execution function in the instruction acquisition order comprises: The execution result of the instruction execution function of the previous instruction participates in the execution decision of the next instruction.

5. The performance testing method of the dual-mode communication module according to claim 3, characterized in that: The performance testing method of the dual-mode communication module also includes: According to the display class instructions in the ordered instruction set, obtaining the corresponding instruction execution function; The instruction execution function is executed through the instruction parameter group corresponding to the display class instruction, and the display data is output to the specified location.

6. A control device, characterized in that: The control device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the performance testing method of the dual-mode communication module according to any one of claims 1-5.

7. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions, which enable the machine to execute the performance testing method of the dual-mode communication module according to any one of claims 1-5.

8. A performance test system for a dual-mode communication module, characterized in that: The performance test system of the dual-mode communication module includes: Test shielding box, used to shield wireless signals outside the box and suppress reflected waves from the inner wall of the box; The control device of claim 6; and The test instrument group is used to read or write the test data required by the dual-mode communication module according to the control of the control device.

9. The performance test system of the dual-mode communication module according to claim 8, characterized in that: The test shielding box comprises: Test fixture, used to connect the dual-mode communication module to be tested; A main control unit, used to configure the test parameters of the dual-mode communication module, and also used to transparently transmit the uplink test data of the dual-mode communication module to the control device; The coupling plate and the antenna are used for sending and receiving signals between the dual-mode communication module and the test instrument group.

10. The performance test system of the dual-mode communication module according to claim 9, characterized in that: A first data buffer is arranged between the main control unit and the control device.

11. The performance test system of the dual-mode communication module according to claim 8, characterized in that: The test instrument set includes: A programmable attenuator, used to set the signal attenuation value on the communication link between the dual-mode communication module and the test instrument group; A listening station, configured with a listening station interface, for listening to test data on the communication link between the dual-mode communication module and the test instrument group; A signal source, configured with a signal source interface, for outputting test data required for the receiving performance of the dual-mode communication module or outputting test parameters for setting the signal source; The spectrum analyzer is provided with a spectrum analyzer interface for inputting test data required for the transmission performance of the dual-mode communication module or outputting test parameters for setting the spectrum analyzer.

12. The performance test system of the dual-mode communication module according to claim 11, characterized in that: The test instrument group also includes a power divider and a combiner. The listening station, the signal source, and the spectrum analyzer are connected to the programmable attenuator via the power divider and combiner. The power divider and combiner are used to perform branching or combining processing on the radio frequency signals corresponding to the test data.

13. The performance test system of the dual-mode communication module according to claim 12, characterized in that: A second data buffer is provided between the listening station and the control device.

14. The performance test system of the dual-mode communication module according to claim 9, characterized in that: The performance test system of the dual-mode communication module also includes a switch, The test shielding box and the test instrument group communicate with the control device through the switch, The switch is also used to expand the LAN port.

15. The performance test system of the dual-mode communication module according to claim 8, characterized in that: The control device comprises: The instruction analysis module is used to parse the test script file to obtain each instruction and its instruction parameter group in the ordered instruction set; An instruction execution module, used to perform a performance test on the dual-mode communication module according to the current instruction and instruction parameter group sequentially input by the instruction analysis module; The test result output module is used to output display data showing the test results to a specified location.

16. The performance test system of the dual-mode communication module according to claim 15, characterized in that: The instruction execution module includes an instruction processing unit, an instruction execution function unit and a peripheral communication interface unit.

Citation Information

Patent Citations

  • Automated testing method for code keyboard

    CN103530209A

  • Test system and method of dual-mode communication device, and nonvolatile storage medium

    CN113395086A

  • Dual-mode test system and method based on power line and wireless

    CN113938402A