Anti-interference test method, device, main control equipment and storage medium

By sending test equipment codes to the equipment under test and generating mapping relationships, the signal interference problem of infrared testing equipment during testing in a small range is solved, and the efficiency of independent testing of multiple equipment is achieved.

CN115622924BActive Publication Date: 2025-04-08HUNAN GOKE MICROELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211224760.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-09
Publication Date
2025-04-08
Estimated Expiration
2042-10-09

AI Technical Summary

Technical Problem

When using infrared testing equipment for testing, when multiple devices conduct differentiated testing within a small range, interference is prone to interfering between remote control signals, resulting in failure to send test instructions and affecting the accuracy of the test task.

Method used

By sending the test equipment code to the device under test and receiving the device code update result, a mapping relationship between the device under test and its test equipment code is generated, ensuring that the test equipment code of each device under test is different, so that the test equipment under test is not disturbed during testing.

Benefits of technology

The device under test within a range is not disturbed during testing, allowing a master device to send completely different test scripts to multiple devices, and each device conducts independent and different tests, thereby improving the efficiency of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115622924B_ABST
    Figure CN115622924B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide an anti-interference test method, device, master control device and storage medium, which belong to the field of test technology. The method includes: sending a test device code to the device under test; receiving a device code update result sent by the device under test, the device code update result is a successful update result of the device under test updating the device code to the test device code; obtaining a test program for the device under test, obtaining a target test instruction for the device under test according to the test program, the target test instruction including the test device code; sending a target test instruction to the device under test. In this way, the master control device and the device under test negotiate to modify the test device code of the device under test, ensuring that the test device codes of the devices under test within a range are different, thereby achieving that the device under test is not interfered with during the test, and achieving that a master control device can send completely different test scripts to multiple devices, and each test device performs independent and different tests, thereby improving the efficiency of the test.
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 an anti-interference testing method, device, main control equipment and storage medium. Background Art

[0002] When using infrared test equipment for testing, if all test equipment uses the same remote control, when a large number of identical test equipment are tested in a small space, there will be interference between the remote control signals, resulting in the inability to carry out the test task. The existing ordinary test system can only execute one test script at a time. When multiple test scripts need to be executed at one time, multiple test systems are required to complete it. In addition, when multiple systems send infrared remote control commands at the same time, there will be infrared signal interference, resulting in the failure of test command transmission, affecting the accuracy of test task execution. Summary of the invention

[0003] In order to solve the above technical problems, the embodiments of the present application provide an anti-interference test method, apparatus, main control device and storage medium.

[0004] In a first aspect, an embodiment of the present application provides an anti-interference test method, which is applied to a master control device, wherein the master control device is communicatively connected with a device under test, and the method includes:

[0005] Sending a test device code to the device under test;

[0006] receiving a device code update result sent by the device under test, wherein the device code update result is a successful update result of the device under test updating the device code to the test device code;

[0007] Acquire a test program of the device under test, and acquire a target test instruction of the device under test according to the test program, wherein the target test instruction includes the test device code;

[0008] Send the target test instruction to the device under test.

[0009] In one implementation, after receiving the device code update result sent by the device under test, the method further includes:

[0010] A mapping relationship between the device under test and its test device code is generated according to the device code update result.

[0011] In one implementation, the acquiring a target test instruction of the device under test according to the test program includes:

[0012] An initial test instruction of the test program is obtained, and an initial device code of the initial test instruction is updated to a test device code of the device under test, so as to obtain a target test instruction of the device under test.

[0013] In one implementation, there are multiple devices under test, and the method further includes:

[0014] A plurality of non-repeating random numbers are randomly generated, and each of the non-repeating random numbers is used as a test device code corresponding to the device under test.

[0015] In one embodiment, the main control device is connected to an infrared remote control device for communication, the infrared remote control device is connected to the device under test for communication, and the sending of the target test instruction to the device under test includes:

