CN112135287B - Bluetooth data transmission rate test method, system, electronic device and storage medium - Google Patents

Bluetooth data transmission rate test method, system, electronic device and storage medium Download PDF

Info

Publication number
CN112135287B
CN112135287B CN202011197201.7A CN202011197201A CN112135287B CN 112135287 B CN112135287 B CN 112135287B CN 202011197201 A CN202011197201 A CN 202011197201A CN 112135287 B CN112135287 B CN 112135287B
Authority
CN
China
Prior art keywords
transmission rate
test
bluetooth
data transmission
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011197201.7A
Other languages
Chinese (zh)
Other versions
CN112135287A (en
Inventor
朱兰
朱琳玲
姚瑞
舒月月
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Semiconductor Chengdu Co Ltd
Original Assignee
Spreadtrum Semiconductor Chengdu Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Semiconductor Chengdu Co Ltd filed Critical Spreadtrum Semiconductor Chengdu Co Ltd
Priority to CN202011197201.7A priority Critical patent/CN112135287B/en
Publication of CN112135287A publication Critical patent/CN112135287A/en
Application granted granted Critical
Publication of CN112135287B publication Critical patent/CN112135287B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a method and a system for testing the transmission rate of Bluetooth data, an electronic device and a storage medium, which are used for testing the transmission rate of the Bluetooth data of a device to be tested, and the method comprises the following steps: starting a timer when the device to be tested starts to transmit data; in the data transmission process, acquiring the data real-time transmission size of the data, and calculating the real-time Bluetooth transmission rate of the device to be tested according to the data real-time transmission size and the current value of the timer; and when the data transmission is finished, closing a timer, and calculating the average Bluetooth transmission rate of the device to be tested according to the size of the data and the current value of the timer. The invention can automatically test the Bluetooth data transmission rate and can provide an accurate test result.

Description

Bluetooth data transmission rate test method, system, electronic device and storage medium
Technical Field
The invention belongs to the technical field of Bluetooth, and particularly relates to a Bluetooth data transmission rate testing method, a Bluetooth data transmission rate testing system, electronic equipment and a storage medium.
Background
Bluetooth is a low-power, low-cost wireless local area network technology supporting short-range communication of devices, and can realize short-range data transmission among fixed devices, mobile devices and personal area networks. By using the bluetooth technology, the communication between the mobile communication and the terminal device can be effectively simplified, and the communication between the device and the internet can be successfully simplified, so that the data transmission becomes more rapid and efficient, and the way is widened for wireless communication. The application of the bluetooth technology is gradually popularized in various fields, such as communication equipment, smart home, electronic medical treatment, transportation and the like.
Data transmission is an important function of bluetooth, and data transmission rate is an important index for measuring bluetooth throughput performance. Currently, when measuring the bluetooth data transmission rate, a manual testing method is mainly used, for example, by manually sending videos, music, files and the like, the bluetooth rate is tested. Because the size of such a data file is not easy to be determined accurately, for example, a video file displayed as 10M (10240 kb), the actual size may be 10000kb, and the transmission time may only be manually counted, which cannot be accurately obtained, resulting in inaccuracy of the test result, and the manual operation efficiency is low, and the labor cost is high. Therefore, how to realize the automation of bluetooth data transmission, reduce the cost and improve the test accuracy is an urgent problem to be solved.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, an object of the present invention is to provide a method, a system, an electronic device and a storage medium for testing a bluetooth data transmission rate, so as to achieve an automatic testing of the bluetooth data transmission rate and provide an accurate test result.
In order to achieve the above object, the present invention provides a bluetooth data transmission rate testing method for testing a bluetooth data transmission rate of a device under test, the method comprising:
starting a timer when the device to be tested starts to transmit data;
in the data transmission process, acquiring the data real-time transmission size of the data, and calculating the real-time Bluetooth transmission rate of the device to be tested according to the data real-time transmission size and the current value of the timer;
and when the data transmission is finished, closing a timer, and calculating the average Bluetooth transmission rate of the device to be tested according to the size of the data and the current value of the timer.
In a preferred embodiment of the present invention, the method further comprises:
and monitoring whether the data transmission is interrupted or not in real time in the data transmission process, and when the data transmission is interrupted, finishing the test and outputting a test result of test failure.
In a preferred embodiment of the present invention, the method further comprises:
and judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition, if so, outputting a test result which passes the test, and if not, outputting a test result which fails the test.
In a preferred embodiment of the present invention, the determining whether the average bluetooth transmission rate of the device under test satisfies a predetermined condition includes:
judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition or not according to the average Bluetooth transmission rate of the device to be tested and a preset rate threshold; or
And judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition or not according to the average Bluetooth transmission rate of the device to be tested and the synchronously obtained average Bluetooth transmission rate of the comparison test device.
In a preferred embodiment of the present invention, the method further comprises:
and in the data transmission process, acquiring the continuous times of the real-time Bluetooth transmission rate becoming zero, finishing the test when the continuous times reach the preset lowest continuous zero-dropping times, and outputting the test result of test failure.
In a preferred embodiment of the present invention, the method further comprises:
and when the data transmission is finished, acquiring the ratio of the total times of the real-time Bluetooth transmission rate becoming zero to the total calculation times of the real-time Bluetooth transmission rate, finishing the test when the ratio reaches a preset lowest zero-dropping rate, and outputting a test result of test failure.
In a preferred embodiment of the present invention, the method further comprises:
and when the data transmission is finished, judging whether the data is completely transmitted, if not, finishing the test, and outputting a test result of test failure.
In a preferred embodiment of the present invention, the method further comprises: and displaying the real-time Bluetooth transmission rate and the average Bluetooth transmission rate in a graphic display mode.
In order to achieve the above object, the present invention further provides a bluetooth data transmission rate testing system for testing a bluetooth data transmission rate of a device under test, the system comprising:
the timing module is used for starting a timer when the device to be tested starts to transmit data;
and the real-time rate calculation module is used for acquiring the data real-time transmission size of the data in the data transmission process and calculating the real-time Bluetooth transmission rate of the device to be tested according to the data real-time transmission size and the current value of the timer.
And the average rate calculation module is used for closing a timer when the data transmission is finished, and calculating the average Bluetooth transmission rate of the device to be tested according to the size of the data and the current value of the timer.
In a preferred embodiment of the present invention, the system further comprises:
and the interruption monitoring module is used for monitoring whether the data transmission is interrupted in real time in the data transmission process, and when the data transmission is interrupted, the test is finished and the test result of test failure is output.
In a preferred embodiment of the present invention, the system further comprises:
and the performance test module is used for judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition, outputting a test result which passes the test if the average Bluetooth transmission rate meets the preset condition, and outputting a test result which fails the test if the average Bluetooth transmission rate does not meet the preset condition.
In a preferred embodiment of the present invention, the performance testing module is specifically configured to:
judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition or not according to the average Bluetooth transmission rate of the device to be tested and a preset rate threshold; or
And judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition or not according to the average Bluetooth transmission rate of the device to be tested and the average Bluetooth transmission rate of a comparison test device.
In a preferred embodiment of the present invention, the system further comprises:
and the zero-dropping test module is used for acquiring the continuous times of changing the real-time Bluetooth transmission rate into zero in the data transmission process, finishing the test when the continuous times reach the preset lowest continuous zero-dropping times, and outputting the test result of test failure.
In a preferred embodiment of the present invention, the system further comprises:
and the zero dropping test module is used for acquiring the ratio of the total times of the real-time Bluetooth transmission rate becoming zero to the total calculation times of the real-time Bluetooth transmission rate when the data transmission is finished, finishing the test when the ratio reaches the preset lowest zero dropping rate, and outputting the test result of the test failure.
In a preferred embodiment of the present invention, the system further comprises:
and the integrity verification module is used for verifying whether the data is completely transmitted or not when the data transmission is finished, if not, finishing the test and outputting a test result of test failure.
In a preferred embodiment of the present invention, the system further comprises: and the display module is used for displaying the real-time Bluetooth transmission rate and the average Bluetooth transmission rate in a graphic display mode.
In order to achieve the above object, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the foregoing method.
In order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the aforementioned method.
By adopting the technical scheme, compared with the prior art, the invention has the following beneficial effects:
the method comprises the steps of starting a timer when monitoring that the device to be tested starts to transmit data; in the data transmission process, acquiring the data real-time transmission size of the data, and calculating the real-time Bluetooth transmission rate of the device to be tested according to the data real-time transmission size and the current value of the timer; and when the data transmission is finished, closing a timer, and calculating the average Bluetooth transmission rate of the device to be tested according to the size of the data and the current value of the timer. Through the process, the real-time Bluetooth transmission rate and the average Bluetooth transmission rate of the device to be tested can be automatically and conveniently tested, the testing time and human resources are saved, and the testing efficiency and the testing accuracy are improved.
Drawings
FIG. 1 is a diagram showing the construction of a test system on which embodiment 1 of the present invention is based;
fig. 2 is a flowchart of a method for testing a bluetooth data transmission rate according to embodiment 1 of the present invention;
FIG. 3 is a diagram showing the structure of a test system according to embodiment 2 of the present invention;
fig. 4 is a flowchart of a method for testing a bluetooth data transmission rate according to embodiment 3 of the present invention;
fig. 5 is a flowchart of a method for testing a bluetooth data transmission rate according to embodiment 4 of the present invention;
fig. 6 is a flowchart of a method for testing a bluetooth data transmission rate according to embodiment 5 of the present invention;
fig. 7 is a block diagram of a bluetooth data transmission rate test system according to embodiment 6 of the present invention;
fig. 8 is a hardware architecture diagram of an electronic device according to embodiment 7 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
Example 1
Fig. 1 is a diagram illustrating an architecture of a test system based on this embodiment, as shown in fig. 1, the test system includes a test device 10, a device under test 20, and an auxiliary device 30, wherein data transmission is performed between the device under test and the auxiliary device through bluetooth, and the test device adopts the test method of this embodiment to test a bluetooth data transmission rate (including a real-time bluetooth transmission rate and an average bluetooth transmission rate) of the device under test.
As shown in fig. 2, the method for testing the bluetooth data transmission rate of the present embodiment includes the following steps:
and S0, configuring a test environment according to requirements. In this embodiment, the test environment may be configured to: the device to be tested and the auxiliary device are not interfered by the surrounding environment, the device to be tested and the auxiliary device are user versions, the device to be tested and the auxiliary device are always on, and Log tools of the device to be tested and the auxiliary device are closed.
And S11, starting a timer when monitoring that data transmission between the device to be tested and the auxiliary device is started.
In this embodiment, the dut and the auxiliary device are a transmitting end and a receiving end. When the data receiving end starts to receive data, the data transmission is started, and a timer is started to start timing.
And S12, acquiring the real-time data transmission size between the device to be tested and the auxiliary device in the data transmission process, and calculating the real-time Bluetooth transmission rate of the device to be tested according to the real-time data transmission size and the corresponding value of the timer.
In the present embodiment, the data is collected every predetermined period (e.g., 1 second) for real-time transmission. For example, if the real-time transmission size of the data is monitored to be XkB when the timer counts for i-1 second, and the real-time transmission size of the data is monitored to be YkB when the timer counts for i second, the real-time bluetooth transmission rate for i second is Y-X (unit: kB/s).
And S13, when the data transmission is monitored to be finished, closing a timer to stop timing, and calculating the average Bluetooth transmission rate of the device to be tested according to the size of the data and the current value of the timer.
For example, when the size of the transmitted data is PmB and the current value of the timer at the end of transmission is T seconds, the average bluetooth transmission rate of the device under test is P × 1024/T (unit: kB/s).
The present embodiment may also output and display the real-time bluetooth transmission rate and the average bluetooth transmission rate of the device under test, and preferably display the transmission rates in a graphical form, so that the user can intuitively understand the test result.
And S14, judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition, if so, outputting a test result which passes the test, and if not, outputting a test result which fails the test, and outputting a corresponding failure reason.
In this embodiment, whether the average bluetooth transmission rate of the device under test satisfies a predetermined condition may be determined according to the average bluetooth transmission rate of the device under test and a preset rate threshold. Specifically, when the ratio of the difference between a preset rate threshold and the average bluetooth transmission rate of the device under test to the preset rate threshold is smaller than a first predetermined ratio (e.g., 5%), it is determined that the average bluetooth transmission rate of the device under test satisfies a predetermined condition, and otherwise, it is determined that the average bluetooth transmission rate of the device under test does not satisfy the predetermined condition.
Through the technical scheme, the real-time Bluetooth transmission rate and the average Bluetooth transmission rate of the device to be tested can be automatically and conveniently tested, the test time and human resources are saved, and the test efficiency and accuracy are improved.
Example 2
Fig. 3 shows an architecture diagram of a test system based on this embodiment, compared with fig. 1, the test system based on this embodiment adds a comparison device 40, the comparison device and the auxiliary device also perform data transmission through bluetooth, and the test device can use the test method described in embodiment 1 to test the average bluetooth transmission rate of the comparison device.
Based on the architecture shown in fig. 3, the testing method of this embodiment is different from that of embodiment 1 in that step S14 determines whether the average bluetooth transmission rate of the device under test satisfies a predetermined condition according to the average bluetooth transmission rate of the device under test and the pre-measured average bluetooth transmission rate of the comparison testing device. Specifically, when the ratio of the difference obtained by subtracting the average bluetooth transmission rate of the device under test from the average bluetooth transmission rate of the comparison test device to the average bluetooth transmission rate of the comparison test device is smaller than a second predetermined ratio (e.g., 5%), it is determined that the average bluetooth transmission rate of the device under test satisfies a predetermined condition, and otherwise, it is determined that the average bluetooth transmission rate of the device under test does not satisfy the predetermined condition.
Example 3
As shown in fig. 4, the present embodiment is different from the previous embodiment in that the following steps are added:
s31, monitoring whether the data transmission is interrupted in real time in the data transmission process, finishing the test when the interruption is monitored, outputting a test result of test failure, and outputting a corresponding failure reason.
Through the steps, the interrupt exception test can be realized.
Example 4
As shown in fig. 5, the present embodiment is different from the previous embodiment in that the following steps are added:
s41, acquiring continuous zero-dropping times (namely the continuous times that the real-time Bluetooth transmission rate becomes zero) in the data transmission process, finishing the test when the continuous zero-dropping times reach the preset lowest continuous zero-dropping times, and outputting a test result of test failure and a corresponding failure reason; or in the data transmission process, acquiring a zero-dropping rate (namely the ratio of the total times of changing the real-time Bluetooth transmission rate into zero to the total calculation times of the real-time Bluetooth transmission rate), finishing the test when the zero-dropping rate reaches a preset lowest zero-dropping rate, and outputting a test result of test failure and a corresponding failure reason.
In this embodiment, the real-time bluetooth transmission rate is calculated every predetermined period (e.g., 1 second), and if the lowest consecutive zero-dropping number is preset to be 3, and if the real-time bluetooth transmission rate calculated in 3 consecutive periods is zero, it is considered that the consecutive zero-dropping number reaches the lowest consecutive zero-dropping number.
In this embodiment, it is assumed that N real-time bluetooth transmission rates are obtained through total calculation in the data transmission process (i.e., the total calculation number of the real-time bluetooth transmission rates is N), where M real-time bluetooth transmission rates are zero, and M/N is the zero-dropping rate.
Through the steps, the zero dropping times or zero dropping rate test can be continuously realized.
Example 5
As shown in fig. 6, the present embodiment is different from the previous embodiments in that the following steps are added:
and S51, when the data transmission is finished, judging whether the data transmission is complete, if not, finishing the test, and outputting a test result of test failure.
In this embodiment, it is specifically determined whether data transmitted by the transmitting end is completely transmitted by determining whether the size of the data is consistent with that of the corresponding data received by the receiving end, and if so, it indicates that data is completely transmitted, otherwise, it indicates that data is not completely transmitted.
Example 6
As shown in fig. 7, the bluetooth data transmission rate testing system 1 of the present embodiment includes a timing module 11, an interrupt monitoring module 12, a real-time rate calculating module 13, a zero-drop testing module 14, an average rate calculating module 15, an integrity verifying module 16, a performance testing module 17, and a display module 18. The following describes each module in detail:
the timing module 11 is configured to start a timer when it is monitored that data transmission between the device to be tested and the auxiliary device is started.
In this embodiment, the dut and the auxiliary device are a transmitting end and a receiving end. When the data receiving end starts to receive data, the data transmission is started, and a timer is started to start timing.
The interruption monitoring module 12 is configured to monitor whether the data transmission is interrupted in real time during the data transmission process, and when the interruption is monitored, the test is finished, a test result of the test failure is output, and a corresponding failure reason is output.
The real-time rate calculation module 13 is configured to obtain a real-time data transmission size between the device to be tested and the auxiliary device during the data transmission process, and calculate a real-time bluetooth transmission rate of the device to be tested according to the real-time data transmission size and a corresponding value of the timer.
In the present embodiment, the real-time transmission size of data is acquired every predetermined period (e.g., 1 second). For example, if the real-time transmission size of the data is monitored to be XkB when the timer counts for i-1 second, and the real-time transmission size of the data is monitored to be YkB when the timer counts for i second, the real-time bluetooth transmission rate for i second is Y-X (unit: kB/s).
The zero-dropping test module 14 is configured to obtain consecutive zero-dropping times (i.e., consecutive times when the real-time bluetooth transmission rate becomes zero) during the data transmission process, end the test when the consecutive zero-dropping times reaches a preset minimum consecutive zero-dropping time, and output a test result of a test failure and a corresponding failure reason; or the zero-drop test module 14 is configured to obtain a zero-drop rate (i.e., a ratio of the total number of times that the real-time bluetooth transmission rate becomes zero to the total number of times that the real-time bluetooth transmission rate is calculated) during the data transmission process, end the test when the zero-drop rate reaches a preset minimum zero-drop rate, and output a test result of the test failure and a corresponding failure reason.
In this embodiment, the real-time bluetooth transmission rate is calculated once every predetermined period (e.g., 1 second), and if the lowest consecutive zero-crossing number is preset to 3, if the real-time bluetooth transmission rate calculated in 3 consecutive periods is zero, it is considered that the consecutive zero-crossing number reaches the lowest consecutive zero-crossing number.
In this embodiment, it is assumed that N real-time bluetooth transmission rates are obtained through total calculation in the data transmission process (i.e., the total calculation times of the real-time bluetooth transmission rates is N), where M real-time bluetooth transmission rates are zero, and M/N is the zero-dropping rate.
The average rate calculation module 15 is configured to, when it is monitored that the data transmission is ended, close a timer to stop timing, and calculate an average bluetooth transmission rate of the device under test according to the size of the data and a current value of the timer.
For example, when the size of the transmitted data is PmB and the current value of the timer at the end of transmission is T seconds, the average bluetooth transmission rate of the device under test is P1024/T (unit: kB/s).
The integrity verification module 16 is configured to determine whether the data transmission is complete when the data transmission is finished, and if not, finish the test and output a test result indicating that the test fails.
In this embodiment, it is specifically determined whether data transmission is complete by determining whether the size of data sent by the sending end is consistent with the size of corresponding data received by the receiving end, and if so, it indicates that data transmission is complete, otherwise, it indicates that data transmission is not complete.
The performance test module 17 is configured to determine whether the average bluetooth transmission rate of the device under test meets a predetermined condition, output a test result that the test passes if the average bluetooth transmission rate meets the predetermined condition, and output a test result that the test fails if the average bluetooth transmission rate does not meet the predetermined condition, and output a corresponding failure reason.
In this embodiment, whether the average bluetooth transmission rate of the device under test satisfies a predetermined condition may be determined according to the average bluetooth transmission rate of the device under test and a preset rate threshold. Specifically, when the ratio of the difference between a preset speed threshold and the average bluetooth transmission speed of the device under test to the preset speed threshold is smaller than a first predetermined ratio (e.g., 5%), it is determined that the average bluetooth transmission speed of the device under test satisfies a predetermined condition, and otherwise, it is determined that the average bluetooth transmission speed of the device under test does not satisfy the predetermined condition.
In this embodiment, it may be further determined whether the average bluetooth transmission rate of the device under test satisfies a predetermined condition according to the average bluetooth transmission rate of the device under test and the pre-measured average bluetooth transmission rate of the comparison test device. Specifically, when the ratio of the difference obtained by subtracting the average bluetooth transmission rate of the device under test from the average bluetooth transmission rate of the comparison test device to the average bluetooth transmission rate of the comparison test device is smaller than a second predetermined ratio (e.g., 5%), it is determined that the average bluetooth transmission rate of the device under test satisfies a predetermined condition, and otherwise, it is determined that the average bluetooth transmission rate of the device under test does not satisfy the predetermined condition.
In addition, the present embodiment may further include a display module 18 for displaying the real-time bluetooth transmission rate and the average bluetooth transmission rate of the device under test, preferably in a graphical form.
Through the technical scheme, the real-time Bluetooth transmission rate and the average Bluetooth transmission rate of the device to be tested can be automatically and conveniently tested, the testing time and the human resources are saved, and the testing efficiency and the accuracy are improved. In addition, the embodiment can also realize the interrupt exception test and the zero drop test, and the test is more comprehensive.
Example 7
The present embodiment provides an electronic device, which may be represented in the form of a computing device (for example, may be a server device), including a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor executes the computer program to implement the bluetooth data transmission rate testing method provided in embodiments 1 to 5.
Fig. 8 shows a schematic diagram of a hardware structure of the embodiment, and as shown in fig. 8, the electronic device 9 specifically includes:
at least one processor 91, at least one memory 92, and a bus 93 for connecting the various system components (including the processor 91 and the memory 92), wherein:
the bus 93 includes a data bus, an address bus, and a control bus.
Memory 92 includes volatile memory, such as Random Access Memory (RAM) 921 and/or cache memory 922, and can further include Read Only Memory (ROM) 923.
Memory 92 also includes programs/utilities 925 having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 91 executes various functional applications and data processing, such as the bluetooth data transmission rate test method provided in embodiments 1 to 5 of the present invention, by running the computer program stored in the memory 92.
The electronic device 9 may further communicate with one or more external devices 94 (e.g., a keyboard, a pointing device, etc.). Such communication may be through an input/output (I/O) interface 95. Also, the electronic device 9 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 96. The network adapter 96 communicates with the other modules of the electronic device 9 via the bus 93. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 9, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, to name a few.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units/modules described above may be embodied in one unit/module according to embodiments of the application. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 8
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the bluetooth data transmission rate test method provided in embodiments 1-5.
More specific examples that may be employed by the readable storage medium include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation, the present invention can also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps of implementing the method for testing a bluetooth data transmission rate as provided in embodiments 1-5, when said program product is run on said terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (12)

1. A method for testing a Bluetooth data transmission rate, which is used for testing the Bluetooth data transmission rate of a device to be tested, and is characterized by comprising the following steps:
starting a timer when the device to be tested starts to transmit data;
in the data transmission process, acquiring the data real-time transmission size of the data, and calculating the real-time Bluetooth transmission rate of the device to be tested according to the data real-time transmission size and the current value of the timer;
when the data transmission is finished, closing a timer, and calculating the average Bluetooth transmission rate of the device to be tested according to the size of the data and the current value of the timer;
outputting a test result of test failure or test success according to the real-time bluetooth transmission rate and the average bluetooth transmission rate, specifically comprising:
in the data transmission process, acquiring the continuous times of the real-time Bluetooth transmission rate changing into zero, finishing the test when the continuous times reach the preset lowest continuous zero-dropping times, and outputting the test result of test failure;
when the data transmission is finished, obtaining the ratio of the total times of changing the real-time Bluetooth transmission rate into zero to the total calculation times of the real-time Bluetooth transmission rate, finishing the test when the ratio reaches a preset lowest zero-dropping rate, and outputting a test result of test failure; and
and when the data transmission is finished, judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition, if so, outputting a test result which passes the test, and if not, finishing the test and outputting a test result which fails the test.
2. The method for testing the bluetooth data transmission rate according to claim 1, wherein the method further comprises:
and monitoring whether the data transmission is interrupted or not in real time in the data transmission process, finishing the test when the data transmission is interrupted, and outputting a test result of test failure.
3. The method for testing the bluetooth data transmission rate according to claim 1, wherein the determining whether the average bluetooth transmission rate of the device under test satisfies a predetermined condition comprises:
judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition or not according to the average Bluetooth transmission rate of the device to be tested and a preset rate threshold; or
And judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition or not according to the average Bluetooth transmission rate of the device to be tested and the synchronously obtained average Bluetooth transmission rate of the comparison test device.
4. The method for testing the bluetooth data transmission rate according to claim 1, wherein the method further comprises:
and when the data transmission is finished, judging whether the data is completely transmitted, if not, finishing the test, and outputting a test result of test failure.
5. The method for testing the bluetooth data transmission rate according to claim 1, wherein the method further comprises:
and displaying the real-time Bluetooth transmission rate and the average Bluetooth transmission rate in a graphic display mode.
6. A bluetooth data transfer rate test system for testing the bluetooth data transfer rate of a device under test, the system comprising:
the timing module is used for starting a timer when the device to be tested starts to transmit data;
the real-time rate calculation module is used for acquiring the real-time data transmission size of the data in the data transmission process and calculating the real-time Bluetooth transmission rate of the device to be tested according to the real-time data transmission size and the current value of the timer;
the average rate calculation module is used for closing a timer when the data transmission is finished, and calculating the average Bluetooth transmission rate of the device to be tested according to the size of the data and the current value of the timer;
the performance testing module is used for outputting a testing result of testing failure or testing success according to the real-time Bluetooth transmission rate and the average Bluetooth transmission rate;
the performance testing module is specifically configured to:
in the data transmission process, acquiring the continuous times of the real-time Bluetooth transmission rate becoming zero, finishing the test when the continuous times reach the preset lowest continuous zero-dropping times, and outputting the test result of test failure;
when the data transmission is finished, acquiring the ratio of the total times of the real-time Bluetooth transmission rate becoming zero to the total calculation times of the real-time Bluetooth transmission rate, finishing the test when the ratio reaches a preset lowest zero-dropping rate, and outputting a test result of test failure; and
and when the data transmission is finished, judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition, if so, outputting a test result which passes the test, and if not, outputting a test result which fails the test.
7. The bluetooth data transmission rate test system according to claim 6, wherein the system further comprises:
and the interruption monitoring module is used for monitoring whether the data transmission is interrupted in real time in the data transmission process, and when the data transmission is interrupted, the test is finished and the test result of test failure is output.
8. The system for testing the bluetooth data transmission rate according to claim 6, wherein the performance testing module is specifically configured to:
judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition or not according to the average Bluetooth transmission rate of the device to be tested and a preset rate threshold; or
And judging whether the average Bluetooth transmission rate of the device to be tested meets a preset condition or not according to the average Bluetooth transmission rate of the device to be tested and the synchronously obtained average Bluetooth transmission rate of the comparison test device.
9. The bluetooth data transmission rate test system according to claim 6, characterized in that the system further comprises:
and the integrity verification module is used for verifying whether the data is completely transmitted or not when the data transmission is finished, if not, finishing the test and outputting a test result of test failure.
10. The bluetooth data transmission rate test system according to claim 6, wherein the system further comprises:
and the display module is used for displaying the real-time Bluetooth transmission rate and the average Bluetooth transmission rate in a graphic display mode.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method for testing a bluetooth data transmission rate according to any of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the bluetooth data transmission rate testing method according to one of claims 1 to 5.
CN202011197201.7A 2020-10-30 2020-10-30 Bluetooth data transmission rate test method, system, electronic device and storage medium Active CN112135287B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011197201.7A CN112135287B (en) 2020-10-30 2020-10-30 Bluetooth data transmission rate test method, system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011197201.7A CN112135287B (en) 2020-10-30 2020-10-30 Bluetooth data transmission rate test method, system, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112135287A CN112135287A (en) 2020-12-25
CN112135287B true CN112135287B (en) 2023-02-17

Family

ID=73852138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011197201.7A Active CN112135287B (en) 2020-10-30 2020-10-30 Bluetooth data transmission rate test method, system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112135287B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114079901A (en) * 2021-11-12 2022-02-22 江苏富联通讯技术有限公司 Movable Bluetooth communication module and use method thereof
CN115243389B (en) * 2022-07-18 2023-03-03 北京思存通信技术有限公司 Data analysis system based on Bluetooth data transmission
CN115150875B (en) * 2022-09-01 2022-11-08 安徽南瑞中天电力电子有限公司 Test method and test system for Bluetooth function of intelligent electric energy meter

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008144692A1 (en) * 2007-05-21 2008-11-27 W2Bi, Inc Mobile device throughput testing
CN102801484A (en) * 2012-06-08 2012-11-28 广东欧珀移动通信有限公司 Automatic Bluetooth rate test method based on Android
CN104135741A (en) * 2014-07-08 2014-11-05 福建联迪商用设备有限公司 Method of Bluetooth low energy communication, Bluetooth devices and system
CN106533578A (en) * 2016-11-16 2017-03-22 上海移为通信技术股份有限公司 Adaptive Bluetooth test system and method
CN107172639A (en) * 2017-06-29 2017-09-15 苏州博联科技有限公司 A kind of method of testing of low-power consumption bluetooth transmission rate
CN108924867A (en) * 2018-05-07 2018-11-30 上海康斐信息技术有限公司 A kind of Bluetooth rate test method and test host based on Android
CN109120352A (en) * 2018-07-12 2019-01-01 珠海市中科蓝讯科技有限公司 Bluetooth tests circuit and automatic test approach
CN110535494A (en) * 2019-10-17 2019-12-03 四川九州电子科技股份有限公司 A kind of bluetooth equipment Auto-Test System and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5565316A (en) * 1992-10-09 1996-10-15 Educational Testing Service System and method for computer based testing
CN101841394B (en) * 2010-06-09 2012-08-08 中南大学 Method for measuring and calculating document transmission energy consumption of Bluetooth equipment and device thereof
CN102521132A (en) * 2011-12-14 2012-06-27 亿赞普(北京)科技有限公司 Automated testing method and automated testing system for real-time output logs
CN106341291B (en) * 2016-09-08 2019-11-15 北京小米移动软件有限公司 It is connected to the network the test method and device of stability

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008144692A1 (en) * 2007-05-21 2008-11-27 W2Bi, Inc Mobile device throughput testing
CN102801484A (en) * 2012-06-08 2012-11-28 广东欧珀移动通信有限公司 Automatic Bluetooth rate test method based on Android
CN104135741A (en) * 2014-07-08 2014-11-05 福建联迪商用设备有限公司 Method of Bluetooth low energy communication, Bluetooth devices and system
CN106533578A (en) * 2016-11-16 2017-03-22 上海移为通信技术股份有限公司 Adaptive Bluetooth test system and method
CN107172639A (en) * 2017-06-29 2017-09-15 苏州博联科技有限公司 A kind of method of testing of low-power consumption bluetooth transmission rate
CN108924867A (en) * 2018-05-07 2018-11-30 上海康斐信息技术有限公司 A kind of Bluetooth rate test method and test host based on Android
CN109120352A (en) * 2018-07-12 2019-01-01 珠海市中科蓝讯科技有限公司 Bluetooth tests circuit and automatic test approach
CN110535494A (en) * 2019-10-17 2019-12-03 四川九州电子科技股份有限公司 A kind of bluetooth equipment Auto-Test System and method

Also Published As

Publication number Publication date
CN112135287A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN112135287B (en) Bluetooth data transmission rate test method, system, electronic device and storage medium
CN108345524B (en) Application program monitoring method and application program monitoring device
US10904112B2 (en) Automatic capture of detailed analysis information based on remote server analysis
CN111290924A (en) Monitoring method and device and electronic equipment
JPWO2005017736A1 (en) System and program for detecting bottleneck in disk array device
CN108446207B (en) Method, device and system for evaluating disaster tolerance capability of computer system
CN110674009A (en) Application server performance monitoring method and device, storage medium and electronic equipment
CN112115031A (en) Cluster state monitoring method and device
CN115269108A (en) Data processing method, device and equipment
CN111159009B (en) Pressure testing method and device for log service system
CN114363704A (en) Video playing method, device, equipment and storage medium
CN112950833B (en) Authorization method, device, equipment and storage medium of access control equipment
EP2533177A1 (en) Application ratings based on performance metrics
CN112181750A (en) Method, device and medium for testing stability of industrial control network equipment
CN115022206B (en) Network stability determination method and device, computer equipment and readable storage medium
CN113225228B (en) Data processing method and device
CN113986697A (en) Communication log loss risk diagnosis method, system and storage medium
CN104394023A (en) Failure collecting method and system for network access terminal
CN116405587B (en) Intelligent monitoring method, system and medium for after-sale performance condition of mobile phone
CN115292146B (en) System capacity estimation method, system, equipment and storage medium
CN113282471B (en) Equipment performance testing method and device and terminal equipment
CN112532747B (en) Method, apparatus, device and storage medium for outputting information
CN114443420A (en) Data sampling method and related device
CN111193642A (en) Pressure measurement method, pressure measurement platform, electronic device and readable storage medium
CN116915637A (en) Sampling method, device, computer equipment and storage medium for traffic monitoring

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant