Bluetooth module testing device, system and method
By designing a Bluetooth module test device including communication to interface, Bluetooth RF transceiver unit and CPLD unit, the problem of low efficiency and high cost of Bluetooth module testing in the prior art is solved, and the automated RF performance of multiple modules is realized Testing and result storage improves testing efficiency and cost-effectiveness.
Patent Information
- Application Number
- CN202411411156.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2024-12-31
AI Technical Summary
The existing Bluetooth module testing methods cannot achieve batch testing, the test efficiency is low, the cost is high, and the test data cannot be effectively saved, resulting in difficulty in subsequent inspection.
A test device including a communication to interface, a Bluetooth radio frequency transceiver unit, a CPLD unit and a module connection unit is designed. Through the communication between the upper computer and the CPLD unit and the Bluetooth radio frequency transceiver unit, the automated RF performance of multiple Bluetooth modules is realized. Testing, support batch testing and result storage.
It significantly improves the efficiency and cost-effectiveness of Bluetooth module testing, supports the verification and storage of test results, and realizes automated RF performance testing of multiple modules.
Smart Images

Figure CN119232280A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automated testing, and in particular to a Bluetooth module testing device, system and testing method thereof. Background Art
[0002] In the prior art, the testing method for the Bluetooth module in the electric meter mostly adopts connecting a single Bluetooth module to the PC for testing. This testing method cannot control the test time and test efficiency, and the test content is limited. It is impossible to achieve targeted testing, and it is impossible to perform multiple functions at the same time. If you want to overcome the above problems, it will cost a lot, and the testing process is cumbersome, and the test results cannot be controlled. In particular, after the Bluetooth module is batch tested, if the test data cannot be effectively saved, it will not be able to be checked later, and it is more likely to make the test process meaningless. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a Bluetooth module testing device, system and testing method thereof, which can realize batch testing of Bluetooth modules, significantly improve testing efficiency, reduce testing costs, and support test result verification.
[0004] In order to solve the above technical problems, the first technical solution adopted by the present invention is:
[0005] A Bluetooth module testing device, comprising: a communication adapter, a Bluetooth radio frequency transceiver unit, a CPLD unit and a module connection unit; the communication adapter is connected to the Bluetooth radio frequency transceiver unit and the CPLD unit respectively; the Bluetooth radio frequency transceiver unit is connected to the module connection unit via the CPLD unit; the number of the module connection units is more than two;
[0006] The module connection unit is configured to establish a communication connection between the Bluetooth module under test and the CPLD unit;
[0007] The communication transfer interface is configured to establish communication connections between the host computer and the CPLD unit and the Bluetooth radio frequency transceiver unit respectively;
[0008] The CPLD unit is configured to convert the received test data frame into a serial port signal and then send it to the Bluetooth module under test;
[0009] The Bluetooth radio frequency transceiver unit is configured to be preset with a test firmware, and can transmit and receive Bluetooth radio frequency signals according to the test firmware and / or under the control of the host computer.
[0010] Optionally, the communication conversion interface includes a first USB to UART interface and a second USB to UART interface; the second USB to UART interface has more than two UART interfaces;
[0011] The Bluetooth radio frequency transceiver unit is connected to the host computer via the first USB to UART interface; the CPLD unit is connected to the host computer via the second USB to UART interface.
[0012] Optionally, the number of the second USB-to-UART interfaces is more than two; each of the second USB-to-UART interfaces has four UART interfaces.
[0013] Optionally, it also includes a power supply unit; the power supply unit is connected to the Bluetooth radio frequency transceiver unit and the CPLD unit respectively.
[0014] Optionally, a PLT board is also included; the communication adapter interface, Bluetooth radio frequency transceiver unit, CPLD unit and module connection unit are arranged on the PLT board.
[0015] The second technical solution adopted by the present invention is:
[0016] A Bluetooth module test system, comprising a host computer, two or more Bluetooth modules to be tested and the above-mentioned Bluetooth module test device;
[0017] The host computer is connected to the communication adapter in the Bluetooth module testing device; the two or more tested Bluetooth modules are connected to the module connection units in the Bluetooth module testing device in a one-to-one correspondence.
[0018] Optionally, the Bluetooth module under test is a Bluetooth module in a single-phase electric meter, a three-phase electric energy meter, a concentrator and / or an IoT meter.
[0019] The third technical solution provided by the present invention is:
[0020] The Bluetooth module testing method includes the following steps based on the Bluetooth module testing system:
[0021] Automatically initialize the serial port and protocol parameters through the host computer;
[0022] The host computer sends the test data frame to the CPLD unit through the communication interface;
[0023] The CPLD unit converts the received test data frame into a serial port signal and sends it to the Bluetooth module under test via the module connection unit;
[0024] The tested Bluetooth module performs a functional test based on the received test data frame and replies with a confirmation frame, wherein the confirmation frame includes its own Bluetooth address and the Bluetooth signal strength value corresponding to the functional test;
[0025] The Bluetooth radio frequency transceiver unit captures the confirmation frame and uploads it to the host computer through the communication adapter interface;
[0026] The host computer tests the radio frequency performance of the corresponding tested Bluetooth module according to the received confirmation frame, wherein the radio frequency performance includes transmission power, bit error rate, and carrier frequency offset and drift;
[0027] The host computer displays and stores the test results corresponding to each tested Bluetooth module.
[0028] Optionally, the testing process further includes:
[0029] After receiving the reset instruction, the CPLD unit controls to generate a reset signal, and sends the reset signal to each tested Bluetooth module through the module connection unit for a reset operation.
[0030] Optionally, the testing process further includes:
[0031] The CPLD unit generates a calibration pulse and sends it to each tested Bluetooth module through the module connection unit;
[0032] The module connection unit receives the return frames replied by each tested Bluetooth module according to the calibration pulse, and sends them to the host computer to calibrate the internal parameters of each tested Bluetooth module.
[0033] The beneficial effects of the present invention are: through the Bluetooth module testing device, the Bluetooth radio frequency performance of the tested Bluetooth modules can be automatically tested in batches, which significantly improves the test efficiency, reduces the test cost, and supports the verification of test results. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A schematic diagram of the simplest structure of a Bluetooth module testing device provided by an embodiment of the present invention;
[0035] Figure 2 A schematic diagram of the structure of a Bluetooth module testing device provided by an embodiment of the present invention;
[0036] Figure 3 A schematic diagram of the structure of a Bluetooth module test device provided by an embodiment of the present invention;
[0037] Figure 4 A description of the parameters of the power supply device used in the tooling structure of the Bluetooth module test device provided for a specific example of the present invention;
[0038] Figure 5 A schematic diagram of the pin header connection between the module connection unit DUT and the PTL board in the tooling structure of the Bluetooth module test device provided in an embodiment of the present invention;
[0039] Figure 6 for Figure 5 Description of the purpose of each connecting pin;
[0040] Figure 7 A schematic diagram of the UART connection between the module connection unit DUT and the CPLD unit in the tooling structure of the Bluetooth module test device provided in an embodiment of the present invention;
[0041] Figure 8 for Figure 7 Description of the purpose of each connecting pin;
[0042] Fig. 9 This is an example diagram of a transmission power test record displayed on the test software interface of the host computer in a specific implementation manner of the present invention;
[0043] Fig.10 This is an example diagram of a bit error rate test record displayed on the test software interface of the host computer in a specific implementation manner of the present invention;
[0044] Fig.11 This is an example diagram of a carrier frequency offset and drift test record displayed on a test software interface of a host computer in a specific implementation manner of the present invention;
[0045] Fig.12 It is an example diagram of other test records displayed on the test software interface of the host computer in the specific implementation mode of the present invention;
[0046] Fig.13 A schematic diagram of a software testing process provided by an embodiment of the present invention and carried out based on the tooling structure of the Bluetooth module testing device provided by this embodiment;
[0047] Fig.14 This is an example diagram of the test software interface of the host computer in a specific example of the present invention;
[0048] Fig.15 A schematic diagram of the structure of a Bluetooth module testing system provided by an embodiment of the present invention;
[0049] Fig.16 A flowchart of a Bluetooth module testing method implemented based on a Bluetooth module testing system is provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.
[0051] In order to explain in detail the possible application scenarios, technical principles, specific schemes that can be implemented, and the purposes and effects of the present invention, the following is a detailed description in combination with the specific embodiments listed and the accompanying drawings. The embodiments described herein are only used to more clearly illustrate the technical solutions of the present invention, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present invention.
[0052] Reference to "embodiment" herein means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The term "embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment, nor does it particularly limit its independence or association with other embodiments. In principle, in the present application, as long as there is no technical contradiction or conflict, the various technical features mentioned in the embodiments can be combined in any way to form a corresponding implementable technical solution.
[0053] Unless otherwise defined, the technical terms used in this document have the same meanings as those generally understood by those skilled in the art to which the present invention belongs; the use of relevant terms in this document is only for describing specific embodiments and is not intended to limit the present application.
[0054] In the description of the present invention, the term "and / or" is an expression used to describe the logical relationship between objects, indicating that three relationships may exist, for example, A and / or B, which means: A exists, B exists, and A and B exist at the same time. In addition, the character " / " in this article generally indicates that the objects before and after are in a logical relationship of "or".
[0055] In the present invention, terms such as "first" and "second" are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship of quantity, priority or sequence between these entities or operations.
[0056] Without further restrictions, in the present invention, the words "include", "comprises", "has" or other similar expressions used in sentences are intended to cover non-exclusive inclusion. These expressions do not exclude the presence of additional elements in the process, method or product including the elements, so that the process, method or product including a series of elements may include not only those limited elements, but also other elements not explicitly listed, or also include elements inherent to such process, method or product.
[0057] Similar to the understanding in the Examination Guidelines, in the present invention, expressions such as "greater than", "less than", "exceed" and the like are understood to exclude the number itself; expressions such as "above", "below", "within" and the like are understood to include the number itself. In addition, in the description of the embodiments of the present invention, the meaning of "multiple" is more than two (including two), and similar expressions related to "multiple" are also understood in this way, such as "multiple groups", "multiple times", etc., unless otherwise clearly and specifically limited.
[0058] In the description of the embodiments of the present invention, the space-related expressions used, such as "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "vertical", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate the orientation or position relationship based on the orientation or position relationship shown in the specific embodiments or drawings, and are only for the convenience of describing the specific embodiments of the present invention or facilitating the reader's understanding, and do not indicate or imply that the referred device or component must have a specific position, a specific orientation, or be constructed or operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present invention.
[0059] Unless otherwise expressly specified or limited, in the description of the embodiments of the present invention, the terms such as "install", "connect", "connect", "fix", "set" and the like used should be understood in a broad sense. For example, the "connection" can be a fixed connection, a detachable connection, or an integrated setting; it can be a mechanical connection, an electrical connection, or a communication connection; it can be a direct connection, or an indirect connection through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For those skilled in the art of the technical field to which the present invention belongs, the specific meanings of the above terms in the embodiments of the present invention can be understood according to the specific circumstances.
[0060] Please refer to Figure 1 , Figure 1 A schematic diagram of the simplest structure of a Bluetooth module testing device provided by an embodiment of the present invention.
[0061] like Figure 1 As shown, a Bluetooth module test device provided by an embodiment of the present invention at least includes: a communication adapter, a Bluetooth radio frequency transceiver unit, a CPLD unit and a module connection unit DUT. The communication adapter is connected to the Bluetooth radio frequency transceiver unit and the CPLD unit respectively; the Bluetooth radio frequency transceiver unit is connected to the module connection unit via the CPLD unit; the number of the module connection units DUT is more than two, so as to support the test device to test more than two Bluetooth modules under test (i.e., Figure 1 The module connection units DUT 1 to module connection units DUT n) shown are tested.
[0062] In this embodiment, the module connection units DUT 1 to DUT n are configured as interfaces for the Bluetooth module under test to access the test device, so as to establish a communication connection between the Bluetooth module under test and the CPLD unit in the test device. Here, the number of the module connection units is multiple, and the specific number configured supports flexible modification. Therefore, the test device provided in this embodiment can simultaneously connect multiple Bluetooth modules under test through multiple module connection units to realize large-scale module production testing.
[0063] The communication adapter is configured to establish a communication connection between the host computer and the CPLD unit, and a communication connection between the host computer and the Bluetooth radio frequency transceiver unit. That is, the test device is connected to the host computer through the communication adapter so as to receive the test data frame sent by the host computer and upload the test signal sent by the Bluetooth radio frequency transceiver unit to the host computer. This embodiment is based on the problem that the host computer and the test device, specifically the CPLD unit and the Bluetooth radio frequency transceiver unit, cannot directly communicate and interact due to the different interface types. By configuring the communication adapter in the test device, the docking between the host computer and the CPLD unit, and the docking between the host computer and the Bluetooth radio frequency transceiver unit are realized, thereby constructing a communication link between the host computer and the test device, and providing support for data transmission in the subsequent test process. Usually, the communication adapter is a USB to UART interface.
[0064] The CPLD unit is configured to convert the received test data frame into a serial port signal before sending it to the Bluetooth module under test. That is, the UART signal is switched between the host computer and the Bluetooth module under test to ensure that the Bluetooth module under test can normally receive and process the test data frame and carry out automated testing.
[0065] The Bluetooth radio frequency transceiver unit is configured to be preset with a test firmware, and can transmit and receive Bluetooth radio frequency signals according to the test firmware and / or under the control of the host computer. Here, by presetting the test firmware, the CPLD using custom commands is supported to control the test instructions, so that it can be used as a transceiver for transmitting and receiving Bluetooth radio frequency signals.
[0066] The working principle of the above-mentioned Bluetooth module test device is as follows:
[0067] A plurality of tested Bluetooth modules are connected through the module connection unit of the test device; a communication connection between the test device and the host computer is established through the communication adapter of the test device; the host computer sends a test data frame to the test device; the test device receives the test data frame through the communication adapter and sends it to the CPLD unit; the CPLD unit converts the received test data frame into a serial port signal that can be recognized and processed by the tested Bluetooth module, and then sends it to the corresponding tested Bluetooth module through each module connection unit; each tested Bluetooth module performs relevant tests based on the test data frame, and replies with a confirmation frame, which includes its own Bluetooth address and the Bluetooth signal strength value corresponding to the functional test; the Bluetooth RF transceiver unit of the test device captures the confirmation frame and uploads it to the host computer; the host computer analyzes and obtains the test result of the corresponding tested Bluetooth module based on the test data frame, and performs associated storage.
[0068] The Bluetooth module testing device provided in this embodiment can perform fully automatic and efficient Bluetooth radio frequency performance testing on multiple connected Bluetooth modules under test by interacting with the host computer, thereby achieving the purpose of large-scale Bluetooth module production testing in a lower-cost and more efficient manner.
[0069] In some specific implementations, the Bluetooth module test device further includes a power supply unit, wherein the power supply unit is connected to the Bluetooth RF transceiver unit and the CPLD unit, respectively. Here, the power supply unit is configured to provide the test device with power required for normal operation.
[0070] In some other specific embodiments, Figure 2 As shown, the communication transfer interface specifically includes a first USB to UART interface and a second USB to UART interface; wherein the second USB to UART interface has more than two UART interfaces; the Bluetooth RF transceiver unit is connected to the host computer via the first USB to UART interface; and the CPLD unit is connected to the host computer via the second USB to UART interface. That is, the first USB to UART interface is responsible for the connection between the Bluetooth RF transceiver unit and the host computer; and the second USB to UART interface is responsible for the connection between the CPLD unit and the host computer.
[0071] As a preferred example, each second USB to UART interface is equipped with a four-channel UART output (i.e. Figure 2 As shown in the figure, each second USB-to-UART interface can support up to four channels of USB-to-UART conversion, which can be used to convert one USB channel into four UART channels and output them to the CPLD unit, and then to four Bluetooth modules under test. Therefore, through one second USB-to-UART interface, up to four Bluetooth modules under test can be connected to the host computer.
[0072] In particular, the number of the second USB to UART interfaces can be flexibly configured according to demand. Optionally, the number of the second USB to UART interfaces is more than two to support a greater number of tested Bluetooth modules to access the test device for testing.
[0073] It can be seen that by regulating the number N of the second USB to UART interfaces, where N is an integer greater than 1, it can support up to 4N tested Bluetooth modules to access the test device and communicate with the host computer; thereby realizing Bluetooth RF testing of the tested Bluetooth modules in large quantities.
[0074] In some other specific implementations, the Bluetooth module testing device is implemented by placing the above-mentioned communication adapter, Bluetooth radio frequency transceiver unit, CPLD unit and module connection unit DUT on a PLT board.
[0075] The PLT board is a multifunctional test board that is widely used in the testing and development of various electronic products. It supports internal and external Flash burning, Bluetooth address burning, crystal calibration and other functions. In addition, it also supports RSSI measurement card control and burning I / O level adjustable range of 1.7~3.5V. Therefore, using the PLT board to realize the integrated layout design of each component of the test device can provide great convenience, flexibility and efficiency for the structural realization of the test device, and it is also more convenient for the test device to expand its functions; in addition, structural integration is realized, which is conducive to the miniaturization design of the test device.
[0076] Please refer to Figure 2 , Figure 2 A schematic diagram of the structure of a Bluetooth module testing device provided by an embodiment of the present invention.
[0077] This embodiment Figure 1 Further expansion is made on the basis of the embodiment to provide a Bluetooth module testing device that supports Bluetooth radio frequency function testing of 16 Bluetooth modules at the same time.
[0078] like Figure 2 As shown, in the Bluetooth module test device of this embodiment, the number of its first USB to UART interface is 1, and the model can be FT232; the number of its second USB to UART interface is 4, and the model can be FT4232; accordingly, the number of module connection units DUT is 16 (i.e. Figure 2 The module connection units DUT 1 to module connection units DUT 16 are shown).
[0079] In this embodiment, through the configuration of 16 module connection units DUT and 4 second USB to UART interfaces, the Bluetooth module test device provides the communication function of converting 1 USB into 16 UART outputs, and 16 UART into 1 USB output, thereby enabling up to 16 tested Bluetooth modules to be connected to the Bluetooth module test device to interact with the host computer and simultaneously carry out Bluetooth RF function testing.
[0080] In this embodiment, the main function of the communication interface is to connect the test device to the host computer to transmit the test signal during the test. Specifically, it includes transmitting the test instructions sent by the host computer to the Bluetooth module under test, and sending the test data returned by the Bluetooth module under test according to the test instructions to the host computer. Here, after receiving the test instructions, the Bluetooth module under test will analyze and return the corresponding test data to the host computer; after receiving the test data, the host computer will automatically parse and analyze it, complete the test performance analysis of the corresponding Bluetooth module under test, and associate the test record with the corresponding Bluetooth module under test and save it to the database.
[0081] The main function of the CPLD unit of the Bluetooth module testing device of this embodiment is to switch the UART signal between the communication interface connected to the host computer and the module connection unit DUT connected to the Bluetooth module to be tested, that is, after receiving the test data frame sent by the host computer test software through the communication interface, the CPLD unit switches it to a UART serial port signal, and then transmits it to the Bluetooth module to be tested via the module connection unit DUT for functional testing.
[0082] In some specific implementations, the CPLD unit can also function as a switch DUT VBAT signal function and a switch DUT VPP signal (only when VBAT is enabled), thereby realizing a reset function. The main principle is: after the CPLD unit is connected to the host computer through the communication interface, the switch DUT VBAT signal function can be performed through the host computer, and it can only take effect when VBAT is enabled; thus, the CPLD unit can be controlled to generate a reset signal, and transmitted to the Bluetooth module under test through the module connection unit DUT to perform a reset operation.
[0083] In some other specific implementations, the CPLD unit can also generate a 500msXTAL calibration pulse during the test process, so as to achieve the function of calibrating the internal parameters of the tested Bluetooth module. Specifically, after the CPLD unit generates a calibration pulse and sends it to the tested Bluetooth module; the tested Bluetooth module will send a return data frame to the host computer; the host computer judges the return data frame to calibrate the internal parameters of the tested Bluetooth module. The judgment logic is: the sixth, seventh, and eighth bits of the return data frame of the tested Bluetooth module represent the output power of the Bluetooth module, and the calculation logic is to subtract 30 from the return value and then flip from hexadecimal to decimal, 2E is the decimal point, and the output power value is obtained by parsing. Therefore, after receiving the return data frame, the host computer will parse it, obtain its corresponding output power, and then judge whether the corresponding internal parameter function of the tested Bluetooth module meets the test requirements. As a specific example, the return data frame received by the host computer is "OD 0A28 52 45 43 2E 5630 31 2E 30 38 0D 0A"; the host computer calculates the return values of the sixth, seventh, and eighth bits of the return data frame and obtains that the corresponding Bluetooth module power is 19.38dBm; since the power level of the tested Bluetooth module is 1, that is, the power should be greater than 0dBm and less than 20dBm. Therefore, the host computer determines that the internal parameters of the tested Bluetooth module meet the standards.
[0084] The main function of the Bluetooth RF transceiver unit of the Bluetooth module test device of this embodiment is to act as an RF transmitter in the RFRSSIDUT test. Specifically, the host computer sends the test frame to the first USB to UART interface, and the first USB to UART interface transfers the test frame to the Bluetooth RF transceiver unit; when the Bluetooth RF transceiver unit receives the test frame, it will send the test frame to the Bluetooth module under test, and at the same time, it will capture the Bluetooth test return frame in real time; after the Bluetooth RF transceiver unit captures the return frame, it will upload it to the host computer via the first USB to UART interface. If the Bluetooth RF transceiver unit does not capture the return frame within a preset time (for example, within five seconds) after sending the test frame again, the Bluetooth RF transceiver unit will send the test frame again. If the capture fails twice, the test is judged to have failed. If the return frame is successfully obtained once in the two times, the host computer will perform data analysis normally and display the test results.
[0085] In some specific implementations, the Bluetooth radio frequency transceiver unit may also be used to scan the device status of the Bluetooth module under test to detect whether there is a problem with the device.
[0086] In some other specific implementations, the Bluetooth RF transceiver unit may also use PWM to generate audio tones to serve as an audio generator to test the audio function of the Bluetooth module under test.
[0087] In some specific embodiments, the Bluetooth RF transceiver unit is implemented by mounting a CPLD control using custom commands on a GoldenUnit (GU) to realize a DUT transceiver for transmitting and receiving Bluetooth RF signals. The GoldenUnit GU is a program running on the SPI FLASH on the PLT board, and a specific test firmware is pre-programmed in the SPI Flash to realize the Bluetooth RF transceiver function. If the GU program is to be updated, it can be updated through the GU JTAG connector or UART, and then run GU_fw_upgrade.exe to update the program.
[0088] As a specific example, the Bluetooth radio frequency transceiver unit can be obtained by welding a chip with model number DA14580 on the golden unit in a QFN48 packaging manner.
[0089] The Bluetooth module testing device of this embodiment is as follows: Figure 2 As shown in the figure, the 16 module connection units DUT 1 to DUT 16 have the main function of connecting 16 tested Bluetooth modules to the test device, and the test data frames sent by the CPLD unit can be transmitted to the tested Bluetooth module through the module connection unit DUT. In this way, a single test device can be connected to 16 tested Bluetooth modules through 16 module connection units DUT, and Bluetooth RF function tests can be carried out in batches.
[0090] In some specific implementations, the module connection unit DUT is configured with a Bluetooth system-level chip of model DA14531. Since DA14531 supports single-line UART, P05 or PO3 of DA14531 can be used for single-line UART connection to establish a UART connection relationship between the module connection unit DUT and the CPLD unit.
[0091] See also Figures 3 to 14 The embodiment of the present invention is based on the above Figure 2 The embodiment is further extended to provide a tooling structure implementation method for the above-mentioned Bluetooth module testing device.
[0092] The tooling frame of the Bluetooth module test device described in the above embodiment is realized by a PLT board, and the structure of the PLT board is as follows: Figure 3 The PLT board is integrated with various components of the Bluetooth module test device; in addition, it also includes a VPP jumper and a current jumper, which are used to adjust the voltage level and current path in the circuit respectively.
[0093] A chip with model DA14580 and QFN48 package is soldered on the gold unit on the PLT board; most of its 48 pins are used to connect to the CPLD unit. The black banana sockets are all connected to the same ground (GND) plane.
[0094] The PLT board adopts an external power supply configuration, which is specifically connected through a banana socket on the PLT board. As a specific example, the power supply parameters of the PLT board are as follows: Figure 4 shown.
[0095] Among them, the 16 module connection units DUT1 to DUT16 on the PTL board are connected to the pin headers of the PTL board and the description of the purpose of each pin is as follows: Figure 5 and Figure 6 As shown. Each module connection unit DUT is equipped with a Bluetooth system-level chip model DA14531. Since DA14531 supports single-line UART, P05 or PO3 of DA14531 can be used for single-line UART connection to establish a UART connection relationship between the module connection unit DUT and the CPLD unit. The specific connection is as follows Figure 7 As shown, the connection pin description is as follows Figure 8 As a specific example, Figure 7 The DA14531 of the module connection unit DUT is connected to the CPLD unit via a resistor with selectable resistance. As a specific example, the DUT RX and DUT TX pins on the PLT board need to be close to the edge of the PLT board and short-circuited. The short-circuit operation serves to connect these two pins to establish a direct electrical connection with the PLT board.
[0096] The test operation process carried out based on the tooling structure of the Bluetooth module test device provided in this embodiment is as follows:
[0097] (1) Connect the tooling to the host computer (such as a PC) to generate a serial port, configure the test software on the host computer, and perform test operations;
[0098] (2) Place 16 Bluetooth modules under test on the tooling and establish a connection with the tooling;
[0099] (3) Click the test software on the host computer to perform batch testing;
[0100] (4) After the test is completed, the test software of the host computer will automatically display the test results and save the test records.
[0101] In some specific implementations, the test records displayed on the test software interface of the host computer after the test is completed include:
[0102] (1) The transmission power is mainly used to test the maximum power, minimum power, and peak to average power of the Bluetooth module under test. The test is performed by sending a fixed number of test packets. The test records are as follows: Fig. 9 shown.
[0103] (2) The receiving bit error is mainly tested by receiving a large number of data packets. The Bluetooth module under test must meet the test standards to pass. The test record is as follows: Fig.10 shown.
[0104] (3) Carrier frequency offset and drift test mainly tests the average frequency offset, maximum +ve frequency offset, maximum frequency offset, drift rate, maximum drift, and average drift. The test is performed by sending fixed test data packets and recording such as Fig.11 shown.
[0105] (4) Other test items such as Fig.12 shown.
[0106] like Fig.13 As shown, the software testing process carried out based on the tooling structure of the Bluetooth module testing device provided in this embodiment is as follows:
[0107] (1) Log in to the test software through the host computer;
[0108] (2) Automatically initialize serial port and protocol parameters;
[0109] (3) The test software retrieves the FT232 communication serial port generated by the tooling to connect to the host computer;
[0110] (4) After the test is triggered by the test software, a fixed test data frame is sent to the tooling through the FT232 serial port. The tooling connects to the module through the serial port and sends data frames to the Bluetooth module under test connected to the tooling for testing;
[0111] (5) The host computer compares the data frames returned by the Bluetooth module under test and analyzes whether the Bluetooth module under test meets the test requirements.
[0112] As a specific example, the test software interface in the host computer is as follows: Fig.14 As shown, this software is developed by Delphi and can send data frames to multiple serial ports at the same time for batch testing.
[0113] See also Fig.15 Based on any of the above embodiments, this embodiment further provides a Bluetooth module testing system, which includes a host computer, two or more Bluetooth modules to be tested (such as Fig.15 The tested Bluetooth module 1 to the tested Bluetooth module n) shown in the figure and the Bluetooth module testing device described in any of the above embodiments;
[0114] The host computer is connected to the communication interface in the Bluetooth module testing device (such as Fig.15 The first USB to UART interface and the second USB to UART interface shown); the more than two tested Bluetooth modules are connected one-to-one with the module connection units in the Bluetooth module testing device.
[0115] Here, the specific structure of the Bluetooth testing device will not be repeated, and for details, please refer to the description of the above embodiment.
[0116] In this embodiment, the host computer can be a PC, a mobile smart device (such as a mobile phone, a tablet, etc.), a touch screen, etc.
[0117] In this embodiment, the tested Bluetooth module is a Bluetooth module in a single-phase electric energy meter, a three-phase electric energy meter, a concentrator and / or an IoT meter.
[0118] See also Fig.16 The embodiment of the present invention also provides a Bluetooth module testing method implemented based on the Bluetooth module testing system described in the above embodiment. Here, the specific structure of the Bluetooth module testing system will not be repeated. For details, please refer to the description of the previous embodiment.
[0119] Combination Figure 2 , Fig.15 and Fig.16 The Bluetooth module testing method provided in this embodiment includes the following testing procedures:
[0120] S1: Automatically initialize the serial port and protocol parameters through the host computer;
[0121] S2: The host computer sends the test data frame to the CPLD unit through the communication conversion interface, specifically the second USB to UART interface;
[0122] S3: The CPLD unit converts the received test data frame into a UART serial port signal and sends it to each Bluetooth module under test via the module connection unit;
[0123] S4: Each tested Bluetooth module performs a functional test according to the received test data frame and replies with a confirmation frame, wherein the confirmation frame includes its own Bluetooth address and a Bluetooth signal strength value corresponding to the functional test;
[0124] S5: The Bluetooth radio frequency transceiver unit captures the confirmation frame sent by the tested Bluetooth module, and uploads it to the host computer through the communication conversion interface, specifically the first USB to UART interface;
[0125] S6: The host computer tests the radio frequency performance of the corresponding tested Bluetooth module according to the received confirmation frame, wherein the radio frequency performance includes transmission power, bit error rate, and carrier frequency offset and drift;
[0126] S7: The host computer displays and stores the test results corresponding to each tested Bluetooth module.
[0127] In some specific implementations, the host computer will distinguish and prompt the tested Bluetooth modules that have passed the test and those that have failed the test based on the test results of each Bluetooth module.
[0128] The Bluetooth module testing device, system and testing method provided by the present invention have the following advantages:
[0129] 1. Comprehensiveness and accuracy: The present invention can comprehensively detect the functions and performance of the tested Bluetooth device to ensure the stability and reliability of the device in various scenarios; through precise data analysis and test reports, it can accurately evaluate the performance of the device.
[0130] 2. High degree of automation: The present invention adopts automated testing tools and methods, which can greatly improve testing efficiency and reduce manual intervention and errors. Automated testing tools can automatically execute test cases, collect test results, and generate detailed test reports.
[0131] 3. Compatibility testing: The present invention can perform compatibility testing on Bluetooth devices of different versions and models to ensure interoperability between devices. This helps reduce connection problems between devices and improves user experience.
[0132] 4. Fault diagnosis and repair: This invention can help developers quickly locate and repair faults and problems in Bluetooth devices. By simulating various abnormal situations, the test tool can trigger device failures and provide detailed diagnostic information to help developers quickly find the problem and repair it.
[0133] Based on the above advantages, the present invention can bring the following technical effects:
[0134] 1. Improve product quality: The present invention can ensure the stability and reliability of Bluetooth devices in various scenarios, reduce device failures and connection problems, and improve the overall quality of the product.
[0135] 2. Improve user experience: The present invention can ensure interoperability and compatibility between devices, reduce user confusion and inconvenience during use, and improve user experience.
[0136] 3. Reduce development costs: The Bluetooth testing technology carried out through the automated testing tools and methods provided by the present invention can reduce testing costs and time costs and improve development efficiency; at the same time, by timely discovering and repairing problems, it can reduce subsequent maintenance costs and risks.
[0137] 4. Enhance product competitiveness: Products that have been strictly tested and verified by this invention have more advantages in performance, stability and safety, which can enhance product competitiveness and attract more users to choose and use them.
[0138] To sum up, the Bluetooth module testing device, system and testing method provided by the present invention have the advantages of high comprehensiveness and accuracy, high degree of automation, compatibility detection, fault diagnosis and repair, and safety detection, which can improve product quality, enhance user experience, reduce development costs and enhance product competitiveness.
[0139] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A Bluetooth module testing device, characterized in that: include: A communication transfer interface, a Bluetooth radio frequency transceiver unit, a CPLD unit and a module connection unit; the communication transfer interface is connected to the Bluetooth radio frequency transceiver unit and the CPLD unit respectively; The Bluetooth radio frequency transceiver unit is connected to the module connection unit via the CPLD unit; the number of the module connection units is more than two; The module connection unit is configured to establish a communication connection between the Bluetooth module under test and the CPLD unit; The communication transfer interface is configured to establish communication connections between the host computer and the CPLD unit and the Bluetooth radio frequency transceiver unit respectively; The CPLD unit is configured to convert the received test data frame into a serial port signal and then send it to the Bluetooth module under test; The Bluetooth radio frequency transceiver unit is configured to be preset with a test firmware, and can transmit and receive Bluetooth radio frequency signals according to the test firmware and / or under the control of the host computer.
2. The Bluetooth module testing device according to claim 1, characterized in that: The communication transfer interface includes a first USB to UART interface and a second USB to UART interface; the second USB to UART interface has more than two UART interfaces; The Bluetooth radio frequency transceiver unit is connected to the host computer via the first USB to UART interface; the CPLD unit is connected to the host computer via the second USB to UART interface.
3. The Bluetooth module testing device according to claim 2, characterized in that: The number of the second USB-to-UART interfaces is more than two; each of the second USB-to-UART interfaces has four UART interfaces.
4. The Bluetooth module testing device according to claim 1, characterized in that: It also includes a power supply unit; the power supply unit is connected to the Bluetooth radio frequency transceiver unit and the CPLD unit respectively.
5. The Bluetooth module testing device according to claim 1, characterized in that: It also includes a PLT board; the communication adapter, the Bluetooth radio frequency transceiver unit, the CPLD unit and the module connection unit are arranged on the PLT board.
6. The Bluetooth module testing system is characterized by: It comprises a host computer, two or more Bluetooth modules to be tested, and a Bluetooth module testing device as described in any one of claims 1 to 5; The host computer is connected to the communication adapter in the Bluetooth module testing device; the two or more tested Bluetooth modules are connected to the module connection units in the Bluetooth module testing device in a one-to-one correspondence.
7. The Bluetooth module testing system according to claim 6, characterized in that: The Bluetooth module under test is a Bluetooth module in a single-phase electric meter, a three-phase electric energy meter, a concentrator and / or an IoT meter.
8. A Bluetooth module testing method, characterized in that: The test process of the Bluetooth module test system according to claim 6 includes: Automatically initialize the serial port and protocol parameters through the host computer; The host computer sends the test data frame to the CPLD unit through the communication interface; The CPLD unit converts the received test data frame into a serial port signal and sends it to the Bluetooth module under test via the module connection unit; The tested Bluetooth module performs a functional test based on the received test data frame and replies with a confirmation frame, wherein the confirmation frame includes its own Bluetooth address and the Bluetooth signal strength value corresponding to the functional test; The Bluetooth radio frequency transceiver unit captures the confirmation frame and uploads it to the host computer through the communication adapter interface; The host computer tests the radio frequency performance of the corresponding tested Bluetooth module according to the received confirmation frame, wherein the radio frequency performance includes transmission power, bit error rate, and carrier frequency offset and drift; The host computer displays and stores the test results corresponding to each tested Bluetooth module.
9. The Bluetooth module testing method according to claim 8, wherein: The testing process also includes: After receiving the reset instruction, the CPLD unit controls to generate a reset signal, and sends the reset signal to each tested Bluetooth module through the module connection unit for a reset operation.
10. The Bluetooth module testing method according to claim 8, wherein: The testing process also includes: The CPLD unit generates a calibration pulse and sends it to each tested Bluetooth module through the module connection unit; The module connection unit receives the return frames replied by each tested Bluetooth module according to the calibration pulse, and sends them to the host computer to calibrate the internal parameters of each tested Bluetooth module.
