Test method and test device

By using a shield box and a code scan gun in the Bluetooth test method, combining signal strength and signal changes to identify the equipment to be tested, the problem of existing Bluetooth testing methods accurately matching the equipment in a multi-Bluetooth broadcast environment is solved, testing efficiency and accuracy are improved, and flexible configurable item selection function is provided.

CN119602886APending Publication Date: 2025-03-11SUZHOU LOCUS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411772108.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

Existing Bluetooth testing methods are susceptible to interference from surrounding wireless signals, have low test efficiency, and cannot accurately find designated Bluetooth modules in multi-Bluetooth broadcast environments. The test environment requirements are high, and the test device does not have the flexible selection function of configurable items.

Method used

By setting up a shield box and a code scan gun, connecting the equipment to be tested in the shield box, and obtaining the target address of the equipment to be tested by scanning the code, directly connecting the equipment to be tested, and identifying the equipment to be tested based on signal strength and signal changes, achieving fast and accurate matching.

Benefits of technology

It effectively solves the problem that it is difficult to accurately find a designated Bluetooth module in a multi-Bluetooth broadcast environment, improves testing efficiency and accuracy, and provides flexible configurable item selection functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119602886A_ABST
    Figure CN119602886A_ABST
Patent Text Reader

Abstract

The invention discloses a test method and a test device, and the test method comprises the steps: enabling a to-be-tested device and a Bluetooth adapter to be disposed in a shielding box in a first mode, and controlling the Bluetooth adapter to be connected with the to-be-tested device through a host. And in the second mode, scanning the identification code of the to-be-tested equipment through the code scanning gun, outputting the identification code, receiving the identification code through the host, analyzing the target address corresponding to the identification code, and controlling the Bluetooth adapter to establish connection with the to-be-tested equipment through the host. According to the testing method and the testing device, the shielding box and the code scanning gun are arranged, so that the to-be-tested equipment in the shielding box can be connected, the target address of the to-be-tested equipment can be obtained through code scanning, and then the to-be-tested equipment is directly connected through the target address; the problem that the specified to-be-tested equipment is difficult to accurately find in an environment with a plurality of Bluetooth broadcasts is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of product testing, and in particular relates to a testing method and a testing device. Background Art

[0002] As a short-range wireless transmission technology with low power, Bluetooth meets the user's requirements for fast and secure data or voice transmission within a given distance, so it is widely integrated into test equipment.

[0003] Existing Bluetooth testing methods include two main aspects: functional testing and performance testing. Testing can be performed using professional testing platforms, testing devices, etc. Existing Bluetooth testing platforms are easily interfered by other wireless signals around them, such as WiFi signals and signals from other Bluetooth devices. They have low testing efficiency and cannot accurately find the specified Bluetooth module in an environment with many Bluetooth broadcasts. They have high requirements for the testing environment. In addition, existing Bluetooth testing devices do not have the function of flexibly selecting configurable items for Bluetooth testing.

[0004] The information disclosed in this background technology section is only intended to enhance the understanding of the overall background of the invention and should not be regarded as an acknowledgment or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art. Summary of the invention

[0005] The object of the present invention is to provide a testing method and a testing device, which can quickly and accurately match a specified device to be tested.

[0006] In order to achieve the above object, a technical solution provided by a specific embodiment of the present invention is as follows:

[0007] A testing method comprises: in a first mode, scanning an identification code of a device under test by a barcode scanner and outputting the identification code; arranging the device under test and a Bluetooth adapter inside a shielding box; receiving the identification code by a host and parsing target configuration information corresponding to the identification code; controlling the Bluetooth adapter to establish a connection with the device under test by the host, and sending configuration instructions for configuring the device under test and test instructions for controlling the device under test to the device under test; testing the device under test by a test module and sending the test result to the host; or in a second mode, scanning an identification code of the device under test by a barcode scanner and outputting the identification code; receiving the identification code by the host and parsing the target address and target configuration information corresponding to the identification code; controlling the Bluetooth adapter to establish a connection with the device under test by the host, and sending configuration instructions for configuring the device under test and test instructions for controlling the device under test to the device under test; testing the device under test by a test module and sending the test result to the host.

