Module testing method, terminal and system

Through the automated connection and instruction reception between the virtual serial port and the detection equipment, the problem of low module testing efficiency in the existing technology is solved, fast and accurate module testing is achieved, and batch testing efficiency is improved.

CN116663580BActive Publication Date: 2024-10-15FUWIT TECH CO (SZ) LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202310574322.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-19
Publication Date
2024-10-15
Estimated Expiration
2043-05-19

AI Technical Summary

Technical Problem

Factory testing of hardware modules in the existing technology requires manual connection of communication lines and recording of test results, which makes it impossible to quickly and accurately complete testing of a large number of modules.

Method used

Establish a communication connection with the module under test on the detection device through a pre-generated virtual serial port. After determining that the connection is successful, the test instructions are automatically received and written into the test result file. The fixed module of the detection device is used for testing to realize an automated testing process.

Benefits of technology

There is no need to manually record test results, and batch modules can be tested quickly and accurately, which improves testing efficiency and reduces the risk of static electricity during connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116663580B_ABST
    Figure CN116663580B_ABST
Patent Text Reader

Abstract

The present application relates to a module testing method, terminal and system, the method comprising: establishing a communication connection with a module to be tested on a detection device through a pre-generated virtual serial port, judging whether the connection with the module to be tested is successful, wherein the detection device is used to fix the module to be tested and communicate with the module to be tested, if the connection is successful, judging whether there is a test result file in a preset storage path, if so, opening the test result file and receiving a test instruction, testing the module to be tested through the detection device based on the test instruction to obtain a test result, and writing the test result into the test result file. The present application can automatically save the test results of the module to be tested, and can quickly complete the test of batches of modules to be tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a module testing method, terminal and system. Background Art

[0002] At present, in the prior art, when a hardware module is factory tested, it is necessary to manually connect the communication line between the module to be tested and the detection equipment, and then test the module to be tested, and the test results need to be recorded manually in a table. When a large number of hardware modules need to be tested, the test cannot be completed quickly and accurately.

[0003] Therefore, how to provide a fast and accurate module testing method has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0004] In view of the above, the present application provides a module testing method, terminal and system, which aim to solve the above technical problems.

[0005] In a first aspect, the present application provides a module testing method, the method being applied to a terminal, the method comprising:

[0006] Establishing a communication connection with the module to be tested on the detection device through a pre-generated virtual serial port, and determining whether the connection with the module to be tested is successful, wherein the detection device is used to fix the module to be tested and communicate with the module to be tested;

[0007] If yes, determine whether there is a test result file in the preset storage path;

[0008] If yes, open the test result file and receive the test instruction;

[0009] The module to be tested is tested by the detection device based on the test instruction to obtain a test result, and the test result is written into the test result file.

[0010] In a second aspect, the present application provides a terminal, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0011] Memory, used to store computer programs;

[0012] The processor is used to execute the program stored in the memory, and implements the following steps:

[0013] Establishing a communication connection with the module to be tested on the detection device through a pre-generated virtual serial port, and determining whether the connection with the module to be tested is successful, wherein the detection device is used to fix the module to be tested and communicate with the module to be tested;

[0014] If yes, determine whether there is a test result file in the preset storage path;

[0015] If yes, open the test result file and receive the test instruction;

[0016] The module to be tested is tested by the detection device based on the test instruction to obtain a test result, and the test result is written into the test result file.

[0017] In a third aspect, a module testing system is provided, the system comprising the terminal and the testing device according to the first aspect, the testing device comprising a base, a movable base, a handle, an elastic component, a power connector, an antenna connector and an ejector pin, the handle being connected to the movable base through the elastic component, the power connector being arranged on the top surface of the base, and the antenna connector and the ejector pin being arranged on the bottom surface of the movable base;

[0018] When the module to be tested is placed on the base, the power connector is connected to the reset pin in the module to be tested, and the handle is pulled down to use the elastic component to move the movable base toward the base, so that the ejector pin is connected to the module to be tested and the antenna connector is connected to the antenna interface of the module to be tested.

[0019] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:

[0020] The virtual serial port of the terminal establishes a communication connection with the module to be tested on the detection device. If the connection with the module to be tested is successful, it is determined whether there is a test result file in the preset storage path. If so, the test result file is opened and a test instruction is received. According to the test instruction, the module to be tested is tested by the detection device to obtain a test result, and the test result is written into the test result file. The test result of the module to be tested can be automatically saved without manually recording the test result. Since the detection device can fix the module to be tested and communicate with the module to be tested, there is no need to manually connect the module to be tested to the antenna adapter board, so that the test of batches of modules to be tested can be completed quickly, thereby improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0023] Figure 1 A flow chart of a test method embodiment of the module of this application;

[0024] Figure 2 This is a schematic diagram of the structure of the detection equipment in the test system of this application module;

[0025] Figure 3 A schematic diagram of a module of a preferred embodiment of a testing device for the module of the present application;

[0026] Figure 4 A schematic diagram of a preferred embodiment of the terminal of the present application;

[0027] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0029] It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0030] This application provides a module testing method. Figure 1 The figure is a method flow diagram of an embodiment of the method for testing a module of the present application. The method can be executed by a terminal, which can be implemented by an application and / or hardware, such as a local computer, which has a module testing program installed on it, and when the program is executed, the following method steps are implemented:

[0031] Step S10: establishing a communication connection with the module to be tested on the detection device through a pre-generated virtual serial port, and determining whether the connection with the module to be tested is successful, wherein the detection device is used to fix the module to be tested and communicate with the module to be tested;

[0032] Step S20: If yes, determine whether there is a test result file in the preset storage path;

[0033] Step S30: If yes, open the test result file and receive the test instruction;

[0034] Step S40: Based on the test instruction, the module to be tested is tested by the detection device to obtain a test result, and the test result is written into the test result file.

[0035] In this embodiment, the module to be tested may be a module for reading and writing data of a tag in a radio frequency identification (RFID), for example, a ThingMagic Micro module. This application describes the specific solution of this application with the module to be tested being a ThingMagic Micro module. It is understandable that in actual application scenarios, the module to be tested may also be other hardware modules.

[0036] The detection device is used to fix the module to be tested and communicate with the module to be tested. For example, a user (for example, a tester) can manually place the module to be tested in the detection device. A serial port adapter board is provided at the bottom of the detection device. Since the serial port of the module to be tested is a TTL serial port (Transistor-Transistor Logic, TTL) serial port, it can be converted into an RS232 serial port output through the adapter board. The detection device can also have a built-in RS232-to-serial port conversion line, one end of the conversion line is connected to the RS232 interface of the adapter board, and the other end of the conversion line is drawn out to connect the USB interface of the local computer. After completing the connection of the conversion line, the FDTI serial port driver is installed on the local computer. After the driver is installed, the FDTI serial port driver of the local computer can automatically detect the USB connection on the detection device and generate a virtual serial port (for example, COM interface) that can communicate with the detection device.

[0037] The user can select the generated virtual serial port and initiate a connection instruction, which can be issued by the user through a peripheral device of the local computer (for example, a mouse). For example, the user clicks the Connect button on the human-computer interaction interface in the local computer. After the local computer receives the connection instruction, it establishes a communication connection with the module to be tested on the detection device through the pre-generated virtual serial port, and determines whether the test program installed on the local computer is successfully connected to the module to be tested. If the connection is successful, it means that the local computer can complete data interaction with the module to be tested, that is, the local computer can test the module to be tested.

[0038] If it is determined that the test program installed on the local computer is successfully connected to the module to be tested, then determine whether there is a test result file in the preset storage path of the local computer. The test result file is used to store the test result information of the module to be tested. The test result file can be an Excel file. If it is determined that there is a test result file in the preset storage path of the local computer, then open the test result file and receive a test instruction. The test instruction can be issued by the user through the peripheral device of the local computer (for example, a mouse). For example, the user clicks the Test button on the human-computer interaction interface in the local computer, and the module to be tested is tested by the detection device according to the test instruction to obtain the test result, and the test result is written into the test result file. Specifically, based on the test instruction, the module to be tested is tested by the detection device to obtain the test result, including:

