Parallel test method and related device
By connecting the test equipment to the port of the cable splitter, parallel testing of multiple ammunition devices is realized, solving the problem of inefficient testing in the prior art, improving the testing efficiency and saving equipment power consumption.
Patent Information
- Application Number
- CN202510484266.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-17
- Publication Date
- 2025-08-01
AI Technical Summary
In the prior art, testing equipment can only be connected to one ammunition device at a time for testing, resulting in inefficient testing.
The port of the test equipment is connected to the cable splitter, parallel testing of multiple devices to be tested is realized, signal switching and response signal processing are used to determine whether the test result is abnormal, and the port is switched cyclically until all devices are tested.
The simultaneous testing of multiple devices to be tested is realized, which improves the testing efficiency, reduces the number of connections, and saves test time and equipment power consumption.
Smart Images

Figure CN120403364A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of testing technologies, and in particular, to a parallel testing method and related devices. Background Art
[0002] After ammunition devices and the like are produced and delivered to the user, the user usually tests them before use, and uses the obtained health information data (also called test results) to determine whether the ammunition device meets the use requirements; the user will also regularly test the stored ammunition devices, and use the obtained health information data to judge their health conditions, so as to repair or scrap them.
[0003] In the related art, when a testing device tests an ammunition device, usually only one ammunition device can be connected at a time. After the testing of this ammunition device is completed, another ammunition device can be connected to continue the testing, and the testing efficiency is low. Summary of the Invention
[0004] In view of this, the embodiments of this application provide a parallel testing method and related devices, aiming to improve the testing efficiency of testing devices to be tested.
[0005] In a first aspect, the embodiments of this application provide a parallel testing method, and the method includes:
[0006] Switch the communication signal to the target port connected to the target device to be tested through the port of the testing device; the target port is the Mth of the multiple second ports; the target device to be tested is the Mth of the multiple devices to be tested; M is an integer greater than 0;
[0007] Send a target test signal to the cable splitter through the port of the testing device, so that the cable splitter sends the target test signal to the target device to be tested through the target port;
[0008] If a target response signal from the first port is received through the port of the testing device, determine whether the test result of the target device to be tested for the target test signal is abnormal based on the target response signal; the target response signal is sent by the target device to be tested to the target port;
[0009] Take the (M + 1)th device to be tested among the multiple devices to be tested as the target device to be tested, and take the (M + 1)th second port among the multiple second ports as the target port, and return to execute the step of switching the communication signal to the target port connected to the target device to be tested through the port of the testing device until all the multiple devices to be tested are tested.
[0010] In a possible implementation, the target test signal is the Nth of multiple test signals; N is an integer greater than 0; the step of until all the devices to be tested are tested completely includes: until all the devices to be tested are tested completely for the target test signal; after until all the devices to be tested are tested completely for the target test signal, the method further includes:
[0011] Take the (N + 1)th test signal of the multiple test signals as the target test signal, and return to execute the step of switching the communication signal to the target port connected to the target device to be tested through the port of the test device, until all the devices to be tested are tested completely for the multiple test signals.
[0012] In a possible implementation, after determining whether the test result of the target device to be tested for the target test signal is abnormal based on the target response signal, the method further includes:
[0013] If it is determined that the test result of the target device to be tested for the target test signal is abnormal based on the target response signal, add an abnormal flag to the target device to be tested;
[0014] Before taking the (M + 1)th device to be tested of the multiple devices to be tested as the target device to be tested, the method further includes:
[0015] Determine that the (M + 1)th device to be tested of the multiple devices to be tested does not have an abnormal flag.
[0016] In a possible implementation, the method further includes:
[0017] If it is determined that the (M + 1)th device to be tested of the multiple devices to be tested has an abnormal flag, take the (M + 2)th device to be tested of the multiple devices to be tested as the target device to be tested, and take the (M + 2)th second port of the multiple second ports as the target port, and return to execute the step of switching the communication signal to the target port connected to the target device to be tested through the port of the test device, until all the devices to be tested are tested completely for the target test signal.
[0018] In a possible implementation, the target test signal is the Nth of multiple test signals; N is an integer greater than 0; the step of until all the devices to be tested are tested completely includes: until all the devices to be tested are tested completely for the multiple test signals; before taking the (M + 1)th device to be tested of the multiple devices to be tested as the target device to be tested, the method further includes:
[0019] If it is determined based on the target response signal that the test result of the target device under test for the target test signal is normal, then the (N + 1)-th test signal among the multiple test signals is used as the target test signal, and the step of sending the target test signal to the cable splitter through the port of the test device is returned and executed until the target device under test has completed testing for all the multiple test signals.
[0020] In a possible implementation manner, the method further includes:
[0021] If it is determined based on the target response signal that the test result of the target device under test for the target test signal is abnormal, then the step of using the (M + 1)-th device under test among the multiple devices under test as the target device under test is continued to be executed.
[0022] In a possible implementation manner, communication addresses are set for multiple second ports of the cable splitter; the step of switching the communication signal to the target port connected to the target device under test through the port of the test device includes:
[0023] Through the port of the test device, the communication signal is switched to the target port connected to the target device under test based on the communication address of the target port.
[0024] In a second aspect, an embodiment of the present application provides a parallel test device, which is applied to a test device. The port of the test device is connected to the first port of the cable splitter, and multiple second ports of the cable splitter are respectively connected to multiple devices under test one by one; the number of ports of the test device is less than the number of second ports of the cable splitter; the device includes:
[0025] A signal switching module, configured to switch a communication signal to a target port connected to a target device under test through the port of the test device; the target port is the M-th among the multiple second ports; the target device under test is the M-th among the multiple devices under test; M is an integer greater than 0;
[0026] A test signal sending module, configured to send a target test signal to the cable splitter through the port of the test device, so that the cable splitter sends the target test signal to the target device under test through the target port;
[0027] A test result abnormality determination module, configured to determine whether the test result of the target device under test for the target test signal is abnormal based on the target response signal if a target response signal from the first port is received through the port of the test device; the target response signal is sent by the target device under test to the target port;
[0028] A test continuation execution module, configured to use the (M + 1)-th device under test among the multiple devices under test as the target device under test, and use the (M + 1)-th second port among the multiple second ports as the target port, and return to execute the step of switching the communication signal to the target port connected to the target device under test through the port of the test device, until all the multiple devices under test are tested.
[0029] In a third aspect, an embodiment of the present application provides a test device, which includes a memory and a processor:
[0030] The memory is configured to store a computer program and transmit the computer program to the processor;
[0031] The processor is configured to execute the computer program so that the device executes the parallel test method described in the foregoing first aspect.
[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run, the device running the computer program implements the parallel test method described in the foregoing first aspect.
[0033] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0034] The embodiments of the present application provide a parallel test method and related devices. The method can be applied to a test device. The port of the test device is connected to the first port of a cable splitter, and multiple second ports of the cable splitter are respectively connected to multiple devices under test; the number of ports of the test device is less than the number of second ports of the cable splitter; in this method, first, the communication signal is switched to the target port connected to the target device under test through the port of the test device; the target port is the M-th among the multiple second ports; the target device under test is the M-th among the multiple devices under test; M is an integer greater than 0; then, a target test signal is sent to the cable splitter through the port of the test device, so that the cable splitter sends the target test signal to the target device under test through the target port; subsequently, if a target response signal from the first port is received through the port of the test device, it is determined whether the test result of the target device under test for the target test signal is abnormal based on the target response signal; the target response signal is sent by the target device under test to the target port; the (M + 1)-th device under test among the multiple devices under test is used as the target device under test, and the (M + 1)-th second port among the multiple second ports is used as the target port, and the step of switching the communication signal to the target port connected to the target device under test through the port of the test device is returned to be executed until all the multiple devices under test are tested.
[0035] In this way, the test equipment can be connected to multiple devices to be tested through the cable splitter. With the switching of communication signals, these multiple devices to be tested can be tested. Only one connection is required to test multiple devices to be tested, which can greatly improve the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] To more clearly illustrate the technical solutions in the embodiments or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0037] Figure 1 The application scenario of a parallel test method provided by an embodiment of the present application;
[0038] Figure 2 The flowchart of a parallel test method provided by an embodiment of the present application;
[0039] Figure 3 The flowchart of a specific parallel test method provided by an embodiment of the present application;
[0040] Figure 4 The structural schematic diagram of a parallel test device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0041] In order to enable those skilled in the art to better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.
[0042] Currently, the existing method for testing ammunition devices is as follows: The test equipment can only be connected to one ammunition device in one connection. For one ammunition device, multiple performances may need to be tested. Only after testing one ammunition device can the next one be tested, resulting in low test efficiency.
[0043] Based on this, to solve the above problems, the embodiments of the present application provide a parallel testing method and related device. This method can be applied to a testing device. The port of the testing device is connected to the first port of a cable splitter, and multiple second ports of the cable splitter are respectively connected to multiple devices to be tested one by one; the number of ports of the testing device is less than the number of second ports of the cable splitter; in this method, first, the communication signal is switched to the target port connected to the target device to be tested through the port of the testing device; the target port is the Mth of the multiple second ports; the target device to be tested is the Mth of the multiple devices to be tested; M is an integer greater than 0; then, a target test signal is sent to the cable splitter through the port of the testing device, so that the cable splitter sends the target test signal to the target device to be tested through the target port; subsequently, if a target response signal from the first port is received through the port of the testing device, it is determined whether the test result of the target device to be tested for the target test signal is abnormal based on the target response signal; the target response signal is sent by the target device to be tested to the target port; the (M + 1)th device to be tested among the multiple devices to be tested is used as the target device to be tested, and the (M + 1)th second port among the multiple second ports is used as the target port, and the step of switching the communication signal to the target port connected to the target device to be tested through the port of the testing device is returned to be executed until all the multiple devices to be tested are tested.
[0044] In this way, the connection between the testing device and multiple devices to be tested can be realized through the cable splitter. With the switching of the communication signal, all these multiple devices to be tested can be tested. Only one connection is required to test multiple devices to be tested, which can greatly improve the testing efficiency.
[0045] For example, the embodiments of the present application can be applied to the scenario as Figure 1 shown. This scenario includes a testing device 101, a cable splitter 102, and a device to be tested 103. Among them, the device to be tested 103 can be an ammunition device, etc. The testing device 101 adopts the implementation method provided by the embodiments of the present application to perform parallel testing on multiple devices to be tested 103 through the cable splitter 102. The testing device 101 and the cable splitter 102 can be connected through a testing cable, and the cable splitter 102 and the device to be tested 103 can be connected through a testing cable. The introduction of the testing cable can be seen in the following text and will not be elaborated here.
[0046] The above scenario is only a scenario example provided by the embodiments of the present application. The embodiments of the present application are not limited to this scenario, and other devices to be tested can also be tested.
[0047] The following will describe in detail the specific implementation manners of the parallel testing method and related devices in the embodiments of the present application in conjunction with the accompanying drawings. This method can be applied to a testing device. A port of the testing device is connected to a first port of the cable splitter, and a plurality of second ports of the cable splitter are respectively connected to a plurality of devices to be tested one by one; the number of ports of the testing device is less than the number of second ports of the cable splitter.
[0048] A test cable is connected between the port of the testing device and the first port of the cable splitter.
[0049] In some embodiments, the test cable may include three types of signal lines, namely a power supply line, a communication line, and an address line. The power supply line is used to supply power to the device to be tested during the testing process, the communication line is used to provide the communication interaction function between the testing device and the device to be tested during the testing process; the address line is used to set a communication address for the device to be tested.
[0050] Exemplarily, the communication line may be a 1553B communication line, and the address line may include multiple address lines. For example, it includes 5 address lines. For each address line, a corresponding level state, high level or low level, can be set. Therefore, 5 address lines can be correspondingly set with 32 communication addresses. The present application does not limit the type of the communication line and the number of address lines.
[0051] A test cable is connected between the second port of the cable splitter and the plurality of devices to be tested. Through the cable splitter, the test cable between the port of the testing device and the first port of the cable splitter can be divided into multiple paths. For specific details, refer to the following description. It will not be elaborated here for the time being.
[0052] See Figure 2 , which is a flowchart of a parallel testing method provided by an embodiment of the present application. In conjunction with Figure 2 shown, the method may specifically include:
[0053] S201: Switch the communication signal to the target port connected to the target device to be tested through the port of the testing device.
[0054] Wherein, the target port is the Mth of the plurality of second ports, and the target device to be tested is the Mth of the plurality of devices to be tested, and M is an integer greater than 0.
[0055] For example, the cable splitter may have 5 second ports, and each second port may be connected to 1 device to be tested. The testing device can connect these 5 devices to be tested at one time, namely the device to be tested 1 - the device to be tested 5
[0056] Assume M is 1. Then, through the port of the test device, the communication signal can be switched to the port of the cable splitter connected to the device under test 1. The device under test 1 is the target device under test, and this port is the target port.
[0057] Assume M is 2. Then, through the port of the test device, the communication signal can be switched to the port of the cable splitter connected to the device under test 2. The device under test 2 is the target device under test, and this port is the target port.
[0058] S202: Send a target test signal to the cable splitter through the port of the test device, so that the cable splitter sends the target test signal to the target device under test through the target port.
[0059] Among them, the target test signal can be used to test the status indicators of the device under test. For example, assume there are 3 test signals, corresponding to test logic 1 - test logic 3 respectively. Test logic 1 can be used by the test device to determine whether the device under test can communicate with itself. Test logic 2 can be used by the test device to obtain the self - test status of the device under test. Test logic 3 can be used by the test device to determine whether the device under test can operate according to instructions, such as the device under test making a turn, etc.
[0060] The test device can send a target test signal to the cable splitter, and the cable splitter can send the target test signal to the target device under test through the target port. Correspondingly, the target device under test can perform tests in response to the target test signal. This process can also be called the test logic process of the test device for the target device under test.
[0061] S203: If a target response signal is received from the first port through the port of the test device, then determine whether the test result of the target device under test for the target test signal is abnormal based on the target response signal.
[0062] Among them, the target response signal is sent by the target device under test to the target port.
[0063] Based on the above introduction, the target device under test can perform tests in response to the target test signal. Subsequently, the target device under test can generate a target response signal, and this target response signal can indicate the test result of the target device under test for the target test signal. The target device under test can send the target response signal to the cable splitter through the target port, and the cable splitter then sends this target response signal to the port of the test device through the first port.
[0064] S204: Use the (M + 1)-th device under test among the multiple devices under test as the target device under test, and use the (M + 1)-th second port among the multiple second ports as the target port. Return to execute the step of switching the communication signal to the target port connected to the target device under test through the port of the test device until all the multiple devices under test are tested.
[0065] Based on the example above where there are 5 devices under test and M is 1, the (M + 1)-th device under test is the second device under test. Use it as the target device under test, and use the second port connected to this second device under test as the target port. Then, it is possible to return to execute S201. After the second device under test is tested, the third device under test can be used as the target device under test, and the second port connected to this third device under test can be used as the target port. Repeat this process until the fifth device under test is tested.
[0066] In a possible implementation, the target test signal is the N-th among the multiple test signals; N is an integer greater than 0; the "until all the multiple devices under test are tested" includes: until all the multiple devices under test are tested for the target test signal.
[0067] Suppose there are 3 test signals, corresponding to test logic 1 - test logic 3 respectively. For the introduction of test logic 1, refer to the above text and it will not be elaborated here. Assume N is 1, then all the multiple devices under test can be tested through test logic 1.
[0068] Correspondingly, in this method, after "until all the multiple devices under test are tested for the target test signal", it may further include: using the (N + 1)-th test signal among the multiple test signals as the target test signal, and returning to execute the step of switching the communication signal to the target port connected to the target device under test through the port of the test device until all the multiple devices under test are tested for the multiple test signals.
[0069] In the example where N is 1 and there are 3 test signals, the test signal corresponding to test logic 2 can be used as the target test signal, and return to execute S201 to test the target device under test using test logic 2 until all the multiple devices under test are tested using test logic 2. Then, the test signal corresponding to test logic 3 can be used as the target test signal, and return to execute S201 to test the target device under test using test logic 3 until all the multiple devices under test are tested using test logic 3. When all the multiple devices under test are tested for the multiple test signals, the step of returning and executing can be stopped.
[0070] In this way, after using a test signal to test multiple devices to be tested, another test signal can be used to test the multiple devices to be tested, which can reduce the switching of test signals and achieve faster and more convenient testing.
[0071] In a possible implementation manner, after executing S203, the method may further include: if it is determined based on the target response signal that the test result of the target device to be tested for the target test signal is abnormal, an abnormal flag (also referred to as an error flag) is added to the target device to be tested.
[0072] For example, an error flag can be set for the target test signal for the target device to be tested. When the test logic corresponding to the target test signal is 1, an abnormal flag can be set to indicate that the test logic 1 is abnormal. For example, if the initial value of the error flag is 0, its value can be set to 1 when setting the error flag.
[0073] Correspondingly, after determining that the (M + 1)-th device to be tested among the multiple devices to be tested does not have an abnormal flag, S204 is executed again.
[0074] For example, in the example where M is 1 and N is 2, assume that the test of the device to be tested 1 is completed using the test logic 2, and it is confirmed whether the device to be tested 2 has an abnormal flag. If not, the test logic 2 is used to test the device to be tested 2 (that is, return to execute S201). The situation with an abnormal flag will be introduced below and will not be elaborated here for now.
[0075] In a possible implementation manner, the method may further include: if it is determined that the (M + 1)-th device to be tested among the multiple devices to be tested has an abnormal flag, the (M + 2)-th device to be tested among the multiple devices to be tested is used as the target device to be tested, and the (M + 2)-th second port among the multiple second ports is used as the target port, and the step of switching the communication signal to the target port connected to the target device to be tested through the port of the test device is returned to be executed until the multiple devices to be tested are all tested for the target test signal.
[0076] Based on the above example, if it is confirmed that the device to be tested 2 has an abnormal flag, and this abnormal flag indicates that an abnormality occurred when testing the device to be tested 2 using the test logic 1, then the device to be tested 3 can be directly used as the target device to be tested for continuous testing, skipping the test of the device to be tested 2 by other test logics.
[0077] In this way, after determining that an abnormality occurs in the device to be tested, there is no need to use other test signals for testing, and the testing of this device to be tested can be stopped directly and skipped, which helps to save the power consumption of the test device.
[0078] In a possible implementation, communication addresses are set for multiple second ports of the cable splitter; S201 may specifically be: through the port of the test device, based on the communication address of the target port (which can be simply referred to as the address), switch the communication signal to the target port connected to the target device to be tested.
[0079] The cable splitter can set the address line in each test cable to a fixed state, that is, preset an address for the device to be tested connected to this test cable; for examples of addresses, refer to the relevant introduction below. Figure 3 Related introductions for examples of addresses.
[0080] In some embodiments, the cable splitter can divide the power supply line, communication line, and address line into multiple paths, and each path can be connected to a device to be tested.
[0081] Based on the above introduction, the communication line in each test cable can sequentially provide a communication interaction function between the test device and multiple devices to be tested based on the switching of the communication signal; the cable splitter can set the address line in each test cable to a fixed state, that is, preset an address for the device to be tested connected to this test cable; the power supply line in multiple test cables can supply power to multiple devices to be tested simultaneously.
[0082] See Figure 3 , this figure is a flowchart of a specific parallel test method provided by an embodiment of the present application. As Figure 3 shown, assume there are 5 devices to be tested, all of which are ammunition devices, including ammunition device 1 - ammunition device 5, and there are 3 test signals corresponding to test logic 1 - test logic 3. The addresses of the 5 second ports can be: 00001, 00010, 00011, 00100, and 00101 respectively, where 0 represents low level and 1 represents high level.
[0083] As Figure 3 shown, the test device supplies power to 5 devices to be tested simultaneously through the cable splitter. Based on the set addresses, communication interaction can be carried out with each device to be tested. First, the test device can perform the test logic 1 process of ammunition device 1, and then determine whether the test result (that is, the judgment based on the target response signal introduced above) is correct. If it is, directly perform the test logic 1 process of ammunition device 2. Otherwise, report that the test result of ammunition device 1 is abnormal (which can also be called a fault), and set the error flag of the test logic 1 of ammunition device 1 to 1, and then perform the test logic 1 process of ammunition device 2. Similarly for the follow-up, complete the test logic 1 processes of ammunition device 2 - ammunition device 5 with the same execution strategy.
[0084] Subsequently, it is determined whether the error flag of ammunition device 1 is 1 (at this time, it is the error flag of test logic 1). If so, it is determined whether the error flag of ammunition device 2 is 1. Otherwise, the test logic 2 process of ammunition device 1 is executed, and then it is determined whether the test result is correct. If so, it is determined whether the error flag of ammunition device 2 is 1. Otherwise, the abnormal test result of ammunition device 1 is reported, and the error flag of test logic 2 of ammunition device 1 is set to 1, and then it is determined whether the error flag of ammunition device 2 is 1. Similarly for the following, the test logic 2 processes of ammunition devices 2 - 5 are completed with the same execution strategy.
[0085] Subsequently, it is determined whether the error flag of ammunition device 1 is 1 (at this time, it is whether there is an error flag with a value of 1 among the error flag of test logic 1 and the error flag of test logic 2). If so (at least one of the two error flags is 1), it is determined whether the error flag of ammunition device 2 is 1. Otherwise (both error flags are not 1), it is reported that ammunition device 1 is normal and the test logic 3 process of ammunition device 1 is executed, and then it is determined whether the test result is correct. If so, it is determined whether the error flag of ammunition device 2 is 1. Otherwise, the abnormal test result of ammunition device 1 is reported, and then it is determined whether the error flag of ammunition device 2 is 1. Similarly for the following, the test logic 3 processes of ammunition devices 2 - 5 are completed with the same execution strategy.
[0086] In a possible implementation, the target test signal is the Nth of multiple test signals; N is an integer greater than 0; the until all the devices to be tested are tested completely includes: until all the devices to be tested have completed testing for the multiple test signals.
[0087] Correspondingly, before executing S204, the method further includes: if it is determined based on the target response signal that the test result of the target device to be tested for the target test signal is normal, then the (N + 1)th test signal among the multiple test signals is used as the target test signal, and the step of sending the target test signal to the cable splitter through the port of the test device is returned to be executed until the target device to be tested has completed testing for the multiple test signals.
[0088] In an example where N is 1 and there are 3 test signals, the test signals corresponding to test logics 1 - 3 can be sequentially used as the target test signals to test the target device to be tested. After testing this one target device to be tested with 3 test signals, then the next device to be tested is tested until all the devices to be tested have completed testing for the multiple test signals, and the step of returning and executing can be stopped.
[0089] In this way, after using multiple test signals to complete the test for one device under test, multiple test signals can be used to test the next device under test, which can reduce the switching of communication signals.
[0090] In a possible implementation manner, the method may further include: if it is determined based on the target response signal that the test result of the target device under test for the target test signal is abnormal, then continue to execute the step of using the (M + 1)-th device under test among the multiple devices under test as the target device under test.
[0091] In an example where N is 1 and there are 3 test signals, during the process of sequentially testing this one target device under test with 3 test signals, assuming that any test result is abnormal, then no longer continue to use the remaining test signals to test this one target device under test, but directly use the next device under test as the target device under test for testing.
[0092] In this way, after determining that the device under test is abnormal, there is no need to continue using other test signals for testing, and the testing for this device under test can be stopped and skipped directly, which helps to save the power consumption of the test equipment.
[0093] The above are some specific implementation manners of the parallel testing method provided by the embodiments of the present application. Based on this, the present application also provides a corresponding parallel testing device. Next, the parallel testing device provided by the embodiments of the present application will be introduced from the perspective of functional modularization.
[0094] See Figure 4 , which is a schematic structural diagram of a parallel testing device provided by the embodiments of the present application. It can be applied to a test equipment. The port of the test equipment is connected to the first port of the cable splitter, and multiple second ports of the cable splitter are respectively connected to multiple devices under test one by one; the number of ports of the test equipment is less than the number of second ports of the cable splitter; the parallel testing device 400 may include:
[0095] A signal switching module 410, configured to switch a communication signal to a target port connected to a target device under test through the port of the test equipment; the target port is the M-th one among the multiple second ports; the target device under test is the M-th one among the multiple devices under test; M is an integer greater than 0;
[0096] A test signal sending module 420, configured to send a target test signal to the cable splitter through the port of the test equipment, so that the cable splitter sends the target test signal to the target device under test through the target port;
[0097] A test result anomaly determination module 430, configured to, if a target response signal from the first port is received through the port of the test device, determine whether the test result of the target device under test for the target test signal is abnormal based on the target response signal; the target response signal is sent by the target device under test to the target port.
[0098] A test continuation execution module 440, configured to use the (M + 1)-th device under test among the multiple devices under test as the target device under test, and use the (M + 1)-th second port among the multiple second ports as the target port, and return to execute the step of switching the communication signal to the target port connected to the target device under test through the port of the test device until all the multiple devices under test are tested.
[0099] As an implementation, the target test signal is the N-th among multiple test signals; N is an integer greater than 0; the "until all the multiple devices under test are tested" includes: until all the multiple devices under test are tested for the target test signal; this parallel test device 400 may further include:
[0100] A first test module, configured to use the (N + 1)-th test signal among the multiple test signals as the target test signal, and return to execute the step of switching the communication signal to the target port connected to the target device under test through the port of the test device until all the multiple devices under test are tested for the multiple test signals.
[0101] As an implementation, this parallel test device 400 may further include:
[0102] A flag addition module, configured to add an anomaly flag to the target device under test if it is determined based on the target response signal that the test result of the target device under test for the target test signal is abnormal.
[0103] A flag determination module, configured to determine that the (M + 1)-th device under test among the multiple devices under test does not have an anomaly flag.
[0104] As an implementation, this parallel test device 400 may further include:
[0105] A second test module, configured to determine that the (M + 1)-th device to be tested among the multiple devices to be tested has an abnormal flag, then use the (M + 2)-th device to be tested among the multiple devices to be tested as the target device to be tested, and use the (M + 2)-th second port among the multiple second ports as the target port, and return to execute the step of switching the communication signal to the target port connected to the target device to be tested through the port of the test device, until the multiple devices to be tested have all completed the test for the target test signal.
[0106] As an implementation, the target test signal is the N-th among multiple test signals; N is an integer greater than 0; the "until the multiple devices to be tested have all completed the test" includes: until the multiple devices to be tested have all completed the test for the multiple test signals; this parallel test device 400 may further include:
[0107] A third test module, configured to, if it is determined based on the target response signal that the test result of the target device to be tested for the target test signal is normal, then use the (N + 1)-th test signal among the multiple test signals as the target test signal, and return to execute the step of sending the target test signal to the cable splitter through the port of the test device, until the target device to be tested has all completed the test for the multiple test signals.
[0108] As an implementation, this parallel test device 400 may further include:
[0109] A fourth test module, configured to, if it is determined based on the target response signal that the test result of the target device to be tested for the target test signal is abnormal, then continue to execute the step of using the (M + 1)-th device to be tested among the multiple devices to be tested as the target device to be tested.
[0110] As an implementation, communication addresses are set for multiple second ports of the cable splitter; the signal switching module 410 is specifically configured to:
[0111] Through the port of the test device, switch the communication signal to the target port connected to the target device to be tested based on the communication address of the target port.
[0112] The embodiments of the present application further provide corresponding test devices and computer-readable storage media for implementing the solutions provided by the embodiments of the present application.
[0113] Wherein, the test device includes a memory and a processor, the memory is used to store a computer program, and the processor is used to execute the computer program so that the device executes the parallel test method described in any embodiment of the present application.
[0114] A computer program is stored in the computer-readable storage medium. When the computer program is run, the device running the computer program implements the parallel test method described in any embodiment of the present application.
[0115] The present application further provides a cable splitter. The cable splitter is used to perform the functions introduced in the above embodiments, and realizes the connection, power supply, communication address setting and communication interaction between the test device and multiple devices to be tested at one time.
[0116] In the embodiments of the present application, the "first", "second" (if any) in the names such as "first" and "second" are only used as name identifiers and do not represent the first and second in order.
[0117] From the description of the above embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product. The computer software product can be stored in a readable storage medium, such as a read-only memory (ROM) / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment or some parts of the embodiments of the present application.
[0118] It should be noted that the embodiments in this specification are all described in a progressive manner. The same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The apparatus embodiments described above are only illustrative. The units described as separate components may or may not be physically separated, and the components described as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.
[0119] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A parallel testing method, characterized in that, Applied to a test device, a port of the test device is connected to a first port of the cable splitter, and a plurality of second ports of the cable splitter are respectively connected to a plurality of devices to be tested one by one; The number of ports of the test device is less than the number of second ports of the cable splitter; The method includes: Switch a communication signal to a target port connected to a target device to be tested through a port of the test device; The target port is the Mth of the plurality of second ports; The target device to be tested is the Mth of the plurality of devices to be tested; M is an integer greater than 0; Send a target test signal to the cable splitter through a port of the test device, so that the cable splitter sends the target test signal to the target device to be tested through the target port; If a target response signal from the first port is received through a port of the test device, determine whether the test result of the target device to be tested for the target test signal is abnormal based on the target response signal; The target response signal is sent by the target device to be tested to the target port; Take the (M + 1)th device to be tested among the plurality of devices to be tested as the target device to be tested, and take the (M + 1)th second port among the plurality of second ports as the target port, and return to execute the step of switching the communication signal to the target port connected to the target device to be tested through the port of the test device until all the plurality of devices to be tested are tested.
2. The method according to claim 1, wherein The target test signal is the Nth of a plurality of test signals; N is an integer greater than 0; The until all the plurality of devices to be tested are tested includes: until all the plurality of devices to be tested are tested for the target test signal; After until all the plurality of devices to be tested are tested for the target test signal, it further includes: Take the (N + 1)th test signal among the plurality of test signals as the target test signal, and return to execute the step of switching the communication signal to the target port connected to the target device to be tested through the port of the test device until all the plurality of devices to be tested are tested for the plurality of test signals.
3. The method according to claim 2, wherein After then determining whether the test result of the target device to be tested for the target test signal is abnormal based on the target response signal, it further includes: If it is determined based on the target response signal that the test result of the target device to be tested for the target test signal is abnormal, add an abnormal flag to the target device to be tested; Before taking the (M + 1)th device to be tested among the plurality of devices to be tested as the target device to be tested, it further includes: Determine that the (M + 1)th device to be tested among the plurality of devices to be tested does not have an abnormal flag.
4. The method according to claim 3, characterized in that The method further includes: If it is determined that the (M + 1)-th device under test among the multiple devices under test has an abnormal flag, then the (M + 2)-th device under test among the multiple devices under test is taken as the target device under test, and the (M + 2)-th second port among the multiple second ports is taken as the target port, and return to execute the step of switching the communication signal to the target port connected to the target device under test through the port of the test equipment, until all the multiple devices under test have completed the test for the target test signal.
5. The method according to claim 1, wherein The target test signal is the N-th among multiple test signals; N is an integer greater than 0; the step of until all the multiple devices under test have completed the test includes: until all the multiple devices under test have completed the test for the multiple test signals; before taking the (M + 1)-th device under test among the multiple devices under test as the target device under test, the method further includes: If it is determined based on the target response signal that the test result of the target device under test for the target test signal is normal, then the (N + 1)-th test signal among the multiple test signals is taken as the target test signal, and return to execute the step of sending the target test signal to the cable splitter through the port of the test equipment, until the target device under test has completed the test for the multiple test signals.
6. The method according to claim 5, wherein The method further includes: If it is determined based on the target response signal that the test result of the target device under test for the target test signal is abnormal, then continue to execute the step of taking the (M + 1)-th device under test among the multiple devices under test as the target device under test.
7. The method according to any one of claims 1-6, characterized in that, Communication addresses are set for all the multiple second ports of the cable splitter; the step of switching the communication signal to the target port connected to the target device under test through the port of the test equipment includes: Through the port of the test equipment, switch the communication signal to the target port connected to the target device under test based on the communication address of the target port.
8. A parallel testing device, characterized in that Applied to a test equipment, the port of the test equipment is connected to the first port of the cable splitter, and multiple second ports of the cable splitter are respectively connected to multiple devices under test; The number of ports of the test equipment is less than the number of second ports of the cable splitter; the device includes: A signal switching module, configured to switch the communication signal to the target port connected to the target device under test through the port of the test equipment; the target port is the M-th among the multiple second ports; the target device under test is the M-th among the multiple devices under test; M is an integer greater than 0; A test signal sending module, configured to send a target test signal to the cable splitter through the port of the test equipment, so that the cable splitter sends the target test signal to the target device under test through the target port. A test result anomaly determination module, configured to determine whether the test result of the target device under test for the target test signal is anomalous based on the target response signal if a target response signal from the first port is received through the port of the test device; the target response signal is sent by the target device under test to the target port. A test continuation execution module, configured to use the (M + 1)-th device under test among the multiple devices under test as the target device under test, and use the (M + 1)-th second port among the multiple second ports as the target port, and return to execute the step of switching the communication signal to the target port connected to the target device under test through the port of the test device until all the multiple devices under test are tested.
9. A test device, characterized in that, The device includes a memory and a processor: The memory is configured to store a computer program and transmit the computer program to the processor; The processor is configured to execute the computer program so that the device executes the steps of the parallel test method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is run, the device running the computer program implements the steps of the parallel test method according to any one of claims 1-7.