[0008] In one or more embodiments of the present invention, controlling the Bluetooth adapter by the host to establish a connection with the device under test in the second mode includes: controlling the Bluetooth adapter by the host to establish a connection with the device under test whose Mac address is the target address.

[0009] In one or more embodiments of the present invention, controlling the Bluetooth adapter by the host in the first mode to establish a connection with the device under test includes: controlling the Bluetooth adapter by the host to scan the connectable Bluetooth devices and obtain the signal strength of the connectable Bluetooth devices; identifying the device under test from the connectable Bluetooth devices according to the signal strength and establishing a connection with the device under test.

[0010] In one or more embodiments of the present invention, identifying the device to be tested from the connectable Bluetooth devices according to the signal strength includes: identifying the device with the strongest signal strength after the shielding box is closed as the device to be tested.

[0011] In one or more embodiments of the present invention, identifying the device to be tested from the connectable Bluetooth devices according to the signal strength includes: identifying the device to be tested according to signal changes before and after the shielding box is closed.

[0012] In one or more embodiments of the present invention, identifying the device under test based on the signal changes before and after the shielding box is closed includes: recording the first signal strength of the connectable Bluetooth device before the shielding box is closed and the second signal strength after the shielding box is closed; calculating the difference or ratio between the first signal strength and the second signal strength of at least some of the connectable Bluetooth devices; identifying the connectable Bluetooth device with the smallest difference between the first signal strength and the second signal strength as the device under test or identifying the connectable Bluetooth device with the largest ratio between the second signal strength and the first signal strength as the device under test.

[0013] In one or more embodiments of the present invention, the step of calculating the difference or ratio between the first signal strength and the second signal strength of at least some of the connectable Bluetooth devices includes: sorting the connectable Bluetooth devices according to the second signal strength; screening out several connectable Bluetooth devices with the strongest second signal strength and calculating the difference or ratio between the first signal strength and the second signal strength of these connectable Bluetooth devices.

[0014] In one or more embodiments of the present invention, the test method further includes: after the host controls the Bluetooth adapter to send a configuration instruction for configuring the device under test, the host reads the configuration information of the device under test and compares it with the target configuration information to obtain a comparison result.

[0015] In one or more embodiments of the present invention, the testing method further includes: controlling the Bluetooth adapter through the host to send a sleep instruction to control at least part of the functional modules of the device under test to sleep; and / or controlling the Bluetooth adapter through the host to disconnect the Bluetooth connection with the device under test; and / or saving the test results through the host.

[0016] A specific embodiment of the present invention also provides a testing device. Based on the above-mentioned testing method, the testing device includes a host, a Bluetooth adapter, a shielding box, a barcode scanner and a testing module, wherein the Bluetooth adapter, the barcode scanner and the testing module are connected to the host; in a first mode, the device to be tested and the Bluetooth adapter are arranged inside the shielding box, and the barcode scanner is used to scan the identification code of the device to be tested and output the identification code; the host is used to receive the identification code and parse the target configuration information corresponding to the identification code; the host is also used to control the Bluetooth adapter to establish a connection with the device to be tested, and send a configuration instruction for configuring the device to be tested and a test instruction for controlling the device to be tested to the device to be tested; the testing module is used to test the device to be tested and send the test result to the host; in a second mode, the barcode scanner is used to scan the identification code of the device to be tested and output the identification code; the host is used to receive the identification code and parse the target address and target configuration information corresponding to the identification code; the host is also used to control the Bluetooth adapter to establish a connection with the device to be tested, and send a configuration instruction for configuring the device to be tested and a test instruction for controlling the device to be tested to the device to be tested; the testing module is used to test the device to be tested and send the test result to the host.

[0017] Compared with the prior art, the test method and test device of the present invention, by setting up a shielding box and a barcode scanner, can not only connect to the device to be tested in the shielding box, but also obtain the target address of the device to be tested by scanning the code, and then directly connect to the device to be tested through the target address, which effectively solves the problem of difficulty in accurately finding a specified device to be tested in an environment with many Bluetooth broadcasts.