[0039] Writing test input data to a test tag pre-installed in the detection device through the antenna interface of the module to be tested, so that the detection device tests the module to be tested through the test data;

[0040] Determining whether the test tag successfully writes the test input data;

[0041] If so, reading the test output data from the test tag;

[0042] Determining whether the test output data is successfully read from the test tag;

[0043] If so, the test input data and the test output data are verified to obtain the test result.

[0044] After the module to be tested is placed on the testing device, the antenna interface of the module to be tested is connected to the antenna port of the testing device. The test program installed in the local computer reads and writes to the test tag on the testing device through the antenna interface of the module to be tested. The test tag can be an ultra-high frequency tag. If the module to be tested has two antenna interfaces, the test program first calls the first antenna interface of the module to be tested, and writes the test input data to the first test tag that is communicatively connected to the first antenna interface. Since the ISO18000-6C protocol stipulates that the data must be in hexadecimal, the test input data can be the hexadecimal data of "12345678". It is determined whether the test input data is successfully written to the first test tag. If the writing is successful, it is determined whether the test output data is successfully read from the first test tag. The test output data can be the product electronic code (Electronic Product Code, EPC) data, if the test output data is successfully read, the read EPC data is verified with the written data, and then the second antenna interface of the module to be tested is called to write the test input data to the second test tag which is communicatively connected to the second antenna interface. If the writing is successful, it is determined whether the test output data is successfully read from the second test tag. If the reading is successful, the read EPC data is verified with the written data, and the verification results of the two times are used as the test results of the module to be tested, and the test results are written into a test result file (for example, an Excel file).

[0045] The test input data and the test output data are verified to obtain the test result, including:

[0046] If the test input data and the test output data are successfully verified, a test success message is generated, and the current time point, the identifier of the module to be tested and the test success message are used as the test result;

[0047] If the test input data and the test output data fail to be verified, test failure information is generated, and the current time point, the identifier of the module to be tested and the test failure information are used as the test result.

[0048] When the test input data and test output data of all test tags are successfully verified, it means that the test of the module to be tested is successful, and the test success information is generated, and the current time point, the identification of the module to be tested and the test success information are used as the test result. When the test input data and test output data of any test tag fail to be verified, the test failure information is generated, and the current time point, the identification of the module to be tested and the test failure information are used as the test result of the module to be tested.

[0049] Wherein, judging whether the test tag has successfully written the test input data also includes:

[0050] If the test tag fails to write the test input data, test failure information is generated, and the current time point, the identifier of the module to be tested and the test failure information are used as the test result.

[0051] If any test tag fails to write the test input data, the test failure information is generated, and the current time point, the identification of the module to be tested and the test failure information are used as the test result of the module to be tested.

[0052] Wherein, the determining whether the test output data is successfully read from the test tag further includes:

[0053] If the test output data fails to be read from the test tag, test failure information is generated, and the current time point, the identifier of the module to be tested and the test failure information are used as the test result.

[0054] If the test output data fails to be read from any test tag, the test failure information is generated, and the current time point, the identification of the module to be tested and the test failure information are used as the test result of the module to be tested.

[0055] In one embodiment, determining whether the connection with the module to be tested is successful further includes:

[0056] If the connection with the module to be tested fails, a prompt message is fed back.

[0057] When the test program fails to connect to the module to be tested, a prompt message (eg, connection failure) is fed back and the prompt message is recorded.

[0058] In one embodiment, the determining whether there is a test result file in the preset storage path further includes:

[0059] If the test result file does not exist in the preset storage path, a new table file is created in the preset storage path as the test result file.

