A Bluetooth rate test method based on Android
By dividing the test time of Bluetooth devices into multiple monitoring sub-periods, collecting and analyzing test data, evaluating Bluetooth connection rate stability and optimizing performance, the problem that existing Bluetooth rate testing methods cannot comprehensively evaluate and optimize Bluetooth device performance is solved, and more efficient and reliable data transmission is achieved.
Patent Information
- Application Number
- CN202411433471.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2044-10-15
AI Technical Summary
Existing Bluetooth rate testing methods cannot comprehensively and accurately evaluate the performance of Bluetooth devices in various environments, and lack real-time feedback mechanisms, so they cannot adjust and optimize transmission performance in a timely manner.
Provides a Bluetooth rate testing method based on Android. By dividing the test time into multiple monitoring sub-periods, collecting test data of Bluetooth devices, calculating Bluetooth rate test performance load index and variation index, evaluating Bluetooth connection rate stability, and optimizing device performance according to abnormal conditions.
It has achieved a comprehensive evaluation of the stability of Bluetooth connection rate, which can accurately capture abnormal situations, optimize the performance of Bluetooth devices, improve the reliability and efficiency of data transmission, and improve the testing efficiency and accuracy.
Smart Images

Figure CN118945694B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and more specifically, to an Android-based Bluetooth rate testing method. Background Art
[0002] In today's digital age, Bluetooth technology has become an indispensable part of the field of wireless communications, especially playing an important role in mobile devices and Internet of Things devices. With the continuous advancement of technology, from the initial Bluetooth 1.0 version, whose data transmission rate was only 1Mbps, to the current Bluetooth 5.2 version, the transmission rate has been increased to 2Mbps. The increase in Bluetooth rate has enhanced the competitiveness of Bluetooth technology in smart homes and industrial automation.
[0003] As a short-range wireless communication technology, Bluetooth technology works based on the transmission of radio waves and transmits data within the frequency band through frequency hopping spread spectrum technology. On the Android platform, the implementation of the Bluetooth protocol stack allows developers to interact with it through the Bluetooth API to perform operations such as device discovery, pairing, connection, and data transmission, and achieve connection with remote Bluetooth devices to send and receive data.
[0004] However, it still has some shortcomings in actual use, such as connection stability issues. In different test environments, the Bluetooth data transmission rate will be significantly affected. For example, factors such as interference, distance and obstacles will have different degrees of impact on the transmission rate of Bluetooth signals. The existing Bluetooth rate test method has certain limitations in practical applications and cannot fully and accurately evaluate the performance of Bluetooth devices in various environments.
[0005] The existing Bluetooth rate test process lacks a real-time feedback mechanism, and it is impossible to timely adjust and optimize the transmission performance of Bluetooth devices based on historical connection rate stability test data. Therefore, the level of intelligence in data processing and analysis needs to be improved. Summary of the invention
[0006] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a Bluetooth rate testing method based on Android, which is used to solve the problems raised in the above-mentioned background technology.
[0007] To achieve the above object, the present invention provides the following technical solution: a Bluetooth rate testing method based on Android, comprising:
[0008] Step S01: Bluetooth device test time division: used to divide the test execution time of the target Bluetooth device into various monitoring sub-periods according to an equal time division method, and number each monitoring sub-period of the test execution time of the target Bluetooth device.
[0009] Step S02: Bluetooth device test data collection: used to collect Bluetooth device test data of each monitoring sub-period of the test execution time of the target Bluetooth device, and the Bluetooth device test data collection includes a Bluetooth device load test data collection unit and a Bluetooth device interference test data collection unit.
[0010] Step S03: Bluetooth device load test data warning: The Bluetooth rate test performance load index of each monitoring sub-period of the test execution time of the target Bluetooth device is calculated by the Bluetooth device load test data acquisition unit.
[0011] Step S04: Bluetooth device interference test intensity analysis: The Bluetooth rate variation index of each monitoring sub-period of the test execution time of the target Bluetooth device is calculated by the Bluetooth device interference test data acquisition unit.
[0012] Step S05: Bluetooth test device rate stability construction: Based on the Bluetooth rate test performance load index and Bluetooth rate variation index of each monitoring sub-period of the test execution time of the target Bluetooth device, the Bluetooth connection rate stability evaluation coefficient of each monitoring sub-period of the test execution time of the target Bluetooth device is calculated.
[0013] Step S06: Bluetooth device stability test evaluation: used to obtain the Bluetooth connection rate stability evaluation coefficient of each monitoring sub-period of the test execution time of the target Bluetooth device, compare it with the preset Bluetooth connection rate stability evaluation coefficient, and process it.
[0014] Step S07: Bluetooth device rate optimization: based on the Bluetooth connection rate stability control amplitude and Bluetooth connection rate abnormality trend of the abnormal monitoring sub-period of the target Bluetooth device, the Bluetooth connection rate output signal coefficient of the abnormal monitoring sub-period of the target Bluetooth device is calculated.
[0015] Preferably, the Bluetooth device test time is specifically divided as follows:
[0016] The test execution time of the target Bluetooth device is obtained, the total test execution time is divided into monitoring sub-periods according to an equal time division method, and the monitoring sub-periods of the test execution time of the target Bluetooth device are numbered 1, 2, ...i, ...n in sequence.
[0017] Preferably, the Bluetooth device test data collection is specifically as follows:
[0018] Bluetooth device load test data collection unit: collects the length of the sent test data packet, the length of the successfully received data packet, and the data transmission rate of each monitoring sub-period during the test execution time of the target Bluetooth device, marked as , , , where i=1,2,...n, i represents the number of the i-th monitoring sub-period;
[0019] Bluetooth device interference test data collection unit: collects the Bluetooth signal strength, electromagnetic interference signal strength, Bluetooth device disconnection times, and device distance of each monitoring sub-period during the test execution time of the target Bluetooth device, and marks them as , , , .
[0020] Preferably, the Bluetooth device load test data warning is specifically:
[0021] Step S001: Calculate the success rate of sending test data packets:
[0022] ,in It is expressed as the success rate of sending test data packets in the i-th monitoring sub-period, It is represented as the length of the successfully received data packet in the ith monitoring sub-period, It is represented as the length of the test data packet sent in the i-th monitoring sub-period;
[0023] Step S002: Obtain the maximum data transmission rate allowed by the target Bluetooth device and calculate the packet loss efficiency of the test data packet:
[0024] ,in It is represented as the packet loss efficiency of the test data packet sent in the i-th monitoring sub-period, It is expressed as the monitoring time of the monitoring sub-period, Expressed as the maximum data transfer rate, It is expressed as the data transmission rate of the ith monitoring sub-period;
[0025] Step S003: The calculation formula of the Bluetooth rate test performance load index is:
[0026] ,in It is represented as the Bluetooth rate test performance load index of the i-th monitoring sub-period, It is expressed as the maximum value of the success rate of sending test data packets. It is expressed as the minimum value of the success rate of sending test data packets. It is represented as the packet loss efficiency of the test data packet sent in the i-1th monitoring sub-period, It is represented as the packet loss efficiency of the test data packet sent in the i+1th monitoring sub-period, and e is represented as a natural constant.
[0027] Preferably, the Bluetooth device interference test strength analysis is specifically as follows:
[0028] Step S001: Calculate the Bluetooth signal stability index:
[0029] ,in It is expressed as the Bluetooth signal stability index of the i-th monitoring sub-period, It is represented as the Bluetooth signal strength of the i-th monitoring sub-period, It is represented as the electromagnetic interference signal strength of the i-th monitoring sub-period;
[0030] Step S002: Calculate the Bluetooth device connection attenuation strength:
[0031] ,in It is represented as the Bluetooth device connection attenuation strength in the i-th monitoring sub-period, It is represented as the device distance in the ith monitoring sub-period, It is represented by the number of disconnections of Bluetooth devices in the i-th monitoring sub-period. Indicates the preset number of disconnections of the Bluetooth device;
[0032] Step S003: The calculation formula of the Bluetooth rate variation index is:
[0033] ,in It is expressed as the Bluetooth rate variation index of the i-th monitoring sub-period, Indicates the preset Bluetooth signal attenuation strength. Represents the preset Bluetooth device connection stability indicator.
[0034] Preferably, the calculation formula of the Bluetooth connection rate stability evaluation coefficient is:
[0035] ,in It is expressed as the Bluetooth connection rate stability evaluation coefficient of the i-th monitoring sub-period, It is represented as the Bluetooth rate test performance load index of the i-th monitoring sub-period, It is expressed as the Bluetooth rate variation index of the i-th monitoring sub-period.
[0036] Preferably, the Bluetooth device stability test and evaluation is specifically as follows:
[0037] Obtain the Bluetooth connection rate stability assessment coefficient of each monitoring sub-period of the test execution time of the target Bluetooth device, and compare it with the preset Bluetooth connection rate stability assessment coefficient. If the Bluetooth connection rate stability assessment coefficient of a monitoring sub-period of the test execution time of the target Bluetooth device is less than the preset Bluetooth connection rate stability assessment coefficient, it indicates that there is an abnormality in the stability test of the Bluetooth connection rate of the monitoring sub-period, and the abnormal monitoring sub-period is sent to the Bluetooth device rate optimization step for processing. Otherwise, it indicates that there is no abnormality in the stability test of the Bluetooth connection rate of the monitoring sub-period, and the stability of the Bluetooth connection rate during the execution time of the next Bluetooth rate test is continuously monitored.
[0038] Preferably, the Bluetooth device rate optimization is specifically as follows:
[0039] Step S001: Count the number of monitoring sub-periods in which the stability test of the Bluetooth connection rate transmitted in the Bluetooth device stability test evaluation step has abnormalities, marked as X;
[0040] Step S002: extracting the Bluetooth rate test performance load index and the Bluetooth rate variation index corresponding to the maximum Bluetooth connection rate stability evaluation coefficient in the monitoring sub-period in which the Bluetooth connection rate stability test is abnormal, and calculating the Bluetooth connection rate stability control range:
[0041] ,in The Bluetooth connection rate stability control amplitude of the abnormal monitoring sub-period of the target Bluetooth device is represented. The Bluetooth rate test performance load index corresponding to the maximum Bluetooth connection rate stability evaluation coefficient in the abnormal monitoring sub-period of the target Bluetooth device, It is represented as the Bluetooth rate variation index corresponding to the maximum Bluetooth connection rate stability evaluation coefficient in the abnormal monitoring sub-period of the target Bluetooth device, The maximum Bluetooth connection rate stability evaluation coefficient in the abnormal monitoring sub-period of the target Bluetooth device is represented;
[0042] Step S003: Calculate the abnormal trend of Bluetooth connection rate:
[0043] ,in It represents the abnormal trend of the Bluetooth connection rate in the abnormal monitoring sub-period of the target Bluetooth device, X represents the number of abnormal monitoring sub-periods, The standard deviation of the Bluetooth connection rate stability evaluation coefficient of the abnormal monitoring sub-period of the target Bluetooth device is represented as follows: It is expressed as the Bluetooth connection rate stability evaluation coefficient of the i-th monitoring sub-period;
[0044] Step S004: The calculation formula of the Bluetooth connection rate output signal coefficient is:
[0045] ,in It is represented as the Bluetooth connection rate output signal coefficient of the i-th monitoring sub-period.
[0046] Technical effects and advantages of the present invention:
[0047] The present invention provides a Bluetooth rate test method based on Android, which collects Bluetooth device test data of each monitoring sub-period of the test execution time of the target Bluetooth device, calculates the Bluetooth rate test performance load index of each monitoring sub-period of the test execution time of the target Bluetooth device according to a Bluetooth device load test data collection unit, calculates the Bluetooth rate variation index of each monitoring sub-period of the test execution time of the target Bluetooth device according to a Bluetooth device interference test data collection unit, further calculates the Bluetooth connection rate stability evaluation coefficient of each monitoring sub-period of the test execution time of the target Bluetooth device, and compares it with a preset Bluetooth connection rate stability evaluation coefficient. If the Bluetooth connection rate stability evaluation coefficient of a certain monitoring sub-period of the test execution time of the target Bluetooth device is less than the preset value, the Bluetooth connection rate stability evaluation coefficient of the target Bluetooth device is calculated. If the Bluetooth connection rate stability evaluation coefficient is set, it indicates that there is an abnormality in the stability test of the Bluetooth connection rate in the monitoring sub-period, and the abnormal monitoring sub-period is sent to the Bluetooth device rate optimization step for processing; otherwise, it indicates that there is no abnormality in the stability test of the Bluetooth connection rate in the monitoring sub-period, and the stability of the Bluetooth connection rate during the execution time of the next Bluetooth rate test is continuously monitored. The test method proposed in the present invention can comprehensively evaluate the stability of the Bluetooth connection rate, and can accurately capture abnormal situations by real-time monitoring and analyzing the stability evaluation coefficient of the Bluetooth connection rate, thereby optimizing the performance of the Bluetooth device and improving the reliability and efficiency of data transmission. The entire test process realizes automated data collection, calculation and analysis, and improves test efficiency and accuracy;
[0048] The present invention provides a Bluetooth rate testing method based on Android. The method utilizes a Bluetooth device rate optimization step, receives a monitoring sub-period in which an abnormality exists in the stability test of the Bluetooth connection rate transmitted in a Bluetooth device stability test evaluation step, obtains the Bluetooth connection rate stability control amplitude and the Bluetooth connection rate abnormality trend of the abnormal monitoring sub-period of the target Bluetooth device based on historical data analysis, calculates the Bluetooth connection rate output signal coefficient of the abnormal monitoring sub-period of the target Bluetooth device, makes full use of historical Bluetooth connection rate stability evaluation coefficients, Bluetooth rate test performance load index and Bluetooth rate variation index data, comprehensively evaluates and optimizes the transmission performance of the Bluetooth device to improve the optimization efficiency, and can provide users with detailed rate change data through real-time analysis of the Bluetooth connection rate stability evaluation coefficients of the monitoring sub-periods, thereby improving the overall performance and quality of the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a schematic diagram of the connection of the method steps of the present invention.
[0050] Figure 2 It is a structural schematic diagram of the Bluetooth device test data collection steps of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] See also Figure 1 As shown, the present invention provides a Bluetooth rate testing method based on Android, including Bluetooth device test time division, Bluetooth device test data collection, Bluetooth device load test data early warning, Bluetooth device interference test strength analysis, Bluetooth test device rate stability construction, Bluetooth device stability test evaluation, and Bluetooth device rate optimization.
[0053] The Bluetooth device test time division is connected with the Bluetooth device test data collection, the Bluetooth device test data collection is connected with the Bluetooth device load test data early warning, the Bluetooth device load test data early warning is connected with the Bluetooth device interference test strength analysis, the Bluetooth device interference test strength analysis is connected with the Bluetooth test device rate stability construction, the Bluetooth test device rate stability construction is connected with the Bluetooth device stability test evaluation, and the Bluetooth device stability test evaluation is connected with the Bluetooth device rate optimization.
[0054] The step S01: Bluetooth device test time division: is used to divide the test execution time of the target Bluetooth device into various monitoring sub-periods according to an equal time division method, and number each monitoring sub-period of the test execution time of the target Bluetooth device.
[0055] In a possible design, the Bluetooth device test time is specifically divided as follows:
[0056] The test execution time of the target Bluetooth device is obtained, the total test execution time is divided into monitoring sub-periods according to an equal time division method, and the monitoring sub-periods of the test execution time of the target Bluetooth device are numbered 1, 2, ...i, ...n in sequence.
[0057] See also Figure 2 As shown, the step S02: Bluetooth device test data collection: is used to collect the Bluetooth device test data of each monitoring sub-period of the test execution time of the target Bluetooth device, and the Bluetooth device test data collection includes a Bluetooth device load test data collection unit and a Bluetooth device interference test data collection unit.
[0058] In a possible design, the Bluetooth device test data collection is specifically as follows:
[0059] Bluetooth device load test data collection unit: collects the length of the sent test data packet, the length of the successfully received data packet, and the data transmission rate of each monitoring sub-period during the test execution time of the target Bluetooth device, marked as , , , where i=1,2,...n, i represents the number of the i-th monitoring sub-period;
[0060] Bluetooth device interference test data collection unit: collects the Bluetooth signal strength, electromagnetic interference signal strength, Bluetooth device disconnection times, and device distance of each monitoring sub-period during the test execution time of the target Bluetooth device, and marks them as , , , .
[0061] The step S03: Bluetooth device load test data warning: is used to receive the Bluetooth device test data transmitted by the Bluetooth device test data collection step, and calculate the Bluetooth rate test performance load index of each monitoring sub-period of the test execution time of the target Bluetooth device according to the Bluetooth device load test data collection unit.
[0062] In a possible design, the Bluetooth device load test data warning is specifically:
[0063] Step S001: Calculate the success rate of sending test data packets:
[0064] ,in It is expressed as the success rate of sending test data packets in the i-th monitoring sub-period, It is represented as the length of the successfully received data packet in the ith monitoring sub-period, It is represented as the length of the test data packet sent in the i-th monitoring sub-period;
[0065] Step S002: Obtain the maximum data transmission rate allowed by the target Bluetooth device and calculate the packet loss efficiency of the test data packet:
[0066] ,in It is represented as the packet loss efficiency of the test data packet sent in the i-th monitoring sub-period, It is expressed as the monitoring time of the monitoring sub-period, Expressed as the maximum data transfer rate, It is expressed as the data transmission rate of the ith monitoring sub-period;
[0067] Step S003: The calculation formula of the Bluetooth rate test performance load index is:
[0068] ,in It is represented as the Bluetooth rate test performance load index of the i-th monitoring sub-period, It is expressed as the maximum value of the success rate of sending test data packets. It is expressed as the minimum value of the success rate of sending test data packets. It is represented as the packet loss efficiency of the test data packet sent in the i-1th monitoring sub-period, It is represented as the packet loss efficiency of the test data packet sent in the i+1th monitoring sub-period, and e is represented as a natural constant.
[0069] The step S04: Bluetooth device interference test intensity analysis: is used to receive the Bluetooth device test data transmitted by the Bluetooth device test data collection step, and calculate the Bluetooth rate variation index of each monitoring sub-period of the test execution time of the target Bluetooth device according to the Bluetooth device interference test data collection unit.
[0070] In a possible design, the Bluetooth device interference test strength analysis is specifically as follows:
[0071] Step S001: Calculate the Bluetooth signal stability index:
[0072] ,in It is expressed as the Bluetooth signal stability index of the i-th monitoring sub-period, It is represented as the Bluetooth signal strength of the i-th monitoring sub-period, It is represented as the electromagnetic interference signal strength of the i-th monitoring sub-period;
[0073] Step S002: Calculate the Bluetooth device connection attenuation strength:
[0074] ,in It is represented as the Bluetooth device connection attenuation strength in the i-th monitoring sub-period, It is represented as the device distance in the ith monitoring sub-period, It is represented by the number of disconnections of Bluetooth devices in the i-th monitoring sub-period. Indicates the preset number of disconnections of the Bluetooth device;
[0075] Step S003: The calculation formula of the Bluetooth rate variation index is:
[0076] ,in It is expressed as the Bluetooth rate variation index of the i-th monitoring sub-period, Indicates the preset Bluetooth signal attenuation strength. Represents the preset Bluetooth device connection stability indicator.
[0077] The step S05: constructing the rate stability of the Bluetooth test device: based on the Bluetooth rate test performance load index and the Bluetooth rate variation index of each monitoring sub-period of the test execution time of the target Bluetooth device, the Bluetooth connection rate stability evaluation coefficient of each monitoring sub-period of the test execution time of the target Bluetooth device is calculated.
[0078] In one possible design, the calculation formula of the Bluetooth connection rate stability evaluation coefficient is:
[0079] ,in It is expressed as the Bluetooth connection rate stability evaluation coefficient of the i-th monitoring sub-period, It is represented as the Bluetooth rate test performance load index of the i-th monitoring sub-period, It is expressed as the Bluetooth rate variation index of the i-th monitoring sub-period.
[0080] The step S06: Bluetooth device stability test evaluation: is used to obtain the Bluetooth connection rate stability evaluation coefficient of each monitoring sub-period of the test execution time of the target Bluetooth device, compare it with the preset Bluetooth connection rate stability evaluation coefficient, and process it.
[0081] In a possible design, the Bluetooth device stability test evaluation is specifically as follows:
[0082] Obtain the Bluetooth connection rate stability assessment coefficient of each monitoring sub-period of the test execution time of the target Bluetooth device, and compare it with the preset Bluetooth connection rate stability assessment coefficient. If the Bluetooth connection rate stability assessment coefficient of a monitoring sub-period of the test execution time of the target Bluetooth device is less than the preset Bluetooth connection rate stability assessment coefficient, it indicates that there is an abnormality in the stability test of the Bluetooth connection rate of the monitoring sub-period, and the abnormal monitoring sub-period is sent to the Bluetooth device rate optimization step for processing. Otherwise, it indicates that there is no abnormality in the stability test of the Bluetooth connection rate of the monitoring sub-period, and the stability of the Bluetooth connection rate during the execution time of the next Bluetooth rate test is continuously monitored.
[0083] The step S07: Bluetooth device rate optimization: by receiving the monitoring sub-period in which there is an abnormality in the stability test of the Bluetooth connection rate transmitted in the Bluetooth device stability test evaluation step, based on the Bluetooth connection rate stability control amplitude and the abnormal trend of the Bluetooth connection rate in the abnormal monitoring sub-period of the target Bluetooth device, the Bluetooth connection rate output signal coefficient of the abnormal monitoring sub-period of the target Bluetooth device is calculated.
[0084] In a possible design, the Bluetooth device rate optimization is specifically as follows:
[0085] Step S001: Count the number of monitoring sub-periods in which the stability test of the Bluetooth connection rate transmitted in the Bluetooth device stability test evaluation step has abnormalities, marked as X;
[0086] Step S002: extracting the Bluetooth rate test performance load index and the Bluetooth rate variation index corresponding to the maximum Bluetooth connection rate stability evaluation coefficient in the monitoring sub-period in which the Bluetooth connection rate stability test is abnormal, and calculating the Bluetooth connection rate stability control range:
[0087] ,in The Bluetooth connection rate stability control amplitude of the abnormal monitoring sub-period of the target Bluetooth device is represented. The Bluetooth rate test performance load index corresponding to the maximum Bluetooth connection rate stability evaluation coefficient in the abnormal monitoring sub-period of the target Bluetooth device, It is represented as the Bluetooth rate variation index corresponding to the maximum Bluetooth connection rate stability evaluation coefficient in the abnormal monitoring sub-period of the target Bluetooth device, The maximum Bluetooth connection rate stability evaluation coefficient in the monitoring sub-period representing the abnormality of the target Bluetooth device;
[0088] Step S003: Calculate the abnormal trend of Bluetooth connection rate:
[0089] ,in It represents the abnormal trend of the Bluetooth connection rate in the abnormal monitoring sub-period of the target Bluetooth device, X represents the number of abnormal monitoring sub-periods, The standard deviation of the Bluetooth connection rate stability evaluation coefficient of the abnormal monitoring sub-period of the target Bluetooth device is represented as follows: It is expressed as the Bluetooth connection rate stability evaluation coefficient of the i-th monitoring sub-period;
[0090] Step S004: The calculation formula of the Bluetooth connection rate output signal coefficient is:
[0091] ,in It is represented as the Bluetooth connection rate output signal coefficient of the i-th monitoring sub-period.
[0092] In this embodiment, it should be specifically noted that the calculation formula for the standard deviation of the Bluetooth connection rate stability evaluation coefficient of the abnormal monitoring sub-period of the target Bluetooth device is:
[0093] ,in The standard deviation of the Bluetooth connection rate stability evaluation coefficient of the abnormal monitoring sub-period of the target Bluetooth device is represented as follows: is represented by the mean value of the Bluetooth connection rate stability evaluation coefficient, and .
[0094] In the present embodiment, it needs to be specifically explained that the present invention collects the Bluetooth device test data of each monitoring sub-period of the test execution time of the target Bluetooth device, calculates the Bluetooth rate test performance load index of each monitoring sub-period of the test execution time of the target Bluetooth device according to the Bluetooth device load test data collection unit, calculates the Bluetooth rate variation index of each monitoring sub-period of the test execution time of the target Bluetooth device according to the Bluetooth device interference test data collection unit, further calculates the Bluetooth connection rate stability evaluation coefficient of each monitoring sub-period of the test execution time of the target Bluetooth device, and compares it with the preset Bluetooth connection rate stability evaluation coefficient. If the Bluetooth connection rate stability evaluation coefficient of a certain monitoring sub-period of the test execution time of the target Bluetooth device is less than the preset Bluetooth connection rate stability evaluation coefficient, the Bluetooth connection rate stability evaluation coefficient is calculated. If the Bluetooth connection rate stability evaluation coefficient is low, it indicates that there is an abnormality in the stability test of the Bluetooth connection rate in the monitoring sub-period, and the abnormal monitoring sub-period is sent to the Bluetooth device rate optimization step for processing; otherwise, it indicates that there is no abnormality in the stability test of the Bluetooth connection rate in the monitoring sub-period, and the stability of the Bluetooth connection rate during the execution time of the next Bluetooth rate test is continuously monitored. The test method proposed in the present invention can comprehensively evaluate the stability of the Bluetooth connection rate, and can accurately capture abnormal situations by real-time monitoring and analyzing the stability evaluation coefficient of the Bluetooth connection rate, thereby optimizing the performance of the Bluetooth device and improving the reliability and efficiency of data transmission. The entire test process realizes automated data collection, calculation and analysis, and improves test efficiency and accuracy.
[0095] In the present embodiment, it should be specifically explained that the present invention utilizes the Bluetooth device rate optimization step, and obtains the abnormal monitoring sub-period of the Bluetooth connection rate stability test transmitted by the Bluetooth device stability test evaluation step, and obtains the Bluetooth connection rate stability control amplitude and the Bluetooth connection rate abnormal trend of the abnormal monitoring sub-period of the target Bluetooth device based on historical data analysis, calculates the Bluetooth connection rate output signal coefficient of the abnormal monitoring sub-period of the target Bluetooth device, and makes full use of the historical Bluetooth connection rate stability evaluation coefficient, the Bluetooth rate test performance load index and the Bluetooth rate variation index data to comprehensively evaluate and optimize the transmission performance of the Bluetooth device to improve the optimization efficiency, and can provide users with detailed rate change data through real-time analysis of the Bluetooth connection rate stability evaluation coefficient of the monitoring sub-period, thereby improving the overall performance and quality of the product.
[0096] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A Bluetooth rate test method based on Android, characterized in that: include: Step S01: Bluetooth device test time division: used to divide the test execution time of the target Bluetooth device into various monitoring sub-periods according to an equal time division method, and number each monitoring sub-period of the test execution time of the target Bluetooth device; Step S02: Bluetooth device test data collection: used to collect Bluetooth device test data of each monitoring sub-period of the test execution time of the target Bluetooth device, and the Bluetooth device test data collection includes a Bluetooth device load test data collection unit and a Bluetooth device interference test data collection unit; Step S03: Bluetooth device load test data warning: The Bluetooth rate test performance load index of each monitoring sub-period of the test execution time of the target Bluetooth device is calculated by the Bluetooth device load test data acquisition unit; Step S04: Bluetooth device interference test intensity analysis: The Bluetooth rate variation index of each monitoring sub-period of the test execution time of the target Bluetooth device is calculated according to the Bluetooth device interference test data acquisition unit; Step S05: Bluetooth test device rate stability construction: based on the Bluetooth rate test performance load index and Bluetooth rate variation index of each monitoring sub-period of the test execution time of the target Bluetooth device, calculate the Bluetooth connection rate stability evaluation coefficient of each monitoring sub-period of the test execution time of the target Bluetooth device; Step S06: Bluetooth device stability test evaluation: used to obtain the Bluetooth connection rate stability evaluation coefficient of each monitoring sub-period of the test execution time of the target Bluetooth device, compare it with the preset Bluetooth connection rate stability evaluation coefficient, and process it; Step S07: Bluetooth device rate optimization: based on the Bluetooth connection rate stability control amplitude and the Bluetooth connection rate abnormality trend of the abnormal monitoring sub-period of the target Bluetooth device, the Bluetooth connection rate output signal coefficient of the abnormal monitoring sub-period of the target Bluetooth device is calculated; The Bluetooth device rate optimization is specifically as follows: Step S001: Count the number of monitoring sub-periods in which the stability test of the Bluetooth connection rate transmitted in the Bluetooth device stability test evaluation step has abnormalities, marked as X; Step S002: extracting the Bluetooth rate test performance load index and the Bluetooth rate variation index corresponding to the maximum Bluetooth connection rate stability evaluation coefficient in the monitoring sub-period in which the Bluetooth connection rate stability test is abnormal, and calculating the Bluetooth connection rate stability control range: ,in The Bluetooth connection rate stability control amplitude of the abnormal monitoring sub-period of the target Bluetooth device is represented. The Bluetooth rate test performance load index corresponding to the maximum Bluetooth connection rate stability evaluation coefficient in the abnormal monitoring sub-period of the target Bluetooth device, It is represented as the Bluetooth rate variation index corresponding to the maximum Bluetooth connection rate stability evaluation coefficient in the abnormal monitoring sub-period of the target Bluetooth device, The maximum Bluetooth connection rate stability evaluation coefficient in the abnormal monitoring sub-period of the target Bluetooth device is represented; Step S003: Calculate the abnormal trend of Bluetooth connection rate: ,in It represents the abnormal trend of the Bluetooth connection rate in the abnormal monitoring sub-period of the target Bluetooth device, X represents the number of abnormal monitoring sub-periods, The standard deviation of the Bluetooth connection rate stability evaluation coefficient of the abnormal monitoring sub-period of the target Bluetooth device is represented as follows: It is expressed as the Bluetooth connection rate stability evaluation coefficient of the i-th monitoring sub-period; Step S004: The calculation formula of the Bluetooth connection rate output signal coefficient is: ,in It is represented as the Bluetooth connection rate output signal coefficient of the i-th monitoring sub-period.
2. A Bluetooth rate testing method based on Android according to claim 1, characterized in that: The Bluetooth device test time is specifically divided as follows: The test execution time of the target Bluetooth device is obtained, the total test execution time is divided into monitoring sub-periods according to an equal time division method, and the monitoring sub-periods of the test execution time of the target Bluetooth device are numbered 1, 2, ...i, ...n in sequence.
3. A Bluetooth rate testing method based on Android according to claim 2, characterized in that: The Bluetooth device test data collection is specifically as follows: Bluetooth device load test data collection unit: collects the length of the sent test data packet, the length of the successfully received data packet, and the data transmission rate of each monitoring sub-period during the test execution time of the target Bluetooth device, marked as , , , where i=1,2,...n, i represents the number of the i-th monitoring sub-period; Bluetooth device interference test data collection unit: collects the Bluetooth signal strength, electromagnetic interference signal strength, Bluetooth device disconnection times, and device distance of each monitoring sub-period during the test execution time of the target Bluetooth device, and marks them as , , , .
4. A Bluetooth rate testing method based on Android according to claim 3, characterized in that: The Bluetooth device load test data warning is specifically as follows: Step S001: Calculate the success rate of sending test data packets: ,in It is expressed as the success rate of sending test data packets in the i-th monitoring sub-period, It is represented as the length of the successfully received data packet in the ith monitoring sub-period, It is represented as the length of the test data packet sent in the i-th monitoring sub-period; Step S002: Obtain the maximum data transmission rate allowed by the target Bluetooth device and calculate the packet loss efficiency of the test data packet: ,in It is represented as the packet loss efficiency of the test data packet sent in the i-th monitoring sub-period, It is expressed as the monitoring time of the monitoring sub-period, Expressed as the maximum data transfer rate, It is expressed as the data transmission rate of the ith monitoring sub-period; Step S003: The calculation formula of the Bluetooth rate test performance load index is: ,in It is represented as the Bluetooth rate test performance load index of the i-th monitoring sub-period, It is expressed as the maximum value of the success rate of sending test data packets. It is expressed as the minimum value of the success rate of sending test data packets. It is represented as the packet loss efficiency of the test data packet sent in the i-1th monitoring sub-period, It is represented as the packet loss efficiency of the test data packet sent in the i+1th monitoring sub-period, and e is represented as a natural constant.
5. A Bluetooth rate testing method based on Android according to claim 4, characterized in that: The Bluetooth device interference test strength analysis is specifically as follows: Step S001: Calculate the Bluetooth signal stability index: ,in It is expressed as the Bluetooth signal stability index of the i-th monitoring sub-period, It is represented as the Bluetooth signal strength of the i-th monitoring sub-period, It is represented as the electromagnetic interference signal strength of the i-th monitoring sub-period; Step S002: Calculate the Bluetooth device connection attenuation strength: ,in It is represented as the Bluetooth device connection attenuation strength in the i-th monitoring sub-period, It is represented as the device distance in the ith monitoring sub-period, It is represented by the number of disconnections of Bluetooth devices in the i-th monitoring sub-period. Indicates the preset number of disconnections of the Bluetooth device; Step S003: The calculation formula of the Bluetooth rate variation index is: ,in It is expressed as the Bluetooth rate variation index of the i-th monitoring sub-period, Indicates the preset Bluetooth signal attenuation strength. Represents the preset Bluetooth device connection stability indicator.
6. A Bluetooth rate testing method based on Android according to claim 5, characterized in that: The calculation formula of the Bluetooth connection rate stability evaluation coefficient is: ,in It is expressed as the Bluetooth connection rate stability evaluation coefficient of the i-th monitoring sub-period, It is represented as the Bluetooth rate test performance load index of the i-th monitoring sub-period, It is expressed as the Bluetooth rate variation index of the i-th monitoring sub-period.
7. A Bluetooth rate testing method based on Android according to claim 6, characterized in that: The Bluetooth device stability test and evaluation are specifically as follows: Obtain the Bluetooth connection rate stability assessment coefficient of each monitoring sub-period of the test execution time of the target Bluetooth device, and compare it with the preset Bluetooth connection rate stability assessment coefficient. If the Bluetooth connection rate stability assessment coefficient of a monitoring sub-period of the test execution time of the target Bluetooth device is less than the preset Bluetooth connection rate stability assessment coefficient, it indicates that there is an abnormality in the stability test of the Bluetooth connection rate of the monitoring sub-period, and the abnormal monitoring sub-period is sent to the Bluetooth device rate optimization step for processing. Otherwise, it indicates that there is no abnormality in the stability test of the Bluetooth connection rate of the monitoring sub-period, and the stability of the Bluetooth connection rate during the execution time of the next Bluetooth rate test is continuously monitored.
Citation Information
Patent Citations
Bluetooth rate test method and test host based on Android
CN108924867A
Bluetooth data transmission rate test method and system, electronic equipment and storage medium
CN112135287A