Circuit board testing method, device, equipment and medium
Through the collaboration between building test modules and analytical modules, the problem of inefficiency of RF testing in circuit board testing is solved, and a more efficient testing process is achieved.
Patent Information
- Application Number
- CN202411144976.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-26
AI Technical Summary
During the board testing process, when calling the test script provided by Qualcomm directly in the code, errors, conflicts and instability problems are easily encountered, resulting in inefficiency in RF testing.
By obtaining parameter configuration files, the test module is built based on the test script provided by the chip manufacturer, the RF indicator test is carried out, and the abnormal data is stored in shared memory through the parsing module for reading by the third-party interface to avoid errors and instability during the call process improves testing efficiency.
It effectively avoids errors and instability in the RF testing process, improves testing efficiency, and ensures the accuracy and efficiency of circuit board testing.
Smart Images

Figure CN119024135A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit board testing, and in particular to a circuit board testing method, device, equipment and medium. Background Art
[0002] Among modern electronic products, products using Qualcomm chips occupy a significant market share. When Qualcomm releases chips, it usually comes with a set of standard RF calibration and testing solutions. However, this solution often cannot meet the specific needs of manufacturers in the actual production process.
[0003] For example, manufacturers need to control the serial number of each product, calculate the process capability index, and integrate the manufacturing execution system to control the production process.
[0004] In order to meet actual production needs, the test scripts provided by Qualcomm are usually called and integrated with its test solutions to test the circuit board. However, in actual applications, directly calling the test scripts provided by Qualcomm in the code will encounter many problems. For example, errors, conflicts and instability in the calling process make the RF test process complicated and inefficient. Summary of the invention
[0005] In view of this, the present invention provides a circuit board testing method, device, equipment and medium to solve the problem of low efficiency when directly calling a test script in the code to perform a radio frequency test.
[0006] In a first aspect, the present invention provides a circuit board testing method, the method comprising:
[0007] Obtain a parameter configuration file, and set test parameters of a test module based on the parameter configuration file, wherein the test module is a test tool constructed based on a test script provided by a chip manufacturer;
[0008] Testing the radio frequency indicators of a target circuit board under multiple communication standards in sequence through the testing module to obtain first test data corresponding to each communication standard, wherein the target circuit board includes a chip provided by the chip manufacturer;
[0009] Parsing the first test data corresponding to each communication standard through a parsing module, determining abnormal test data in the first test data, and storing the abnormal test data in a shared memory;
[0010] A test result is output to a third-party interface based on the first test data, so that the third-party interface reads the abnormal test data in the shared memory based on the test result.
[0011] The method configures parameters of a test module constructed based on a test script provided by a chip manufacturer, and sequentially tests the radio frequency indicators of a target circuit board under multiple communication standards through the test module, and stores the parsed abnormal test data in a shared memory through a parsing module, so that a third-party interface can read the abnormal test data in the shared memory based on the final test result of the test module. By testing through a separate test module, errors, conflicts and instabilities in the calling process can be effectively avoided, which would cause the radio frequency test link to become complicated and inefficient. At the same time, the reading of abnormal data can be completed by the cooperation of the parsing module and the test module, which can effectively improve the test efficiency.
[0012] In an optional implementation, after obtaining the first test data corresponding to each communication standard, the method further includes:
[0013] Sending the data storage path of the first test data corresponding to each communication standard to the parsing module in sequence;
[0014] The parsing of the first test data corresponding to each communication standard by a parsing module includes:
[0015] After the parsing module receives the data storage path of the first test data corresponding to each communication standard, the first test data is read based on the data storage path, and the read first test data is parsed.
[0016] In this embodiment, when the test module tests the radio frequency indicators corresponding to each communication standard in turn, whenever test data corresponding to a communication standard is obtained, it is sent to the analysis module for analysis, thereby realizing the joint collaboration of the test module and the analysis module and improving the efficiency of circuit board testing and analysis.
[0017] In an optional embodiment, the target circuit board includes: a plurality of circuit boards to be tested;
[0018] The testing module sequentially tests the radio frequency indicators of the target circuit board under multiple communication standards to obtain first test data corresponding to each communication standard, including:
[0019] Initializing parameters of the test threads corresponding to the multiple circuit boards to be tested by the test module;
[0020] After receiving the test instruction, the test module performs a multi-thread test on the plurality of circuit boards to be tested to obtain first test data under each communication standard corresponding to each circuit board to be tested.
[0021] In this implementation, the test module initializes parameters of multiple circuit boards to be tested and performs multi-threaded testing, so that multiple circuit boards can be tested at one time, thereby improving the test efficiency of the factory when testing the circuit boards.
[0022] In an optional implementation, the obtaining the parameter configuration file includes:
[0023] Receive the parameter configuration file address entered by the user;
[0024] The parameter configuration file is read based on the parameter configuration file address.
[0025] In this implementation, by receiving the parameter configuration file address input by the user, the corresponding parameter configuration file is quickly read according to the address, which reduces the difficulty of parameter configuration for the staff and ensures the efficiency of parameter configuration.
[0026] In an optional implementation, when the radio frequency indicators of the target circuit board under multiple communication standards are tested in sequence by the test module, the method further includes:
[0027] Outputting a real-time test log of the target circuit board, the real-time test log includes: the test process and current test content of the target circuit board.
[0028] This implementation method outputs a real-time test log of the target circuit board during the test by the test module, so that the staff can understand the test situation in real time during the test process, so that problems can be dealt with in time when they occur during the test process.
[0029] In an optional implementation manner, outputting the real-time test log of the target circuit board includes:
[0030] Establishing a named pipe between the third-party interface and the process corresponding to the test module;
[0031] Acquire a real-time test log when the test module tests the target circuit board, and send the real-time test log to a third-party interface through the named pipe;
[0032] The real-time test log of the target circuit board is displayed through the third-party interface.
[0033] In this implementation manner, data is transmitted between the test module and the third-party interface through a named pipe to display the test log during the test process, thereby ensuring the transmission accuracy of the real-time test log during the test process.
[0034] In an optional implementation, the first test data corresponding to each communication standard includes: first test data corresponding to different radio frequency indicators under each communication standard;
[0035] When the first test data corresponding to each communication standard is parsed by the parsing module, it includes:
[0036] The first test data corresponding to different radio frequency indicators under each communication standard are analyzed in a multi-threaded manner through an analysis module.
[0037] In this implementation manner, when the parsing module parses the first test data corresponding to each communication standard, the first test data under different radio frequency indicators are parsed in a multi-threaded manner, thereby effectively improving the parsing efficiency.
[0038] In a second aspect, the present invention provides a circuit board testing device, the device comprising:
[0039] A parameter configuration module, used to obtain a parameter configuration file and set test parameters of a test module based on the parameter configuration file. The test module is a test tool built based on a test script provided by a chip manufacturer;
[0040] A radio frequency testing module, configured to test radio frequency indicators of a target circuit board under multiple communication standards in sequence through the testing module to obtain first test data corresponding to each communication standard, wherein the target circuit board includes a chip provided by the chip manufacturer;
[0041] A data parsing module, configured to parse the first test data corresponding to each communication standard through a parsing module, determine abnormal test data in the first test data, and store the abnormal test data in a shared memory;
[0042] The abnormal reading module is used to output the test result to the third-party interface based on the first test data, so that the third-party interface reads the abnormal test data in the shared memory based on the test result.
[0043] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the circuit board testing method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0044] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the circuit board testing method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 is a schematic flow chart of a circuit board testing method according to an embodiment of the present invention;
[0047] Figure 2 is an example diagram of a hardware connection method in a test process according to an embodiment of the present invention;
[0048] Figure 3 is a flow chart of another circuit board testing method according to an embodiment of the present invention;
[0049] Figure 4 This is an overall architecture diagram of a circuit board testing solution according to an embodiment of the present invention;
[0050] Figure 5 is an example diagram of a configuration solution flow of a QIA test module according to an embodiment of the present invention;
[0051] Figure 6 This is an example diagram of a test data generation and return process according to an embodiment of the present invention;
[0052] Figure 7 is an example diagram of a design framework of a parsing module according to an embodiment of the present invention;
[0053] Figure 8 is a structural block diagram of a circuit board testing device according to an embodiment of the present invention;
[0054] Fig. 9 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0056] Among modern electronic products, products using Qualcomm chips occupy a significant market share. When Qualcomm releases chips, it usually comes with a set of standard RF calibration and testing solutions. However, this solution often cannot meet the specific needs of manufacturers in the actual production process.
[0057] For example, manufacturers need to control the serial number of each product, calculate the process capability index, and integrate the manufacturing execution system to control the production process.
[0058] In order to meet actual production needs, the test scripts provided by Qualcomm are usually called and integrated with its test solutions to test the circuit board. However, in actual applications, directly calling the test scripts provided by Qualcomm in the code will encounter many problems. For example, errors, conflicts and instability in the calling process make the RF test process complicated and inefficient.
[0059] To this end, an embodiment of the present invention provides a circuit board testing method, by configuring parameters of a test module constructed based on a test script provided by a chip manufacturer, and sequentially testing the RF indicators of a target circuit board under multiple communication standards through the test module, and storing the parsed abnormal test data in a shared memory through a parsing module, so that a third-party interface can read the abnormal test data in the shared memory based on the final test result of the test module. By testing through a separate test module, errors, conflicts and instability in the calling process can be effectively avoided, which causes the RF test link to become complicated and inefficient. At the same time, the reading of abnormal data is completed by the cooperation of the parsing module and the test module, which can effectively improve the test efficiency.
[0060] According to an embodiment of the present invention, a circuit board testing method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0061] In this embodiment, a circuit board testing method is provided, which can be used in the above-mentioned circuit board testing process. Figure 1 is a flow chart of a circuit board testing method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0062] Step S101, obtaining a parameter configuration file, and setting test parameters of a test module based on the parameter configuration file, where the test module is a test tool constructed based on a test script provided by a chip manufacturer.
[0063] Before describing the method of the embodiment of the present invention in detail, it is necessary to further introduce the background technology, which is as follows: when a manufacturer produces terminal equipment, it is necessary to test multiple items on the circuit board carrying the chip produced. During the test process, in order to ensure the test efficiency, different test items are often tested in sequence through a third-party test tool. The third-party test tool has a test program corresponding to each test item. Among these test items, the test programs of some items are written by the manufacturer itself, and the test programs of some items are provided by the component supplier.
[0064] Take a mobile phone using a Qualcomm chip as an example. The test script for cellular data is provided by Qualcomm. Therefore, the corresponding test script can be directly called and imported through a third-party test tool for testing. However, due to problems in the import process and the test script itself, the test process may crash and the test cannot be performed. In this case, there may be a problem with the import process or the test script itself, but it is difficult to determine the specific cause of the problem, which affects the overall test efficiency.
[0065] In such a case, the test can be performed through the test module in the embodiment of the present invention. The test module can be understood as a test tool built directly based on the test script provided by Qualcomm. Before the test is performed through the test module, since different circuit boards to be tested have different specifications, it is necessary to configure the corresponding test parameters, that is, it is necessary to configure the parameters of the test module accordingly. Exemplarily, the parameter configuration may include: test content, test standards, call files and other information. For details, the test parameters that need to be configured during testing in this field can be referred to, and will not be repeated here.
[0066] Since the test module in the embodiment of the present invention is constructed directly according to the test script, there is no problem in the import process. On the one hand, the problem can be accurately determined. That is, if the test can be implemented in the test module, it means that the problem in the previous test process is a problem in the import process. If the crash still occurs, it means that there is a problem with the test script itself, and the chip supplier, Qualcomm, can be communicated and dealt with. On the other hand, if there is a problem in the import process, the corresponding test items of the circuit board can be tested directly through the test module. After completing the test item, other test items can be tested through third-party test tools to ensure that the overall test process of the circuit board can be completed efficiently.
[0067] Step S102, testing the radio frequency indicators of the target circuit board under multiple communication standards in sequence through the testing module to obtain first test data corresponding to each communication standard, wherein the target circuit board includes a chip provided by a chip manufacturer.
[0068] In the actual test process, corresponding information can be transmitted through the corresponding interface of the third-party test tool to start the test module to test the target circuit board that has been installed with the chip provided by the corresponding manufacturer. Taking the above example, the chip manufacturer here can be Qualcomm. When the test module tests the target circuit board, it will test the RF indicators under different communication standards in turn to obtain the test data corresponding to the different communication standards, that is, the first test data. These test data may include information such as the specific number of different indicators under the corresponding communication standards and whether they are qualified. For example, it can be a radio frequency test of cellular data under the communication standards of GSM, WCDMA, LTE, and NR.
[0069] Specifically, in the actual test process, the specific connection method between hardware can be as follows Figure 2 As shown, Figure 2 FIG. 1 is an example diagram of a hardware connection method in a test process according to an embodiment of the present invention. Figure 2 As shown, the circuit board to be tested and the computer device running the test program are connected via a USB interface, the circuit board to be tested and the test device for reading the specific data of the circuit board are connected via an RF line, and the test device and the computer are connected via corresponding connecting lines, wherein the test device for reading the specific data of the circuit board can be a CMW100 test device.
[0070] Step S103: parsing the first test data corresponding to each communication standard through a parsing module, determining abnormal test data in the first test data, and storing the abnormal test data in a shared memory.
[0071] When the test module tests each communication standard, it will store the corresponding test data in the relevant address. Although these test data express the specific test information corresponding to different communication standards, their data format is not a readable file that can be directly understood by people. Therefore, it is necessary to parse the test data obtained by the test module through a special parsing module. During the parsing process, it is determined whether there is abnormal test data in these first test data, that is, abnormal indicators that do not meet the test standards. If so, the parsing module needs to convert the data related to the abnormal test data in the first test data into readable data that can be understood by the staff, and store it in the shared memory for subsequent reading and calling to understand the specific abnormal situation of the circuit board.
[0072] In another case, if the parsing module determines that there is no abnormal test data in the first test data during the parsing process, that is, all indicators of the circuit board are qualified, then there is no need to perform corresponding storage operations, because in the actual test process, it is only necessary to ensure that the indicators are normal and the test can be completed. In this way, the consumption of shared memory can be effectively saved.
[0073] Step S104: outputting a test result to the third-party interface based on the first test data, so that the third-party interface reads the abnormal test data in the shared memory based on the test result.
[0074] After the test module completes the tests corresponding to each communication standard, the test results can be output to the interface of the third-party test tool, i.e., the third-party interface, according to whether there are any abnormalities in the first test data corresponding to each communication standard. The test results can only include whether there are any abnormalities in the first test data corresponding to each communication standard. If there are, the abnormal test data stored in the shared memory by the parsing module can be read by the third-party test tool to understand the specific abnormal situation of the circuit board. In this way, the amount of information transmission between different modules can be effectively reduced, the test time can be reduced, and the efficiency of the test process can be ensured.
[0075] The circuit board testing method provided in this embodiment configures parameters of a test module constructed based on a test script provided by a chip manufacturer, and sequentially tests the radio frequency indicators of a target circuit board under multiple communication standards through the test module, and stores the parsed abnormal test data in a shared memory through a parsing module, so that a third-party interface can read the abnormal test data in the shared memory based on the final test result of the test module. By testing through a separate test module, errors, conflicts and instability in the calling process can be effectively avoided, which causes the radio frequency testing link to become complicated and inefficient. At the same time, the reading of abnormal data is completed by the cooperation of the parsing module and the test module, which can effectively improve the testing efficiency.
[0076] At the same time, since the test module in the embodiment of the present invention is constructed directly according to the test script, there is no problem in the import process. On the one hand, the problem can be accurately determined. That is, if the test can be implemented in the test module, it means that the problem in the previous test process is a problem in the import process. If the crash still occurs, it means that there is a problem with the test script itself, and the chip supplier, Qualcomm, can be communicated and dealt with. On the other hand, if there is a problem in the import process, the corresponding test items of the circuit board can be tested directly through the test module. After completing the test item, other test items can be tested through third-party test tools to ensure that the overall test process of the circuit board can be completed efficiently.
[0077] According to an embodiment of the present invention, another circuit board testing method embodiment is provided, which can be used for the above-mentioned circuit board testing. Figure 3 FIG. 1 is a flow chart of another circuit board testing method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0078] Step S201, obtaining a parameter configuration file, and setting test parameters of a test module based on the parameter configuration file, where the test module is a test tool constructed based on a test script provided by a chip manufacturer.
[0079] Specifically, in step S201, obtaining a parameter configuration file includes: receiving a parameter configuration file address input by a user;
[0080] Reads a parameter configuration file based on the parameter configuration file address.
[0081] It can be understood that the user can input the address of the corresponding parameter configuration file into the test module through a third-party testing tool, where the parameter configuration file can be pre-set parameter configuration information for different circuit boards. After receiving the corresponding parameter configuration file address, the test module can read the corresponding parameter configuration file through the address to complete the parameter configuration.
[0082] This parameter configuration method can greatly reduce the parameter configuration threshold for staff when conducting circuit board testing. Staff only need to select the corresponding file address for different circuit boards, without having to compile parameter configuration files themselves, which improves parameter configuration efficiency. At the same time, the test module accesses the corresponding file through the address, which can reduce the amount of information transmission between the third-party test tool and the test module, and ensure the test efficiency of the test process.
[0083] Step S202, testing the radio frequency indicators of the target circuit board under multiple communication standards in sequence through the testing module to obtain first test data corresponding to each communication standard, wherein the target circuit board includes a chip provided by a chip manufacturer.
[0084] Specifically, the target circuit board includes: a plurality of circuit boards to be tested;
[0085] In step S202, the radio frequency indicators of the target circuit board under multiple communication standards are tested in sequence by the test module to obtain first test data corresponding to each communication standard, including:
[0086] Initialize parameters of test threads corresponding to multiple circuit boards to be tested through the test module;
[0087] After receiving the test instruction, the test module performs a multi-thread test on the plurality of circuit boards to be tested, and obtains first test data under each communication standard corresponding to each circuit board to be tested.
[0088] It can be understood that when conducting tests, multiple circuit boards to be tested can be tested at the same time. Since the initial parameters of the test threads corresponding to different circuit boards may be different, it is necessary to initialize the initial parameters in the test threads corresponding to each circuit board to be tested through the test module, that is, to agree on the initial parameters corresponding to each test thread.
[0089] Then, after the test module receives the test instructions issued by the user through the third-party test tool, multi-threaded testing is performed on multiple circuit boards to obtain the first test data of each circuit board to be tested under each communication standard. The test module initializes the parameters of multiple circuit boards to be tested and performs multi-threaded testing, which can achieve testing of multiple circuit boards at one time, thereby improving the test efficiency of the factory when testing circuit boards.
[0090] Specifically, in step S202, when the radio frequency indicators of the target circuit board under multiple communication standards are tested in sequence by the test module, the method further includes:
[0091] Output the real-time test log of the target circuit board, which includes the test process and current test content of the target circuit board.
[0092] It can be understood that in the process of the test module testing the target circuit board, real-time test logs will be generated. These test logs may include information such as the current test process, information called during the test process, and the content of the current test. By outputting the real-time test log of the target circuit board during the test module testing, it can be ensured that the staff can understand the test situation in real time during the test process, so that problems can be dealt with in a timely manner when they occur during the test process.
[0093] Specifically, the real-time test log of the output target circuit board in the above steps includes:
[0094] Step S202-a, establishing a named pipe between the third-party interface and the corresponding process of the test module.
[0095] It can be understood that when outputting test logs, the output can be displayed through the interface of the third-party testing tool. Therefore, it is necessary to pre-establish a named pipe between the third-party interface corresponding to the third-party tool and the process corresponding to the test module to facilitate information transmission between the two processes, that is, to transmit real-time test logs during the test process.
[0096] Step S202-b, obtaining a real-time test log when the test module tests the target circuit board, and sending the real-time test log to a third-party interface through a named pipe.
[0097] The test module records the test log in real time during the test process, and transmits the real-time test log to the third-party interface through a named pipe, so that the third-party interface can display the real-time test status of the test module.
[0098] Step S202-c: displaying the real-time test log of the target circuit board through a third-party interface.
[0099] After receiving the test log, the third-party interface can display it accordingly through the display interface so that the staff can understand the real-time test situation.
[0100] Data transmission between the test module and the third-party interface is carried out through named pipes to display the test log during the test process, which can ensure the transmission accuracy of the real-time test log during the test process.
[0101] Step S203 , sending the data storage paths of the first test data corresponding to each communication standard to the parsing module in sequence.
[0102] It can be understood that when the test module is testing, it performs corresponding tests on each communication standard in turn. After completing the test content corresponding to a communication standard, it will perform the test on another communication standard. At the same time, in the process of testing each communication standard, the corresponding first test data will be stored in the corresponding folder. Therefore, after the test module completes the test corresponding to a communication standard, the storage path of the corresponding test data can be sent to the parsing module so that the parsing module can parse the relevant test data. By sending the storage path to the parsing module for corresponding data parsing, the amount of data transmission between the test module and the parsing module can be effectively reduced, and the speed of the overall test process can be improved.
[0103] Step S204: parsing the first test data corresponding to each communication standard through a parsing module, determining abnormal test data in the first test data, and storing the abnormal test data in a shared memory.
[0104] Specifically, step S204 includes:
[0105] Step S204 - 1 , after the parsing module receives the data storage path of the first test data corresponding to each communication standard, the first test data is read based on the data storage path, and the read first test data is parsed.
[0106] It can be understood that whenever the parsing module receives the storage path corresponding to the test data sent by the test module, it reads and parses the corresponding test data based on the path. Compared with the traditional test module that performs the corresponding parsing after completing the test under all communication standards, the method of the embodiment of the present invention can realize the joint cooperation between the parsing module and the test module, realize the parsing module can be asynchronous parsing, avoid the idleness of the parsing module, and improve the data parsing efficiency.
[0107] Step S204-2, determine the abnormal test data in the first test data, and store the abnormal test data in the shared memory. Figure 1 The relevant contents in step S103 of the illustrated embodiment are not repeated here.
[0108] Specifically, the first test data corresponding to each of the communication standards mentioned above includes: first test data corresponding to different radio frequency indicators under each communication standard.
[0109] In step S204, when the first test data corresponding to each communication standard is parsed by the parsing module, it includes:
[0110] The first test data corresponding to different radio frequency indicators under each communication standard are analyzed in a multi-threaded manner through the analysis module.
[0111] It can be understood that for different radio frequency indicators corresponding to various communication standards, the analysis module can perform multi-threaded analysis, that is, for the first test data corresponding to each communication standard, the analysis module can simultaneously analyze the test data corresponding to multiple radio frequency indicators.
[0112] When the parsing module parses the first test data corresponding to each standard, the first test data under different radio frequency indicators are parsed in a multi-threaded manner, thereby effectively improving the parsing efficiency.
[0113] Step S205: output the test result to the third-party interface based on the first test data, so that the third-party interface reads the abnormal test data in the shared memory based on the test result. Figure 1 The relevant contents in step S104 of the illustrated embodiment are not repeated here.
[0114] The circuit board testing method provided in this embodiment configures parameters of a test module constructed based on a test script provided by a chip manufacturer, and sequentially tests the radio frequency indicators of a target circuit board under multiple communication standards through the test module, and stores the parsed abnormal test data in a shared memory through a parsing module, so that a third-party interface can read the abnormal test data in the shared memory based on the final test result of the test module. By testing through a separate test module, errors, conflicts and instability in the calling process can be effectively avoided, which causes the radio frequency testing link to become complicated and inefficient. At the same time, the reading of abnormal data is completed by the cooperation of the parsing module and the test module, which can effectively improve the testing efficiency.
[0115] At the same time, since the test module in the embodiment of the present invention is constructed directly according to the test script, there is no problem in the import process. On the one hand, the problem can be accurately determined. That is, if the test can be implemented in the test module, it means that the problem in the previous test process is a problem in the import process. If the crash still occurs, it means that there is a problem with the test script itself, and the chip supplier, Qualcomm, can be communicated and dealt with. On the other hand, if there is a problem in the import process, the corresponding test items of the circuit board can be tested directly through the test module. After completing the test item, other test items can be tested through third-party test tools to ensure that the overall test process of the circuit board can be completed efficiently.
[0116] In order to facilitate understanding of the above method embodiments, an overall architecture diagram of a circuit board testing solution is provided according to an embodiment of the present invention. Figure 4 As shown, this solution mainly involves three main bodies, namely, a third-party UI, a QIA test module, and an analysis LOG module. The third-party UI can be understood as a third-party test tool, the QIA test module is a test module constructed according to the test script provided by the chip company, and the analysis LOG module is the analysis module mentioned in the above embodiment, wherein LOG refers to the log data generated during the test process, that is, the first test data. Figure 4 The QIAConfig.ini in the QIAConfig.ini file refers to the configuration file for the test module.
[0117] QIA refers to the QSPR Interface API, which is an interface developed based on QSPR and can fully run the existing XTT test scripts. It can be obtained directly on Qualcomm's official website. QSPR: SequenceProfiling Resource is a PC-side test program that runs Qualcomm Test Script (XTT).
[0118] During the test, the third-party UI configures QIAConfig.ini and starts the QIA test module, notifying the QIA test module to start the test through sendmessage. At this time, the real-time log of the QIA test module during operation, that is, the real-time operation log, is sent back to the third-party UI using the named pipe technology.
[0119] During the test process, the QIA test module will send the log path information of the corresponding test completion under each communication standard to the log parsing module for asynchronous parsing through the sendmessage technology, where the log path information refers to the path for storing the test log.
[0120] After the test is completed, the QIA module reports the test results to the third-party UI, that is, notifies the third-party UI whether there is any abnormal test data in the entire test process, and the third-party UI reads the analysis results according to the situation.
[0121] For example, Figure 5 As shown in FIG. 1 , a configuration scheme flow diagram of a QIA test module according to an embodiment of the present invention is shown. First, the parameter file addresses such as SN and COMPORT are input to the test module through a third-party UI. After receiving the parameter file address sent by the third-party UI, the QIA test module configures the QIA operating parameters according to the specific parameter file, i.e., the operating parameters corresponding to the QIA test module. For the QIA test module, Figure 5 The QIA module is used to represent it. The user can start the QIA module and the parsing module through the third-party UI to make the two modules start running. After the user notifies the QIA module to start the test, a named pipe, namely namepipe, will be created between the QIA test module and the third-party UI to receive real-time data. Finally, after the QIA module has tested all the content to be tested, it will determine whether there are any abnormalities in the test results. After the parsing module has parsed the test data, the user can organize the test logs generated during the test process, namely test log data, through the third-party UI.
[0122] For example, Figure 6 As shown in FIG. 1 , an example diagram of a test data generation and return process according to an embodiment of the present invention is shown in FIG. Figure 6 As shown, before the QIA test module starts testing, the parameters of multiple products are initialized. In the figure, products 1 to 4 are initialized. In actual production, the number of products to be tested simultaneously can be determined based on actual conditions, and there is no limitation here.
[0123] Then, after the QIA test module receives the test message, it can perform the test by controlling the instrument and the product to be tested. At the same time, the real-time test log generated during the test can be transmitted to the third-party UI through NamePipe, so that the staff can understand the real-time test situation. At the same time, the test module transmits the data to be parsed to the parsing module. Specifically, the storage address corresponding to the data to be parsed can be sent to the parsing module to reduce the amount of data transmission between different modules and save test time.
[0124] Finally, after all the test contents are completed, the processing and running results are returned to the third-party UI, where the processing and running results refer to whether there are abnormal test data in the entire test process, so that the third-party UI can determine whether to read the shared memory.
[0125] For example, Figure 7 The figure is an example diagram of the design framework of a parsing module according to an embodiment of the present invention. As shown in the figure, the UI control module in the parsing module calls and sets the parsing progress through the callback function and export class sent by the internal parsing log module, and at the same time sends multi-threaded instructions and static call instructions as well as specific parameter passing paths and CPK data output paths to the parsing log module, so that the parsing log module can output the parsed data.
[0126] At the same time, there is also a step log printing module inside the parsing module, which is used to print the step log of the parsing process. The UI control module statically mobilizes the step log printing module and creates a loghandle to call other modules. The UI control module will also set specific read and write paths and data output paths for the parameter record file to facilitate effective management of the parameter record file; and set specific MAC addresses and first run time. For example, the KEY.db3 file can be used as a database file to record specific card control MAC addresses and installation time to ensure the confidentiality and security of the parsing module and avoid leakage. Finally, a specific instruction ppt can also be carried in the parsing module so that the staff can quickly get started.
[0127] In order to facilitate the overall understanding of the specific contents of the above method embodiments, an exemplary example is provided according to an embodiment of the present invention to assist in understanding. The specific implementation method is to first read SN.boardid through a third-party UI, and connect mes, etc. to run other tests. The purpose of reading SN.boardid is to read the specific parameter file address, and connecting mes, etc. to run other tests is because for circuit board testing, it includes multiple aspects of test content, of which only a part of the tests cannot be completed on a third-party test tool due to import problems, and need to be tested through an independent test module, so it is necessary to prepare in advance the devices or files required for other test runs.
[0128] Next, configure the operating parameters of the QIA module, that is, configure the operating parameters of the test module in the above method embodiment, and start the QIA module and the log parsing module through the third-party UI. After notifying the parsing module to start, the parsing module switches to sendmessage mode, that is, it can receive information sent by sendmessage. After the QIA module and the parsing module are started, sendmessage is used to notify the QIA module and the parsing module to start working. After the third-party UI notifies the QIA module to start the test, a named pipe, namely Namepipe, will be created between the third-party UI and the QIA module to receive the real-time test log of the subsequent QIA module during the test process.
[0129] After starting the test, the QIA module tests the RF indicators under the four communication standards of GSM, WCDMA, LTE, and NR in turn, and sends the real-time log of the test process to the third-party UI. After each communication standard is tested, the storage path corresponding to the test data under the standard is sent to the parsing module, and the cycle is repeated until the test script is executed. At this time, the third-party UI is notified of the completion of the test, and an EVENT signal is sent to the third-party UI, including whether there is abnormal test data during the test.
[0130] After receiving the data storage path corresponding to the test data sent by the test module, the parsing module parses the corresponding test data and determines whether there are Fail items, that is, whether there are abnormal test data. If so, a part of shared memory is allocated and the corresponding Fail information is stored in the shared memory. After the test module completes all tests and the parsing module has parsed all the test data that needs to be parsed, the third-party UI can notify the parsing module to stop working.
[0131] At this time, the third-party UI determines the test results sent by the QIA test module, that is, whether there is abnormal test data in the test process. If not, it is pass, which means that there is no problem with the circuit board during the above test process, and other test items can be started; if it exists, it is fail, then it is necessary to read the specific abnormal information from the shared memory so that the test staff can understand the specific abnormal situation and then run other test items.
[0132] Since the test module in the embodiment of the present invention is constructed directly according to the test script, there is no problem in the import process. On the one hand, the problem can be accurately determined. That is, if the test can be implemented in the test module, it means that the problem in the previous test process is a problem in the import process. If the crash still occurs, it means that there is a problem with the test script itself, and the chip supplier, Qualcomm, can be communicated and dealt with. On the other hand, if there is a problem in the import process, the corresponding test items of the circuit board can be tested directly through the test module. After completing the test item, other test items can be tested through third-party test tools to ensure that the overall test process of the circuit board can be completed efficiently.
[0133] In this embodiment, a circuit board testing device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0134] This embodiment provides a circuit board testing device, such as Figure 8 As shown, including:
[0135] The parameter configuration module 401 is used to obtain a parameter configuration file and set the test parameters of the test module based on the parameter configuration file. The test module is a test tool constructed based on a test script provided by a chip manufacturer.
[0136] The radio frequency testing module 402 is used to test the radio frequency indicators of the target circuit board under multiple communication standards in sequence through the testing module to obtain first test data corresponding to each communication standard. The target circuit board includes a chip provided by a chip manufacturer.
[0137] The data analysis module 403 is used to analyze the first test data corresponding to each communication standard through the analysis module, determine abnormal test data in the first test data, and store the abnormal test data in the shared memory.
[0138] The abnormal reading module 404 is used to output the test result to the third-party interface based on the first test data, so that the third-party interface reads the abnormal test data in the shared memory based on the test result.
[0139] In some optional implementations, the radio frequency test module 402, after obtaining the first test data corresponding to each communication standard, is further configured to sequentially send the data storage path of the first test data corresponding to each communication standard to the parsing module;
[0140] The data parsing module 403, when parsing the first test data corresponding to each communication standard through the parsing module, includes:
[0141] After the parsing module receives the data storage path of the first test data corresponding to each communication standard, the first test data is read based on the data storage path, and the read first test data is parsed.
[0142] In some optional embodiments, the target circuit board includes: a plurality of circuit boards to be tested;
[0143] The radio frequency testing module 402, when testing the radio frequency indicators of the target circuit board under multiple communication standards in sequence through the testing module to obtain first test data corresponding to each communication standard, includes:
[0144] Initialize parameters of test threads corresponding to multiple circuit boards to be tested through the test module;
[0145] After receiving the test instruction, the test module performs a multi-thread test on the plurality of circuit boards to be tested, and obtains first test data under each communication standard corresponding to each circuit board to be tested.
[0146] In some optional implementations, the parameter configuration module 401, when acquiring the parameter configuration file, includes:
[0147] Receive the parameter configuration file address entered by the user;
[0148] Reads a parameter configuration file based on the parameter configuration file address.
[0149] In some optional implementations, the RF testing module 402, when testing the RF indicators of the target circuit board under multiple communication standards in sequence through the testing module, further includes:
[0150] Output the real-time test log of the target circuit board, which includes the test process and current test content of the target circuit board.
[0151] In some optional implementations, the RF test module 402, when outputting the real-time test log of the target circuit board, includes:
[0152] Establish a named pipe between the third-party interface and the corresponding process of the test module;
[0153] Obtain the real-time test log when the test module tests the target circuit board, and send the real-time test log to the third-party interface through the named pipe;
[0154] Display real-time test logs of the target board through a third-party interface.
[0155] In some optional implementations, the first test data corresponding to each communication standard includes: first test data corresponding to different radio frequency indicators under each communication standard;
[0156] The data parsing module 403, when parsing the first test data corresponding to each communication standard through the parsing module, includes:
[0157] The first test data corresponding to different radio frequency indicators under each communication standard are analyzed in a multi-threaded manner through the analysis module.
[0158] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0159] The circuit board testing device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0160] The embodiment of the present invention also provides a computer device having the above Figure 8 The circuit board test setup is shown.
[0161] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig. 9As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig. 9 A processor 10 is taken as an example.
[0162] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0163] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0164] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0165] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0166] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.
[0167] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0168] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0169] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A circuit board testing method, characterized in that: The method comprises: Obtain a parameter configuration file, and set test parameters of a test module based on the parameter configuration file, wherein the test module is a test tool constructed based on a test script provided by a chip manufacturer; Testing the radio frequency indicators of a target circuit board under multiple communication standards in sequence through the testing module to obtain first test data corresponding to each communication standard, wherein the target circuit board includes a chip provided by the chip manufacturer; Parsing the first test data corresponding to each communication standard through a parsing module, determining abnormal test data in the first test data, and storing the abnormal test data in a shared memory; A test result is output to a third-party interface based on the first test data, so that the third-party interface reads the abnormal test data in the shared memory based on the test result.
2. The method according to claim 1, characterized in that: After obtaining the first test data corresponding to each communication standard, the method further includes: Sending the data storage path of the first test data corresponding to each communication standard to the parsing module in sequence; The parsing of the first test data corresponding to each communication standard by a parsing module includes: After the parsing module receives the data storage path of the first test data corresponding to each communication standard, the first test data is read based on the data storage path, and the read first test data is parsed.
3. The method according to claim 1, characterized in that The target circuit board includes: a plurality of circuit boards to be tested; The testing module sequentially tests the radio frequency indicators of the target circuit board under multiple communication standards to obtain first test data corresponding to each communication standard, including: Initializing parameters of the test threads corresponding to the multiple circuit boards to be tested by the test module; After receiving the test instruction, the test module performs a multi-thread test on the plurality of circuit boards to be tested to obtain first test data under each communication standard corresponding to each circuit board to be tested.
4. The method according to claim 1, characterized in that: The obtaining of the parameter configuration file comprises: Receive the parameter configuration file address entered by the user; The parameter configuration file is read based on the parameter configuration file address.
5. The method according to claim 1, characterized in that: When the radio frequency indicators of the target circuit board under multiple communication standards are tested in sequence by the test module, the method further includes: Outputting a real-time test log of the target circuit board, the real-time test log includes: the test process and current test content of the target circuit board.
6. The method according to claim 5, characterized in that The outputting of the real-time test log of the target circuit board comprises: Establishing a named pipe between the third-party interface and the process corresponding to the test module; Acquire a real-time test log when the test module tests the target circuit board, and send the real-time test log to a third-party interface through the named pipe; The real-time test log of the target circuit board is displayed through the third-party interface.
7. The method according to claim 1, characterized in that The first test data corresponding to each communication standard includes: first test data corresponding to different radio frequency indicators under each communication standard; When the first test data corresponding to each communication standard is parsed by the parsing module, it includes: The first test data corresponding to different radio frequency indicators under each communication standard are analyzed in a multi-threaded manner through an analysis module.
8. A circuit board testing device, characterized in that: The device comprises: A parameter configuration module, used to obtain a parameter configuration file and set test parameters of a test module based on the parameter configuration file. The test module is a test tool built based on a test script provided by a chip manufacturer; A radio frequency testing module, configured to test radio frequency indicators of a target circuit board under multiple communication standards in sequence through the testing module to obtain first test data corresponding to each communication standard, wherein the target circuit board includes a chip provided by the chip manufacturer; A data parsing module, configured to parse the first test data corresponding to each communication standard through a parsing module, determine abnormal test data in the first test data, and store the abnormal test data in a shared memory; The abnormal reading module is used to output the test result to the third-party interface based on the first test data, so that the third-party interface reads the abnormal test data in the shared memory based on the test result.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the circuit board testing method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the circuit board testing method according to any one of claims 1 to 7.
Citation Information
Cited By
Multi-channel test method, electronic equipment and test system thereof
CN120559435A