[0018] In addition, since the shielding box cannot be completely sealed for ventilation, wiring, etc., and thus cannot completely shield the external signal, this test method also provides two methods to accurately identify the device under test. One is to directly connect the device with the strongest signal, which is convenient and effective and suitable for most test environments. The other is to identify the device under test by the change of the signal during the closing process of the shielding box. In some cases where the signal of the device under test itself is weak and the external signal is strong, even if the device under test is placed in the shielding box, the external signal may interfere with the signal of the device under test. This identification method can more accurately find the device under test. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 FIG. 4 is a structural diagram of a testing device in one embodiment of the present invention.

[0021] Figure 2 Flow chart of a testing method in one embodiment of the present invention.

[0022] Figure 3 FIG. 4 is another flow chart of a testing method in one embodiment of the present invention.

[0023] Figure 4 The figure is a partial step flow chart of a testing method in one embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] "Coupled" or "connected" or "connected" in the specification includes both direct connection and indirect connection. Indirect connection is a connection through an intermediate medium, such as a connection through an electrically conductive medium, which may have parasitic inductance or parasitic capacitance; indirect connection may also include connection through other active or passive devices on the basis of achieving the same or similar functional purposes, such as connection through circuits or components such as switches and follower circuits. In addition, in the invention, words such as "first" and "second" are mainly used to distinguish one technical feature from another technical feature, and do not necessarily require or imply that there is a certain actual relationship, quantity or order between these technical features.

[0026] In the detailed description of the specification, reference is made to the accompanying drawings forming a part thereof, wherein like reference numerals refer to like parts throughout, and wherein are shown by way of exemplary embodiments that may be implemented. It should be understood that other embodiments may be utilized and structural or logical changes may be made without departing from the scope of the present disclosure. Therefore, the following detailed description should not be considered in a limiting sense.

[0027] The various operations in the specification may be described in turn as multiple discrete actions or operations in a manner that is most helpful in understanding the claimed subject matter. However, the order of description should not be interpreted as implying that these operations must be order-dependent. Specifically, these operations may not be performed in the order presented. The described operations may be performed in an order different from the described embodiments. Various additional operations may be performed and / or the described operations may be omitted in additional embodiments.

[0028] For purposes of this disclosure, the phrase "A and / or B" means (A), (B), or (A and B). For purposes of this disclosure, the phrase "A, B and / or C" means (A), (B), (C), (A and B), (A and C), (B and C), or (A, B and C).

[0029] Various components and devices may be referred to or shown in the singular form in this document (for example, "MOS tube", "transistor", "switch", etc.), but this is only for convenience of discussion, and any element mentioned in the singular form may include multiple such elements according to the teachings of this document.

[0030] The specification describes the use of the phrases "in one embodiment" or "in other embodiments" or "in some embodiments", which may each refer to one or more of the same or different embodiments. In addition, the terms "including", "comprising", "having", etc. used in relation to the embodiments of the present disclosure are synonymous.

[0031] like Figure 1 As shown, the testing device in one embodiment of the present invention includes a host 10 , a barcode scanner 20 , a Bluetooth adapter 30 , a testing module 40 and a shielding box 50 .

[0032] Among them, the Bluetooth adapter 30, the barcode scanner 20 and the test module 40 are connected to the host 10. In the first mode, the device under test and the Bluetooth adapter 30 are arranged inside the shielding box 50. The barcode scanner 20 is used to scan the identification code of the device under test and output the identification code. The host 10 is used to receive the identification code and parse the target configuration information corresponding to the identification code, control the Bluetooth adapter 30 to establish a connection with the device under test, and send configuration instructions for configuring the device under test and test instructions for controlling the device under test to the device under test. The test module 40 is used to test the device under test and send the test results to the host 10.