[0016] The target test instruction is sent to the infrared remote control device, so that the infrared remote control device sends the target test instruction to the device under test.

[0017] In one embodiment, before sending the test device code to the device under test, the method further includes:

[0018] The initial test instruction is configured, wherein the initial test instruction includes an operation code and the initial device code, and the operation code of the initial test instruction is used to control the device under test to perform a corresponding infrared control operation.

[0019] In one embodiment, the method further comprises:

[0020] After the device under test executes the target test instruction, a recovery instruction is sent to the device under test, so that the device code of the device under test is restored from the test device code to the initial device code.

[0021] In a second aspect, an embodiment of the present application provides an anti-interference test device, which is applied to a main control device, wherein the main control device is communicatively connected with a device under test, and the device comprises:

[0022] A first sending module, used for sending a test device code to the device under test;

[0023] A receiving module, used for receiving a device code update result sent by the device under test, wherein the device code update result is a successful update result of the device under test updating the device code to the test device code;

[0024] An acquisition module, used for acquiring a test program of the device under test, and acquiring a target test instruction of the device under test according to the test program, wherein the target test instruction includes the test device code;

[0025] The second sending module is used to send the target test instruction to the device under test.

[0026] In a third aspect, an embodiment of the present application provides a main control device, including a memory and a processor, wherein the memory is used to store a computer program, and when the processor is running, the computer program executes the anti-interference test method provided in the first aspect.

[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which executes the anti-interference test method provided in the first aspect when running on a processor.

[0028] The anti-interference test method, device, master control device and storage medium provided by the present application send a test device code to the device under test; receive a device code update result sent by the device under test, wherein the device code update result is a successful update result of the device under test updating the device code to the test device code; obtain a test program for the device under test, and obtain a target test instruction for the device under test according to the test program, wherein the target test instruction includes the test device code; and send the target test instruction to the device under test. In this way, the master control device and the device under test negotiate to modify the test device code of the device under test, ensuring that the test device codes of the devices under test within a range are different, thereby achieving that the device under test is not interfered with during testing, and that a master control device can send completely different test scripts to multiple devices, and each test device performs independent and different tests, thereby improving the efficiency of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of protection of the present application. In each of the drawings, similar components are numbered similarly.

[0030] Figure 1 A schematic diagram of an application environment of the anti-interference testing method provided in an embodiment of the present application is shown;

[0031] Figure 2 A schematic diagram of a process of an anti-interference test method provided in an embodiment of the present application is shown;

[0032] Figure 3 Another application environment schematic diagram of the anti-interference test method provided in an embodiment of the present application is shown;

[0033] Figure 4 A schematic structural diagram of an anti-interference testing device provided in an embodiment of the present application is shown.

[0034] Icons: 101-main control device, 102-tested device, 103-first tested device, 104-second tested device, 105-third tested device, 106-infrared remote control device;

[0035] 400 - anti-interference testing device, 401 - first sending module, 402 - receiving module, 403 - acquisition module, 404 - second sending module. DETAILED DESCRIPTION

[0036] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0037] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0038] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present application, are intended only to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations of the foregoing items.

[0039] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

[0040] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0041] Example 1

[0042] The present application embodiment provides an anti-interference test method, which can be applied to a master control device that is in communication with a device under test. Figure 1, the master device 101 is connected to the device under test 102 for communication, and the method can be applied to Figure 1 The main control device 101 shown. Figure 2 The anti-interference testing method provided in this embodiment is described.

[0043] See also Figure 2 The anti-interference test method includes steps S201 to S204:

[0044] Step S201: Send a test device code to the device under test.

[0045] Step S202: receiving a device code update result sent by the device under test, wherein the device code update result is a successful update result of the device under test updating the device code to the test device code.