[0060] If the test result file does not exist in the preset storage path (for example, a folder in the local computer's D drive), a new Excel spreadsheet file is created in the storage path as the test result file. The header information of the Excel spreadsheet file includes: at least one of the test time of the module to be tested, the number of the module to be tested, and the detection status of the module to be tested, and may also include the reason for the test failure, etc.

[0061] Reference Figure 2The figure is a schematic diagram of the structure of the detection device in the test system of the module of the present application. The test system of the module includes the above-mentioned terminal and the detection device, and the detection device may include a first test tag 1, a second test tag 2, a grip 3, an elastic component 4, a first clamp 5, a second clamp 6, a second antenna 7, a first antenna 8, a base 9, and a movable base 10.

[0062] Among them, the first test tag 1 and the second test tag 2 are used to receive test input data and output test output data. The handle 3 is connected to the movable base 10 through the elastic component 4. The user can move the movable base 10 through the handle. The first clamp 5 is used to fix the first antenna 8, the second clamp 6 is used to fix the second antenna 7, the base 9 is used to carry the module to be tested, and the top surface of the base 9 is provided with a power connector, which is used to power the module to be tested. The bottom surface of the movable base 10 is provided with an antenna connector and a pin. When the module to be tested is placed on the base 9, the power connector is connected to the reset pin in the module to be tested. The user can manually pull down the handle 3 and use the elastic component 4 to move the movable base 10 toward the base 9, so that the pin on the bottom surface of the movable base 10 is connected to the module to be tested to fix the position of the module to be tested, and the antenna connector (for example, IPEX male connector) on the bottom surface of the movable base 10 is connected to the antenna interface (for example, IPEX female connector) of the module to be tested, so as to realize the communication between the detection equipment and the module to be tested and the preparation for powering on. Then test the module to be tested. The test process is as described above. Figure 1 Description of the flowchart of the embodiment of the module testing method. When the terminal completes the test of the module to be tested, the user only needs to lift the handle 3, take out the module that has completed the test and store it, and put the new module to be tested on the base 9, and then pull down the handle 3 to test the module to be tested. In this way, the cycle operation can be performed to quickly complete the test of batches of modules to be tested without manually connecting the module to be tested to the antenna adapter board, thereby reducing the risk of static electricity generated when connecting the module to be tested.

[0063] Reference Figure 3 , which is a schematic diagram of the functional modules of the testing device 100 of the module of the present application.

[0064] The test device 100 of the module of the present application can be installed in a terminal. According to the functions to be implemented, the test device 100 of the module may include a connection module 110, a judgment module 120, a receiving module 130 and a test module 140. The module described in the present application may also be referred to as a unit, which refers to a series of computer program segments that can be executed by a terminal processor and can complete fixed functions, which are stored in the memory of the terminal.

[0065] In this embodiment, the functions of each module / unit are as follows:

[0066] A connection module 110 is used to establish a communication connection with a module to be tested on a detection device through a pre-generated virtual serial port, and determine whether the connection with the module to be tested is successful, wherein the detection device is used to fix the module to be tested and communicate with the module to be tested;

[0067] A determination module 120, configured to determine whether there is a test result file in a preset storage path if it is determined that the connection with the module to be tested is successful;

[0068] The receiving module 130 is used to open the test result file and receive the test instruction if it is determined that there is a test result file in the preset storage path;

[0069] The testing module 140 is used to test the module to be tested by the detection device based on the test instruction to obtain a test result, and write the test result into the test result file.

[0070] In one embodiment, the determining whether the connection with the module to be tested is successful further includes:

[0071] If the connection with the module to be tested fails, a prompt message is fed back.

[0072] In one embodiment, the determining whether there is a test result file in the preset storage path further includes:

[0073] If the test result file does not exist in the preset storage path, a new table file is created in the preset storage path as the test result file.

[0074] In one embodiment, the header information of the table file includes at least one of: the test time of the module to be tested, the serial number of the module to be tested, and the detection status of the module to be tested.

[0075] In one embodiment, the step of testing the module to be tested by the detection device based on the test instruction to obtain a test result includes:

[0076] Writing test input data to a test tag pre-installed in the detection device through the antenna interface of the module to be tested, so that the detection device tests the module to be tested through the test data;

[0077] Determining whether the test tag successfully writes the test input data;

[0078] If so, reading the test output data from the test tag;

[0079] Determining whether the test output data is successfully read from the test tag;

[0080] If so, the test input data and the test output data are verified to obtain the test result.

[0081] In one embodiment, verifying the test input data and the test output data to obtain the test result includes:

[0082] If the test input data and the test output data are successfully verified, a test success message is generated, and the current time point, the identifier of the module to be tested and the test success message are used as the test result;

[0083] If the test input data and the test output data fail to be verified, test failure information is generated, and the current time point, the identifier of the module to be tested and the test failure information are used as the test result.

[0084] In one embodiment, the step of determining whether the test tag successfully writes the test input data further includes:

[0085] If the test tag fails to write the test input data, test failure information is generated, and the current time point, the identifier of the module to be tested and the test failure information are used as the test result.

[0086] In one embodiment, the determining whether the test output data is successfully read from the test tag further includes:

[0087] If the test output data fails to be read from the test tag, test failure information is generated, and the current time point, the identifier of the module to be tested and the test failure information are used as the test result.

[0088] Reference Figure 4 , which is a schematic diagram of a preferred embodiment of the terminal 20 of the present application.

[0089] The terminal 20 includes, but is not limited to, a memory 21, a processor 22, a display 23, and a communication interface 24. The terminal 20 can be connected to a network through the communication interface 24. The network can be a wireless or wired network such as an intranet, the Internet, a global system of mobile communication (GSM), a wideband code division multiple access (WCDMA), a 4G network, a 5G network, Bluetooth, Wi-Fi, a call network, etc.

[0090] Among them, the memory 21 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 21 can be an internal storage unit of the terminal 20, such as a hard disk or memory of the terminal 20. In other embodiments, the memory 21 can also be an external storage device of the terminal 20, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped with the terminal 20. Of course, the memory 21 can also include both the internal storage unit of the terminal 20 and its external storage device. In this embodiment, the memory 21 is generally used to store the operating system and various computer programs installed in the terminal 20, such as the program code of the module test program 30, etc. In addition, the memory 21 can also be used to temporarily store various types of data that have been output or are to be output.

[0091] The processor 22 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 22 is generally used to control the overall operation of the terminal 20, such as performing control and processing related to data interaction or communication. In this embodiment, the processor 22 is used to run the program code stored in the memory 21 or process data, such as the program code of the test program 30 of the running module.

[0092] The display 23 may be referred to as a display screen or a display unit. In some embodiments, the display 23 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an organic light-emitting diode (OLED) touch device. The display 23 is used to display information processed in the terminal 20 and to display a visual work interface.

[0093] The communication interface 24 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and the communication interface 24 is generally used to establish a communication connection between the terminal 20 and other terminals.

[0094] Figure 4The terminal 20 is shown with only components 11 - 14 and a modular test program 30 , but it should be understood that implementation of all of the components shown is not a requirement and more or fewer components may alternatively be implemented.

[0095] In the above embodiment, the processor 22 may implement the following steps when executing the test program 30 of the module stored in the memory 21:

[0096] Establishing a communication connection with the module to be tested on the detection device through a pre-generated virtual serial port, and determining whether the connection with the module to be tested is successful, wherein the detection device is used to fix the module to be tested and communicate with the module to be tested;

[0097] If yes, determine whether there is a test result file in the preset storage path;

[0098] If yes, open the test result file and receive the test instruction;

[0099] The module to be tested is tested by the detection device based on the test instruction to obtain a test result, and the test result is written into the test result file.

[0100] The storage device may be the memory 21 of the terminal 20 , or may be another storage device that is communicatively connected to the terminal 20 .

[0101] For a detailed description of the above steps, please refer to the above Figure 1 An illustration of a flow chart of an embodiment of a method for testing a module.

[0102] In addition, the embodiment of the present application also proposes a computer-readable storage medium, which can be non-volatile or volatile. The computer-readable storage medium can be any one or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, etc. The computer-readable storage medium includes a data storage area and a program storage area, and the program storage area stores a test program 30 of a module. When the test program 30 of the module is executed by the processor, the following operations are implemented:

[0103] Establishing a communication connection with the module to be tested on the detection device through a pre-generated virtual serial port, and determining whether the connection with the module to be tested is successful, wherein the detection device is used to fix the module to be tested and communicate with the module to be tested;

[0104] If yes, determine whether there is a test result file in the preset storage path;

[0105] If yes, open the test result file and receive the test instruction;

[0106] The module to be tested is tested by the detection device based on the test instruction to obtain a test result, and the test result is written into the test result file.

[0107] The specific implementation of the computer-readable storage medium of the present application is substantially the same as the specific implementation of the testing method of the above-mentioned module, and will not be described in detail here.

[0108] It should be noted that the serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof herein are intended to cover non-exclusive inclusion, so that the process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, device, article or method including the element.

[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware simulation platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, an electronic device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0110] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A module testing method, characterized in that: The method is applied to a terminal, and the method includes: Establishing a communication connection with the module to be tested on the detection device through a pre-generated virtual serial port, and determining whether the connection with the module to be tested is successful, wherein the detection device is used to fix the module to be tested and communicate with the module to be tested; If yes, determine whether there is a test result file in the preset storage path; If yes, open the test result file and receive the test instruction; Based on the test instruction, the module to be tested is tested by the detection device to obtain a test result, and the test result is written into the test result file; Wherein, the step of testing the module to be tested by the detection device based on the test instruction to obtain a test result includes: Writing test input data to a test tag pre-installed in the detection device through the antenna interface of the module to be tested, so that the detection device tests the module to be tested through the test data; Determining whether the test tag successfully writes the test input data; If so, reading the test output data from the test tag; Determining whether the test output data is successfully read from the test tag; If so, the test input data and the test output data are verified to obtain the test result.

2. The module testing method according to claim 1, characterized in that: The determining whether the connection with the module to be tested is successful includes: If the connection with the module to be tested fails, a prompt message is fed back.

3. The module testing method according to claim 1, characterized in that: The determining whether there is a test result file in the preset storage path includes: If the test result file does not exist in the preset storage path, a new table file is created in the preset storage path as the test result file.

4. The module testing method according to claim 3, characterized in that: The header information of the table file includes at least one of the test time of the module to be tested, the serial number of the module to be tested, and the detection status of the module to be tested.

5. The module testing method according to claim 1, characterized in that: The verifying the test input data and the test output data to obtain the test result includes: If the test input data and the test output data are successfully verified, information about the test success is generated, and the current time point, the identifier of the module to be tested and the information about the test success are used as the test result; If the test input data and the test output data fail to be verified, test failure information is generated, and the current time point, the identifier of the module to be tested and the test failure information are used as the test result.

6. The module testing method according to claim 1, characterized in that: The step of determining whether the test tag successfully writes the test input data comprises: If the test tag fails to write the test input data, test failure information is generated, and the current time point, the identifier of the module to be tested and the test failure information are used as the test result.

7. The module testing method according to claim 1, characterized in that: The determining whether the test output data is successfully read from the test tag comprises: If the test output data fails to be read from the test tag, test failure information is generated, and the current time point, the identifier of the module to be tested and the test failure information are used as the test result.

8. A terminal, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the module testing method according to any one of claims 1 to 7 when executing a program stored in a memory.

9. A module testing system, characterized in that: The system comprises the terminal and the detection device according to claim 8, wherein the detection device comprises a base, an active base, a grip, an elastic component, a power connector, an antenna connector and an ejector pin, wherein the grip is connected to the active base through the elastic component, the power connector is arranged on the top surface of the base, and the antenna connector and the ejector pin are arranged on the bottom surface of the active base; When the module to be tested is placed on the base, the power connector is connected to the reset pin in the module to be tested, and the handle is pulled down to use the elastic component to move the movable base toward the base, so that the ejector pin is connected to the module to be tested and the antenna connector is connected to the antenna interface of the module to be tested.

Citation Information

Patent Citations

  • User tag testing method and device, computer device and storage medium

    CN109446065A

  • Communication equipment automatic test system and test method thereof

    CN112491653A

  • RFID reader-writer test method and RFID reader-writer test system

    CN114611534A

  • Application program testing method and device, computer equipment and storage medium

    CN114896160A

  • Product automatic test method, device and equipment and computer readable storage medium

    CN115426286A