CN117177285A - Bluetooth performance detection method, device, equipment and storage medium - Google Patents

Bluetooth performance detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN117177285A
CN117177285A CN202311271923.6A CN202311271923A CN117177285A CN 117177285 A CN117177285 A CN 117177285A CN 202311271923 A CN202311271923 A CN 202311271923A CN 117177285 A CN117177285 A CN 117177285A
Authority
CN
China
Prior art keywords
target
data
bluetooth
pairing connection
performance detection
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.)
Pending
Application number
CN202311271923.6A
Other languages
Chinese (zh)
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.)
Maojia Technology Guangdong Co ltd
Original Assignee
Maojia Technology Guangdong 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 Maojia Technology Guangdong Co ltd filed Critical Maojia Technology Guangdong Co ltd
Priority to CN202311271923.6A priority Critical patent/CN117177285A/en
Publication of CN117177285A publication Critical patent/CN117177285A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a Bluetooth performance detection method, a device, equipment and a storage medium, wherein the method comprises the following steps: when pairing connection with the target Bluetooth equipment is successful, recording pairing connection time length, and sending a first timestamp to the target Bluetooth equipment; receiving target data sent by target Bluetooth equipment, and obtaining received data, wherein the target data comprises data information and a second timestamp corresponding to the sent data information; obtaining the receiving and transmitting time difference of the target data according to the second time stamp and the local time stamp; comparing the received data with target data to obtain a data packet loss rate; and detecting the performance of the target Bluetooth device according to the pairing connection time length, the receiving and transmitting time difference and the data packet loss rate. Compared with the prior art that the performance of the Bluetooth device needs to be detected by means of a professional instrument, the Bluetooth device performance testing method can automatically test the Bluetooth performance by acquiring the receiving and transmitting time difference, the data packet loss rate and the pairing connection time length corresponding to the target data without the aid of the professional instrument.

Description

