CN115665723B - Bluetooth signal scanning method, device and storage medium - Google Patents

Bluetooth signal scanning method, device and storage medium Download PDF

Info

Publication number
CN115665723B
CN115665723B CN202211602902.3A CN202211602902A CN115665723B CN 115665723 B CN115665723 B CN 115665723B CN 202211602902 A CN202211602902 A CN 202211602902A CN 115665723 B CN115665723 B CN 115665723B
Authority
CN
China
Prior art keywords
duration
scanning
signal
bluetooth
signal interval
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
CN202211602902.3A
Other languages
Chinese (zh)
Other versions
CN115665723A (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.)
Shenzhen Kaihong Digital Industry Development Co Ltd
Original Assignee
Shenzhen Kaihong Digital Industry Development 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 Shenzhen Kaihong Digital Industry Development Co Ltd filed Critical Shenzhen Kaihong Digital Industry Development Co Ltd
Priority to CN202211602902.3A priority Critical patent/CN115665723B/en
Publication of CN115665723A publication Critical patent/CN115665723A/en
Application granted granted Critical
Publication of CN115665723B publication Critical patent/CN115665723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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 application relates to the technical field of communication, and provides a Bluetooth signal scanning method, equipment and a storage medium, wherein the method comprises the following steps: scanning Bluetooth signals of second equipment based on a preset first duty ratio to obtain signal interval duration of the Bluetooth signals, wherein the signal interval duration is interval duration between two Bluetooth signals; determining a second duty cycle of scanning Bluetooth signals of the second equipment according to the signal interval duration; and scanning Bluetooth signals of the second device based on the second duty cycle. And determining a second duty ratio of the subsequent scanning of the Bluetooth signal by the signal interval duration of the Bluetooth signal obtained by scanning based on the first duty ratio, so that the scanned duty ratio corresponds to the period of the Bluetooth signal broadcast, and the efficiency of the Bluetooth signal scanning is improved.

Description