[0033] In the second mode, the barcode scanner 20 is used to scan the identification code of the device under test and output the identification code. The host 10 is used to receive the identification code and parse the target configuration information and target address corresponding to the identification code, control the Bluetooth adapter 30 to establish a connection with the device under test, and send configuration instructions for configuring the device under test and test instructions for controlling the device under test to the device under test. The test module 40 is used to test the device under test and send the test results to the host 10.

[0034] In one embodiment, both the shielding box 50 and the shielding box 50 are provided with aviation plugs connected to the host 10, and the Bluetooth adapter 30 can be plugged into the aviation plugs to achieve connection with the host 10. The host 10 can be fixedly installed with the shielding box 50, or can be independently arranged outside the shielding box 50.

[0035] In one embodiment, the shielding box 50 includes a box body, a box door and a motor. The box door is movably installed with the box body through the motor. The host 10 is connected to the motor, and the host 10 can control the opening and closing of the box door through the motor.

[0036] In other embodiments, the shielding box 50 may also adopt a manual door opening and closing method or other opening and closing methods and specific structures.

[0037] In one embodiment, the testing module 40 includes an ammeter connected to the device under test, and the ammeter is used to detect the current on the device under test.

[0038] In other embodiments, the test module 40 may also be configured as other test instruments according to actual test requirements. The present solution does not limit the specific form and test content of the test module 40.

[0039] like Figure 2 and Figure 3 As shown, an embodiment of the present invention further provides a testing method. The above-mentioned testing device can be used to implement the testing method. The testing method includes:

[0040] In the first mode, the identification code of the device to be tested is scanned by the barcode scanner 20 and the identification code is output.

[0041] The device under test and the Bluetooth adapter 30 are placed inside the shielding box 50 .

[0042] The host 10 receives the identification code and parses the target configuration information corresponding to the identification code.

[0043] The host 10 controls the Bluetooth adapter 30 to establish a connection with the device under test, and sends a configuration instruction for configuring the device under test and a test instruction for controlling the device under test to the device under test.

[0044] The device to be tested is tested by the testing module 40 and the test result is sent to the host 10 .

[0045] Alternatively, in the second mode, the identification code of the device to be tested is scanned by the barcode scanner 20 and the identification code is output.

[0046] The host 10 receives the identification code and parses the target address and target configuration information corresponding to the identification code.

[0047] The host 10 controls the Bluetooth adapter 30 to establish a connection with the device under test, and sends a configuration instruction for configuring the device under test and a test instruction for controlling the device under test to the device under test.

[0048] The device to be tested is tested by the testing module 40 and the test result is sent to the host 10 .

[0049] Specifically, in the second mode, controlling the Bluetooth adapter 30 through the host 10 to establish a connection with the device under test includes: controlling the Bluetooth adapter 30 through the host 10 to establish a connection with the device under test whose Mac address is the target address.

[0050] The test method in this embodiment provides two connection modes for the device under test. In the first mode, by placing the device under test in the shielding box 50, interference signals from other external devices can be shielded, thereby facilitating the connection between the Bluetooth adapter 30 and the device under test. In the second mode, by scanning the code to obtain the target address information carried in the identification code of the device under test, the host 10 can also control the Bluetooth adapter 30 to directly connect to the device under test whose Mac address is the target address. The second mode is suitable for scenarios where the identification code can be assigned to a unique device address.

[0051] It should be noted that in the first mode, in addition to receiving the identification code through the host 10 and parsing the target configuration information corresponding to the identification code, the host 10 can also parse the target address corresponding to the identification code and take other measures based on the target address. This solution does not limit the first mode to the situation where the identification code lacks a corresponding target address.

[0052] In the second mode, the device under test and the Bluetooth adapter 30 can be set outside the shielding box 50, or the device under test and the Bluetooth adapter 30 can be set inside the shielding box 50. The specific positions of the device under test and the Bluetooth adapter 30 are not limited as long as the two can be connected by signal.

[0053] like Figure 4 As shown, in the first mode, controlling the Bluetooth adapter 30 through the host 10 to establish a connection with the device under test includes: controlling the Bluetooth adapter 30 through the host 10 to scan the connectable Bluetooth devices and obtain the signal strength of the connectable Bluetooth devices. According to the signal strength, the device under test is identified from the connectable Bluetooth devices and a connection is established with the device under test.

