Device testing method, system, device, electronic device and storage medium
By determining the test items and dislocation test sequence of the equipment to be tested, and using the communication between the central control module and the target test module, one-time testing of different test items of multiple equipment to be tested is realized, which solves the problem of low testing efficiency in the existing technology. , improving equipment testing efficiency.
Patent Information
- Application Number
- CN202110972660.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-24
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-08-24
AI Technical Summary
In the existing technology, the testing efficiency of electronic equipment is low, requiring multiple test stations and manual operations, and it is impossible to efficiently complete different functional tests of multiple devices under test.
By determining the test items of multiple devices to be tested, and determining the misplaced test sequence of the test items of each device to be tested when each test item is determined to be the first test item, the central control module is used to communicate with the target test module, according to Dislocation test sequence: Perform a dislocation test on each device under test.
It greatly shortens the equipment testing time, improves the testing efficiency, avoids duplication of basic synchronization test items, reduces manual operations and misoperations, and improves the efficiency of the equipment testing system.
Smart Images

Figure CN113671292B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of fully automatic testing technology, and in particular to a device testing method, system, apparatus, electronic device, and storage medium. Background Art
[0002] With the development of science and technology, the functions of electronic devices used in daily life are becoming more and more complete. In response to the needs of different customers, a large number of new technologies have been applied to the production and development of electronic devices. However, the rich functions of electronic devices make their manufacturing integration more and more complicated. In the case of continuous updating of electronic equipment functions, in order to ensure that electronic equipment meets customer quality requirements when leaving the factory, electronic equipment manufacturers hope to be able to detect faulty products in a timely manner and reduce customer complaints. Due to the high complexity of manufacturing integration of electronic equipment, the supporting factory testing requirements are also correspondingly higher, and the testing process is also more complicated, which makes the existing electronic equipment with high manufacturing integration complexity consume a lot of manpower and material resources during testing.
[0003] In the prior art, a single function of a device under test is mainly tested through a test station (equivalent to an independent test system). When multiple functions of the device under test need to be tested, the device under test needs to be placed in different test stations for functional testing. When multiple devices under test need to be tested, multiple test stations are also required to complete the test task. In addition, the operation and testing of the device under test are generally completed manually by the operator, which cannot avoid the problem of low test efficiency. Taking the device under test as a remote control as an example, the operation steps of the test station are explained: to ensure that the RF performance of the remote control is normal, the remote control will be tested for RF signal strength and RF signal frequency deviation through the RF test station. The test steps of the RF test station are: placing the remote control in the test fixture, scanning the product barcode, letting the remote control enter the test mode, pressing the button to let the remote control send RF signals, measuring RF signal performance parameters, and taking out the remote control. To ensure that the voice performance of the remote control is normal, the voice performance test station is used to detect abnormalities such as packet loss, noise, and voice change that may occur in the remote control during voice communication. The general test steps are: place the remote control in the test fixture, scan the product barcode, let the remote control enter the test mode, turn on the voice shielding box, pair with the host computer via Bluetooth, record, analyze the voice performance, stop recording, close the voice shielding box, and take out the remote control. To ensure the performance of Bluetooth pairing, buzzer, and LED light, the performance of Bluetooth pairing, buzzer, and LED light are tested through the multi-function test station. The general test steps are: place the remote control in the test fixture, scan the product barcode, let the remote control enter the test mode, manually start the corresponding function module (Bluetooth pairing, buzzer sounding, and LED light flashing) according to the operating instructions, test each function module, and take out the remote control. When testing different functions of multiple remote controls, multiple test stations are required to complete the test task, and the operation and testing of the remote control need to be completed manually by the operator, which cannot avoid the problem of low test efficiency. Summary of the invention
[0004] The embodiments of the present invention provide a device testing method, system, apparatus, electronic device and storage medium, which can improve the testing efficiency of the device.
[0005] In a first aspect, an embodiment of the present invention provides a device testing method, including:
[0006] Determine at least one test item for a plurality of devices under test;
[0007] In the case where each test item is determined to be the first test item, a staggered test sequence of the test items of each device under test is determined; wherein the test items of each device under test in the same staggered test sequence are different;
[0008] Perform misalignment tests on the test items of each device under test according to the misalignment test sequence.
[0009] In a second aspect, an embodiment of the present invention provides a device testing system, including a central control module and a target testing module, wherein:
[0010] The central control module is in communication connection with the target test module, and is used to determine at least one test item of the plurality of devices under test; when each test item is determined to be the first test item, a staggered test sequence of the test items of each device under test is determined; wherein the test items of each device under test in the same staggered test sequence are different;
[0011] The target test module is used to perform a dislocation test on the test items of each device under test according to a dislocation test sequence.
[0012] In a third aspect, an embodiment of the present invention further provides a device testing apparatus, comprising:
[0013] A test item determination module, used to determine at least one test item for a plurality of devices to be tested;
[0014] A staggered test sequence determination module, used to determine the staggered test sequence of the test items of each device under test when each test item is determined to be the first test item; wherein the test items of each device under test in the same staggered test sequence are different;
[0015] The dislocation test module is used to perform dislocation tests on the test items of each device under test according to the dislocation test sequence.
[0016] In a fourth aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0017] one or more processors;
[0018] A storage device for storing one or more programs;
[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the device testing method provided by any embodiment of the present invention.
[0020] In a fifth aspect, an embodiment of the present invention further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the device testing method provided by any embodiment of the present invention is implemented.
[0021] According to the technical solution of this embodiment, the device testing system determines at least one test item of multiple devices to be tested, and when each test item is determined to be the first test item, further determines the staggered test order of the test items of each device to be tested, and then performs staggered testing on the test items of each device to be tested according to the staggered test order. Among them, the test items of each device to be tested in the same staggered test order are different. When the test items of multiple devices to be tested simultaneously obtained by the device testing system are the first test items, the device testing system can test different test items of the multiple devices to be tested in the same test order, and the device testing system tests different test items of multiple devices to be tested at one time. Compared with testing different test items of multiple devices to be tested separately, the device testing time can be greatly shortened, which solves the problem of low device testing efficiency when testing the test items of multiple devices to be tested through different test stations in the prior art, and can improve the testing efficiency of the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is a flow chart of a device testing method provided by Embodiment 1 of the present invention;
[0023] Figure 2 is a flow chart of a device testing method provided by Embodiment 2 of the present invention;
[0024] Figure 3 is a schematic diagram of a device testing system provided by Embodiment 3 of the present invention;
[0025] Figure 4 is a hardware configuration diagram of a device testing system provided in Embodiment 3 of the present invention;
[0026] Figure 5 This is a schematic diagram of the positions of a remote control and an artificial mouth provided in Embodiment 3 of the present invention;
[0027] Figure 6 is a schematic diagram of a remote control placement position provided by Embodiment 3 of the present invention;
[0028] Figure 7 is a comparison diagram between a testing method of a device testing system provided by Embodiment 3 of the present invention and a traditional testing method;
[0029] Figure 8 is a schematic diagram of a multi-function test performed on two remote controllers provided in Embodiment 3 of the present invention;
[0030] Fig. 9 is a schematic diagram of a device testing apparatus provided by a fourth embodiment of the present invention;
[0031] Fig.10 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0032] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention.
[0033] It should also be noted that, for ease of description, only the part relevant to the present invention but not all content is shown in the accompanying drawings. It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processing or methods depicted as flow charts. Although the flow chart describes each operation (or step) as sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. When its operation is completed, the processing can be terminated, but it can also have additional steps not included in the accompanying drawings. The processing can correspond to methods, functions, procedures, subroutines, subprograms, etc.
[0034] Embodiment 1
[0035] Figure 1 is a flow chart of a device testing method provided by the first embodiment of the present invention. This embodiment is applicable to the case of efficient testing of devices. The method can be applied to a device testing system and can also be executed by a device testing device. The system and device can be implemented by software and / or hardware and can generally be integrated into electronic devices. Figure 1 As shown, the method includes the following operations:
[0036] S110: Determine at least one test item for a plurality of devices under test.
[0037] The device under test may be any device that needs to be functionally tested. Optionally, the test device may include hardware devices and software devices. The test items may be functions that need to be tested on the device under test.
[0038] In an embodiment of the present invention, when multiple devices under test need to undergo functional testing, the device testing system may determine at least one test item for the multiple devices under test according to the test requirements of the devices under test, wherein the test items of the multiple devices under test may be the same or different.
[0039] S120: When each test item is determined to be the first test item, determine a staggered test order of the test items of each device under test.
[0040] The first test item may be a test item that the device test system needs to test in time. The staggered test sequence may be a test sequence in which the device test system performs time-sharing tests on the test items of each device under test, and is used to perform time-sharing tests on the test items of each device under test in sequence. It should be noted that the test items of each device under test in the same staggered test sequence are different.
[0041] In an embodiment of the present invention, if the device testing system cannot assign the same test order to each identical test item according to identical test items of multiple devices under test, each test item may be determined to be a first test item. In the case where each test item is determined to be a first test item, a corresponding test order may be assigned to the test items in each device under test, thereby obtaining a staggered test order for the test items of each device under test.
[0042] Exemplarily, it is assumed that the device under test includes a device under test 1 and a device under test 2, and the test items of the device under test 1 are test item 1, test item 2, and test item 3, respectively, and the test items of the device under test 2 are test item 1, test item 2, and test item 4, respectively. If the device testing system cannot assign the same test order to the same test items in the device under test 1 and the device under test 2, it can be determined that the test items of the device under test 1 and the device under test 2 are the first test items, and then the test order can be assigned to the test items of the device under test 1 first, so as to determine the test order of the test items of the device under test 2 according to the test order of the test items of the device under test 1, so that the test order of the same test items of the device under test 2 and the device under test 1 is different. For example, the test order of the test items of the device under test 1 is test item 1, test item 2, and test item 3, and the test order of the test items of the device under test 2 can be test item 2, test item 1, and test item 4. It can be understood that the test order can also be assigned to the test items of the device under test 2 first, and then the test order of the test items of the device under test 1 can be determined according to the test order of the test items of the device under test 2. The embodiment of the present invention does not limit the test sequence of the test items of the device under test 1 , as long as the test sequence of the same test items of the device under test 2 is different.
[0043] S130, performing a dislocation test on the test items of each device under test according to a dislocation test sequence.
[0044] The misalignment test may be used to test the test items of each device under test in a misalignment test sequence.
[0045] In an embodiment of the present invention, the test items of each device under test in the same staggered test order can be first determined according to the staggered test order, and then the test items belonging to the same staggered test order can be tested according to the staggered test order, and the test items of different staggered test orders can be tested in batches in sequence until all test items of multiple devices under test are tested.
[0046] To continue the explanation with the above example, first, the test items of the device under test 1 and the device under test 2 in the first test sequence can be determined, and then the test item 1 of the device under test 1 and the test item 2 of the device under test 2 in the first test sequence are tested at the same time. When the test items of the device under test 1 and the device under test 2 in the first test sequence are tested, the test items of the device under test 1 and the device under test 2 in the second test sequence can be further determined, and then the test item 2 of the device under test 1 and the test item 1 of the device under test 2 in the second test sequence are tested at the same time. When the test items of the device under test 1 and the device under test 2 in the second test sequence are tested, the test items of the device under test 1 and the device under test 2 in the third test sequence can be determined, and then the test item 3 of the device under test 1 and the test item 4 of the device under test 2 in the third test sequence are tested at the same time.
[0047] According to the technical solution of this embodiment, the device testing system determines at least one test item of multiple devices to be tested, and when each test item is determined to be the first test item, further determines the staggered test order of the test items of each device to be tested, and then performs staggered testing on the test items of each device to be tested according to the staggered test order. Among them, the test items of each device to be tested in the same staggered test order are different. When the test items of multiple devices to be tested simultaneously obtained by the device testing system are the first test items, the device testing system can test different test items of the multiple devices to be tested in the same test order, and the device testing system tests different test items of multiple devices to be tested at one time. Compared with testing different test items of multiple devices to be tested separately, the device testing time can be greatly shortened, which solves the problem of low device testing efficiency when testing the test items of multiple devices to be tested through different test stations in the prior art, and can improve the testing efficiency of the device.
[0048] Embodiment 2
[0049] Figure 2It is a flow chart of a device testing method provided by the second embodiment of the present invention. This embodiment is specific based on the above embodiment. In this embodiment, a specific optional implementation scheme is provided for determining the test item as the first test item, and then determining the staggered test order of the test items of each device under test, and performing staggered tests on the test items of each device under test according to the staggered test order, and determining the test item as the second test item, and then determining the synchronous test order of the test items of each device under test, so as to perform synchronous tests on the test items of each device under test according to the synchronous test order. Accordingly, as Figure 2 As shown, the method includes the following operations:
[0050] S210: Determine at least one test item for a plurality of devices under test.
[0051] S220: When it is determined that each test item is a first test item, determine basic synchronous test items included in the basic test link of the device under test, and assign a basic synchronous test sequence to the basic synchronous test items.
[0052] Among them, the basic test link can be the link in which the equipment test system puts the device under test into the test state, which is equivalent to the preparation link before the equipment test system tests the device under test. The basic synchronization test items can be test items that are unrelated to the test requirements of the device under test and are used to put multiple devices under test into the test state. The basic synchronization test sequence can be the test sequence of the basic synchronization test items of multiple devices under test, and the test items of each device under test in the same basic synchronization test sequence are the same.
[0053] In the prior art, a test system can only test a single function of a device under test at a time, which results in the need to repeat basic synchronous test items for the same device under test before testing it on different test systems. The repeated testing of basic synchronous test items for the same device under test causes the existing test system to have the problem of low equipment testing efficiency.
[0054] In an embodiment of the present invention, if the test items of multiple devices under test are the first test items, the basic test link of the device under test can be further determined according to the configuration of the device test system, and then the basic synchronization test items included in the basic test link can be obtained. After obtaining the basic synchronization test items included in the basic test link, a basic synchronization test sequence is assigned to the basic synchronization test items based on the steps of the device under test entering the test state.
[0055] The device testing system in the embodiment of the present invention only needs to perform one round of basic synchronous test items on each device under test, that is, before the device testing system tests different test items of the same device under test, it is not necessary to test the basic synchronous test items of the device under test again. Therefore, the device testing system in the embodiment of the present invention can avoid repeated testing of the basic synchronous test items of the same device under test, solves the problem of low device testing efficiency caused by repeated operations in the prior art, and improves the device testing efficiency.
[0056] In an optional embodiment of the present invention, determining each test item as the first test item may include: determining a synchronization test item type according to local configuration data; and determining the test item as the first test item when it is determined that the test item does not completely match the synchronization test item type.
[0057] Among them, the local configuration data can be used to characterize the configuration of the device test system. The local configuration data may include the category of the locally configured target test module and the number of each target test module. The target test module may be a component of the device test system, used to test the test items of the device under test. The category of the target test module may be the type of target test module possessed by the device test system. The synchronous test item type may be the type of at least one same test item of multiple devices under test that can be tested simultaneously by the device test system. Exemplarily, taking the device under test as a remote control as an example, the test items included in the synchronous test item type may include voice function test and signal light function test, etc. Exemplarily, the voice function test may include a test of the recording function of the device under test, and a test of the audio playback function of the device under test. The signal light function test may be a test of whether the signal light of the device under test is working properly.
[0058] In an embodiment of the present invention, the local configuration data of the device test system can be determined according to the configuration of the device test system, and then the local configuration data is parsed to obtain the category of the target test module configured locally by the device test system and the number of each target test module, and further according to the category of the locally configured target test module and the number of each target test module, the type of at least one same test item of multiple devices under test that the device test system can test simultaneously is determined to obtain a synchronous test item type. The test items of multiple devices under test are matched with the synchronous test item type. If the test items of multiple devices under test include test items other than the synchronous test item type, it is determined that the test items do not completely match the synchronous test item type. Since when the test items of multiple devices under test include test items other than the synchronous test item type, the device test system cannot assign the same test order to each of the same test items according to the same test items of multiple devices under test, the incomplete matching of the test items with the synchronous test item type can be used as a basis for judging whether the test item is the first test item. Therefore, in the case where the test items do not completely match the synchronous test item type, it can be determined that the test items of multiple devices under test belong to the first test item.
[0059] In an optional embodiment of the present invention, the device testing method may further include: when it is determined that the test item completely matches the synchronization test item type, determining that the test item of the device to be tested is the second test item; determining the synchronization test sequence of the test items of the device to be tested; and performing synchronization testing on the test items of each device to be tested according to the synchronization test sequence.
[0060] The second test item may be the same test item of multiple devices under test that can be tested simultaneously by the device test system. The synchronous test sequence may be the test sequence of at least one same test item of multiple devices under test that can be tested simultaneously by the device test system.
[0061] In an embodiment of the present invention, at least one test item of a plurality of devices under test can be matched with a synchronous test item type, and if the test items of the plurality of devices under test do not include test items outside the synchronous test item type, it is determined that the test item completely matches the synchronous test item type. Since when the test items of the plurality of devices under test do not include test items outside the synchronous test item type, the device testing system can assign the same test order to each identical test item according to the identical test items of the plurality of devices under test, the test item can be completely matched with the synchronous test item type, as a basis for judging whether each test item is a second test item, and therefore, in the case of determining that the test item completely matches the synchronous test item type, the test item of the device under test can be used as the second test item. In the case of determining that the test item of the device under test is the second test item, a synchronous test order can be configured for the test item of the device under test, so that at least one identical test item of the plurality of devices under test can be synchronously tested according to the synchronous test order, that is, the test items of different devices under test in the same synchronous test order are the same.
[0062] Exemplarily, it is assumed that the test items of the device under test 1 are test item 1 and test item 2, the test items of the device under test 2 are test item 1 and test item 2, and the test items included in the synchronous test item type are test item 1, test item 2, and test item 3. Since it is assumed that the test items of the device under test 1 and the device under test 2 are both present in the test items included in the synchronous test item type (the test items and the synchronous test item type are completely matched), the device testing system can assign the same test order to the same test items of the device under test 1 and the device under test 2. For example, the first test order can be assigned to the test item 1 of the device under test 1 and the test item 1 of the device under test 2, and the second test order can be assigned to the test item 2 of the device under test 1 and the test item 2 of the device under test 2. That is, the device testing system can first test the test item 1 of the device under test 1 and the test item 1 of the device under test 2 at the same time, and after the test items of the first test order are tested, the test item 2 of the device under test 1 and the test item 2 of the device under test 2 are tested. The embodiment of the present invention does not limit the test order of the same test items of the device under test 1 and the device under test 2.
[0063] S230: Determine the test items included in the non-basic test phase of the device to be tested, and assign a staggered test sequence to the test items included in the non-basic test phase according to the basic synchronous test sequence.
[0064] Among them, the non-basic test phase can be the next phase that the equipment test system needs to enter after the basic test phase, which is equivalent to the phase in which the equipment test system tests the test items of the equipment to be tested, that is, the non-basic test phase can specifically test one or more functions of the equipment to be tested.
[0065] In an embodiment of the present invention, if a basic synchronous test sequence is obtained, the characterization device test system can enter a non-basic test phase, and the device test system can further obtain test items that need to be tested on the device to be tested in the non-basic test phase, and then after the basic synchronous test sequence, a staggered test sequence can be assigned to the test items included in the non-basic test phase.
[0066] In an optional embodiment of the present invention, after assigning a staggered test sequence to the test items included in the non-basic test link according to the basic synchronous test sequence, it may also include: sending a low voltage signal to the device under test through the GPIO pin to make the device under test enter a test state; sending a test start signal to the device under test according to the staggered test sequence through the UART communication method to make the test items of the device under test enter a test state.
[0067] The test start signal may be a signal sent by the device testing system to the device under test, and is used to make the test item of the device under test enter a test state.
[0068] In an embodiment of the present invention, after allocating a staggered test sequence for the test items included in the non-basic test link according to the basic synchronous test sequence, the potential of the local GPIO pin can be pulled down, and a low voltage signal can be sent to the device under test through the GPIO pin to make the device under test enter a test state. After the device under test enters the test state, the device testing system can further send a test start signal to the device under test in accordance with the staggered test sequence through UART, and the device under test determines the test items associated with the test start signal, so that the test items associated with the test start signal enter the test state. Among them, sending a low voltage signal to the device under test through the GPIO pin can be a sub-link in the basic test link, and sending a test start signal to the device under test in accordance with the staggered test sequence through the UART communication method can be a sub-link in the non-basic test link.
[0069] At present, the main method of making the device under test enter the test state is manual. If each device under test enters the test state manually, the efficiency of multiple devices under test entering the test state will be low, and manually making the device under test enter the test state is likely to cause the problem of misoperation. This solution uses the GPIO pin to send a low-voltage signal to the device under test to make the device under test enter the test state, which can improve the efficiency of multiple devices under test entering the test state and avoid the problem of misoperation. In addition, the device test system of this solution avoids sending the test start signal to multiple devices under test by Bluetooth communication, but sends the test start signal to multiple devices under test by UART communication, eliminating the process of Bluetooth pairing between the device test system and multiple devices under test, and can also improve the communication reliability between the device test system and the devices under test.
[0070] S240, performing a dislocation test on the test items of each device under test according to a dislocation test sequence.
[0071] In an optional embodiment of the present invention, the device under test may include a remote controller. Optionally, the device under test may also include a smart bracelet and a smart light, etc. The embodiment of the present invention limits the specific device type of the device under test.
[0072] According to the technical solution of this embodiment, the device testing system determines at least one test item of multiple devices to be tested, and when each test item is determined to be a first test item, further determines the basic synchronous test items included in the basic test link of the device to be tested, assigns a basic synchronous test order to the basic synchronous test items, and then determines the test items included in the non-basic test link of the device to be tested, and assigns a dislocation test order to the test items included in the non-basic test link according to the basic synchronous test order. After obtaining the dislocation test order, the test items of each device to be tested can be dislocated according to the dislocation test order. When the test items of multiple devices to be tested simultaneously obtained by the device testing system are the first test items, the device testing system can test different test items of multiple devices to be tested in the same test order, and the device testing system tests different test items of multiple devices to be tested at one time. Compared with testing different test items of multiple devices to be tested separately, the device testing time can be greatly shortened, and the problem of low device testing efficiency existing in the prior art when testing the test items of multiple devices to be tested through different test stations is solved, and the device testing efficiency can be improved.
[0073] It should be noted that any arrangement and combination of the technical features in the above embodiments also falls within the protection scope of the present invention.
[0074] Embodiment 3
[0075] Figure 3 It is a schematic diagram of a device testing system provided in Example 3 of the present invention, the structure of which includes: a central control module 310 and a target test module 320, wherein the central control module 310 is communicated with the target test module 320 to determine at least one test item of multiple devices under test; when each test item is determined to be the first test item, a staggered test sequence of the test items of each device under test is determined; wherein the test items of each device under test in the same staggered test sequence are different; the target test module 320 is used to perform staggered tests on the test items of each device under test according to the staggered test sequence.
[0076] The central control module 310 may be a control center of the device test system. The target test module 320 may be a device capable of testing the test items of the device under test.
[0077] In an embodiment of the present invention, when multiple devices under test need to be functionally tested, the central control module 310 of the device test system can determine at least one test item of the multiple devices under test according to the test requirements of the devices under test. If the central control module 310 of the device test system cannot assign the same test order to each identical test item according to the identical test items of the multiple devices under test, each test item can be determined to be a first test item. In the case of determining that each test item is a first test item, the central control module 310 can assign a test order to the test items in each device under test, thereby obtaining a dislocation test order for the test items of each device under test. After obtaining the dislocation test order, the central control module 310 can send a test signal to the target test module 320 according to the dislocation test order, so that the target test module 320 can receive the test signal according to the dislocation test order, and perform a dislocation test on the test items of each device under test according to the dislocation test order.
[0078] Optionally, the central control module 310 is specifically used to: determine the type of synchronization test item based on local configuration data; wherein the local configuration data includes the category of the locally configured target test module and the number of each of the target test modules; when it is determined that the test item does not completely match the synchronization test item type, determine the test item as the first test item.
[0079] Optionally, the central control module 310 is specifically used to: when it is determined that the test item is completely matched with the synchronization test item type, determine that the test item of the device under test is the second test item; determine the synchronization test sequence of the test items of the device under test; and perform synchronization testing on the test items of each device under test according to the synchronization test sequence.
[0080] Optionally, the central control module 310 is specifically used to: determine the basic synchronization test items included in the basic test phase of the device under test, and assign a basic synchronization test sequence to the basic synchronization test items; wherein the test items of each device under test in the same basic synchronization test sequence are the same; determine the test items included in the non-basic test phase of the device under test, and assign a staggered test sequence to the test items included in the non-basic test phase according to the basic synchronization test sequence.
[0081] Optionally, the central control module 310 is specifically used to: send a low voltage signal to the device under test through the GPIO general input and output pin to make the device under test enter a test state; send a test start signal to the device under test according to the staggered test sequence through the UART universal asynchronous receiver and transmitter communication method to make the test items of the device under test enter a test state.
[0082] Optionally, the device under test in any embodiment of the present invention includes a remote controller.
[0083] Exemplarily, the central control module of the equipment test system communicates with the remote control via UART communication instead of the traditional wireless Bluetooth communication, and puts the remote control into the test state by pulling down the potential of the GPIO pin. In the UART communication mode, the buzzer of the remote control can be controlled by UART, so that the central control module can use a microphone to collect the sound of the remote control buzzer, and use the integrated sound card to analyze the collected sound to determine whether the buzzer sounds normally; or, after controlling the buzzer of the remote control via UART, use a buzzer analyzer to analyze the sound of the remote control buzzer to determine whether the buzzer sounds normally. Other test items of the remote control can also be turned on and controlled via UART, which will not be repeated here.
[0084] Figure 4 Schematic diagram of hardware configuration of a device test system provided in Embodiment 3 of the present invention. When the device to be tested is a remote controller, the hardware configuration of the device test system can be referred to in Figure 4 , the central control module of the equipment test system can be a computer device. The target test module includes a spectrum analyzer, a radio frequency antenna, an LED analyzer, a buzzer sound analyzer, a Bluetooth adapter, a simulated mouth, a camera, and a remote control comprehensive tester. In order to ensure the accuracy of the test, the remote control and some equipment of the equipment test system can be placed in a voice shielding box. Specifically, it can be decided whether to install the remote control and the target test module in the voice shielding box according to actual needs. Figure 4 The device testing system shown can perform parallel testing on test items such as recording function, LED function, buzzer function and radio frequency function of multiple remote controllers at the same time.
[0085] When the device to be tested is a remote control, the device testing system can perform recording tests on multiple remote controls at the same time. Before testing the recording functions of multiple remote controls, the microphone of the central control module needs to be calibrated by a standard sound source generator to ensure that the microphone works properly, and the effective value of the standard sound source is recorded for subsequent artificial mouth calibration, and then the artificial mouth is calibrated using the calibrated microphone. Finally, the calibrated artificial mouth can continuously produce sweep frequency sounds from 150Hz to 7100Hz. Specifically, a 1Khz, 94dB standard sound source generator is used to calibrate the microphone of the central control module. The calibrated microphone measures the effective value of the sound emitted by the artificial mouth in real time and reports it to the central control module. The central control module adjusts the sound range of the artificial mouth so that the sound emitted by the artificial mouth in the full frequency band from 150Hz to 7100Hz is 94dB.
[0086] When the device test system tests the recording function of the remote control, the recording function of the remote control can be turned on through the UART communication method, and then the sweep frequency audio is played at 94dB through the artificial mouth, and the remote control records the audio emitted by the artificial mouth through the microphone, and sends the recording data to the central control module. The central control module decodes the recording data, and further analyzes the decoded recording data using the Fourier fast change method to obtain data such as the frequency, signal-to-noise ratio, and total harmonic distortion of the recording data, and then draws a response curve based on the frequency, signal-to-noise ratio, and total harmonic distortion data of the recording data, so that it can be judged whether the recording function of the remote control is normal based on the response curve. The central control module can support the decoding of multiple voice formats. For example, the central control module can support the decoding of voice formats such as PCM (Pulse Code Modulation) format, ADPCM (Adaptive Differential Pulse Code Modulation) format, ATV (Android TV) format, mSBC (a Bluetooth audio coding) format, and GATT (Generic Attribute Profile, a Bluetooth protocol). The frequency of the swept audio is selected according to 1 / 12 frequency multiplication, with a total of 68 frequency points from 150Hz to 7100Hz, and each frequency point is played for 30ms.
[0087] Figure 5 Schematic diagram of the positions of a remote controller and an artificial mouth provided in Embodiment 3 of the present invention. Figure 5 The remote control shown can be fixed by the test probe and placed above the artificial mouth. The remote control and the artificial mouth are connected in communication. In order to ensure that the quality of the audio data received by each remote control is the same, the remote control can be placed around the artificial mouth within a certain radius with the artificial mouth as the center. The final placement of the remote control can refer to Figure 6 .
[0088] Figure 7 FIG. 1 is a comparison diagram of a test method of a device test system provided by Embodiment 3 of the present invention and a traditional test method, taking the test device as a remote controller as an example. Figure 7 As shown, in the traditional test method, the remote control needs to be tested for different functions at different test stations. It is assumed that test station 1 can test the RF performance of the remote control, test station 2 can test the Bluetooth function of the remote control, and test station 3 can test the recording function of the remote control. When the remote control needs to test the RF performance, Bluetooth function and recording function, the following operations need to be performed at test station 1: place the remote control in the test fixture, scan the product barcode, let the remote control enter the test mode, perform the RF test and take out the remote control; the following operations need to be performed at test station 2: place the remote control in the test fixture, scan the product barcode, let the remote control enter the test mode, perform the Bluetooth function test and take out the remote control; the following operations need to be performed at test station 3: place the remote control in the test fixture, scan the product barcode, let the remote control enter the test mode, perform the recording test and take out the remote control. However, through the device testing system of the present invention (equivalent to a test station), the remote control can be placed in the test fixture, scan the product barcode, let the remote control enter the test mode, perform the RF test, perform the Bluetooth function test, perform the recording test and take out the remote control. The steps of completing the test of multiple functions of the remote control can reduce repeated steps and improve the test efficiency of the remote control.
[0089] Figure 8 FIG. 1 is a schematic diagram of a multi-function test performed on two remote controllers provided in Embodiment 3 of the present invention. Figure 8As shown, when remote controller 1 and remote controller 2 need to test the radio frequency function, buzzer function and recording function, the equipment testing system can configure the dislocation test sequence for the test items of remote controller 1 and remote controller 2. For example, the dislocation test sequence of remote controller 1 can be radio frequency function test, recording function test and buzzer function test. The dislocation test sequence of remote controller 2 can be recording function test, buzzer function test and radio frequency function test. After determining the test sequence of the test items of remote controller 1 and remote controller 2, the operator can place remote controller 1 and remote controller 2 into the test fixture, and the equipment testing system further determines whether remote controller 1 and remote controller 2 are both placed in the test fixture set by the equipment testing system for the remote controller. After determining that the remote controller is located in the test fixture, the central control module can send instructions to the camera so that the camera automatically scans the product barcode of the remote controller, and then tests remote controller 1 and remote controller 2 according to the dislocation test sequence. After all the test items of the two remote controllers are tested, the two remote controllers can be taken out of the test fixture. Since the hardware cost of a buzzer tester for performing a buzzer function test and a radio frequency tester for performing a radio frequency function test is high, only one buzzer tester and one radio frequency tester need to be configured in the device test system. Currently, two buzzer testers are required to test the buzzer functions of two remote controllers simultaneously, but the present invention performs staggered testing on the same test items of two remote controllers, which can improve the test efficiency of the remote controllers and reduce the requirements on the hardware equipment of the device test system.
[0090] It should be noted that all data transmission and testing between the equipment test system and the remote control can be directly carried out through UART communication, without the need for additional Bluetooth pairing, thereby improving communication efficiency and breaking the limitation that the test equipment at the test station can only communicate with one remote control at the same time, supporting parallel communication with multiple remote controls at the same time. The equipment test system communicates with the remote control and the target test module through the central control module, and there is no need for the operator to manually access the remote control when testing it.
[0091] According to the technical solution of this embodiment, the device testing system determines at least one test item of multiple devices to be tested, and when each test item is determined to be a first test item, further determines the basic synchronous test items included in the basic test link of the device to be tested, assigns a basic synchronous test order to the basic synchronous test items, and then determines the test items included in the non-basic test link of the device to be tested, and assigns a dislocation test order to the test items included in the non-basic test link according to the basic synchronous test order. After obtaining the dislocation test order, the test items of each device to be tested can be dislocated according to the dislocation test order. When the test items of multiple devices to be tested simultaneously obtained by the device testing system are the first test items, the device testing system can test different test items of multiple devices to be tested in the same test order, and the device testing system tests different test items of multiple devices to be tested at one time. Compared with testing different test items of multiple devices to be tested separately, the device testing time can be greatly shortened, and the problem of low device testing efficiency existing in the prior art when testing the test items of multiple devices to be tested through different test stations is solved, and the device testing efficiency can be improved.
[0092] Embodiment 4
[0093] Fig. 9 is a schematic diagram of a device testing apparatus provided by Embodiment 4 of the present invention, such as Fig. 9 As shown, the device includes: a test item determination module 410, a misalignment test sequence determination module 420 and a misalignment test module 430, wherein:
[0094] A test item determination module 410, configured to determine at least one test item for a plurality of devices under test;
[0095] The staggered test sequence determination module 420 is used to determine the staggered test sequence of the test items of each device under test when each test item is determined to be the first test item; wherein the test items of each device under test in the same staggered test sequence are different;
[0096] The misalignment test module 430 is used to perform misalignment tests on the test items of each device under test according to a misalignment test sequence.
[0097] Optionally, the misaligned test order determination module 420 is specifically used to: determine the type of synchronous test item based on local configuration data; wherein the local configuration data includes the category of the locally configured target test module and the number of each of the target test modules; when it is determined that the test item does not completely match the type of synchronous test item, determine the test item as the first test item.
[0098] Optionally, the equipment testing device also includes a synchronization test module, which is used to determine that the test item of the device to be tested is a second test item when it is determined that the test item is completely matched with the synchronization test item type; determine the synchronization test sequence of the test items of the device to be tested; and perform synchronization testing on the test items of each device to be tested according to the synchronization test sequence.
[0099] Optionally, the staggered test sequence determination module 420 is specifically used to: determine the basic synchronization test items included in the basic test phase of the device under test, and assign a basic synchronization test sequence to the basic synchronization test items; wherein the test items of each device under test in the same basic synchronization test sequence are the same; determine the test items included in the non-basic test phase of the device under test, and assign a staggered test sequence to the test items included in the non-basic test phase according to the basic synchronization test sequence.
[0100] Optionally, the misalignment test module 430 is specifically used to: send a low voltage signal to the device under test through the GPIO general input and output pin to make the device under test enter a test state; send a test start signal to the device under test according to the misalignment test sequence through the UART universal asynchronous receiver and transmitter communication method to make the test items of the device under test enter a test state.
[0101] Optionally, the device under test described in any embodiment of the present invention includes a remote controller.
[0102] According to the technical solution of this embodiment, the device testing system determines at least one test item of multiple devices to be tested, and when each test item is determined to be the first test item, further determines the staggered test order of the test items of each device to be tested, and then performs staggered testing on the test items of each device to be tested according to the staggered test order. Among them, the test items of each device to be tested in the same staggered test order are different. When the test items of multiple devices to be tested simultaneously acquired by the device testing system are the first test items, the device testing system can test different test items of the multiple devices to be tested in the same test order, and the device testing system tests different test items of multiple devices to be tested at one time. Compared with testing different test items of multiple devices to be tested separately, the test time can be greatly shortened, which solves the problem of low test efficiency when testing the test items of multiple devices to be tested through different test stations in the prior art, and can improve the test efficiency of the device.
[0103] The above-mentioned device testing apparatus can execute the device testing method provided by any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the device testing method provided by any embodiment of the present invention.
[0104] Since the device testing apparatus introduced above is a device that can execute the device testing method in the embodiment of the present invention, based on the device testing method introduced in the embodiment of the present invention, the technical personnel in this field can understand the specific implementation of the device testing apparatus of this embodiment and its various variations, so how the device testing apparatus implements the device testing method in the embodiment of the present invention is not described in detail here. As long as the technical personnel in this field implement the device used in the device testing method in the embodiment of the present invention, it belongs to the scope of protection of this application.
[0105] Embodiment 5
[0106] Fig.10 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. Fig.10 A block diagram of an electronic device 512 suitable for implementing embodiments of the present invention is shown. Fig.10 The electronic device 512 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0107] like Fig.10 As shown, the electronic device 512 is in the form of a general purpose computing device. The components of the electronic device 512 may include, but are not limited to: one or more processors 516, a storage device 528, and a bus 518 connecting different system components (including the storage device 528 and the processor 516).
[0108] Bus 518 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, MicroChannel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0109] The electronic device 512 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 512, including volatile and non-volatile media, removable and non-removable media.
[0110] The storage device 528 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 530 and / or cache memory 532. The electronic device 512 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 534 may be used to read and write non-removable, non-volatile magnetic media ( Fig.10 not shown, usually called a "hard drive"). Although Fig.10 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a read-only optical disk (Compact Disc-ReadOnly Memory, CD-ROM), a digital video disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 518 via one or more data medium interfaces. The storage device 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0111] A program 536 having a set (at least one) of program modules 526 may be stored, for example, in a storage device 528, such program modules 526 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 526 generally perform the functions and / or methods of the embodiments described herein.
[0112] The electronic device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing device, camera, display 524, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 512, and / or communicate with any device that enables the electronic device 512 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 522. In addition, the electronic device 512 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through a network adapter 520. As shown, the network adapter 520 communicates with other modules of the electronic device 512 through a bus 518. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Disks, RAID) systems, tape drives, and data backup storage systems.
[0113] The processor 516 executes various functional applications and data processing by running the program stored in the storage device 528, for example, implementing the device testing method provided in the above-mentioned embodiment of the present invention: determining at least one test item of multiple devices to be tested; when each test item is determined to be the first test item, determining the staggered test order of the test items of each device to be tested; wherein the test items of each device to be tested in the same staggered test order are different; and performing staggered tests on the test items of each device to be tested according to the staggered test order.
[0114] According to the technical solution of this embodiment, the device testing system determines at least one test item of multiple devices to be tested, and when each test item is determined to be the first test item, further determines the staggered test order of the test items of each device to be tested, and then performs staggered testing on the test items of each device to be tested according to the staggered test order. Among them, the test items of each device to be tested in the same staggered test order are different. When the test items of multiple devices to be tested simultaneously acquired by the device testing system are the first test items, the device testing system can test different test items of the multiple devices to be tested in the same test order, and the device testing system tests different test items of multiple devices to be tested at one time. Compared with testing different test items of multiple devices to be tested separately, the test time can be greatly shortened, which solves the problem of low test efficiency when testing the test items of multiple devices to be tested through different test stations in the prior art, and can improve the test efficiency of the device.
[0115] Embodiment 6
[0116] Embodiment 6 of the present invention further provides a computer storage medium storing a computer program, wherein the computer program, when executed by a computer processor, is used to execute the device testing method described in any one of the above embodiments of the present invention: determining at least one test item for multiple devices to be tested; when each test item is determined to be the first test item, determining a staggered test order for the test items of each device to be tested; wherein the test items of each device to be tested in the same staggered test order are different; and performing staggered tests on the test items of each device to be tested according to the staggered test order.
[0117] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.
[0118] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0119] The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
[0120] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0121] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A device testing method, It is characterized in that Applied to equipment test systems, including: Determine at least one test item for a plurality of devices under test; In the case where each of the test items is determined to be the first test item, determining a staggered test sequence of the test items of each of the devices under test; wherein the test items of each of the devices under test in the same staggered test sequence are different; Performing a dislocation test on the test items of each of the devices under test according to the dislocation test sequence; The step of determining the staggered test sequence of the test items of each of the devices under test comprises: Determine the basic synchronization test items included in the basic test link of the device under test, and assign a basic synchronization test sequence to the basic synchronization test items; wherein the test items of each device under test in the same basic synchronization test sequence are the same; Determine the test items included in the non-basic test phase of the device under test, and assign a staggered test sequence to the test items included in the non-basic test phase according to the basic synchronous test sequence.
2. The method according to claim 1, It is characterized in that The step of determining each of the test items as a first test item comprises: Determine the synchronization test item type according to the local configuration data; wherein the local configuration data includes the category of the locally configured target test module and the number of each of the target test modules; In a case where it is determined that the test item does not completely match the type of the synchronization test item, the test item is determined as the first test item.
3. The method according to claim 2, It is characterized in that Also includes: In the case where it is determined that the test item completely matches the type of the synchronization test item, determining that the test item of the device under test is a second test item; Determine a synchronous test sequence of test items of the device under test; The test items of each of the devices under test are synchronously tested according to the synchronous test sequence.
4. The method according to claim 1, It is characterized in that After allocating a staggered test sequence for the test items included in the non-basic test link according to the basic synchronous test sequence, the method further includes: Sending a low voltage signal to the device under test through a GPIO general purpose input and output pin, so that the device under test enters a test state; A test start signal is sent to the device under test in accordance with the staggered test sequence through a UART universal asynchronous receiver-transmitter communication mode, so that the test item of the device under test enters a test state.
5. The method according to any one of claims 1 to 4, It is characterized in that The device to be tested includes a remote controller.
6. A device testing system, controlled by the device testing method according to any one of claims 1 to 5, It is characterized in that It includes a central control module and a target test module, including: The central control module is in communication connection with the target test module, and is used to determine at least one test item of a plurality of devices under test; when each of the test items is determined to be the first test item, determine a staggered test sequence of the test items of each of the devices under test; wherein the test items of each of the devices under test in the same staggered test sequence are different; The target test module is used to perform a misalignment test on the test items of each of the devices under test according to the misalignment test sequence.
7. A device testing apparatus, using the device testing method according to any one of claims 1 to 5 for testing, It is characterized in that include: A test item determination module, used to determine at least one test item for a plurality of devices to be tested; A staggered test sequence determination module, used to determine the staggered test sequence of the test items of each of the devices under test when each of the test items is determined to be the first test item; wherein the test items of each of the devices under test in the same staggered test sequence are different; The misalignment test module is used to perform misalignment test on the test items of each of the devices under test according to the misalignment test sequence.
8. An electronic device, It is characterized in that The electronic device comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the device testing method as described in any one of claims 1 to 5.
9. A computer storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the device testing method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
A test system and test method
CN101056216A
Composite parallel test system and method thereof
CN104880618A
Method and device for testing performance of audio equipment
CN107071681A
Shared resource allocation method for cloud load testing
CN111082971A
Cell -phone multistation testing arrangement that walks abreast
CN204887141U
