A Bluetooth module automatic testing method and system
By using an automated test system to perform multiple tests on the Bluetooth module in different time slots, and utilizing the TDMA mechanism to resolve wireless interference and optimize the test cycle, the problems of low efficiency and high cost in Bluetooth module testing were solved, thereby improving product quality and testing efficiency.
Patent Information
- Application Number
- CN202310849573.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2043-07-11
AI Technical Summary
Existing Bluetooth module testing methods are inefficient and costly, and wireless performance testing is difficult and susceptible to interference, resulting in unstable product quality.
An automated test system is used to test the Bluetooth module's MAC address, software version, signal strength, and current strength in different time slots using the time division multiple access mechanism. The TDMA mechanism is used to resolve wireless interference issues, and the normal distribution is used to optimize the test cycle and generate a test report.
It improves test efficiency, reduces test difficulty, ensures product quality, reduces manual intervention, and reduces equipment costs.
Smart Images

Figure CN116647859B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of automated testing, and in particular relates to a method and system for automatically testing a Bluetooth module. Background Art
[0002] Bluetooth modules, as near-field wireless communication products, are widely used in the IoT short-range wireless transmission market, such as in smart homes, indoor positioning, and wireless remote controls. Bluetooth module production typically involves component placement, software and MAC address programming, module testing, and packaging. In practice, Bluetooth modules can be used independently or combined with other circuits and assembled into complete products for diverse applications.
[0003] For the Bluetooth module testing phase, it can ensure that the Bluetooth module can be used normally before it is assembled, avoiding the situation where the Bluetooth module cannot be used normally after being assembled into the shell, causing the production staff to disassemble it again for repair or replacement.
[0004] Typically, Bluetooth module testing requires verification of the Bluetooth burned-in software version, Bluetooth MAC address, Bluetooth wireless performance, and power consumption. However, existing testing methods sometimes only perform single-item automated or manual tests, such as software version verification, while others require manual testing and visual inspection, such as power consumption testing. This reduces production efficiency and increases production costs. Furthermore, Bluetooth wireless performance testing can be difficult due to wireless interference from an excessive number of Bluetooth products on a production line. Testing methods such as creating a shielded environment increase the cost and complexity of test equipment, leading some manufacturers to eliminate this testing requirement, posing a risk to the quality of Bluetooth module products. Summary of the Invention
[0005] To solve the above problems, the present invention provides a Bluetooth module automatic testing method and system, which can automatically complete the testing of Bluetooth module software version, Bluetooth module MAC address, Bluetooth module wireless performance, Bluetooth module power consumption, etc., compare the test results with the corresponding threshold value, determine whether it is qualified and display it, and at the same time send the test data to the remote service platform via PC network cable or WIFI.
[0006] In a first aspect of the present invention, the present invention provides a method for automatically testing a Bluetooth module, the testing method comprising:
[0007] Connect multiple Bluetooth modules to the test fixture respectively;
[0008] The control power supply module supplies power to multiple Bluetooth modules respectively;
[0009] In each test cycle, test tasks are executed according to different time slots;
[0010] In a first time slot, testing the MAC addresses and software versions of the multiple Bluetooth modules and corresponding first and second preset thresholds to generate a first test result and add it to a test record table;
[0011] In the second time slot, the signal strengths of the plurality of Bluetooth modules are collectively tested against corresponding third preset thresholds, and a second test result is generated and added to the test record table;
[0012] In the third time slot, the signal strength of the plurality of Bluetooth modules is tested separately against the corresponding third preset threshold value in each sub-time slot by using the time division multiple access mechanism, and a third test result is formed and added to the test record table;
[0013] In the fourth time slot, the time division multiple access mechanism is used to test the current strength of the multiple Bluetooth modules and the corresponding fourth preset threshold value in each sub-time slot, and a fourth test result is generated and added to the test record table;
[0014] Repeat the test tasks of each test cycle until the preset test cycle is reached, and generate a corresponding test report according to the test record table;
[0015] The corresponding test report is sent to the remote service platform for storage, and the final test results are displayed on the PC test device to end the test.
[0016] Furthermore, before forming the test results and adding them to the test record table, if the test result is unqualified, the test task of the current test cycle is directly exited, a failure message is displayed on the PC test device, and the next test cycle is entered to execute the test task.
[0017] Furthermore, the method for determining the preset test period includes:
[0018] Set a corresponding initial test cycle for each test task, and repeatedly execute each test task according to the corresponding initial test cycle to test and obtain the Bluetooth MAC address, software version, signal strength and current strength of each Bluetooth module;
[0019] If the distribution of Bluetooth MAC addresses and software versions meets their respective distributions, the test period of the MAC address test task and the software version test task is output; otherwise, the test period of the MAC address test task and the software version test task is increased or decreased until their respective distributions are met;
[0020] If the distribution of signal strength and current strength satisfies their respective truncated normal distributions, the test cycles of the signal strength test task and the current strength test task are output; otherwise, the test cycles of the signal strength test task and the current strength test task are increased or decreased until their respective truncated normal distributions are satisfied.
[0021] Furthermore, the calculation formula for the endpoint value of the truncated normal distribution is expressed as:
[0022]
[0023]
[0024] Among them, x a Indicates the left endpoint of the intensity data interval, x b Indicates the right endpoint of the intensity data interval; Δθ max represents the maximum value in the set of intensity differences, Δθ min represents the minimum value in the set of intensity differences; Δθ max ∈[Δθ1,Δθ2,...,Δθ n ], Δθ min ∈[Δθ1,Δθ2,...,Δθ n ], Δθ n It represents the strength difference of the nth strength test cycle, where n represents the total number of test cycles of the strength test task.
[0025] Furthermore, in the first time slot, the MAC addresses and software versions of multiple Bluetooth modules are tested against the corresponding first preset threshold and second preset threshold to form a first test result and add it to the test record table. Including in the first time slot, the Bluetooth MAC addresses of multiple Bluetooth modules are read at the same time. If the reading fails, the first test result is a test failure. If the reading is successful, it is determined whether the Bluetooth MAC address falls within the first preset threshold range. If it does not fall within the first preset threshold range, the first test result is a test failure; otherwise, it is continued to determine whether the software version of the Bluetooth module is within the second preset threshold range. If it falls within the second preset threshold range, the first test result is a test pass; if it does not fall within the second preset threshold range, the first test result is a test failure.
[0026] Furthermore, in the second time slot, the signal strengths of multiple Bluetooth modules are centrally tested against the corresponding third preset threshold, and a second test result is formed and added to the test record table. This includes measuring the signal strengths of multiple Bluetooth modules at the same time in the second time slot. If the signal strength of the Bluetooth module is greater than or equal to the third preset threshold, the second test result is a qualified test; if the signal strength of the Bluetooth module is less than the third preset threshold or the signal strength of the Bluetooth module is not tested, the second test result is a failed test, and the second test results of all Bluetooth modules are added to the test record table.
[0027] Furthermore, a time division multiple access mechanism is used to perform separate tests on the signal strengths of multiple Bluetooth modules and the corresponding third preset threshold in each sub-time slot, including obtaining the signal strength of each Bluetooth module tested in the second time slot; sorting the Bluetooth modules according to the descending order of signal strength; using the Bluetooth modules that are ranked later or / and less than the third preset threshold as review Bluetooth modules; controlling the power supply module to turn off power to the multiple Bluetooth modules, and supplying power to each review Bluetooth module separately in the sub-time slot of the third time slot, and testing the signal strength of each corresponding review Bluetooth module separately. If the signal strength of the review Bluetooth module is greater than or equal to the third preset threshold, the third test result is a qualified test; if the signal strength of the review Bluetooth module is less than the third preset threshold or the signal strength of the review Bluetooth module is not tested, the third test result is an unqualified test, and the third test results of all review Bluetooth modules are added to the test record table.
[0028] Furthermore, a time division multiple access mechanism is used to test the current strength of multiple Bluetooth modules and the corresponding fourth preset threshold value in each sub-time slot in turn, including controlling the power supply module to cut off power supply to multiple Bluetooth modules, supplying power to each Bluetooth module individually in the sub-time slot of the fourth time slot, and testing the current strength of each corresponding Bluetooth module individually.
[0029] In the second aspect of the present invention, the present invention also provides a Bluetooth module automatic testing system, which is applied to the first aspect of the present invention, the system includes a test fixture, a power module, a PC test device end, a remote service platform and multiple Bluetooth modules; the multiple Bluetooth modules are respectively connected to the test fixture through a test interface; the power module supplies power to the multiple Bluetooth modules respectively; the PC test device end communicates with the test fixture, power module, Bluetooth module and remote service platform respectively through a multi-channel USB interface.
[0030] Beneficial effects of the present invention:
[0031] 1. The present invention divides each test task into different time slots for testing, and can complete the automatic testing of each test task. The time slots do not interfere with each other, thereby improving the test efficiency and reducing the test difficulty.
[0032] 2. This invention uses a Time Division Multiple Address (TDMA) mechanism to address interference between Bluetooth modules. The key concept behind TDMA is to divide the time on the same channel into distinct time periods, or non-overlapping time slots. Each Bluetooth module uses a dedicated sub-time slot for active connection, thus avoiding the wireless interference caused by traditional mechanisms.
[0033] 3. The present invention adopts different test cycles for each test task, and uses the normal distribution or truncated normal distribution of the test results to optimize the preset test cycle, thereby determining a more appropriate test cycle to ensure that each test task can obtain better test results. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 This is a structural diagram of a Bluetooth module automatic testing system according to an embodiment of the present invention;
[0035] Figure 2 This is a flow chart of a method for automatically testing a Bluetooth module according to an embodiment of the present invention;
[0036] Figure 3 This is a flowchart of a MAC address and software version test according to an embodiment of the present invention;
[0037] Figure 4 is a flow chart of a signal strength test according to an embodiment of the present invention;
[0038] Figure 5 This is a flow chart of current intensity testing according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 making creative efforts are within the scope of protection of the present invention.
[0040] Figure 1 This is a structural diagram of an automatic testing system for a Bluetooth module according to an embodiment of the present invention. Figure 1 As shown, the system includes a test fixture, a power module, a PC test equipment end, a remote service platform and multiple Bluetooth modules.
[0041] The multiple Bluetooth modules are respectively connected to the test fixture through a test interface; the test interface may also include a power supply, a communication interface, etc. of the Bluetooth module.
[0042] The test fixture includes a power control module, a Bluetooth signal receiving module, a test interface, and a serial-to-USB interface. The power control module controls the power supplied to the Bluetooth module by each test interface. The test interface provides power and communication with the Bluetooth module. The serial-to-USB module enables communication between the Bluetooth module and the PC test device. The Bluetooth signal receiving module measures the wireless signal strength of each Bluetooth module and transmits the measured Bluetooth module data to the PC test device via the serial-to-USB module.
[0043] The power supply module supplies power to the multiple Bluetooth modules respectively; the power supply current of the power supply module is sent to the PC test equipment end through the USB interface.
[0044] The PC test device communicates with the test fixture, power module, Bluetooth module and remote service platform respectively through multiple USB interfaces; communicates with the power supply and each module of the test fixture through the USB port, automatically completes the test of the Bluetooth module software version, Bluetooth module MAC address, Bluetooth module signal strength, Bluetooth module current strength, etc., and compares the test results with the corresponding threshold value to determine whether they are qualified and display them, and at the same time sends the test data to the remote service platform through a wired network or WIFI communication.
[0045] The remote service platform is responsible for recording and querying Bluetooth test data and test results.
[0046] Figure 2 This is an automatic testing method for a Bluetooth module according to an embodiment of the present invention. Figure 2 As shown, the method includes:
[0047] 101. Connect multiple Bluetooth modules to the test fixture respectively;
[0048] In the embodiment of the present invention, after one or N Bluetooth modules are connected to the test fixture, the PC test software automatically controls the entire test system to complete various test tasks.
[0049] 102. Control the power supply module to supply power to the multiple Bluetooth modules respectively;
[0050] In the embodiment of the present invention, the corresponding test is completed by supplying power to the Bluetooth module.
[0051] 103. In each test cycle, test tasks are executed according to different time slots;
[0052] 104. In a first time slot, test the MAC addresses and software versions of the multiple Bluetooth modules against corresponding first and second preset thresholds, generate a first test result, and add it to a test record table;
[0053] In the first time slot, the MAC addresses and software versions of multiple Bluetooth modules are tested with the corresponding first preset thresholds and second preset thresholds to form a first test result and add it to the test record table. In the first time slot, the Bluetooth MAC addresses of multiple Bluetooth modules are read at the same time. If the reading fails, the first test result is a test failure. If the reading is successful, it is determined whether the Bluetooth MAC address falls within the first preset threshold range. If it does not fall within the first preset threshold range, the first test result is a test failure; otherwise, it is continued to be determined whether the software version of the Bluetooth module is within the second preset threshold range. If it falls within the second preset threshold range, the first test result is a test pass; if it does not fall within the second preset threshold range, the first test result is a test failure.
[0054] like Figure 3 As shown, in the first time slot, the PC test device controls the power control module to supply power to each Bluetooth test module respectively; reads the Bluetooth MAC address and software version information of each Bluetooth module. If the reading fails, the failure result will be directly displayed on the PC test device interface and the test of the current test task will be ended. If the reading is successful, subsequent tests will be performed; the PC test device pre-sets the field judgment threshold of the Bluetooth MAC address, that is, the first preset threshold, compares the read Bluetooth module MAC address with the first preset threshold to determine whether it is the correct MAC address, and then compares the MAC address of the Bluetooth module with the measured MAC address (the measured Bluetooth module MAC address can be retrieved from the database locally stored in the PC tool, or retrieved from the remote service platform or the remote service platform determines and informs the PC test tool of the comparison result), checks for duplication, and after all comparisons are correct, determines the Bluetooth module software version information. If the MAC address is incorrect or duplicated, the failure information will be directly displayed on the PC test device and the test will be ended. The PC test device pre-sets the Bluetooth module software version judgment threshold, which is also the second preset threshold, and compares the read Bluetooth module software version with the second preset threshold. If they are inconsistent, it is judged as an error, and the failure information will be directly displayed on the PC test device, and the test of the current task will be ended. If the version information is consistent, the Bluetooth module MAC address and software version information will be uploaded to the remote service platform for storage.
[0055] 105. In the second time slot, perform a centralized test on the signal strengths of the multiple Bluetooth modules and the corresponding third preset thresholds, generate a second test result, and add it to the test record table;
[0056] In the second time slot, the signal strengths of multiple Bluetooth modules and the corresponding third preset threshold are centrally tested, and a second test result is formed and added to the test record table. In the second time slot, the signal strengths of multiple Bluetooth modules are measured at the same time. If the signal strength of the Bluetooth module is greater than or equal to the third preset threshold, the second test result is a qualified test; if the signal strength of the Bluetooth module is less than the third preset threshold or the signal strength of the Bluetooth module is not tested, the second test result is a failed test, and the second test results of all Bluetooth modules are added to the test record table.
[0057] like Figure 4 As shown, in the second time slot, the PC test device controls the power control module to supply power to each Bluetooth test module respectively; reads the Bluetooth MAC address and software version information of each Bluetooth module. If the reading fails, the failure result will be directly displayed on the PC test device interface and the test of the current test task will be ended. Through the Bluetooth signal receiving module, all measurable Bluetooth wireless signal strengths and corresponding Bluetooth MAC addresses are measured, and the data is sent to the PC test device; the PC test software finds the wireless signal strength corresponding to the tested module by comparing the read MAC address of the tested Bluetooth module with the MAC address corresponding to the Bluetooth wireless signal received by the Bluetooth signal receiving module, and compares it with the threshold of the Bluetooth signal strength qualified range preset by the PC test software to confirm whether the wireless signal strength of the tested Bluetooth module is qualified. If the wireless signal test result of the tested Bluetooth module is not found or the signal strength is unqualified, the test result and judgment result will be directly displayed on the PC test software, and the test will be ended; if qualified, the test data will be sent to the remote service platform for storage, and the test result and judgment result will be displayed on the PC test software, and the test will be ended.
[0058] 106. In the third time slot, use a time division multiple access mechanism to test the signal strengths of the multiple Bluetooth modules and the corresponding third preset thresholds in each sub-time slot, generate a third test result, and add it to the test record table;
[0059] A time division multiple access mechanism is used to test the signal strengths of multiple Bluetooth modules and the corresponding third preset threshold in each sub-time slot, including obtaining the signal strength of each Bluetooth module tested in the second time slot; sorting the Bluetooth modules in descending order of signal strength; using the Bluetooth modules that are ranked later or / and less than the third preset threshold as review Bluetooth modules; controlling the power supply module to turn off power to the multiple Bluetooth modules, and supplying power to each review Bluetooth module separately in the sub-time slot of the third time slot, testing the signal strength of each corresponding review Bluetooth module separately, if the signal strength of the review Bluetooth module is greater than or equal to the third preset threshold, the third test result is a qualified test; if the signal strength of the review Bluetooth module is less than the third preset threshold or the signal strength of the review Bluetooth module is not tested, the third test result is a failed test, and the third test results of all review Bluetooth modules are added to the test record table.
[0060] It is understandable that the present invention can accurately eliminate wireless interference and improve the effectiveness of wireless test performance by performing a secondary test on the wireless performance of the Bluetooth module.
[0061] 107. In the fourth time slot, use a time division multiple access mechanism to sequentially test the current strength of the multiple Bluetooth modules and the corresponding fourth preset threshold in each sub-time slot, generate a fourth test result, and add it to the test record table;
[0062] A time division multiple access mechanism is used to test the current strength of multiple Bluetooth modules and the corresponding fourth preset threshold value in each sub-time slot in turn, including controlling the power supply module to cut off the power supply to multiple Bluetooth modules, supplying power to each Bluetooth module separately in the sub-time slot of the fourth time slot, and testing the current strength of each corresponding Bluetooth module separately.
[0063] like Figure 5As shown, in the fourth time slot, due to the power consumption of the Bluetooth module, each module under test needs to be tested separately. Therefore, when multiple Bluetooth modules are connected to the test fixture at the same time, the PC test device controls the power control module to supply power to one Bluetooth module under test separately. After the test of that module is completed, the next Bluetooth module under test is automatically tested in a loop until all tests are completed. The PC test device reads the MAC address of the Bluetooth module under test, sets the working state of the Bluetooth module, such as transmit mode, standby mode, etc., and simultaneously reads the current value of the power supply to the Bluetooth module at this time. If the PC test device cannot read the MAC address or power current value of the Bluetooth module under test, the test result will be directly displayed on the PC test device and the test will be terminated. The PC test device compares the current value corresponding to the different working states of the Bluetooth module under test with the qualified threshold value for different working states preset by the PC test device, that is, the fourth preset threshold value. If the data is qualified, the test data is uploaded to the remote service platform and the test result is displayed, the task test of the Bluetooth module under test is terminated, and the test of the next module under test is carried out. If the data is unqualified, the test result is directly displayed, the test of the module under test is terminated, and the test of the next module under test is carried out. Until all tested Bluetooth modules are tested.
[0064] It can be understood that in some embodiments of the present invention, the fourth time slot can be tested as a continuation of the first time slot, that is, after measuring the first time slot, the current strength test of the fourth time slot can be directly entered, and then the signal strength test of the second and third time slots can be entered; of course, the test can also be performed in the order of the first time slot, the second time slot, the third time slot and the fourth time slot.
[0065] In this embodiment of the present invention, a Time Division Multiple Address (TDMA) mechanism is used to address interference issues between Bluetooth modules. The TDMA mechanism divides the time on the same channel into distinct time periods, or non-overlapping time slots. Each Bluetooth module uses a dedicated sub-time slot for active connection, thus avoiding the wireless interference issues caused by traditional mechanisms.
[0066] 108. Repeat the test tasks of each test cycle until the preset test cycle is reached, and generate a corresponding test report according to the test record table;
[0067] In an embodiment of the present invention, the present invention adopts different test cycles for each test task, and uses the normal distribution or truncated normal distribution of the test results to optimize the preset test cycle, thereby determining a more appropriate test cycle to ensure that each test task can obtain better test results.
[0068] The methods for determining the preset test cycle include:
[0069] Set a corresponding initial test cycle for each test task, and repeatedly execute each test task according to the corresponding initial test cycle to test and obtain the Bluetooth MAC address, software version, signal strength and current strength of each Bluetooth module;
[0070] If the distribution of Bluetooth MAC addresses and software versions meets their respective distributions, the test period of the MAC address test task and the software version test task is output; otherwise, the test period of the MAC address test task and the software version test task is increased or decreased until their respective distributions are met;
[0071] It is understandable that since the test results of the Bluetooth MAC address and software version do not change continuously, there are many mutation values of the Bluetooth MAC address and Bluetooth software version, and these mutation values have no regularity. In order to improve the test accuracy as much as possible, the present invention optimizes the test cycle of the Bluetooth MAC address and software version through the distribution of peak values. If the test results of the Bluetooth MAC address and Bluetooth software version measured in multiple different test cycles are mainly concentrated on a specific peak value, then it can be considered that the respective distributions are met. Otherwise, it is necessary to increase or decrease the test cycle of the MAC address test task and the software version test task until the above conditions are met.
[0072] If the distribution of signal strength and current strength satisfies their respective truncated normal distributions, the test cycles of the signal strength test task and the current strength test task are output; otherwise, the test cycles of the signal strength test task and the current strength test task are increased or decreased until their respective truncated normal distributions are satisfied.
[0073] Furthermore, the calculation formula for the endpoint value of the truncated normal distribution is expressed as:
[0074]
[0075]
[0076] Among them, x a Indicates the left endpoint of the intensity data interval, x b Indicates the right endpoint of the intensity data interval; Δθ max represents the maximum value in the set of intensity differences, Δθ min represents the minimum value in the set of intensity differences; Δθ max ∈[Δθ1,Δθ2,...,Δθ n ], Δθ min ∈[Δθ1,Δθ2,...,Δθ n ], Δθ nIndicates the strength difference of the nth strength test cycle, where n is the total number of test cycles in the strength test task; the strength here refers to signal strength or current strength.
[0077] It is understandable that, considering that the signal strength and current strength generally change continuously, the tested signal strength and current strength may be higher or lower than the actual signal strength and current strength. In order to eliminate the impact of such uneven test results, the intensity data interval set by the present invention is a symmetrical data space. By testing the maximum and minimum values of the intensity difference, the endpoint values of the intensity data interval are calculated to determine a more accurate test result interval, and the truncated normal distribution can be made to belong to the standard normal distribution; this can ensure that the intensity test results can meet the actual test results as much as possible, thereby improving the accuracy of the test results and the test efficiency.
[0078] 109. Send the corresponding test report to the remote service platform for storage, and display the final test results on the PC test device to end the test.
[0079] The embodiments of the present application complete various test tasks according to a preset test cycle; when the test cycle is equal to the preset number of tests, a corresponding test report is generated according to the test record table; the accuracy of the test results and the test efficiency can be effectively improved.
[0080] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, which may include: ROM, RAM, disk or CD, etc.
[0081] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.
Claims
1. A method for automatically testing a Bluetooth module, characterized in that: The method comprises: Connect multiple Bluetooth modules to the test fixture respectively; The control power supply module supplies power to multiple Bluetooth modules respectively; In each test cycle, test tasks are executed according to different time slots; In a first time slot, testing the MAC addresses and software versions of the multiple Bluetooth modules and corresponding first and second preset thresholds to generate a first test result and add it to a test record table; In the second time slot, the signal strengths of the plurality of Bluetooth modules are collectively tested against corresponding third preset thresholds, and a second test result is generated and added to the test record table; In the third time slot, the signal strength of the plurality of Bluetooth modules is tested separately against the corresponding third preset threshold value in each sub-time slot by using the time division multiple access mechanism, and a third test result is formed and added to the test record table; In the fourth time slot, the time division multiple access mechanism is used to test the current strength of the multiple Bluetooth modules and the corresponding fourth preset threshold value in each sub-time slot, and a fourth test result is generated and added to the test record table; Repeat the test tasks of each test cycle until the preset test cycle is reached, and generate a corresponding test report according to the test record table; The methods for determining the preset test cycle include: Set a corresponding initial test cycle for each test task, and repeatedly execute each test task according to the corresponding initial test cycle to test and obtain the Bluetooth MAC address, software version, signal strength and current strength of each Bluetooth module; If the distribution of Bluetooth MAC addresses and software versions meets their respective distributions, the test period of the MAC address test task and the software version test task is output; otherwise, the test period of the MAC address test task and the software version test task is increased or decreased until their respective distributions are met; If the distribution of signal strength and current strength satisfies their respective truncated normal distributions, the test period of the signal strength test task and the current strength test task is output; otherwise, the test period of the signal strength test task and the current strength test task is increased or decreased until they satisfy their respective truncated normal distributions; The method for determining the endpoint value of the truncated normal distribution includes calculating the intensity difference between each test intensity and the previous test intensity, constructing an intensity difference value set based on the intensity difference value, and determining the endpoint value of the truncated normal distribution based on the intensity difference value set; The calculation formula for the endpoint value of the truncated normal distribution is expressed as: Among them, x a Indicates the left endpoint of the intensity data interval, x b Indicates the right endpoint of the intensity data interval; Δθ max represents the maximum value in the set of intensity differences, Δθ min represents the minimum value in the set of intensity differences; Δθ max ∈[Δθ1,Δθ2,...,Δθ n ], Δθ min ∈[Δθ1,Δθ2,...,Δθ n ], Δθ n It represents the strength difference of the nth strength test cycle, where n represents the total number of test cycles of the strength test task; The corresponding test report is sent to the remote service platform for storage, and the final test results are displayed on the PC test device to end the test.
2. A Bluetooth module automatic testing method according to claim 1, characterized in that, Before forming the test results and adding them to the test record table, if the test result is unqualified, the test task of the current test cycle will be directly exited, the failure information will be displayed on the PC test device, and the next test cycle will be entered to execute the test task.
3. A Bluetooth module automatic testing method according to claim 1, characterized in that, In a first time slot, testing the MAC addresses and software versions of the multiple Bluetooth modules and corresponding first and second preset thresholds to form a first test result and add it to a test record table. The method includes simultaneously reading the Bluetooth MAC addresses of the multiple Bluetooth modules in the first time slot. If the reading fails, the first test result is a test failure. If the reading succeeds, determining whether the Bluetooth MAC address falls within a first preset threshold range. If not, the first test result is a test failure. Otherwise, continue to determine whether the software version of the Bluetooth module is within the second preset threshold range. If it is within the second preset threshold range, the first test result is a qualified test; if it is not within the second preset threshold range, the first test result is a failed test.
4. A Bluetooth module automatic testing method according to claim 1, characterized in that, In the second time slot, the signal strengths of multiple Bluetooth modules and the corresponding third preset threshold are centrally tested, and a second test result is formed and added to the test record table. In the second time slot, the signal strengths of multiple Bluetooth modules are measured at the same time. If the signal strength of the Bluetooth module is greater than or equal to the third preset threshold, the second test result is a qualified test; if the signal strength of the Bluetooth module is less than the third preset threshold or the signal strength of the Bluetooth module is not tested, the second test result is a failed test, and the second test results of all Bluetooth modules are added to the test record table.
5. A Bluetooth module automatic testing method according to claim 1, characterized in that, A time division multiple access mechanism is used to test the signal strengths of multiple Bluetooth modules and the corresponding third preset threshold in each sub-time slot, including obtaining the signal strength of each Bluetooth module tested in the second time slot; sorting the Bluetooth modules in descending order of signal strength; using the Bluetooth modules that are ranked later or / and less than the third preset threshold as review Bluetooth modules; controlling the power supply module to turn off power to the multiple Bluetooth modules, and supplying power to each review Bluetooth module separately in the sub-time slot of the third time slot, testing the signal strength of each corresponding review Bluetooth module separately, if the signal strength of the review Bluetooth module is greater than or equal to the third preset threshold, the third test result is a qualified test; if the signal strength of the review Bluetooth module is less than the third preset threshold or the signal strength of the review Bluetooth module is not tested, the third test result is a failed test, and the third test results of all review Bluetooth modules are added to the test record table.
6. A Bluetooth module automatic testing method according to claim 1, characterized in that: A time division multiple access mechanism is used to test the current strength of multiple Bluetooth modules and the corresponding fourth preset threshold value in each sub-time slot in turn, including controlling the power supply module to cut off the power supply to multiple Bluetooth modules, supplying power to each Bluetooth module separately in the sub-time slot of the fourth time slot, and testing the current strength of each corresponding Bluetooth module separately.
7. A Bluetooth module automatic testing system, applied to a Bluetooth module automatic testing method according to any one of claims 1 to 6, characterized in that: The system includes a test fixture, a power module, a PC test device end, a remote service platform and multiple Bluetooth modules; the multiple Bluetooth modules are respectively connected to the test fixture through test interfaces; the power module supplies power to the multiple Bluetooth modules respectively; the PC test device end communicates with the test fixture, power module, Bluetooth module and remote service platform respectively through multiple USB interfaces.
Citation Information
Patent Citations
Adaptive Bluetooth test system and method
CN106533578A