[0054] In one embodiment, identifying the device to be tested from the connectable Bluetooth devices according to the signal strength includes: identifying the device with the strongest signal strength after the shielding box 50 is closed as the device to be tested.

[0055] Since the shielding box 50 cannot be completely sealed for ventilation, wiring, etc., and thus cannot completely shield the external signal, when the Bluetooth adapter 30 scans for connectable Bluetooth devices, there may still be multiple devices to be connected, and it is impossible to confirm which is the device to be tested. In this embodiment, the device with the strongest signal is directly connected. This is because in many cases, after the signal of the device outside the shielding box 50 is shielded, the signal strength entering the box is very weak, and only the signal strength of the device to be tested is strong. This can conveniently and effectively screen out the device to be tested, which is suitable for most test environments.

[0056] However, in some cases, the signal strength of the device under test itself is weak, while the signal of other external devices is strong. Even if the device under test is placed in the shielding box 50, the signal of the external device may be similar to or even stronger than the signal strength of the device under test after being shielded, thereby interfering with the signal detection of the device under test. In this case, the device under test can be found more accurately through another identification method as described below.

[0057] In another embodiment, identifying the device to be tested from the connectable Bluetooth devices according to the signal strength includes: identifying the device to be tested according to signal changes before and after the shielding box 50 is closed.

[0058] Preferably, identifying the device under test according to the signal change before and after the shielding box 50 is closed includes:

[0059] The first signal strength a of the connectable Bluetooth device before the shielding box 50 is closed and the second signal strength b after the shielding box 50 is closed are recorded.

[0060] A difference or a ratio between a first signal strength a and a second signal strength b of at least some of the connectable Bluetooth devices is calculated.

[0061] The connectable Bluetooth device with the smallest difference ab between the first signal strength a and the second signal strength b is identified as the device to be tested, or the connectable Bluetooth device with the largest ratio b / a between the second signal strength b and the first signal strength a is identified as the device to be tested.

[0062] Preferably, calculating at least a difference or a ratio between a first signal strength a and a second signal strength b of some of the connectable Bluetooth devices comprises:

[0063] The connectable Bluetooth devices are sorted according to the second signal strength b.

[0064] A plurality of connectable Bluetooth devices with the strongest second signal strength b are screened out, and the difference ab or the ratio b / a between the first signal strength a and the second signal strength b of these connectable Bluetooth devices is calculated.

[0065] In this embodiment, the signal strength of the device under test received by the Bluetooth adapter 30 is different from the signal strength of other external connectable Bluetooth devices before and after the shielding box 50 is closed, that is, the signal strength of the device under test does not change much or is slightly stronger after closing the door than before closing the door, while the signal strength of other connectable Bluetooth devices is weaker after closing the door than before closing the door, so as to identify and distinguish the device under test.

[0066] Based on the above principle, the difference ab between the first signal strength a and the second signal strength b of the device under test is the smallest among all connectable Bluetooth devices, and the ratio b / a between the second signal strength b and the first signal strength a of the device under test is the largest among all connectable Bluetooth devices. By comparing multiple connectable Bluetooth devices, the device under test can be easily found.

[0067] In addition, by screening the connectable Bluetooth devices based on the second signal strength b before calculating the difference / ratio, some of the connectable Bluetooth devices with weaker second signal strength b can be excluded first. This may be caused by a weak signal still leaking into the shielding box 50 after the shielding box 50 is closed. By excluding these devices first, the amount of calculation can be reduced and incorrect matching connections can be avoided.

[0068] Of course, it is understandable that based on the principle that the signal strengths of the device under test and other external connectable Bluetooth devices have different change trends before and after the shielding box 50 is closed, other different methods can also be used to identify the device under test, which will not be elaborated here.

[0069] In one embodiment, the shielding box 50 may include a box body, a box door and a motor. The box door is movably installed with the box body through the motor. The host 10 is connected to the motor. The host 10 can further control the opening and closing of the box door by controlling the motor.