[0046] See also Figure 1 After the master device 101 and the device under test 102 are connected in communication, the master device 101 obtains the test device code and sends the test device code to the device under test 102. The master device 101 sends the test device code to the device under test 102 through the negotiation interface. The device under test 102 updates the preset initial device code to the test device code and feeds back the device code update result to the master device 101 to prepare for the subsequent test process.

[0047] It should be noted that the negotiation interface may be a communication interface, which allows the test device to receive the test device code sent by the master device, and may use the new test device code to parse the operation instruction in subsequent work.

[0048] After the master device 101 parses the device code update result to find that the device under test 102 has successfully updated the test device code, a mapping relationship between the test device code and the device under test 102 may be established.

[0049] It should be noted that there may be multiple devices under test, each device under test corresponds to a test device code, and each test device code is unique and non-repetitive.

[0050] In one implementation, the test device code may be a random number randomly generated by the master device 101, and there are multiple devices under test. The method further includes:

[0051] A plurality of non-repeating random numbers are randomly generated, and each of the non-repeating random numbers is used as a test device code corresponding to the device under test.

[0052] Exemplarily, if there are three devices under test, namely a first device under test, a second device under test, and a third device under test, three non-repeating random numbers are randomly generated and used as test device codes of the three devices under test, respectively.

[0053] In one embodiment, after step S202, the method further includes:

[0054] A mapping relationship between the device under test and its test device code is generated according to the device code update result.

[0055] It should be noted that when there are multiple devices under test, establishing a mapping relationship between each device under test and its test device code can facilitate the search for the correspondence between each device under test and the test device code, thereby determining the unique correspondence between each device under test and the test device code, thereby improving the test anti-interference capability.

[0056] In one implementation, there are multiple devices under test, and sending a test device code to the device under test includes:

[0057] Sending a corresponding test device code to each of the devices under test;

[0058] The receiving the device code update result sent by the device under test includes:

[0059] Receiving a device code update result sent by each of the tested devices;

[0060] The generating, according to the device code update result, a mapping relationship between the device under test and its test device code includes:

[0061] A mapping relationship between each device under test and its test device code is generated according to each device code update result.

[0062] In this embodiment, after each of the tested devices updates its device code to the test device code, it generates a device code update result indicating that its own device code has been successfully updated to the test device code, and sends the device code update result to the master control device.

[0063] For example, see Figure 3 , the number of the devices under test is 3, and the 3 devices under test are specifically: a first device under test 103, a second device under test 104 and a third device under test 105, which are respectively connected to the main control device 101 for communication. It should be noted that there can be N devices under test, and N can be greater than or equal to 2, and there is no limitation here.

[0064] exist Figure 3 In the example, the master device 101 sends a test device code A1, a test device code A2 and a test device code A3 to the first device under test 103, the second device under test 104 and the third device under test 105 respectively. The test device codes A1, A2 and A3 are different unique device codes.

[0065] Correspondingly, the first device under test 103 receives the test device code A1, and feeds back to the main control device 101 a device code update result of setting its own device code to the test device code A1. The second device under test 104 receives the test device code A2, and feeds back to the main control device 101 a device code update result of setting its own device code to the test device code A2. The third device under test 105 receives the test device code A3, and feeds back to the main control device 101 a device code update result of setting its own device code to the test device code A3. The main control device 101 receives the device code update results sent by the first device under test 103, the second device under test 104, and the third device under test 105, and generates a mapping relationship between the first device under test 103 and the test device code A1, a mapping relationship between the second device under test 104 and the test device code A2, and a mapping relationship between the third device under test 105 and the test device code A3 according to the received three device code update results.

[0066] Step S203, obtaining a test program for the device under test, and obtaining a target test instruction for the device under test according to the test program, wherein the target test instruction includes the test device code.

[0067] In this embodiment, the target test instruction includes a test device code and an operation code, which can be written in the format of [A1][XX], where A1 represents the test device code and XX represents the operation code. Specifically, the operation code is a specific operation instruction code corresponding to the test instruction, such as a click test device operation instruction.