Bluetooth performance detection method, device, equipment and storage medium
Technical Field
The present invention relates to the field of device performance detection technologies, and in particular, to a method, an apparatus, a device, and a storage medium for bluetooth performance detection.
Background
Bluetooth is currently a radio technology that supports short-range communication of devices. Wireless information exchange is enabled between numerous devices such as mobile phones, PADs, wireless headsets, notebook computers, etc. With the wide application of bluetooth technology, performance detection of bluetooth devices is also becoming more and more important, and signal strength indicator (RSSI) is an important indicator for determining link quality, and various means are currently available for detecting the RSSI of bluetooth devices. In the process of performing performance test on bluetooth equipment by adopting a Windows host, the prior art is generally to connect a bluetooth comprehensive tester on the Windows host to detect the RSSI index of the bluetooth equipment. However, the detection apparatus of the above method is costly.
Therefore, there is a need for a bluetooth performance detection method that can detect bluetooth performance and perform objective tests without the aid of specialized equipment.
The foregoing is provided merely for the purpose of facilitating understanding of the technical scheme of the present invention and is not intended to represent an admission that the foregoing is related art.
Disclosure of Invention
The invention mainly aims to provide a Bluetooth performance detection method, device, equipment and storage medium, and aims to solve the technical problem of how to realize quantification of Bluetooth performance indexes so as to realize automatic Bluetooth performance test in the prior art.
In order to achieve the above object, the present invention provides a bluetooth performance detection method, which includes the following steps:
when pairing connection with a target Bluetooth device is successful, recording pairing connection time, and sending a first time stamp to the target Bluetooth device so that the target Bluetooth device performs timing according to the first time stamp;
receiving target data sent by the target Bluetooth equipment, and obtaining received data, wherein the target data comprises data information and a second timestamp corresponding to the data information;
obtaining the receiving and transmitting time difference of the target data according to the second time stamp and the local time stamp;
comparing the received data with the target data to obtain a data packet loss rate;
and detecting the performance of the target Bluetooth device according to the pairing connection duration, the receiving-transmitting time difference and the data packet loss rate.
Optionally, before the step of recording the pairing connection duration and sending the first timestamp to the target bluetooth device when the pairing connection with the target bluetooth device is successful, the method further includes:
when a Bluetooth pairing instruction is received, starting a Bluetooth broadcast scanning function;
searching a Bluetooth broadcasting signal through the Bluetooth broadcasting scanning function, and judging whether a target Bluetooth device exists or not when the Bluetooth broadcasting signal is scanned;
and if the target Bluetooth equipment exists, sending a pairing connection request to the target Bluetooth equipment.
Optionally, the step of recording a pairing connection duration and sending a first timestamp to the target bluetooth device when the pairing connection with the target bluetooth device is successful includes:
recording the sending time of the pairing connection request, and pairing and connecting with the target Bluetooth device according to the pairing connection request;
recording the time of successful pairing connection when the pairing connection with the target Bluetooth equipment is successful;
determining and recording pairing connection duration according to the time of the pairing connection request and the time of the pairing connection success;
and sending a first time stamp to the target Bluetooth device so that the target Bluetooth device can perform time correction according to the first time stamp to realize time stamp synchronization.
Optionally, the step of receiving the target data sent by the target bluetooth device, and obtaining the received data, where the target data includes data information and a second timestamp corresponding to the data information, includes:
receiving target data sent by the target Bluetooth device according to a preset interval, wherein the target data comprises data information and a second timestamp corresponding to the data information;
and taking the received target data as receiving data, and recording a local time stamp for receiving the target data.
Optionally, the step of obtaining the transmit-receive time difference of the target data according to the second timestamp and the local timestamp includes:
acquiring the second time stamp in the target data and the local time stamp when the target data is received;
and obtaining the receiving and transmitting time difference of the target data according to the difference value between the second time stamp and the local time stamp.
Optionally, the step of comparing the received data with the target data to obtain a data packet loss rate includes:
comparing the received data with the target data based on a text comparison algorithm to obtain a comparison result;
determining a content mismatch part in the received data and the target data according to the comparison result;
and acquiring the data packet loss rate of data reception according to the unmatched part and the target data.
Optionally, the step of detecting the performance of the target bluetooth device according to the pairing connection duration, the transceiving time difference and the data packet loss rate includes:
detecting the performance of the target Bluetooth device according to the pairing connection duration, the transceiving time difference and the data packet loss rate, and generating a performance detection report of the target Bluetooth device;
and displaying the performance detection report of the target Bluetooth device.
In addition, in order to achieve the above object, the present invention also proposes a bluetooth performance detection apparatus, the apparatus comprising:
the time synchronization module is used for recording pairing connection time when the pairing connection with the target Bluetooth equipment is successful, and sending a first time stamp to the target Bluetooth equipment so that the target Bluetooth equipment can correct time according to the first time stamp;
the data receiving module is used for receiving target data sent by the target Bluetooth device and obtaining received data, wherein the target data comprises data information and a second timestamp corresponding to the data information;
the time difference acquisition module is used for acquiring the receiving and transmitting time difference of the target data according to the second time stamp and the local time stamp;
the data comparison module is used for comparing the received data with the target data to obtain a data packet loss rate;
and the performance detection module is used for detecting the performance of the target Bluetooth device according to the pairing connection time length, the receiving-transmitting time difference and the data packet loss rate.
In addition, in order to achieve the above object, the present invention also proposes a bluetooth performance detection apparatus, the apparatus comprising: a memory, a processor, and a bluetooth performance detection program stored on the memory and executable on the processor, the bluetooth performance detection program configured to implement the steps of the bluetooth performance detection method as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a bluetooth performance detection program which, when executed by a processor, implements the steps of the bluetooth performance detection method as described above.
When pairing connection with the target Bluetooth equipment is successful, the pairing connection time is recorded, and a first time stamp is sent to the target Bluetooth equipment, so that the target Bluetooth equipment performs time correction according to the first time stamp; receiving target data sent by the target Bluetooth equipment, and obtaining received data, wherein the target data comprises data information and a second timestamp corresponding to the data information; obtaining the receiving and transmitting time difference of the target data according to the second time stamp and the local time stamp; comparing the received data with the target data to obtain a data packet loss rate; and detecting the performance of the target Bluetooth device according to the pairing connection duration, the receiving-transmitting time difference and the data packet loss rate. Compared with the prior art that the performance of the Bluetooth equipment is detected by means of a professional instrument, the method and the device can automatically test the Bluetooth performance by acquiring the receiving and transmitting time difference, the data packet loss rate and the pairing connection time length corresponding to the target data under the condition that the professional instrument is not used.
Drawings
Fig. 1 is a schematic structural diagram of a bluetooth performance detection device in a hardware running environment according to an embodiment of the present invention;
fig. 2 is a flowchart of a first embodiment of a bluetooth performance detection method according to the present invention;
fig. 3 is a flowchart of a second embodiment of the bluetooth performance detection method according to the present invention;
fig. 4 is a flowchart of a third embodiment of the bluetooth performance detection method according to the present invention;
fig. 5 is a block diagram of a first embodiment of a bluetooth performance detection apparatus according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a bluetooth performance detection device in a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the bluetooth performance detection device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is not limiting of the bluetooth performance detection apparatus and may include more or fewer components than shown, or certain components may be combined, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a bluetooth performance detection program may be included in the memory 1005 as one type of storage medium.
In the bluetooth performance detection apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the bluetooth performance detection apparatus of the present invention may be provided in the bluetooth performance detection apparatus, and the bluetooth performance detection apparatus invokes a bluetooth performance detection program stored in the memory 1005 through the processor 1001 and executes the bluetooth performance detection method provided by the embodiment of the present invention.
An embodiment of the present invention provides a bluetooth performance detection method, referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the bluetooth performance detection method of the present invention.
In this embodiment, the bluetooth performance detection method includes the following steps:
step S10: and when the pairing connection with the target Bluetooth equipment is successful, recording the pairing connection time, and sending a first time stamp to the target Bluetooth equipment so that the target Bluetooth equipment can correct time according to the first time stamp.
The execution body of the present embodiment may be a computer service device having functions of broadcast search, bluetooth connection, data processing, and program running, such as a computer, TV, mobile phone, etc., or an electronic device capable of implementing the same or similar functions, such as the bluetooth performance detection device shown in fig. 1, etc., and the present embodiment and the following embodiments will be exemplified by the bluetooth performance detection device.
It is easy to understand that before the pairing connection with the target bluetooth device is successful, the method further includes: when a Bluetooth pairing instruction is received, starting a Bluetooth broadcast scanning function; searching a Bluetooth broadcasting signal through the Bluetooth broadcasting scanning function, and judging whether a target Bluetooth device exists or not when the Bluetooth broadcasting signal is scanned; and if the target Bluetooth equipment exists, sending a pairing connection request to the target Bluetooth equipment.
It should be noted that, the bluetooth pairing instruction may be an instruction for performing preset bluetooth performance detection, or may be a specific manual operation of the user, which is not limited in this embodiment. The bluetooth broadcast scanning function is used to search for other bluetooth devices within a certain range that transmit bluetooth broadcast signals.
It should be understood that a timestamp is a term commonly used in computer science, and refers to a manner of recording time, which is generally used to record the occurrence time of an event or information such as creation and modification time of a file. In short, a time stamp is a series of numbers representing the length of time from a certain fixed point in time to the present, usually calculated in seconds.
Further, the first timestamp is a timestamp that the bluetooth performance detection device detects that pairing is successful.
In the specific implementation, firstly, the time for sending the pairing connection request is recorded, and the pairing connection is performed with the target Bluetooth equipment according to the pairing connection request; then when the pairing connection with the target Bluetooth equipment is successful, recording the time of the successful pairing connection; determining and recording pairing connection duration according to the time of the pairing connection request and the time of the pairing connection success; and sending a first time stamp to the target Bluetooth device so that the target Bluetooth device can perform time correction according to the first time stamp to realize time stamp synchronization.
Step S20: and receiving target data sent by the target Bluetooth equipment, and obtaining received data, wherein the target data comprises data information and a second time stamp corresponding to the data information.
When the bluetooth performance detection is performed on the target data, the target bluetooth device sends the data to the bluetooth performance detection device, and the data is used for comparing the target data with data received by the bluetooth performance detection device.
It should be explained that, the step of receiving the target data sent by the target bluetooth device and obtaining the received data includes: receiving target data sent by the target Bluetooth device according to a preset interval, wherein the target data comprises data information and a second timestamp corresponding to the data information; and taking the received target data as receiving data, and recording a local time stamp for receiving the target data.
It should be understood that after the time stamps of the target bluetooth device and the bluetooth performance detection device are consistent, the target bluetooth device sends the target data at intervals, the continuous content of the target data is not repeated each time, a corresponding second time stamp is inserted before the target data each time, the bluetooth performance detection device receives the target data sent each time, takes the received target data as receiving data, and records a local time stamp for receiving the target data.
It is easy to understand that the second timestamp is a timestamp recorded by the target bluetooth device when the target bluetooth device transmits the target data.
Step S30: and obtaining the receiving and transmitting time difference of the target data according to the second time stamp and the local time stamp.
It is readily understood that the second timestamp in the target data and the local timestamp at the time of receiving the target data may be obtained; and then obtaining the receiving and transmitting time difference of the target data according to the difference value between the second time stamp and the local time stamp.
Step S40: and comparing the received data with the target data to obtain a data packet loss rate.
It should be noted that, by comparing the content of the received data with the content of the target data, the data packet loss rate can be calculated according to the percentage by the original data when the data content of the received data is lost, the data content of the received data is incorrect, and the like.
Step S50: and detecting the performance of the target Bluetooth device according to the pairing connection duration, the receiving-transmitting time difference and the data packet loss rate.
It is easy to understand that, this embodiment can obtain the current interference environment of current structure down of current distance, the pairing connection duration, the data packet loss rate of target bluetooth equipment and bluetooth performance detection equipment, data transceiver time difference, has realized can detect bluetooth performance and carry out objective test bluetooth performance's purpose under the condition of not having to resort to professional instrument.
In the embodiment, when pairing connection with the target Bluetooth device is successful, the pairing connection time is recorded, and a first time stamp is sent to the target Bluetooth device, so that the target Bluetooth device performs time correction according to the first time stamp; receiving target data sent by the target Bluetooth equipment, and obtaining received data, wherein the target data comprises data information and a second timestamp corresponding to the data information; obtaining the receiving and transmitting time difference of the target data according to the second time stamp and the local time stamp; comparing the received data with the target data to obtain a data packet loss rate; and detecting the performance of the target Bluetooth device according to the pairing connection duration, the receiving-transmitting time difference and the data packet loss rate. Compared with the prior art that the performance of the Bluetooth equipment is detected by means of a professional instrument, the method and the device can automatically test the Bluetooth performance by acquiring the receiving and transmitting time difference, the data packet loss rate and the pairing connection time length corresponding to the target data under the condition that the professional instrument is not used.
Referring to fig. 3, fig. 3 is a flowchart of a second embodiment of the bluetooth performance detection method according to the present invention.
Based on the first embodiment, in this embodiment, the step S40 includes:
step S401: and comparing the received data with the target data based on a text comparison algorithm to obtain a comparison result.
It should be explained that the above text comparison algorithm is an algorithm for comparing the similarity between two texts.
In this embodiment, the text matching algorithm may be a cosine similarity algorithm, an edit distance algorithm, or other text matching algorithms, which is not limited in this embodiment.
Step S402: and determining a content mismatch part in the received data and the target data according to the comparison result.
It is easy to understand that the comparison result may be related information that the content between the received data and the target data is not corresponding or the content is missing.
Step S403: and acquiring the data packet loss rate of data reception according to the unmatched part and the target data.
It should be noted that, the efficiency of comparing the received data with the target data can be improved by the text comparison algorithm, and the content mismatch part between the received data and the target data is determined by comparing the received data with the target data, and then the data packet loss rate of the data reception is obtained according to the mismatch part and the target data. For example, content comparison is performed on the received data, and the data packet loss rate can be calculated according to the percentage through the target data when the data content is lost, the data content is incorrect, and the like.
In the embodiment, when pairing connection with the target Bluetooth device is successful, the pairing connection time is recorded, and a first time stamp is sent to the target Bluetooth device, so that the target Bluetooth device performs time correction according to the first time stamp; receiving target data sent by the target Bluetooth equipment, and obtaining received data, wherein the target data comprises data information and a second timestamp corresponding to the data information; obtaining the receiving and transmitting time difference of the target data according to the second time stamp and the local time stamp; comparing the received data with the target data based on a text comparison algorithm to obtain a comparison result; determining a content mismatch part in the received data and the target data according to the comparison result; acquiring a data packet loss rate of data reception according to the unmatched part and the target data; and detecting the performance of the target Bluetooth device according to the pairing connection duration, the receiving-transmitting time difference and the data packet loss rate. Because the embodiment is based on the text comparison algorithm, the received data and the target data are compared, and the data packet loss rate is determined according to the comparison result. Compared with the prior art, the embodiment effectively improves the comparison efficiency between the received data and the target data.
Referring to fig. 4, fig. 4 is a flowchart of a third embodiment of the bluetooth performance detection method according to the present invention.
Based on the above second embodiment, in this embodiment, the step S50 includes:
step S501: and detecting the performance of the target Bluetooth device according to the pairing connection duration, the receiving-transmitting time difference and the data packet loss rate, and generating a performance detection report of the target Bluetooth device.
Step S502: and displaying the performance detection report of the target Bluetooth device.
In the embodiment, when pairing connection with the target Bluetooth device is successful, the pairing connection time is recorded, and a first time stamp is sent to the target Bluetooth device, so that the target Bluetooth device performs time correction according to the first time stamp; receiving target data sent by the target Bluetooth equipment, and obtaining received data, wherein the target data comprises data information and a second timestamp corresponding to the data information; obtaining the receiving and transmitting time difference of the target data according to the second time stamp and the local time stamp; comparing the received data with the target data to obtain a data packet loss rate; detecting the performance of the target Bluetooth device according to the pairing connection duration, the transceiving time difference and the data packet loss rate, and generating a performance detection report of the target Bluetooth device; and displaying the performance detection report of the target Bluetooth device. The performance of the target Bluetooth device is detected according to the pairing connection time length, the receiving and transmitting time difference and the data packet loss rate, the performance detection report of the target Bluetooth device is generated, and then the performance detection report of the target Bluetooth device is displayed.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a Bluetooth performance detection program, and the Bluetooth performance detection program realizes the steps of the Bluetooth performance detection method when being executed by a processor.
Referring to fig. 5, fig. 5 is a block diagram illustrating a first embodiment of a bluetooth performance detection apparatus according to the present invention.
As shown in fig. 5, the bluetooth performance detection apparatus according to the embodiment of the present invention includes: a time synchronization module 501, a data receiving module 502, a time difference acquisition module 503, a data comparison module 504 and a performance detection module 505.
The time synchronization module 501 is configured to record a pairing connection duration when a pairing connection with a target bluetooth device is successful, and send a first timestamp to the target bluetooth device, so that the target bluetooth device performs timing according to the first timestamp;
the data receiving module 502 is configured to receive target data sent by the target bluetooth device, and obtain received data, where the target data includes data information and a second timestamp corresponding to the data information;
the time difference obtaining module 503 is configured to obtain a transmit-receive time difference of the target data according to the second time stamp and the local time stamp;
the data comparison module 504 is configured to compare the received data with the target data to obtain a data packet loss rate;
the performance detection module 505 is configured to detect the performance of the target bluetooth device according to the pairing connection duration, the transceiver time difference, and the data packet loss rate.
In the embodiment, when pairing connection with the target Bluetooth device is successful, the pairing connection time is recorded, and a first time stamp is sent to the target Bluetooth device, so that the target Bluetooth device performs time correction according to the first time stamp; receiving target data sent by the target Bluetooth equipment, and obtaining received data, wherein the target data comprises data information and a second timestamp corresponding to the data information; obtaining the receiving and transmitting time difference of the target data according to the second time stamp and the local time stamp; comparing the received data with the target data to obtain a data packet loss rate; and detecting the performance of the target Bluetooth device according to the pairing connection duration, the receiving-transmitting time difference and the data packet loss rate. Compared with the prior art that the performance of the Bluetooth equipment is detected by means of a professional instrument, the method and the device can automatically test the Bluetooth performance by acquiring the receiving and transmitting time difference, the data packet loss rate and the pairing connection time length corresponding to the target data under the condition that the professional instrument is not used.
Based on the first embodiment of the bluetooth performance detection apparatus according to the present invention, a second embodiment of the bluetooth performance detection apparatus according to the present invention is provided.
In this embodiment, the data comparison module 504 is further configured to compare the received data with the target data based on a text comparison algorithm, so as to obtain a comparison result; determining a content mismatch part in the received data and the target data according to the comparison result; and acquiring the data packet loss rate of data reception according to the unmatched part and the target data.
Other embodiments or specific implementation manners of the bluetooth performance detection device of the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read-only memory/random-access memory, magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The Bluetooth performance detection method is characterized by comprising the following steps of:
when pairing connection with a target Bluetooth device is successful, recording pairing connection time, and sending a first time stamp to the target Bluetooth device so that the target Bluetooth device performs timing according to the first time stamp;
receiving target data sent by the target Bluetooth equipment, and obtaining received data, wherein the target data comprises data information and a second timestamp corresponding to the data information;
obtaining the receiving and transmitting time difference of the target data according to the second time stamp and the local time stamp;
comparing the received data with the target data to obtain a data packet loss rate;
and detecting the performance of the target Bluetooth device according to the pairing connection duration, the receiving-transmitting time difference and the data packet loss rate.
2. The bluetooth performance detection method according to claim 1, wherein the step of recording a pairing connection duration and transmitting a first timestamp to the target bluetooth device when the pairing connection with the target bluetooth device is successful, further comprises:
when a Bluetooth pairing instruction is received, starting a Bluetooth broadcast scanning function;
searching a Bluetooth broadcasting signal through the Bluetooth broadcasting scanning function, and judging whether a target Bluetooth device exists or not when the Bluetooth broadcasting signal is scanned;
and if the target Bluetooth equipment exists, sending a pairing connection request to the target Bluetooth equipment.
3. The bluetooth performance detection method according to claim 2, wherein the step of recording a pairing connection duration and transmitting a first timestamp to the target bluetooth device when the pairing connection with the target bluetooth device is successful, comprises:
recording the sending time of the pairing connection request, and pairing and connecting with the target Bluetooth device according to the pairing connection request;
recording the time of successful pairing connection when the pairing connection with the target Bluetooth equipment is successful;
determining and recording pairing connection duration according to the time of the pairing connection request and the time of the pairing connection success;
and sending a first time stamp to the target Bluetooth device so that the target Bluetooth device can perform time correction according to the first time stamp to realize time stamp synchronization.
4. The bluetooth performance detection method according to claim 1, wherein the step of receiving target data transmitted by the target bluetooth device, the target data including data information and a second timestamp corresponding to the data information, includes:
receiving target data sent by the target Bluetooth device according to a preset interval, wherein the target data comprises data information and a second timestamp corresponding to the data information;
and taking the received target data as receiving data, and recording a local time stamp for receiving the target data.
5. The bluetooth performance detection method according to claim 4, wherein the step of obtaining the transmission/reception time difference of the target data according to the second time stamp and the local time stamp includes:
acquiring the second time stamp in the target data and the local time stamp when the target data is received;
and obtaining the receiving and transmitting time difference of the target data according to the difference value between the second time stamp and the local time stamp.
6. The bluetooth performance detection method according to claim 1, wherein the step of comparing the received data with the target data to obtain a data packet loss rate includes:
comparing the received data with the target data based on a text comparison algorithm to obtain a comparison result;
determining a content mismatch part in the received data and the target data according to the comparison result;
and acquiring the data packet loss rate of data reception according to the unmatched part and the target data.
7. The bluetooth performance detection method according to claim 1, wherein the step of detecting the performance of the target bluetooth device according to the pairing connection duration, the transceiving time difference, and the data packet loss rate includes:
detecting the performance of the target Bluetooth device according to the pairing connection duration, the transceiving time difference and the data packet loss rate, and generating a performance detection report of the target Bluetooth device;
and displaying the performance detection report of the target Bluetooth device.
8. A bluetooth performance detection apparatus, the bluetooth performance detection apparatus comprising:
the time synchronization module is used for recording pairing connection time when the pairing connection with the target Bluetooth equipment is successful, and sending a first time stamp to the target Bluetooth equipment so that the target Bluetooth equipment can correct time according to the first time stamp;
the data receiving module is used for receiving target data sent by the target Bluetooth device and obtaining received data, wherein the target data comprises data information and a second timestamp corresponding to the data information;
the time difference acquisition module is used for acquiring the receiving and transmitting time difference of the target data according to the second time stamp and the local time stamp;
the data comparison module is used for comparing the received data with the target data to obtain a data packet loss rate;
and the performance detection module is used for detecting the performance of the target Bluetooth device according to the pairing connection time length, the receiving-transmitting time difference and the data packet loss rate.
9. A bluetooth performance detection apparatus, the apparatus comprising: a memory, a processor and a bluetooth performance detection program stored on the memory and executable on the processor, the bluetooth performance detection program being configured to implement the steps of the bluetooth performance detection method according to any one of claims 1 to 7.
10. A storage medium having stored thereon a bluetooth performance detection program, which when executed by a processor, implements the steps of the bluetooth performance detection method according to any of claims 1 to 7.
CN202311271923.6A 2023-09-27 2023-09-27 Bluetooth performance detection method, device, equipment and storage medium Pending CN117177285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311271923.6A CN117177285A (en) 2023-09-27 2023-09-27 Bluetooth performance detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311271923.6A CN117177285A (en) 2023-09-27 2023-09-27 Bluetooth performance detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117177285A true CN117177285A (en) 2023-12-05