[0070] Then recording the first signal strength a of the connectable Bluetooth device before the shielding box 50 is closed and the second signal strength b after the shielding box 50 is closed may also include:

[0071] The first signal strength is recorded, the cabinet door is closed by controlling the host 10, and then the second signal strength is recorded.

[0072] By controlling the shielding box 50 through the host 10, the automation level of the entire test process can be improved, and manual operation is not required during the process, thereby improving the test rhythm.

[0073] In other embodiments, the shielding box 50 may also adopt a manual door opening and closing method or other opening and closing methods and specific structures.

[0074] In one embodiment, the testing method further includes: after the host 10 controls the Bluetooth adapter 30 to send a configuration instruction for configuring the device under test, the host 10 reads the configuration information of the device under test and compares it with the target configuration information to obtain a comparison result.

[0075] Based on the comparison result, the host 10 can determine whether there are any abnormal problems in the configuration process of the device under test, and can also further control the Bluetooth adapter 30 to resend the configuration instruction for further configuration. The configuration instruction can carry the target configuration information corresponding to the identification code, and the configuration instruction can be used to modify the MAC, USN, PTI, DataCode, ModelNr and other parameters of the device under test.

[0076] In other embodiments, this step may not be provided.

[0077] In one embodiment, the test module 40 includes an ammeter connected to the device under test, and the ammeter is used to detect the current on the device under test. When the host 10 sends a test instruction, the device under test starts to operate based on the control of the test instruction. The ammeter can detect whether the current on the device under test meets the preset standard and transmit the test result to the host 10.

[0078] In other embodiments, the test module 40 can also be set to other test instruments according to actual test needs, and the test instructions can also perform other controls on the device under test. This scheme does not limit the specific form and test content of the test module 40, and the test process can also be set at will and changed at any time.

[0079] In one embodiment, the test method further includes: controlling the Bluetooth adapter 30 to send a sleep instruction to control at least part of the functional modules of the device under test to sleep through the host 10, controlling the Bluetooth adapter 30 to disconnect the Bluetooth connection with the device under test through the host 10, and saving the test results through the host 10.

[0080] By controlling the device to be tested to sleep at least some functional modules, such as the Bluetooth module, etc., the power consumption of the device to be tested can be reduced to avoid excessive power consumption of the device after leaving the factory. Disconnecting the Bluetooth connection is conducive to repeated testing. In other embodiments, one or more of these three steps may not be set.

[0081] In one embodiment, the test method may further include: if an error occurs in any of the above steps, an error is reported by the host 10 and the test is terminated.

[0082] The present invention achieves the following beneficial effects. By setting up a shielding box 50 and a barcode scanner 20, it is possible to connect to the device to be tested in the shielding box 50 by shielding external signals, and also to obtain the target address of the device to be tested by scanning the barcode, and then directly connect to the device to be tested through the target address, thereby effectively solving the problem of difficulty in accurately finding a specified device in an environment with many Bluetooth broadcasts.

[0083] In addition, since the shielding box 50 cannot be completely sealed for ventilation, wiring, etc., and thus cannot completely shield the external signal, the present invention also provides two methods for accurately identifying the device under test. One is to directly connect the device with the strongest signal, which is convenient and effective and suitable for most test environments. The other is to identify the device under test by the change of the signal during the closing process of the shielding box 50. In some cases where the signal of the device under test itself is weak and the external signal is very strong, even if the device under test is placed in the shielding box 50, the external signal may interfere with the signal of the device under test. This identification method can more accurately find the device under test.

[0084] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0085] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0086] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0087] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0088] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

[0089] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A testing method, characterized in that: include: In the first mode, the identification code of the device under test is scanned by a barcode scanner and the identification code is output; Place the device under test and the Bluetooth adapter inside the shielding box; Receiving the identification code through the host and parsing the target configuration information corresponding to the identification code; Control the Bluetooth adapter through the host to establish a connection with the device under test, and send a configuration instruction for configuring the device under test and a test instruction for controlling the device under test to the device under test; Test the device under test through the test module and send the test results to the host; or In the second mode, the identification code of the device under test is scanned by a barcode scanner and the identification code is output; Receiving the identification code through the host and parsing the target address and target configuration information corresponding to the identification code; Control the Bluetooth adapter through the host to establish a connection with the device under test, and send a configuration instruction for configuring the device under test and a test instruction for controlling the device under test to the device under test; The test module tests the device under test and sends the test results to the host.