Bluetooth signal scanning method, device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, an apparatus, and a storage medium for scanning bluetooth signals.
Background
In the existing bluetooth communication technology, when a bluetooth connection needs to be established between devices, a host needs to scan bluetooth signals broadcasted by a slave, however, at this time, communication between the host and the slave cannot be performed yet, and only when a period of broadcasting of the slave and a period of scanning of the host overlap randomly, the host can discover the slave. For the host, the power during bluetooth communication is mainly used for scanning bluetooth signals, so the scanning duration of the host has a great influence on power consumption, and the duty cycle of scanning should be set according to actual requirements under different conditions. The setting of the duty cycle will affect the power consumption and time consumed by the host to scan the broadcast, and therefore how the host determines the appropriate scan duty cycle becomes a matter of need to be addressed.
Disclosure of Invention
The main objective of the present application is to provide a method, an apparatus and a computer storage medium for scanning bluetooth signals, which aim to improve the scanning efficiency of bluetooth signals.
In a first aspect, the present application provides a bluetooth signal scanning method for a first device, where the bluetooth signal scanning method includes the following steps:
scanning Bluetooth signals of second equipment based on a preset first duty ratio to obtain signal interval duration of the Bluetooth signals, wherein the signal interval duration is interval duration between two Bluetooth signals;
determining a second duty cycle of scanning Bluetooth signals of the second equipment according to the signal interval duration;
and scanning Bluetooth signals of the second device based on the second duty cycle.
In a second aspect, the present application further provides a bluetooth signal scanning apparatus, the bluetooth signal scanning apparatus comprising:
a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the bluetooth signal scanning method as described above.
In a third aspect, the present application further provides a computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a bluetooth signal scanning method as described above.
The application provides a Bluetooth signal scanning method, equipment and a computer storage medium, wherein the Bluetooth signal of a second device is scanned based on a preset first duty ratio to obtain signal interval duration of the Bluetooth signal, wherein the signal interval duration is interval duration between two Bluetooth signals; determining a second duty cycle of scanning Bluetooth signals of the second equipment according to the signal interval duration; and scanning Bluetooth signals of the second device based on the second duty cycle. And determining a second duty ratio of the subsequent scanning of the Bluetooth signal by the signal interval duration of the Bluetooth signal obtained by scanning based on the first duty ratio, so that the scanned duty ratio corresponds to the period of the Bluetooth signal broadcast, and the efficiency of the Bluetooth signal scanning is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a bluetooth signal scanning method according to an embodiment of the present application;
fig. 2 is a usage scenario diagram of a bluetooth signal scanning method according to an embodiment of the present application;
fig. 3 is a timing diagram of a bluetooth signal broadcast by a second device and a bluetooth signal scanned by a first device;
fig. 4 is a schematic flow chart of sub-steps of a bluetooth signal scanning method according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a bluetooth signal scanning apparatus according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
The embodiment of the application provides a Bluetooth signal scanning method, bluetooth signal scanning equipment and a computer readable storage medium.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a flowchart of a bluetooth signal scanning method according to an embodiment of the present application. The Bluetooth signal scanning method can be used in a first device with a Bluetooth function to scan Bluetooth signals broadcast by a second device, wherein the first device and the second device can be terminal devices with the Bluetooth function. Specifically, the first device and the second device may be, for example, terminal devices such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device.
Referring to fig. 2, fig. 2 is a usage scenario diagram of a bluetooth signal scanning method according to an embodiment of the present application. As shown in fig. 2, the first device and the second device both have bluetooth functions, the second device broadcasts bluetooth signals, when the first device turns on the bluetooth signal scanning function, the first device scans based on a first duty cycle, the duty cycle is adjusted to a second duty cycle according to the scanned bluetooth signals, and then the bluetooth signals of the second device are scanned based on the second duty cycle, so as to achieve an ideal bluetooth signal scanning effect.
As shown in fig. 1, the bluetooth signal scanning method includes steps S101 to S103.
Step S101, scanning Bluetooth signals of a second device based on a preset first duty ratio, and obtaining signal interval duration of the Bluetooth signals, wherein the signal interval duration is interval duration between two times of Bluetooth signals.
Illustratively, the bluetooth signal broadcast by the second device is scanned based on the first duty cycle, and a signal interval duration of the bluetooth signal is determined, so as to determine a second duty cycle adapted to the broadcasting period of the bluetooth signal according to the signal interval duration.
In some embodiments, the first duty cycle is greater than or equal to 90%.
For example, when the bluetooth signal starts to be scanned, the first duty cycle greater than or equal to the preset value is used for scanning, and the preset value may be set according to practical requirements, for example, the preset value may be set to 100%, which is not limited to this, and the preset value may be other values, which is not limited herein.
Illustratively, when the user turns on the bluetooth scanning function, the user aims to scan as much as possible for surrounding bluetooth signals. Therefore, a higher duty cycle can be set for scanning at this time, for example, the scanning is performed at a duty cycle of 100%, so that the time for scanning to the Bluetooth signal is shortened, and the user experience is improved. Also, since the time taken to scan the bluetooth signal based on the first duty ratio is short, scanning based on a higher duty ratio during this time is not likely to generate a larger power consumption.
In some embodiments, the scanning the bluetooth signal of the second device based on the preset first duty cycle, to obtain a signal interval duration of the bluetooth signal, includes: and if the Bluetooth signal is not scanned within the preset duration threshold, stopping scanning the Bluetooth signal of the second equipment based on the first duty ratio.
For example, in the case of scanning at the first duty cycle, if no bluetooth signal is scanned within the duration threshold, this indicates that the second device may have stopped broadcasting bluetooth signals at this time, or that the second device has left the range that the first device can scan for. To prevent the power consumption of the first device from unnecessarily increasing due to the continuous scanning based on the first duty cycle, the scanning of the bluetooth signal of the second device based on the first duty cycle is stopped if no bluetooth signal is scanned within the duration threshold.
The stopping of the scanning of the bluetooth signal of the second device based on the first duty cycle may be, for example, adjusting to scan based on a lower duty cycle, or may be, without limitation, turning off the scanning function.
In some embodiments, the scanning the bluetooth signal of the second device based on the preset first duty cycle, to obtain a signal interval duration of the bluetooth signal, includes: and scanning Bluetooth signals of the second equipment based on a preset first duty ratio, and acquiring at least two signal interval time lengths from the termination time of the first scanned Bluetooth signal.
In an exemplary embodiment, when the first device turns on the scanning function to scan the bluetooth signal of the second device based on the first duty cycle, the first device cannot determine whether the scanned first bluetooth signal is a complete bluetooth signal, and discards the scanned first bluetooth signal. It will be appreciated that if the first device starts scanning for bluetooth signals by turning on the scanning function during the broadcast of bluetooth signals by the second device, the duration of the scanned first bluetooth signal is not the full signal duration.
Referring to fig. 3, fig. 3 is a timing chart of a bluetooth signal broadcast by the second device and a bluetooth signal scanned by the first device.
As shown in fig. 3, the second device broadcasts bluetooth signals with adjacent signal duration and signal interval duration as broadcast periods, if the first device starts scanning bluetooth signals at time t, the scanned duration of the first bluetooth signal will not be the complete signal duration, and the scanned first bluetooth signal needs to be discarded. Therefore, the duration from the ending time of the first bluetooth signal to the starting time of the second bluetooth signal is taken as the first signal interval duration, the duration from the ending time of the second bluetooth signal to the starting time of the third bluetooth signal is taken as the second signal interval duration, and so on, and no description is given here.
Step S102, determining a second duty ratio for scanning Bluetooth signals of the second equipment according to the signal interval duration.
The scanning period for scanning the bluetooth signal based on the second duty ratio includes an adjacent scanning period and a rest period, and according to the acquired signal interval duration, the second duty ratio adapted to the bluetooth signal broadcasting period of the second device is determined, and the scanning is performed based on the second duty ratio, so that the scanning effect of the bluetooth signal is improved.
In some embodiments, the determining, according to the signal interval duration, a second duty cycle for scanning bluetooth signals of the second device includes: and if at least two sections of signal interval time lengths meet a preset condition, determining the scanning time period time length of the second duty ratio according to the at least two sections of signal interval time lengths.
For example, when the first device scans the bluetooth signal sent by the second device, there may be interference caused by multiple factors, and after two or more signal interval durations are acquired, the obtained signal interval duration is determined based on a preset condition, so as to determine whether the signal interval duration is a complete duration, thereby improving accuracy of subsequent determination of the second duty ratio.
In some embodiments, the at least two signal interval durations include a first signal interval duration, a second signal interval duration; if the signal interval duration of at least two segments meets the preset condition, determining the scanning period duration of the second duty ratio according to the signal interval duration of at least two segments includes: and if the difference between the first signal interval duration and the second signal interval duration is smaller than a preset maximum delay duration, determining the scanning period duration according to the first signal interval duration and the second signal interval duration.
Taking two signal interval durations as an example, the obtained signal interval duration is judged according to whether the first signal interval duration and the second signal interval duration meet preset conditions.
For example, in order to prevent continuous collision between bluetooth signals transmitted by different devices, existing bluetooth communication protocols randomly increase a delay period over a preset broadcasting interval period when broadcasting bluetooth signals. Wherein the delay period is not greater than a preset maximum delay period. For example, a delay period of 0 to 10ms is randomly increased over a predetermined broadcasting interval period, and the maximum delay period at this time is 10ms.
It will be appreciated that since the first signal interval duration and the second signal interval duration are each a delay duration that is not greater than 10ms added to the preset broadcast interval duration, the difference between the first signal interval duration and the second signal interval duration should be less than 10ms.
For example, if the difference between the acquired first signal interval duration and the second signal interval duration is smaller than the maximum delay duration, which means that the first signal interval duration and the second signal interval duration are matched after considering the influence caused by the random delay duration, that is, the first signal interval duration and the second signal interval duration are both complete signal interval durations, the scanning period duration in the second duty cycle may be determined according to the acquired first signal interval duration, the second signal interval duration and the preset maximum delay duration.
Referring to fig. 4, fig. 4 is a usage scenario diagram of a bluetooth signal scanning method according to an embodiment of the present application.
As shown in fig. 4, in some embodiments, the determining the scanning period duration according to the first signal interval duration and the second signal interval duration includes: step S1021, determining the smaller of the first signal interval duration and the second signal interval duration as a target signal interval duration; step S1022, determining the scanning period duration according to the sum of the target signal interval duration and the maximum delay duration.
Illustratively, the first signal interval duration and the second signal interval duration obtained by the first device scanning are generally unequal due to the random delay time durations, and the broadcast interval duration of the second device needs to be approximately determined according to the first signal interval duration and the second signal interval duration, so as to determine the scanning period duration of the first device scanning based on the second duty cycle according to the approximate broadcast interval duration.
For example, the smaller of the first signal interval duration and the second signal interval duration is determined as the target signal interval duration, and the sum of the target signal interval duration and the maximum delay duration is determined as the approximate broadcast interval duration.
Of course, the approximate broadcast interval duration is not limited thereto, and the approximate broadcast interval duration may be determined by determining the larger of the first signal interval duration and the second signal interval duration as the target signal interval duration, and determining the difference between the target signal interval duration and the maximum delay duration as the approximate broadcast interval duration, which is not limited thereto.
For example, for the second device, the bluetooth signal broadcasting period includes a broadcasting duration in which bluetooth signal broadcasting is performed and a broadcasting interval duration in which bluetooth signal broadcasting is not performed, and the broadcasting interval duration is generally much longer than the broadcasting duration. Therefore, as long as the scanning period of the first device for scanning is longer than the broadcasting interval duration of the second device, the scanning period duration of the first device can be ensured to cover the broadcasting duration of the second device, and further the first device can be ensured to scan the Bluetooth signal of the second device within the scanning period duration.
Therefore, according to the determined approximate broadcast interval duration, the scanning period duration larger than the approximate broadcast interval duration is determined, and the first device can be ensured to scan Bluetooth signals of the second device in the scanning period duration.
In some embodiments, the determining the scan period duration according to a sum of the target signal interval duration and the maximum delay duration includes: determining the scanning period duration according to a preset first time duration coefficient, the sum of the target signal interval duration and the maximum delay duration; wherein the first time length coefficient is greater than 1.
Illustratively, the sum of the target signal interval duration and the maximum delay duration is multiplied by a first time duration coefficient greater than 1 to obtain a scan time duration.
For example, the first time length coefficient may be determined according to actual requirements, for example, the first time length coefficient may be 1.5, that is, the scanning period duration is 1.5 times of the sum of the target signal interval duration and the maximum delay duration, which is not limited thereto.
In some embodiments, the determining, according to the signal interval duration, a second duty cycle for scanning bluetooth signals of the second device further includes: determining the rest period duration of the second duty ratio according to a preset second duration coefficient and the scanning period duration; wherein the second duration coefficient is greater than 0.
The scan period of the second duty cycle includes an adjacent scan period duration and rest period duration.
The rest period duration may be less than or equal to the scan period duration, or may be greater than the scan period duration. Specifically, when the second duration coefficient is greater than 0 and less than or equal to 1, the rest period duration is less than or equal to the scan period duration; when the second duration coefficient is greater than 1, the rest period duration is greater than the scanning period duration.
In some embodiments, the second duration factor is greater than 0 and less than or equal to 1 when the first device is in the first scanning mode; the second duration factor is greater than 1 when the first device is in the second scan mode.
When the opposite-end broadcast of the second device needs to be frequently acquired, the first device is set to a first scanning mode, and at the moment, the second duration coefficient is greater than 0 and less than or equal to 1, that is, the rest period duration is less than or equal to the scanning period duration, and at the moment, the second duty ratio is larger; when the requirement on the acquisition frequency of the Bluetooth signal broadcast of the second device is not high, the first device is set to a second scanning mode, at the moment, the second time length coefficient is larger than 1, namely the rest period time length is longer than the scanning period time length, and at the moment, the second duty ratio is smaller.
By setting different scanning modes, the flexibility of Bluetooth signal scanning is improved, so that the first device can adjust scanning power consumption according to actual requirements, and the use experience of a user for Bluetooth signal scanning through the first device is improved.
Step S103, scanning the bluetooth signal of the second device based on the second duty cycle.
In an exemplary embodiment, the second duty cycle is smaller than the first duty cycle, and the scan period for scanning the bluetooth signal based on the second duty cycle includes adjacent scan periods and rest periods.
The duty ratio of the first device is adjusted, the duty ratio of the first device is adjusted from the preset first duty ratio to the second duty ratio, and the bluetooth signal of the second device is scanned based on the second duty ratio, so that the scanning period corresponds to the broadcast event, and the scanning effect of the bluetooth signal is improved.
For example, the first device starts a bluetooth scanning function, scans bluetooth signals of the second device based on a duty cycle of 100%, determines a duration from a termination time of the scanned first bluetooth signal to a start time of the second bluetooth signal as a first signal interval duration, determines a duration from a termination time of the scanned second bluetooth signal to a start time of the third bluetooth signal as a second signal interval duration, and so on. If the difference between the first signal interval duration and the second signal interval duration is smaller than the maximum delay duration, the first signal interval duration and the second signal interval duration are considered to be complete signal interval durations, and the smaller one of the first signal interval duration and the second signal interval duration is added with the maximum delay duration to obtain the approximate broadcast interval duration. Multiplying the preset first time length coefficient by the approximate broadcast interval duration to obtain the scanning time period duration of the second duty ratio. And determining the scanning interval duration of the second duty ratio according to the product of the second duration coefficient and the scanning period duration.
According to the Bluetooth signal scanning method, bluetooth signals of the second device are scanned based on the preset first duty ratio, so that signal interval duration of the Bluetooth signals is obtained, wherein the signal interval duration is interval duration between two times of Bluetooth signals; determining a second duty cycle of scanning Bluetooth signals of the second equipment according to the signal interval duration; and scanning Bluetooth signals of the second device based on the second duty cycle. And determining a second duty ratio of the subsequent scanning of the Bluetooth signal by the signal interval duration of the Bluetooth signal obtained by scanning based on the first duty ratio, so that the scanned duty ratio corresponds to the period of the Bluetooth signal broadcast, and the efficiency of the Bluetooth signal scanning is improved.
Referring to fig. 5, fig. 5 is a schematic block diagram of a bluetooth signal scanning device according to an embodiment of the present application.
As shown in fig. 5, the bluetooth signal scanning device includes a processor, a memory, and a network interface connected through a system bus, wherein the memory may include a storage medium and an internal memory.
The storage medium may store an operating system and a computer program. The computer program comprises program instructions that, when executed, cause the processor to perform any of a number of bluetooth signal scanning methods.
The processor is used to provide computing and control capabilities to support the operation of the entire bluetooth signal scanning device.
The internal memory provides an environment for the execution of a computer program in the storage medium that, when executed by the processor, causes the processor to perform any of the bluetooth signal scanning methods.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of a portion of the structure associated with the present application and is not intended to limit the bluetooth signal scanning apparatus to which the present application is applied, and that a particular bluetooth signal scanning apparatus may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in one embodiment the processor is configured to run a computer program stored in the memory to implement the steps of:
scanning Bluetooth signals of second equipment based on a preset first duty ratio to obtain signal interval duration of the Bluetooth signals, wherein the signal interval duration is interval duration between two Bluetooth signals;
determining a second duty cycle of scanning Bluetooth signals of the second equipment according to the signal interval duration;
and scanning Bluetooth signals of the second device based on the second duty cycle.
In one embodiment, when implementing the determining, according to the signal interval duration, a second duty cycle of scanning the bluetooth signal of the second device, the processor is configured to implement:
and if at least two sections of signal interval time lengths meet a preset condition, determining the scanning time period time length of the second duty ratio according to the at least two sections of signal interval time lengths.
In one embodiment, when the processor implements that the at least two signal interval durations meet a preset condition, determining, according to the at least two signal interval durations, a scanning period duration of the second duty cycle is used to implement:
and if the difference between the first signal interval duration and the second signal interval duration is smaller than a preset maximum delay duration, determining the scanning period duration according to the first signal interval duration and the second signal interval duration.
In one embodiment, the processor is configured to, when implementing the determining the duration of the scanning period according to the duration of the first signal interval and the duration of the second signal interval, implement:
determining the smaller of the first signal interval duration and the second signal interval duration as a target signal interval duration;
and determining the scanning period duration according to the sum of the target signal interval duration and the maximum delay duration.
In one embodiment, the processor is configured, when implementing the determining the scan period duration according to the sum of the target signal interval duration and the maximum delay duration, to implement:
determining the scanning period duration according to a preset first time duration coefficient, the sum of the target signal interval duration and the maximum delay duration; wherein the first time length coefficient is greater than 1.
In one embodiment, when implementing the determining, according to the signal interval duration, a second duty cycle of scanning the bluetooth signal of the second device, the processor is configured to implement:
determining the rest period duration of the second duty ratio according to a preset second duration coefficient and the scanning period duration; wherein the second duration coefficient is greater than 0.
In one embodiment, when the processor scans the bluetooth signal of the second device based on the preset first duty cycle, the processor is configured to implement:
and scanning Bluetooth signals of the second equipment based on a preset first duty ratio, and acquiring at least two signal interval time lengths from the termination time of the first scanned Bluetooth signal.
In one embodiment, when the processor scans the bluetooth signal of the second device based on the preset first duty cycle, the processor is configured to implement:
and if the Bluetooth signal is not scanned within the preset duration threshold, stopping scanning the Bluetooth signal of the second equipment based on the first duty ratio.
It should be noted that, for convenience and brevity of description, the specific working process of bluetooth signal scanning described above may refer to the corresponding process in the foregoing embodiment of the bluetooth signal scanning control method, which is not described herein again.
Embodiments of the present application also provide a computer readable storage medium, where a computer program is stored, where the computer program includes program instructions, and a method implemented when the program instructions are executed may refer to various embodiments of the bluetooth signal scanning method of the present application. For example, the computer program is loaded by a processor, the following steps may be performed:
scanning Bluetooth signals of second equipment based on a preset first duty ratio to obtain signal interval duration of the Bluetooth signals, wherein the signal interval duration is interval duration between two Bluetooth signals;
determining a second duty cycle of scanning Bluetooth signals of the second equipment according to the signal interval duration;
and scanning Bluetooth signals of the second device based on the second duty cycle.
The computer readable storage medium may be an internal storage unit of the bluetooth signal scanning device according to the foregoing embodiment, for example, a hard disk or a memory of the bluetooth signal scanning device. The computer readable storage medium may also be an external storage device of the bluetooth signal scanning device, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the bluetooth signal scanning device.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification 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 in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations. 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 application are merely for describing, and do not represent advantages or disadvantages of the embodiments. While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A bluetooth signal scanning method for a first device, the method comprising:
scanning Bluetooth signals of second equipment based on a preset first duty ratio to obtain signal interval duration of the Bluetooth signals, wherein the signal interval duration is interval duration between two Bluetooth signals;
determining a second duty cycle of scanning Bluetooth signals of the second equipment according to the signal interval duration;
scanning for bluetooth signals of the second device based on the second duty cycle;
wherein, the determining, according to the signal interval duration, the second duty cycle of scanning the bluetooth signal of the second device includes:
and if at least two sections of signal interval time lengths meet a preset condition, determining the scanning time period time length of the second duty ratio according to the at least two sections of signal interval time lengths.
2. The method of claim 1, wherein the at least two signal interval durations include a first signal interval duration and a second signal interval duration; if the signal interval duration of at least two segments meets the preset condition, determining the scanning period duration of the second duty ratio according to the signal interval duration of at least two segments includes:
and if the difference between the first signal interval duration and the second signal interval duration is smaller than a preset maximum delay duration, determining the scanning period duration according to the first signal interval duration and the second signal interval duration.
3. The bluetooth signal scanning method according to claim 2, wherein the determining the scanning period duration according to the first signal interval duration and the second signal interval duration includes:
determining the smaller of the first signal interval duration and the second signal interval duration as a target signal interval duration;
and determining the scanning period duration according to the sum of the target signal interval duration and the maximum delay duration.
4. The bluetooth signal scanning method according to claim 3, wherein said determining the scanning period duration based on a sum of the target signal interval duration and the maximum delay duration comprises:
determining the scanning period duration according to a preset first time duration coefficient, the sum of the target signal interval duration and the maximum delay duration; wherein the first time length coefficient is greater than 1.
5. The bluetooth signal scanning method according to claim 3, wherein the determining a second duty cycle for scanning the bluetooth signal of the second device according to the signal interval duration further comprises:
determining the rest period duration of the second duty ratio according to a preset second duration coefficient and the scanning period duration; wherein the second duration coefficient is greater than 0.
6. The method for scanning bluetooth signals according to claim 1, wherein the scanning bluetooth signals of the second device based on the preset first duty cycle, to obtain a signal interval duration of the bluetooth signals, includes:
and scanning Bluetooth signals of the second equipment based on a preset first duty ratio, and acquiring at least two signal interval time lengths from the termination time of the first scanned Bluetooth signal.
7. The method for scanning bluetooth signals according to any one of claims 1-6, wherein scanning bluetooth signals of the second device based on a preset first duty cycle, to obtain a signal interval duration of the bluetooth signals, includes:
and if the Bluetooth signal is not scanned within the preset duration threshold, stopping scanning the Bluetooth signal of the second equipment based on the first duty ratio.
8. The bluetooth signal scanning method according to any one of claims 1 to 6, wherein the first duty cycle is greater than or equal to 90%.
9. A bluetooth signal scanning device comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program when executed by the processor implements the steps of the bluetooth signal scanning method according to any of claims 1 to 8.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program, wherein the computer program, when executed by a processor, implements the steps of the bluetooth signal scanning method according to any of claims 1 to 8.
CN202211602902.3A 2022-12-14 2022-12-14 Bluetooth signal scanning method, device and storage medium Active CN115665723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211602902.3A CN115665723B (en) 2022-12-14 2022-12-14 Bluetooth signal scanning method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211602902.3A CN115665723B (en) 2022-12-14 2022-12-14 Bluetooth signal scanning method, device and storage medium