Family

ID=88929805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311271923.6A Pending CN117177285A (en) 2023-09-27 2023-09-27 Bluetooth performance detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117177285A (en)

Similar Documents

Publication Publication Date Title
CN101312596A (en) Method and apparatus for measuring multi-channel state and selecting idle channel
JP3651850B2 (en) Mobile communication terminal test equipment
US10225876B2 (en) Information processing apparatus and control method therefor, information processing system, computer program and storage medium
US9185644B2 (en) Terminal device identifying target access point from among a plurality of access points
US20050288015A1 (en) Intelligent channel scanning in a wireless network
WO2012087576A4 (en) Unauthorized location detection and countermeasures
CN112020048A (en) Bluetooth device pairing method, device and storage medium
US20130183896A1 (en) Information processing apparatus
CN110213759B (en) Broadcast-based anti-loss detection method, storage medium and electronic device
CN108199785B (en) Transmission power testing method, device and system and electronic equipment
CN112188391B (en) Multi-reference node UWB (ultra wide band) efficient ranging method, device and system
CN108924908B (en) WiFi scanning method and device and electronic device
CN108811045B (en) WiFi channel scanning method and device, mobile terminal and storage medium
US20160373922A1 (en) Proximity-based verification of programming instructions
CN113839712A (en) Optical module-based signal transmission monitoring method, equipment, storage medium and device
CN114614915A (en) Radio frequency transceiving test method, radio frequency transceiving test device, computer equipment and medium
US20070123310A1 (en) Function information notifying system and function information notifying method
CN117177285A (en) Bluetooth performance detection method, device, equipment and storage medium
US20080019287A1 (en) Device discovery method, network device capable of performing the method, and storage medium thereof
US10033476B2 (en) Apparatus and method for acquiring synchronization in mobile communication system
CN114513742A (en) Equipment position indication method, storage medium and equipment
CN108848557B (en) Output power adjusting method, device, mobile terminal and computer readable medium
CN111615216B (en) Random access method and terminal
CN108123762B (en) Transmission power testing method, device and system and electronic equipment
CN108199788B (en) Transmission power testing method, device and system and electronic equipment

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