[0068] In one implementation, step S203 may include:

[0069] An initial test instruction of the test program is obtained, and an initial device code of the initial test instruction is updated to a test device code of the device under test, so as to obtain a target test instruction of the device under test.

[0070] See also Figure 1 When the master device 101 executes the test program X of the device under test 102, the initial test instruction of the test program X is [initial device code] [operation code] = [AA] [XX]. The initial device code AA is updated to the test device code A1 through negotiation, and the target test instruction is [A1] [XX]. It should be noted that the test program X can be obtained by the user according to the test requirements.

[0071] In one implementation, there are multiple devices under test, and step S203 may include:

[0072] Obtain the test procedures for each device under test;

[0073] Obtaining initial test instructions in each test program;

[0074] The initial device code of each of the initial test instructions is updated to a test device code corresponding to the device under test, so as to obtain a target test instruction for each device under test.

[0075] Step S204: Send the target test instruction to the device under test.

[0076] See also Figure 1 , the main control device 101 sends a target test instruction [A0][XX] to the device under test 102 to control the device under test 102 to receive the target test instruction according to the test device code [A0], and execute the corresponding test operation according to the operation code to complete the corresponding test process.

[0077] In a specific application scenario, there are multiple devices under test, such as Figure 3 In the present invention, the first device under test 103, the second device under test 104 and the third device under test 105 are the same type of devices under test, and the initial test instructions in the test program are all [device code][operation code]=[AA][XX]. When the first device under test 103 is configured with the test device code A1, the second device under test 104 is configured with the test device code A2, and the third device under test 105 is configured with the test device code A3, the main control device updates the initial device code [AA] of the initial test instruction [AA][XX] in the test program to [A1], [A2][A3], respectively, and obtains three target test instructions [A1][XX], [A2][XX], [A3][XX] correspondingly.

[0078] When the master device 101 sends a target test instruction [A1][XX], only the first device under test 103 receives the target test instruction according to its own test device code A1 and performs a corresponding test operation. When the master device 101 sends a target test instruction [A2][XX], only the second device under test 104 receives the target test instruction according to its own test device code A2 and performs a corresponding test operation. When the master device 101 sends a target test instruction [A3][XX], only the third device under test 105 receives the target test instruction according to its own test device code A3 and performs a corresponding test operation, thereby realizing independent testing of the same type of devices under test and improving the anti-interference capability during the test process.

[0079] The same type or different types of tested devices can be configured with different types of test programs, and different types of test programs include different test operation codes. The main control device 101 does not need to distinguish the types of tested devices. By configuring corresponding test programs, different types of tests can be performed on all tested devices, thereby improving test efficiency.

[0080] For example, when the first device under test 103, the second device under test 104 and the third device under test 105 are devices of different types, a first test program for the first device under test 103, a second test program for the second device under test 104 and a third test program for the third device under test 105 are obtained respectively, wherein the first test program, the second test program and the third test program are test programs of different types. After parsing, the initial test instructions [AA][XX] in the first test program, the initial test instructions [BB][YY] in the second test program, and the initial test instructions [CC][ZZ] in the third test program are obtained. If the test device code corresponding to the first device under test 103 is found to be A1, the test device code corresponding to the second device under test 104 is B1, and the test device code corresponding to the third device under test 105 is C1 in the mapping relationship, then the initial device code [AA] of the initial test instruction [AA][XX] in the test program is updated to [A1], the initial device code [BB] of the initial test instruction [BB][YY] in the test program is updated to [B1], and the initial device code [CC] of the initial test instruction [CC][ZZ] in the test program is updated to [C1], and three target test instructions [A1][XX], [B1][YY], and [C1][ZZ] are obtained accordingly.