Publications (2)

Publication Number Publication Date
CN115665723A CN115665723A (en) 2023-01-31
CN115665723B true CN115665723B (en) 2023-05-05

Family

ID=85023347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211602902.3A Active CN115665723B (en) 2022-12-14 2022-12-14 Bluetooth signal scanning method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115665723B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756848A (en) * 2019-03-26 2019-05-14 深圳创维数字技术有限公司 Wireless distribution method, apparatus, equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8954007B2 (en) * 2011-08-12 2015-02-10 Wicentric, Inc. Systems and methods for low power short range wireless device communication scanning
EP2891031B1 (en) * 2012-08-31 2018-03-07 Nokia Technologies OY Using bluetooth low energy
CN105072565A (en) * 2015-08-10 2015-11-18 深圳市金立通信设备有限公司 Data transmission method and associated equipment
WO2018165862A1 (en) * 2017-03-14 2018-09-20 华为技术有限公司 Scanning method and device
EP3796684A1 (en) * 2019-09-23 2021-03-24 Bayerische Motoren Werke Aktiengesellschaft Wireless communication device, method and computer program for a wireless communication device
CN112601199B (en) * 2020-11-13 2022-02-22 西安电子科技大学 Intelligent contact sensing method, device and system based on low-power-consumption Bluetooth

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756848A (en) * 2019-03-26 2019-05-14 深圳创维数字技术有限公司 Wireless distribution method, apparatus, equipment and storage medium