2. The testing method according to claim 1, characterized in that: In the second mode, controlling the Bluetooth adapter by the host to establish a connection with the device under test includes: controlling the Bluetooth adapter by the host to establish a connection with the device under test whose Mac address is the target address.

3. The testing method according to claim 1, characterized in that: In the first mode, controlling the Bluetooth adapter by the host to establish a connection with the device under test includes: Control the Bluetooth adapter through the host to scan the connectable Bluetooth devices and obtain the signal strength of the connectable Bluetooth devices; The device under test is identified from connectable Bluetooth devices according to signal strength and a connection is established with the device under test.

4. The testing method according to claim 3, characterized in that: The step of identifying the device to be tested from the connectable Bluetooth devices according to the signal strength includes: identifying the device with the strongest signal strength after the shielding box is closed as the device to be tested.

5. The testing method according to claim 3, characterized in that: The step of identifying the device to be tested from the connectable Bluetooth devices according to the signal strength includes: identifying the device to be tested according to the signal change before and after the shielding box is closed.

6. The testing method according to claim 5, characterized in that: The step of identifying the device under test according to the signal changes before and after the shielding box is closed comprises: Recording a first signal strength of a connectable Bluetooth device before the shielding box is closed and a second signal strength after the shielding box is closed; Calculate a difference or a ratio between a first signal strength and a second signal strength of at least some of the connectable Bluetooth devices; A connectable Bluetooth device having the smallest difference between the first signal strength and the second signal strength is identified as the device to be tested, or a connectable Bluetooth device having the largest ratio between the second signal strength and the first signal strength is identified as the device to be tested.

7. The testing method according to claim 6, characterized in that: The step of at least calculating the difference or ratio between the first signal strength and the second signal strength of the connectable Bluetooth device comprises: Sort the connectable Bluetooth devices according to the second signal strength; A plurality of connectable Bluetooth devices with the strongest second signal strengths are screened out, and a difference or a ratio between the first signal strengths and the second signal strengths of these connectable Bluetooth devices is calculated.

8. The testing method according to claim 1, characterized in that: The test method further comprises: after the host controls the Bluetooth adapter to send a configuration instruction for configuring the device to be tested, the host reads the configuration information of the device to be tested, and compares it with the target configuration information to obtain a comparison result.

9. The testing method according to claim 1, characterized in that: The testing method further includes: controlling the Bluetooth adapter to send a sleep instruction through the host to control at least part of the functional modules of the device under test to sleep; and / or Control the Bluetooth adapter through the host to disconnect the Bluetooth connection with the device under test; and / or The test results are saved via the host.

10. A testing device, characterized in that: Based on the test method described in any one of claims 1 to 9, the test device comprises a host, a Bluetooth adapter, a shielding box, a barcode scanner and a test module, and the Bluetooth adapter, the barcode scanner and the test module are connected to the host; In the first mode, the device under test and the Bluetooth adapter are arranged inside the shielding box, and the barcode scanner is used to scan the identification code of the device under test and output the identification code; The host is used to receive the identification code and parse the target configuration information corresponding to the identification code; The host is also used to control the Bluetooth adapter to establish a connection with the device under test, and send a configuration instruction for configuring the device under test and a test instruction for controlling the device under test to the device under test; The test module is used to test the device under test and send the test result to the host; In the second mode, the barcode scanner is used to scan the identification code of the device under test and output the identification code; The host is used to receive the identification code and parse the target address and target configuration information corresponding to the identification code; The host is also used to control the Bluetooth adapter to establish a connection with the device under test, and send a configuration instruction for configuring the device under test and a test instruction for controlling the device under test to the device under test; The test module is used to test the device to be tested and send the test result to the host.