[0081] When the main control device 101 sends a target test instruction [A1][XX], only the first device under test 103 receives the target test instruction according to its own test device code A1 and performs a corresponding test operation. When the main control device 101 sends a target test instruction [B1][YY], only the second device under test 104 receives the target test instruction according to its own test device code B1 and performs a corresponding test operation. When the main control device 101 sends a target test instruction [C1][ZZ], only the third device under test 105 receives the target test instruction according to its own test device code C1 and performs a corresponding test operation, thereby realizing independent testing of different types of devices under test and improving the anti-interference capability during the test process.

[0082] In one embodiment, the main control device is connected to an infrared remote control device for communication, the infrared remote control device is connected to the device under test for communication, and the sending of the target test instruction to each of the devices under test includes:

[0083] The target test instruction is sent to the infrared remote control device, so that the infrared remote control device sends the target test instruction to each of the devices under test.

[0084] In this embodiment, when there are multiple devices under test, the main control device sends target test instructions corresponding to each device under test to the infrared remote control device in sequence, so that the infrared remote control device sends corresponding target test instructions to each device under test in sequence.

[0085] Please refer again Figure 3 The main control device 101 is also connected to the infrared remote control device 106. The infrared remote control device 106 can establish communication connections with the first device under test 103, the second device under test 104 and the third device under test 105 through infrared rays.

[0086] exist Figure 3 In the example, the main control device 101 sends the corresponding target test instructions to the infrared remote control device 106 in sequence. Exemplarily, if the first device under test 103, the second device under test 104 and the third device under test 105 are the same type of test devices, the corresponding test programs are the same, and the operation codes of the target test instructions sent to the first device under test 103, the second device under test 104 and the third device under test 105 are the same, and only the test device codes are different. For example, the target test instructions sent by the infrared remote control device 106 to the first device under test 103, the second device under test 104 and the third device under test 105 in sequence are [A1] [XX], [A2] [XX], [A3] [XX] respectively.

[0087] If the first device under test 103, the second device under test 104 and the third device under test 105 are different types of test devices, the corresponding test programs are different, the operation codes of the target test instructions sent to the first device under test 103, the second device under test 104 and the third device under test 105 are different, and the test device codes are also different. For example, the target test instructions sent by the infrared remote control device 106 to the first device under test 103, the second device under test 104 and the third device under test 105 are [A1][XX], [B1][YY], [C1][ZZ] respectively.

[0088] In this way, when it is necessary to execute different test procedures on multiple different types of devices under test, the infrared remote control device sends corresponding target test instructions to each different type of device under test in turn, so that one infrared remote control device can control multiple devices under test, and each device under test will not be interfered with during the test. It is achieved that one master control device can send completely different target test instructions to multiple devices under test, and each device performs independent and different infrared remote control tests, thereby improving the efficiency of infrared remote control testing.

[0089] In one embodiment, before step S201, the method further includes:

[0090] The initial test instruction is configured, wherein the initial test instruction includes an operation code and the initial device code, and the operation code of the initial test instruction is used to control the device under test to perform a corresponding infrared control operation.

[0091] Please refer again Figure 3The master device 101 configures the initial test instruction of the first device under test 103 as [AA][XX], the initial test instruction of the second device under test 104 as [BB][YY], and the initial test instruction of the third device under test 105 as [CC][ZZ].

[0092] In one embodiment, after sending the target test instruction to the device under test, the method further includes:

[0093] A feedback instruction sent by the device under test is received, and when the feedback instruction indicates that the device under test has not received the target test instruction, the target test instruction is repeatedly sent to the device under test.

[0094] Please see again Figure 1 , when the master device 101 sends the target test instruction, each time the target test instruction is sent, the device under test 102 feeds back to the master device 101 through the negotiation interface whether the target test instruction is received. If not, the master device 101 sends it again to ensure whether the target test instruction can be received normally. If the target test instruction is received, the device under test executes the target test instruction to complete the corresponding test process. Among them, the negotiation interface can be a serial port or a network port, which is not limited here.

[0095] In one embodiment, the method further comprises:

[0096] After the device under test executes the target test instruction, a recovery instruction is sent to the device under test, so that the device code of the device under test is restored from the test device code to the initial device code.

[0097] In this embodiment, the device under test can also determine whether the device code has been restored from the test device code to the initial device code. If the restoration fails, the device code itself is restored to the initial device code again. If the restoration is successful, the test process of the device under test is terminated.

[0098] After the test is completed, the main control device 101 restores the initial device code of the device under test 102 to ensure that the device under test can be normally infrared controlled by the infrared remote control device in normal application scenarios. The infrared remote control device can be an infrared remote controller, which is not limited here.

[0099] The anti-interference test method provided in this embodiment includes sending a test device code to the device under test; receiving a device code update result sent by the device under test, wherein the device code update result is a successful update result of the device under test updating the device code to the test device code; obtaining a test program for the device under test, and obtaining a target test instruction for the device under test according to the test program, wherein the target test instruction includes the test device code; and sending the target test instruction to the device under test. In this way, the master control device and the device under test negotiate to modify the test device code of the device under test, ensuring that the test device codes of the devices under test within a range are different, thereby achieving that the device under test is not interfered with during testing, and that one master control device can send completely different target test instructions to multiple devices, and each test device performs independent and different tests, thereby improving the efficiency of the test.

[0100] Example 2

[0101] In addition, an embodiment of the present application provides an anti-interference testing device, which is applied to a main control device, and the main control device is communicatively connected with a device under test.

[0102] See also Figure 4 , the anti-interference test device 400 includes:

[0103] A first sending module 401 is used to send a test device code to the device under test;

[0104] The receiving module 402 is used to receive a device code update result sent by the device under test, where the device code update result is a successful update result of the device under test updating the device code to the test device code;

[0105] An acquisition module 403 is used to acquire a test program of the device under test, and acquire a target test instruction of the device under test according to the test program, wherein the target test instruction includes the test device code;

[0106] The second sending module 404 is used to send the target test instruction to the device under test.

[0107] In one embodiment, the anti-interference testing device 400 further includes:

[0108] A generating module is used to generate a mapping relationship between the device under test and its test device code according to the device code update result.

[0109] In one embodiment, there are multiple devices under test, and the acquisition module 403 is further used to obtain the initial test instructions of the test program, update the initial device code of the initial test instructions to the test device code of the device under test, and obtain the target test instructions of the device under test.

[0110] In one implementation, there are multiple devices under test, and the first sending module 401 is further configured to randomly generate multiple non-repetitive random numbers, and use each of the non-repetitive random numbers as a test device code corresponding to the device under test.

[0111] In one embodiment, there are multiple devices under test, the main control device is in communication connection with an infrared remote control device, the infrared remote control device is in communication connection with the device under test, and sending the target test instruction to the device under test includes:

[0112] The target test instruction is sent to the infrared remote control device, so that the infrared remote control device sends the target test instruction to the device under test.

[0113] In one embodiment, the anti-interference testing device 400 further includes:

[0114] The configuration module is used to configure the initial test instruction, wherein the initial test instruction includes an operation code and the initial device code, and the operation code of the initial test instruction is used to control the device under test to perform a corresponding infrared control operation.

[0115] In one embodiment, the anti-interference testing device 400 includes:

[0116] The recovery module is used to send a recovery instruction to the device under test after the device under test executes the target test instruction, so that the device code of the device under test is restored from the test device code to the initial device code.

[0117] The anti-interference testing device 400 provided in this embodiment can implement the anti-interference testing method provided in Embodiment 1, and will not be described again here to avoid repetition.