Also Published As

Publication number Publication date
CN115665723A (en) 2023-01-31

Similar Documents

Publication Publication Date Title
US9756582B2 (en) Broadcasting, and scanning for wireless communication
CN109041181B (en) Wireless communication method, system and gateway equipment
US8582550B2 (en) Bounded power-save-polling (BPS)
CN108513362B (en) Channel detection method, device and base station
US9078258B2 (en) Controller, communication terminal, and wireless communication system
EP3113374A1 (en) Communication device and communication system using same
CN115665723B (en) Bluetooth signal scanning method, device and storage medium
US11039484B2 (en) Communications device, an access point and methods therein for accessing a resource unit
WO2018161535A1 (en) Method, apparatus and terminal device for sending broadcast
US20230106442A1 (en) Methods and devices for channel occupancy time (cot) sharing
CN110267336A (en) Antenna transmission power control method, mobile terminal and storage medium
CN115173889A (en) Frequency hopping processing method, device and terminal
CN114765859A (en) Data transmission method and device and communication equipment
CN114828218A (en) Method for determining validity of reference signal transmission opportunity and user equipment
JP6491346B2 (en) Data transmission method and device
CN114786243A (en) Indication method for validity of reference signal transmission opportunity and user equipment
CN112789900A (en) Power supply control method and equipment
CN106919461B (en) Method and device for adjusting broadcast receiver queue and terminal equipment
JP6681801B2 (en) Communication device, communication method, and computer program
WO2022206593A1 (en) Pdcch monitoring processing method and monitoring configuration method, and related device
CN111049629A (en) Search space detection method, terminal and network side device
CN115133954B (en) Frequency hopping processing method, device and terminal
CN114071446B (en) Information transmission method, information transmission device, terminal and network side equipment
US20190244242A1 (en) Communication apparatus, information terminal, system, method for controlling communication apparatus, method for controlling information terminal, and method for controlling system
JP6779111B2 (en) Terminal devices, communication methods, communication systems and programs

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