[0118] The anti-interference test device provided in this embodiment sends a test device code to the device under test; receives a device code update result sent by the device under test, wherein the device code update result is a successful update result of the device under test updating the device code to the test device code; obtains a test program for the device under test, and obtains a target test instruction for the device under test according to the test program, wherein the target test instruction includes the test device code; and sends the target test instruction to the device under test. In this way, the master control device and the device under test negotiate to modify the test device code of the device under test, ensuring that the test device codes of the devices under test within a range are different, thereby achieving that the device under test is not interfered with during testing, and that a master control device can send completely different test scripts to multiple devices, and each test device performs independent and different tests, thereby improving the efficiency of the test.

[0119] Example 3

[0120] In addition, an embodiment of the present application provides a main control device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, the anti-interference test method provided in Example 1 is executed.

[0121] The main control device provided in this embodiment can implement the anti-interference test method provided in Example 1, and will not be described again here to avoid repetition.

[0122] Example 4

[0123] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the anti-interference test method provided in Example 1 is implemented.

[0124] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0125] The computer-readable storage medium provided in this embodiment can implement the anti-interference test method provided in Example 1, and will not be described again here to avoid repetition.

[0126] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.

[0127] 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 platform, and of course 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, 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, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0128] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. An anti-interference test method, characterized in that: In the infrared test process applied to a master control device, the master control device is connected to a device under test in communication, there are multiple devices under test, each device under test corresponds to a test device code, and each test device code is unique. The method includes: Sending a test device code to the device under test; receiving a device code update result sent by the device under test, wherein the device code update result is a successful update result of the device under test updating the device code to the test device code; Acquire a test program of the device under test, and acquire a target test instruction of the device under test according to the test program, wherein the target test instruction includes the test device code; Send the target test instruction to the device under test.

2. The method according to claim 1, characterized in that After receiving the device code update result sent by the device under test, the method further includes: A mapping relationship between the device under test and its test device code is generated according to the device code update result.

3. The method according to claim 1, characterized in that The step of obtaining a target test instruction of the device under test according to the test program includes: An initial test instruction of the test program is obtained, and an initial device code of the initial test instruction is updated to a test device code of the device under test, so as to obtain a target test instruction of the device under test.

4. The method according to claim 1, characterized in that The number of the devices under test is multiple, and the method further includes: A plurality of non-repeating random numbers are randomly generated, and each of the non-repeating random numbers is used as a test device code corresponding to the device under test.

5. The method according to claim 1, characterized in that The main control device is connected to the infrared remote control device for communication, the infrared remote control device is connected to the device under test for communication, and the sending of the target test instruction to the device under test includes: The target test instruction is sent to the infrared remote control device, so that the infrared remote control device sends the target test instruction to the device under test.

6. The method according to claim 3, characterized in that Before sending the test device code to the device under test, the method further includes: The initial test instruction is configured, wherein the initial test instruction includes an operation code and the initial device code, and the operation code is used to control the device under test to perform a corresponding infrared control operation.

7. The method according to claim 1, characterized in that The method further comprises: After the device under test executes the target test instruction, a recovery instruction is sent to the device under test, so that the device code of the device under test is restored from the test device code to the initial device code.

8. An anti-interference test device, characterized in that: The infrared test process applied to the main control device, the main control device is connected to the device under test in communication, the number of the devices under test is multiple, each of the devices under test corresponds to a test device code, each of the test device codes is unique, and the device comprises: A first sending module, used for sending a test device code to the device under test; A receiving module, configured to receive a device code update result sent by the device under test, wherein the device code update result is a successful update result of the device under test updating the device code to the test device code; An acquisition module, used for acquiring a test program of the device under test, and acquiring a target test instruction of the device under test according to the test program, wherein the target test instruction includes the test device code; The second sending module is used to send the target test instruction to the device under test.

9. A master control device, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is run by the processor, the anti-interference test method according to any one of claims 1 to 7 is executed.

10. A computer-readable storage medium, characterized in that: The device stores a computer program, which executes the anti-interference test method according to any one of claims 1 to 7 when running on a processor.

Citation Information

Patent Citations

  • Automatic test system of electronic device

    CN101634681A

  • Software automation test method and system

    CN104978258A