CN115065931A - Method and device for searching Bluetooth device - Google Patents

Method and device for searching Bluetooth device Download PDF

Info

Publication number
CN115065931A
CN115065931A CN202210893165.0A CN202210893165A CN115065931A CN 115065931 A CN115065931 A CN 115065931A CN 202210893165 A CN202210893165 A CN 202210893165A CN 115065931 A CN115065931 A CN 115065931A
Authority
CN
China
Prior art keywords
antenna
target
terminal device
channel
bluetooth device
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
CN202210893165.0A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210893165.0A priority Critical patent/CN115065931A/en
Publication of CN115065931A publication Critical patent/CN115065931A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a method and a device for searching Bluetooth equipment, which are applied to a main terminal device in a searching system, and the searching system further comprises: the system of at least one Bluetooth device realizes the search of the Bluetooth device and improves the user experience. The method comprises the following steps: the at least one Bluetooth device sends a broadcast message in a low power consumption state; and the at least one Bluetooth device enters the low power consumption state under the condition of detecting a power-off instruction. The main terminal equipment receives a broadcast message from target Bluetooth equipment, wherein the target Bluetooth equipment is one of the at least one Bluetooth equipment; the main terminal device calculates and obtains the distance between the target Bluetooth device and the main terminal device based on the broadcast message; the distance between the target bluetooth device and the main terminal device changes with the movement of the main terminal device, and the position of the target bluetooth device can be determined when the distance is smaller than a distance threshold.

Description

Method and device for searching Bluetooth device
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and an apparatus for searching for a bluetooth device.
Background
Bluetooth (Bluetooth) is a small-range radio technology. By using the radio technology, the communication between the communication end equipment can be effectively simplified, the communication between the communication end equipment and the Internet can also be effectively simplified, the data transmission between the communication equipment and the Internet becomes more efficient, and the road is widened for the wireless communication. Through using Bluetooth technology product (can also be called Bluetooth equipment), like Bluetooth mouse, Bluetooth keyboard, Bluetooth printer and Bluetooth headset etc. the user can avoid the vexation of cable winding, but the probability that above-mentioned Bluetooth equipment lost also increases thereupon, and has the difficult problem of searching.
At present, a searching method is needed to solve the problem that the bluetooth device is lost and is not easy to search.
Disclosure of Invention
The application provides a method and a device for searching Bluetooth equipment, which can realize the searching of the Bluetooth equipment and have good user experience.
In a first aspect, a method for searching a bluetooth device is provided, which is applied to a master terminal device, and includes: the main terminal equipment receives a broadcast message from target Bluetooth equipment, wherein the target Bluetooth equipment is one of the at least one Bluetooth equipment; the main terminal device calculates and obtains the distance between the target Bluetooth device and the main terminal device based on the broadcast message; the distance between the target Bluetooth device and the main terminal device changes along with the movement of the main terminal device, and the position of the target Bluetooth device is determined under the condition that the distance is smaller than a distance threshold value.
With reference to the first aspect, in some implementation manners of the first aspect, the obtaining, by the master terminal device, a distance between the target bluetooth device and the master terminal device by calculation based on the broadcast message includes: the main terminal equipment determines the transmitting power and the transmitting antenna gain of the target Bluetooth equipment based on the model information of the target Bluetooth equipment and the reference data, wherein the reference data comprises the model information, the transmitting power and the transmitting antenna gain of the target Bluetooth equipment; and the main terminal equipment calculates and obtains the distance between the target Bluetooth equipment and the main terminal equipment based on the transmitting power and the transmitting antenna gain of the target Bluetooth equipment, wherein the broadcast message comprises reference data, or the reference data is prestored by the main terminal equipment.
With reference to the first aspect, in certain implementations of the first aspect, a distance R between the target bluetooth device and the master terminal device satisfies the following formula:
Figure BDA0003768369100000011
wherein, P r Is the received power, P, of the master terminal device t For the transmission power of the above-mentioned target Bluetooth device, G t Gain of transmitting antenna for the above-mentioned target Bluetooth device, G r λ is the bluetooth band wavelength, which is the receive antenna gain of the master terminal device.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: the main terminal equipment determines the direction of the target Bluetooth equipment relative to the main terminal equipment based on the signal intensity of the broadcast message; the main terminal device displays the direction of the target Bluetooth device relative to the main terminal device; in the direction of the target bluetooth device relative to the master terminal device, the signal strength of the broadcast message received by the master terminal device is increased as the distance between the target bluetooth device and the master terminal device is decreased.
With reference to the first aspect, in some implementation manners of the first aspect, the above-mentioned main terminal device includes a first antenna and a second antenna, and the receiving, by the main terminal device, a broadcast packet from a target bluetooth device includes: the main terminal device receives the broadcast message from the target bluetooth device through a target antenna, wherein the target antenna comprises the first antenna, the second antenna, or any one of the first antenna and the second antenna; the signal intensity range that the first antenna can receive is smaller than the signal intensity range that the second antenna can receive, the signal intensity range that the second antenna can receive is smaller than the signal intensity range that the first antenna and the second antenna can receive when cooperatively working, the distance range that the first antenna can search is smaller than the distance range that the second antenna can search, and the distance range that the second antenna can search is smaller than the distance range that the first antenna and the second antenna can search when cooperatively working.
With reference to the first aspect, in some implementations of the first aspect, the target antenna is determined by the master terminal device according to an antenna selection policy, where the antenna selection policy includes: the main terminal device preferentially takes a high-priority antenna as the target antenna; the priority of the antenna is determined according to the signal strength range which can be received by the antenna or the searching distance range.
With reference to the first aspect, in some implementations of the first aspect, when the master terminal device is in a low power consumption state, the antenna that has a smaller range of received signal strength or a smaller range of searchable distances in the first antenna and the second antenna has a higher priority.
With reference to the first aspect, in some implementations of the first aspect, the antenna selection policy further includes: and under the condition that the broadcast message of the target Bluetooth device is searched through the current antenna but not detected, the terminal device determines the antenna with the priority lower than that of the current antenna as the target antenna.
With reference to the first aspect, in some implementations of the first aspect, the target antenna includes a first channel and a second channel, and the receiving, by the master terminal device, the broadcast packet from the target bluetooth device through the target antenna includes: the main terminal equipment receives a broadcast message from target Bluetooth equipment through a target channel, wherein the target channel comprises the first channel or the second channel; the signal intensity range which can be received by the first channel is smaller than that which can be received by the second channel, and the distance range which can be searched by the first channel is smaller than that which can be searched by the second channel.
With reference to the first aspect, in some implementations of the first aspect, the target channel is determined by the master terminal device according to a channel selection policy, where the channel selection policy includes: the main terminal device takes the high priority channel as the target channel preferentially; wherein, the priority of the channel is determined according to the signal strength range which can be received by the channel or the searching distance range.
With reference to the first aspect, in some implementations of the first aspect, when the master terminal device is in the low power consumption state, the channel priority is higher when the signal strength range that can be received in the first channel and the second channel is smaller or the distance range that can be searched for is smaller.
With reference to the first aspect, in certain implementations of the first aspect, the channel selection policy further includes: and under the condition that the broadcast message of the target Bluetooth device is searched through the current channel but not detected, the terminal device determines the channel with the priority lower than that of the current channel as the target channel.
In this embodiment of the application, the master terminal device may calculate a distance between the master terminal device and the target bluetooth device through the broadcast message by receiving the broadcast message from the bluetooth device, where the distance may change along with movement of the master terminal device, in other words, the user may search for the target bluetooth device based on the distance, and may determine the position of the target bluetooth device when the distance is smaller than a distance threshold, so as to improve user experience.
In a second aspect, a method for searching for a bluetooth device is provided, which is applied to at least one bluetooth device, and includes: the at least one Bluetooth device sends a broadcast message in a low power consumption state; and the at least one Bluetooth device enters the low power consumption state under the condition of detecting a power-off instruction.
With reference to the second aspect, in certain implementations of the second aspect, the at least one bluetooth device includes a bluetooth headset that includes a charging bin or a bluetooth headset that does not include a charging bin.
In this embodiment of the present application, the bluetooth device enters a low power consumption state when detecting a shutdown instruction, and still continuously sends a broadcast packet in the low power consumption state, so that the main terminal device can calculate a distance between the main terminal device and the bluetooth device based on the broadcast packet, and further search for the bluetooth device is implemented.
In a third aspect, a method for searching a bluetooth device is provided, which is applied to a search system, and the search system includes: a master terminal device and at least one bluetooth device, the method comprising: the target Bluetooth device sends a broadcast message, wherein the target Bluetooth device is one of the at least one Bluetooth device; the main terminal equipment receives the broadcast message from the target Bluetooth equipment; the main terminal device calculates and obtains the distance between the target Bluetooth device and the main terminal device based on the broadcast message; the distance between the target Bluetooth device and the main terminal device changes along with the movement of the main terminal device, and the position of the target Bluetooth device is determined under the condition that the distance is smaller than a distance threshold value.
In a fourth aspect, an apparatus for searching bluetooth devices is provided, which is applied to a main terminal device, and includes: the device comprises a receiving module and a processing module; the receiving module is used for receiving a broadcast message from a target Bluetooth device, wherein the target Bluetooth device is one of the at least one Bluetooth device; the processing module is configured to calculate, based on the broadcast packet, a distance between the target bluetooth device and the master terminal device; the distance between the target Bluetooth device and the main terminal device changes along with the movement of the main terminal device, and the position of the target Bluetooth device is determined under the condition that the distance is smaller than a distance threshold value.
With reference to the fourth aspect, in some implementation manners of the fourth aspect, the broadcast packet includes model information of a target bluetooth device, and the processing module is configured to: determining the transmitting power and the transmitting antenna gain of the target Bluetooth device based on the model information of the target Bluetooth device and the reference data, wherein the reference data comprises the model information, the transmitting power and the transmitting antenna gain of the target Bluetooth device; calculating the distance between the target Bluetooth device and the main terminal device based on the transmitting power and the transmitting antenna gain of the target Bluetooth device; wherein, the broadcast message includes the reference data, or the reference data is pre-stored by the main terminal device.
With reference to the fourth aspect, in some implementations of the fourth aspect, a distance R between the target bluetooth device and the master terminal device satisfies the following equation:
Figure BDA0003768369100000031
wherein, P r Is the received power of the main terminal equipment, P t Is the transmission power of the target Bluetooth device, G t Gain of transmitting antenna for target Bluetooth device, G r Is the receiving antenna gain of the main terminal equipment, and lambda is the wavelength of the Bluetooth wave band.
With reference to the fourth aspect, in some implementations of the fourth aspect, the processing module is configured to: determining the direction of the target Bluetooth device relative to the main terminal device based on the signal strength of the broadcast message; displaying the direction of the target Bluetooth device relative to the main terminal device; in the direction of the target bluetooth device relative to the master terminal device, the signal strength of the broadcast message received by the master terminal device is increased as the distance between the target bluetooth device and the master terminal device is reduced.
With reference to the fourth aspect, in some implementation manners of the fourth aspect, the master terminal device includes a first antenna and a second antenna, and the receiving module is configured to: receiving the broadcast message from the target bluetooth device through a target antenna, wherein the target antenna comprises a first antenna, a second antenna or any one of the first antenna and the second antenna; the signal intensity range which can be received by the first antenna is smaller than the signal intensity range which can be received by the second antenna, the signal intensity range which can be received by the second antenna is smaller than the signal intensity range which can be received when the first antenna and the second antenna work cooperatively, the distance range which can be searched by the first antenna is smaller than the distance range which can be searched by the second antenna, and the distance range which can be searched by the second antenna is smaller than the distance range which can be searched when the first antenna and the second antenna work cooperatively.
With reference to the fourth aspect, in some implementations of the fourth aspect, the target antenna is determined by the master terminal device according to an antenna selection policy, where the antenna selection policy includes: the main terminal device takes a high-priority antenna as the target antenna preferentially; the priority of the antenna is determined according to the signal strength range which can be received by the antenna or the searching distance range.
With reference to the fourth aspect, in some implementations of the fourth aspect, the antenna selection policy further includes: and under the condition that the current antenna is searched for but the broadcast message of the target Bluetooth device is not detected, the main terminal device determines the antenna with the priority lower than that of the current antenna as the target antenna.
With reference to the fourth aspect, in some implementations of the fourth aspect, the target antenna includes a first channel and a second channel, and the receiving module is configured to: receiving a broadcast message from the target Bluetooth device through a target channel, wherein the target channel comprises the first channel or the second channel; the signal intensity range which can be received by the first channel is smaller than that which can be received by the second channel, and the distance range which can be searched by the first channel is smaller than that which can be searched by the second channel.
With reference to the fourth aspect, in some implementations of the fourth aspect, the target channel is determined by the master terminal device according to a channel selection policy, where the channel selection policy includes: the main terminal device takes the high priority channel as the target channel preferentially; wherein, the priority of the channel is determined according to the signal strength range which can be received by the channel or the searching distance range.
With reference to the fourth aspect, in some implementations of the fourth aspect, when the master terminal device is in a low power consumption state, the antenna that can receive a smaller signal strength range or can search for a smaller distance range in the first antenna and the second antenna has a higher priority.
With reference to the fourth aspect, in some implementations of the fourth aspect, the channel selection policy further includes: and under the condition that the broadcast message of the target Bluetooth device is searched through the current channel but not detected, the main terminal device determines the channel with the priority lower than that of the current channel as the target channel.
In a fifth aspect, an apparatus for searching for bluetooth devices is provided, where the apparatus is applied to at least one bluetooth device, and the apparatus includes: a sending module and a processing module; the sending module is used for sending the broadcast message in a low power consumption state; the processing module is used for entering the low power consumption state under the condition that a shutdown instruction is detected.
With reference to the fifth aspect, in certain implementations of the fifth aspect, the at least one bluetooth device includes a bluetooth headset that includes a charging bin or a bluetooth headset that does not include a charging bin.
In a sixth aspect, there is provided another apparatus for searching for bluetooth devices, comprising a processor coupled to a memory and configured to execute instructions in the memory to implement the method of any of the possible implementations of the first, second, or third aspects. Optionally, the apparatus for searching for bluetooth devices further comprises a memory. Optionally, the apparatus for searching for bluetooth devices further comprises a communication interface, the processor being coupled to the communication interface.
In a seventh aspect, a processor is provided, including: input circuit, output circuit and processing circuit. The processing circuit is configured to receive a signal via the input circuit and transmit a signal via the output circuit, such that the processor performs the method of any one of the possible implementations of the first, second, or third aspect described above.
In a specific implementation process, the processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a flip-flop, various logic circuits, and the like. The input signal received by the input circuit may be received and input by, for example and without limitation, a receiver, the signal output by the output circuit may be output to and transmitted by a transmitter, for example and without limitation, and the input circuit and the output circuit may be the same circuit that functions as the input circuit and the output circuit, respectively, at different times. The embodiment of the present application does not limit the specific implementation manner of the processor and various circuits.
In an eighth aspect, a processing apparatus is provided that includes a processor and a memory. The processor is configured to read instructions stored in the memory, and may receive a signal via the receiver and transmit a signal via the transmitter to perform the method of any of the possible implementations of the first, second, or third aspect.
Optionally, there are one or more processors and one or more memories.
Alternatively, the memory may be integrated with the processor, or provided separately from the processor.
In a specific implementation process, the memory may be a non-transitory (non-transitory) memory, such as a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips, and the embodiment of the present application does not limit the type of the memory and the arrangement manner of the memory and the processor.
It will be appreciated that the associated data interaction process, for example, sending the indication information, may be a process of outputting the indication information from the processor, and receiving the capability information may be a process of receiving the input capability information from the processor. In particular, the data output by the processor may be output to a transmitter and the input data received by the processor may be from a receiver. The transmitter and receiver may be collectively referred to as a transceiver, among others.
The processing device in the above eighth aspect may be a chip, the processor may be implemented by hardware or may be implemented by software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated with the processor, located external to the processor, or stand-alone.
In a ninth aspect, there is provided a computer program product, the computer program product comprising: a computer program (which may also be referred to as code, or instructions), which when executed, causes a computer to perform the method of any of the possible implementations of the first, second or third aspect described above.
A tenth aspect provides a computer-readable storage medium storing a computer program (which may also be referred to as code or instructions) which, when run on a computer, causes the computer to perform the method of any one of the possible implementations of the first, second or third aspect described above.
Drawings
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a system architecture of a master terminal device provided in an embodiment of the present application;
fig. 3 is a schematic flow chart of a method for searching for a bluetooth device according to an embodiment of the present application;
fig. 4 is a schematic diagram of a mobile phone interface for searching a bluetooth device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a mobile phone interface of another bluetooth device searching apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of an antenna array provided in an embodiment of the present application;
fig. 7 is a schematic diagram of a channel of an antenna provided by an embodiment of the present application;
fig. 8 is a schematic block diagram of an apparatus for searching for a bluetooth device according to an embodiment of the present application;
fig. 9 is a schematic block diagram of another apparatus for searching for bluetooth devices according to an embodiment of the present application;
fig. 10 is a schematic block diagram of another apparatus for searching for a bluetooth device according to an embodiment of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
In the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same or similar items having substantially the same function and action. For example, the first instruction and the second instruction are for distinguishing different user instructions, and the order of the user instructions is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It is noted that the words "exemplary" or "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
Further, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a alone, A and B together, and B alone, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, and c, may represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b and c can be single or multiple.
Fig. 1 illustrates an application scenario 100 provided in an embodiment of the present application, and as shown in fig. 1, the application scenario 100 may include a master terminal device 101 and a bluetooth device 102. The master terminal device 101 and the target bluetooth device 102 may implement data transceiving after pairing and link establishment are successful through bluetooth technology.
It should be understood that the above-mentioned link establishment is used to indicate the connection between the main terminal device 101 and the bluetooth device 102 and establish a link, the main terminal device 101 may also be referred to as a main bluetooth device, and the bluetooth device 102 may be one or more, that is, the main terminal device 101 may communicate with a plurality of bluetooth devices simultaneously.
As shown in fig. 1, the main terminal device 101 and the bluetooth device 102 are wirelessly connected, so in an actual usage scenario, there may be a situation that the bluetooth device is lost and cannot be found, which affects normal use of a user and causes poor user experience.
Illustratively, the master terminal device 101 is a mobile phone, and the bluetooth device 102 is a bluetooth headset. In a possible use scene, the mobile phone is connected with the Bluetooth headset, and the Bluetooth headset falls off to interrupt the use of the user in the process that the user listens to music through the Bluetooth headset. Because the bluetooth headset is small in size and not easy to find, a user may spend a lot of time to find, and even the user may not find the bluetooth headset, so that the problem of poor user experience exists.
In the prior art, the bluetooth headset can be searched by the UWB technology, so that a user can quickly find the bluetooth headset. But in the case where the above-described device does not support the UWB technology, a search cannot be achieved.
Illustratively, bluetooth headset a does not support UWB technology, but currently, when a user wants to use bluetooth headset a and cannot find bluetooth headset a, the search for bluetooth headset a cannot be achieved by using UWM technology.
In view of this, embodiments of the present application provide a method and an apparatus for searching a bluetooth device, where a main terminal device may receive a broadcast packet from a target bluetooth, and calculate a distance between the target bluetooth device and the main terminal device based on the broadcast packet, so as to implement searching for the target bluetooth device.
In addition, the above prior art also has a problem that it is impossible to search for the bluetooth device in the power-off state.
For example, if the bluetooth headset is in the power-off state, and the user wants to use the bluetooth headset and cannot find the bluetooth headset, the bluetooth headset will not send any signal because the bluetooth headset is in the power-off state, and the bluetooth headset cannot be searched even by the UWB technology.
It should be understood that the power of the bluetooth headset in the power-off state is not "0".
In view of this, the embodiment of the present application provides a method and an apparatus for searching a bluetooth device, which are applied to a main terminal device in a search system, and the search system further includes: at least one bluetooth device. The at least one bluetooth device may enter the low power consumption state and send a broadcast message when detecting a power-off command. Correspondingly, the master terminal device may receive a broadcast message from a target bluetooth device, where the target bluetooth device is one of the at least one bluetooth device. The main terminal device can calculate the distance between the target Bluetooth device and the main terminal device based on the broadcast message, so that the target Bluetooth device can be searched, the problem that the Bluetooth device in the power-off state cannot be searched in the prior art is solved, and the user experience is improved.
The main terminal equipment and the Bluetooth equipment related to the embodiment of the application are both equipment supporting the Bluetooth function. The main terminal device may be a mobile phone (mobile phone), a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device, a Virtual Reality (VR) device, an Augmented Reality (AR) device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned driving (self driving), a wireless terminal in remote surgery (remote medical supply), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), a Personal Digital Assistant (PDA), and the like, which are not limited in this application. The bluetooth device related to the present application may be a bluetooth headset, a bluetooth mouse, a bluetooth keyboard, a bluetooth sound, etc., which is not limited in the embodiments of the present application.
Exemplarily, fig. 2 is a schematic diagram of a system architecture of a master terminal device according to an embodiment of the present application.
As shown in fig. 2, the main terminal device includes a processor 210, a transceiver 220, and a display unit 270. The display unit 270 may include a display screen, among others.
Optionally, the master terminal device may further include a memory 230. The processor 210, the transceiver 220 and the memory 230 can communicate with each other through the internal connection path to transfer the search data, the memory 230 is used for storing the computer program, and the processor 210 is used for calling and running the computer program from the memory 230.
The processor 210 may be combined with the memory 230 into a processing device, and more generally, separate components, and the processor 210 is configured to execute the program code stored in the memory 230 to implement the functions described above. In particular implementations, the memory 230 may be integrated into the processor 210 or may be separate from the processor 210.
In addition to this, in order to make the functions of the main terminal device more complete, the main terminal device may further include one or more of the input unit 260, the audio circuit 280, the sensor 201, and the like.
Optionally, the main terminal device may further include a power supply 250 for supplying power to various devices or circuits in the main terminal device.
It is understood that the operations and/or functions of the respective modules in the main terminal device shown in fig. 2 are respectively for implementing the corresponding flows in the following method embodiments. Specifically, reference may be made to the description of the method embodiments described below, and a detailed description is appropriately omitted herein to avoid redundancy.
It will be appreciated that the processor 210 in the master terminal device shown in fig. 2 may include one or more processing units, such as: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.
A memory may also be provided in processor 210 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 210 and the transceiver 220. For example: the processor 210 communicates with the bluetooth module in the transceiver 120 through the UART interface to implement the bluetooth function. In some embodiments, the audio circuit 280 may transmit the audio signal to the transceiver 220 through the UART interface, so as to realize the function of playing music through the bluetooth headset.
The MIPI interface may be used to connect the processor 210 with peripheral devices such as the display unit 270. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 210 and display unit 270 communicate via a DSI interface to implement the display functionality of the master terminal device.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 210 with the display unit 270, the transceiver 220, the audio mode circuitry 280, the sensor 201, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is only an exemplary illustration, and does not constitute a limitation on the structure of the main terminal device. In other embodiments of the present application, the main terminal device may also adopt different interface connection manners or a combination of multiple interface connection manners in the foregoing embodiments.
It will be appreciated that the power supply 250 shown in fig. 2 is used to power the processor 210, the memory 230, the display unit 270, the input unit 260, the transceiver 220, and the like.
The transceiver 220 may provide a solution for wireless communication applied to the host terminal device, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The transceiver 220 may be one or more devices that integrate at least one communication processing module.
The terminal device implements a display function by the GPU, the display unit 270, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display unit 270 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
The display unit 270 is used for displaying images, videos, and the like (such as a search interface and the like of the present application). The display unit 270 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like
Memory 230 may be used to store computer-executable program code, which includes instructions. The memory 230 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as search data) created during use of the host terminal device, and the like. Further, the memory 230 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 210 executes various functional applications of the main terminal device and data processing by executing instructions stored in the memory 230 and/or instructions stored in a memory provided in the processor.
The master terminal device may implement audio functions via the audio circuit 280, and the application processor, etc. Such as music playing, recording, etc.
Audio circuit 280 is used to convert digital audio information to an analog audio signal output and also to convert an analog audio input to a digital audio signal. The audio circuit 280 may also be used to encode and decode audio signals. In some embodiments, the audio circuit 280 may be disposed in the processor 210, or some functional blocks of the audio circuit 280 may be disposed in the processor 210.
It should be understood that the system architecture of the bluetooth device is similar to that of the main terminal device, and is not described herein again to avoid repetition.
In order to make the purpose and technical solution of the present application clearer and more intuitive, the method and the terminal device provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
Fig. 3 is a schematic flow chart of a method 300 for searching for a bluetooth device according to an embodiment of the present application. The method 300 may be applied to the application scenario 100 shown in fig. 1, and may be applied to other scenarios, which is not limited in this embodiment. The method 300 can be applied to a main terminal device in a search system, where the search system further includes: at least one bluetooth device. As shown in fig. 3, the method 300 may include the following steps:
s301, at least one Bluetooth device enters a low power consumption state.
S302, at least one Bluetooth device sends a broadcast message in a low power consumption state. Correspondingly, the master terminal device receives a broadcast message from a target bluetooth device, wherein the target bluetooth device is one of the at least one bluetooth device.
And S303, the main terminal device calculates the distance between the target Bluetooth device and the main terminal device based on the broadcast message. The distance between the target Bluetooth device and the main terminal device can be changed along with the movement of the main terminal device, and the position of the target Bluetooth device is determined under the condition that the distance is smaller than the distance threshold value.
In other words, after obtaining the distance between the target bluetooth device and the master terminal device, the user may displace the master terminal device, implement a search for the target bluetooth device based on the change of the distance, and determine the position of the target bluetooth device when the distance is smaller than the distance threshold.
For example, the distance threshold is 1m, and in a case that the user can hold the master terminal device to displace, and the distance is less than or equal to 1m, it may be indicated that the user is currently closer to the target bluetooth device, and the user may determine the position of the target bluetooth device within the current distance range.
Optionally, in a case that the distance is smaller than the distance threshold, the main terminal device may further send a reminding message to remind the user that the position of the bluetooth device may be determined within the current distance range, where the reminding message may be voice message or image message.
It should be understood that the distance threshold may be preset or user-defined, and the reminding signal may be a voice signal, which is not limited in this application.
In a possible implementation manner, the broadcast packet may include model information of a target bluetooth device, and the master terminal device may store reference data in advance, where the reference data may include model information, transmission power, and transmission antenna gain of the target bluetooth device.
For example, the developer may test at least one bluetooth device, obtain the transmission power and the transmission antenna gain of the at least one bluetooth device, and record and store a corresponding relationship between the model information of the at least one bluetooth device and the obtained transmission power and transmission antenna gain, where the at least one bluetooth device includes a target bluetooth device.
It should be understood that the above-mentioned reference information may be stored in the main terminal device, and may also be stored in the bluetooth device, and may be sent to the main terminal device through a broadcast message, so as to implement the search of the bluetooth device. However, in order to avoid the change of the current broadcast message, the reference information is preferably stored in the main terminal device.
In another possible implementation manner, the broadcast message may also carry the transmission power and the transmission antenna gain of the target bluetooth device, in addition to the model information of the target bluetooth device.
Table one shows the parameter data described above.
Watch 1
Model information of Bluetooth device Transmitting power Gain of transmitting antenna
001 A C
002 B D
003 E F
As shown in table one, reference data for a plurality of bluetooth devices is shown, wherein the reference data shows the transmit power and transmit antenna gain for a plurality of different models of bluetooth devices. The transmitting power of the Bluetooth equipment with the model information of 001 is A, and the transmitting antenna power is C; the transmitting power of the Bluetooth equipment with the model information of 002 is B, and the transmitting antenna power is D; and the transmitting power of the Bluetooth device with the model information of 003 is E, and the transmitting antenna power is F.
It should be understood that the reference data are only shown in the form of table, and the reference data may be in other forms, which are not limited in the present application.
It should also be understood that, in addition to the model information of the three bluetooth devices and the corresponding transmission power and transmission antenna power shown above, the first table may also include reference data of other various bluetooth devices, which is not limited in this application.
In a possible implementation manner, the master terminal device may determine the transmission power and the transmission antenna gain of the target bluetooth device based on the model information of the target bluetooth device and the reference data; and the distance between the target Bluetooth device and the main terminal device can be calculated and obtained based on the transmitting power and the transmitting antenna gain of the target Bluetooth device.
Optionally, the master terminal device may further determine the direction of the target bluetooth device relative to the master terminal device based on the signal strength of the broadcast packet.
It should be understood that the signal strength of the broadcast message received by the master terminal device may increase as the distance between the target bluetooth device and the master terminal device decreases in the direction of the target bluetooth device relative to the master terminal device.
In this embodiment of the present application, the bluetooth device may enter the low power consumption state and send a broadcast message when detecting a shutdown instruction. Correspondingly, the master terminal device may receive a broadcast packet from a target bluetooth device, where the target bluetooth device is one of the at least one bluetooth device. The main terminal device can calculate the distance between the target Bluetooth device and the main terminal device based on the broadcast message, and the distance can be changed along with the movement of the main terminal device, namely, a user can hold the main terminal device, the target Bluetooth is searched based on the distance, the problem of searching of the Bluetooth device in the prior art is solved, the position of the target Bluetooth device can be determined under the condition that the distance is smaller than a distance threshold value, and the user experience is improved.
The method for searching for a bluetooth device provided in the present application is described in detail below by taking the main terminal device as a mobile phone and the bluetooth device as a bluetooth headset as an example.
In one possible case, the bluetooth headset is a bluetooth headset without a charging chamber. The user can click or touch the power-off key of the Bluetooth headset under the condition that the Bluetooth headset is not used. Correspondingly, the bluetooth headset may detect the power-off command and may enter a low power consumption state, or the bluetooth headset may enter the low power consumption state when the bluetooth headset is not detected to be worn by the ear through the sensor. It will be appreciated that in this low power state, the bluetooth headset may transmit broadcast messages. When the user wants to use the bluetooth headset again and cannot find the bluetooth headset, the mobile phone may receive the broadcast message of the bluetooth headset, and obtain the transmission power and the transmission antenna gain of the bluetooth headset based on the broadcast message and the reference data. The distance between the mobile phone and the Bluetooth headset can be calculated based on the transmitting power and the transmitting antenna gain of the Bluetooth headset.
In one possible case, the bluetooth headset is a bluetooth headset with a charging chamber. The user can place the bluetooth headset in the charging bin without using the bluetooth headset. Correspondingly, the bluetooth headset can detect the shutdown instruction, and at this time, the charging bin can enter a low power consumption state and send the broadcast message, or send the broadcast message when other charging bins enter the low power consumption state. When the user wants to use the bluetooth headset again and cannot find the bluetooth headset, the mobile phone may receive the broadcast message of the charging bin, and obtain the transmission power and the transmission antenna gain of the bluetooth headset based on the broadcast message and the reference data. The distance between the mobile phone and the Bluetooth headset can be calculated based on the transmitting power and the transmitting antenna gain of the Bluetooth headset.
Illustratively, the handset may be based on the formula:
Figure BDA0003768369100000101
and calculating to obtain the distance R between the Bluetooth headset and the Bluetooth headset. Wherein, P r Is the received power of the main terminal equipment, P t Transmit power, G, for a target Bluetooth device t Gain of transmitting antenna for target Bluetooth device, G r Is the receiving antenna gain of the main terminal equipment, and lambda is the wavelength of the Bluetooth wave band.
It should be understood that the broadcast messages in the above embodiments may include any one of connectable non-directional broadcast messages, connectable directional broadcast messages, non-connectable non-directional broadcast messages, or scannable non-directional broadcast messages, which is not limited in this application.
It is worth noting that in order to reduce power consumption, the bluetooth device preferably does not have connectable non-directed broadcast messages in the low power mode.
Optionally, the distance between the mobile phone and the bluetooth headset may be displayed on the mobile phone interface in a specific numerical value form, or may be displayed on the mobile phone interface in an image form, which is not limited in the present application.
Fig. 4 shows a handset interface 400 for searching for bluetooth devices according to an embodiment of the present application. As shown in fig. 4, the mobile phone may represent the direction of the bluetooth headset relative to the mobile phone in the form of an arrow on the interface, and the mobile phone may also represent the distance between the bluetooth headset and the mobile phone in a specific numerical value, for example, 3m on the interface.
Alternatively, the distance between the handset and the bluetooth headset may set several gradients, and the user may determine the orientation and position of the bluetooth headset according to the specific gradients. Fig. 5 shows a handset interface 500 for searching for bluetooth devices according to an embodiment of the application. Assume a first range gradient of 3-5m, a second range gradient of 1-3m, and a third range gradient of 0-1 m. If the current distance between the mobile phone and the bluetooth headset is 5m, as shown in the interface 5a of the mobile phone in fig. 6, the mobile phone displays the first distance gradient on the interface as a first circle.
When the user holds the mobile phone to displace, if the distance between the mobile phone and the bluetooth headset is once smaller than the first distance gradient (i.e. smaller than 3m), as shown in the mobile phone interface 5b in fig. 5, the mobile phone displays the second distance gradient on the interface as a second circle, where the radius of the second circle is smaller than the radius of the first circle.
When the user holds the mobile phone and continues to displace, if the distance between the mobile phone and the bluetooth headset is once smaller than the second distance gradient (i.e. smaller than 1m), as shown in the mobile phone interface 5c in fig. 5, the mobile phone displays the third distance gradient on the interface in a third circle, where the radius of the third circle is smaller than the radius of the second circle.
The above embodiments describe the method for searching for the bluetooth device provided in the present application mainly in a scenario where the bluetooth device is powered off. In addition, the method provided by the application can also be suitable for various different use scenes of the Bluetooth equipment in the starting state.
In the same way, the following still takes the main terminal device as a mobile phone and the bluetooth device as a bluetooth headset as an example, and the method for searching for the bluetooth device provided by the present application is described in detail in other various scenarios.
A first usage scenario: the bluetooth headset remains connected to the handset but the bluetooth headset is not operational. In this scenario, the bluetooth headset may exist in two different states.
1. Normal power consumption state
Illustratively, the handset and the bluetooth headset are connected, but the user does not listen to music, answer a call, etc. through the bluetooth headset (i.e., the bluetooth headset is not operating), and the bluetooth headset can normally send broadcast messages. If the Bluetooth headset falls and is lost, a user can receive a broadcast message of the Bluetooth headset through a mobile phone, obtain model information of the Bluetooth headset through the message, and obtain transmitting power and transmitting antenna gain of the Bluetooth headset based on the model information and reference information. The mobile phone can use the above formula
Figure BDA0003768369100000102
And calculating to obtain the distance between the Bluetooth headset and the Bluetooth headset, and searching the Bluetooth headset.
2. Low power consumption state
Illustratively, the mobile phone is connected with the bluetooth headset, and when the bluetooth headset is not operated (such as playing music) within a preset time period, the bluetooth headset enters a low power consumption state and normally sends a broadcast message. If the Bluetooth headset falls and is lost, a user can receive the broadcast message of the Bluetooth headset through a mobile phone, obtain the model information of the Bluetooth headset through the message, and obtain the transmitting power and the transmitting antenna gain of the Bluetooth headset based on the model information and the reference information. The mobile phone can use the above formula
Figure BDA0003768369100000111
And calculating to obtain the distance between the Bluetooth headset and the Bluetooth headset, and searching the Bluetooth headset.
Second usage scenario: the Bluetooth headset is connected with the mobile phone, and the Bluetooth headset works.
Illustratively, a handset is connected to a bluetooth headset, which plays music (i.e., the bluetooth headset is active) and sends broadcast messages normally. If the Bluetooth earphone falls and is lost, the user can receive the broadcast message of the Bluetooth earphone through the mobile phone and then report the broadcast messageObtaining the model information of the Bluetooth headset, and obtaining the transmitting power and the transmitting antenna gain of the Bluetooth headset based on the model information and the reference information. The mobile phone can use the formula
Figure BDA0003768369100000112
And calculating to obtain the distance between the Bluetooth headset and the Bluetooth headset, and searching the Bluetooth headset.
The third usage scenario: the Bluetooth headset is connected with other terminal equipment except the mobile phone, but does not work. In the same manner as the first usage scenario, in this scenario, the bluetooth headset may have two different states
1. Normal power consumption state
Illustratively, other terminal devices are connected to the bluetooth headset, but the user does not listen to music, answer a call, etc. through the bluetooth headset (i.e., the bluetooth headset is not operating), and the bluetooth headset can normally send broadcast messages. If the user wants to search the Bluetooth headset, the user can receive the broadcast message of the Bluetooth headset through the mobile phone, obtain the model information of the Bluetooth headset through the message, and obtain the transmitting power and the transmitting antenna gain of the Bluetooth headset based on the model information and the reference information. The mobile phone can use the above formula
Figure BDA0003768369100000113
And calculating to obtain the distance between the Bluetooth headset and the Bluetooth headset, and searching the Bluetooth headset.
2. Low power consumption state
Illustratively, the other terminal devices are connected with the bluetooth headset, and when the bluetooth headset does not work (such as playing music) within a preset time period, the bluetooth headset enters a low power consumption state and normally sends a broadcast message. If the user wants to search the Bluetooth headset, the user can receive the broadcast message of the Bluetooth headset through the mobile phone, obtain the model information of the Bluetooth headset through the message, and obtain the transmitting power and the transmitting antenna gain of the Bluetooth headset based on the model information and the reference information. The mobile phone can use the above formula
Figure BDA0003768369100000114
And calculating to obtain the distance between the Bluetooth headset and the Bluetooth headset, and searching the Bluetooth headset.
A fourth usage scenario: the Bluetooth headset is connected with other terminal equipment except the mobile phone, and the Bluetooth headset works.
Illustratively, other terminal devices are connected to a bluetooth headset, which plays music (i.e., the bluetooth headset is working) and sends broadcast messages normally. If the user wants to search the Bluetooth headset, the user can receive the broadcast message of the Bluetooth headset through the mobile phone, obtain the model information of the Bluetooth headset through the message, and obtain the transmitting power and the transmitting antenna gain of the Bluetooth headset based on the model information and the reference information. The mobile phone can use the above formula
Figure BDA0003768369100000115
And calculating to obtain the distance between the Bluetooth headset and the Bluetooth headset, and searching the Bluetooth headset.
Fifth usage scenario: the bluetooth headset is in the on state but not connected with any terminal equipment. Under this use scenario, the bluetooth headset may also have two different states.
1. Normal power consumption state
Illustratively, the bluetooth headset sends a broadcast message, and if the user wants to find the bluetooth headset at this time, the user can receive the broadcast message of the bluetooth headset through the mobile phone, obtain the model information of the bluetooth headset through the message, and obtain the transmission power and the transmission antenna gain of the bluetooth headset based on the model information and the reference information. The mobile phone can use the above formula
Figure BDA0003768369100000116
And calculating the distance between the Bluetooth headset and the Bluetooth headset.
2. Low power consumption state
For example, if the bluetooth headset is not operated within a preset time period, the bluetooth headset may enter a low power consumption state, but may also normally send a broadcast message so as to wake up to connect with at least one terminal device at any time. If the user wants to do soAnd searching the Bluetooth headset, receiving a broadcast message of the Bluetooth headset through a mobile phone, obtaining the model information of the Bluetooth headset through the message, and obtaining the transmitting power and the transmitting antenna gain of the Bluetooth headset based on the model information and the reference information. The mobile phone can use the above formula
Figure BDA0003768369100000121
And calculating the distance between the Bluetooth headset and the Bluetooth headset.
As an alternative embodiment, the method provided by the present application may also search for bluetooth devices in different area ranges.
In the above, the main terminal device is taken as a mobile phone, and the target bluetooth device is taken as a bluetooth headset. The handset may include multiple antennas, such as a first antenna and a second antenna. The signal intensity range which can be received by the first antenna is smaller than the signal intensity range which can be received by the second antenna, the signal intensity range which can be received by the second antenna is smaller than the signal intensity range which can be received when the first antenna and the second antenna work cooperatively, the distance range which can be searched by the first antenna is smaller than the distance range which can be searched by the second antenna, and the distance range which can be searched by the second antenna is smaller than the distance range which can be searched when the first antenna and the second antenna work cooperatively.
It should be understood that the first antenna and the second antenna cooperate to mean that the first antenna and the second antenna form an antenna array, and the first antenna and the second antenna can simultaneously receive the broadcast message during the searching process.
Fig. 6 shows a schematic diagram of an antenna array formed by a first antenna and a second antenna. The first and second antennas may be placed on the left and right sides of the handset, respectively, as shown in fig. 6.
It should be understood that the first antenna and the second antenna may form other antenna arrays in different forms besides the antenna array shown above, and the present application is not limited thereto.
In a possible implementation manner, the mobile phone may determine a target antenna according to an antenna selection policy, and may receive a broadcast message from a bluetooth headset through the target antenna, where the target antenna may be the first antenna, the second antenna, or any one of the first antenna and the second antenna. Wherein the antenna selection strategy comprises: the mobile phone can preferentially take the high-priority antenna as the target antenna, and the priority of the antenna can be determined according to the signal strength range which can be received by the antenna or the searching distance range.
In the first possible case, the larger the signal strength range that the antenna can receive or the larger the distance range that can be searched, the higher the priority of the antenna.
For example, when the signal strength range that the first antenna can receive is smaller than the signal strength range that the second antenna can receive, the signal strength range that the second antenna can receive is smaller than the signal strength range that the first antenna and the second antenna can receive when cooperating, the distance range that the first antenna can search is smaller than the distance range that the second antenna can search, and the distance range that the second antenna can search is smaller than the distance range that the first antenna and the second antenna can search when cooperating, the mobile phone may use the first antenna and the second antenna as the target antenna.
In another possible case, the smaller the signal strength range that the antenna can receive or the smaller the range of distance that can be searched, the higher the priority of the antenna.
For example, when the signal strength range that the first antenna can receive is smaller than the signal strength range that the second antenna can receive, the signal strength range that the second antenna can receive is smaller than the signal strength range that the first antenna and the second antenna can receive when working cooperatively, the distance range that the first antenna can search is smaller than the distance range that the second antenna can search, and the distance range that the second antenna can search is smaller than the distance range that the first antenna and the second antenna can search when working cooperatively, the mobile phone may use the first antenna as the target antenna.
Optionally, in the second possible case, if the mobile phone searches through the first antenna but does not receive the broadcast message of the bluetooth headset, it may be considered that the current bluetooth headset is located at a position farther from the mobile phone, and at this time, the mobile phone may receive the broadcast message of the bluetooth headset again through the second antenna having a lower priority than the first antenna.
Optionally, the mobile phone may determine the target antenna according to its own power consumption.
For example, if the power of the mobile phone is lower than the threshold or in the low power consumption state, the mobile phone may preferentially select a low power consumption antenna (e.g., the first antenna), so as to avoid the influence on the subsequent search of the bluetooth headset due to automatic shutdown of the mobile phone. Or, under the condition that the electric quantity of the mobile phone is higher than the threshold value, the mobile phone can preferentially select the high-power-consumption antennas (such as the first antenna and the second antenna) so as to realize the rapid search and reception of the broadcast message of the bluetooth headset, and further realize the rapid search of the bluetooth headset.
In another possible implementation manner, the target antenna may also be determined according to user requirements.
For example, the handset may display information of the currently available antenna on the interface before the handset searches for a broadcast message from the bluetooth headset.
In the first possible case, the user knows that the bluetooth headset is within a small distance from the user, and the user can select an antenna (e.g., the first antenna) with a small searching distance range or a small signal receiving range on the interface. The mobile phone can receive the broadcast message of the Bluetooth headset by using the first antenna under the condition that the selection instruction of the user is detected, so that the Bluetooth headset can be searched under the condition of lowest power consumption.
In a second possible case, the user knows that the bluetooth headset is within a large distance from himself, and can select an antenna (e.g., the second antenna) on the interface that has a large searching distance range or a large range of signals that can be received. The mobile phone can receive the broadcast message of the Bluetooth headset by using the second antenna under the condition that the selection instruction of the user is detected, so that the Bluetooth headset can be quickly searched, and the problem of antenna switching for many times is avoided.
It should be understood that the above embodiments only describe the method provided in the present application by taking one antenna or two antennas as an example. In addition, the number of the antennas may be three or more, which is not limited in the present application.
Optionally, on the basis of determining the target antenna, the present application may further select a target channel, so as to increase the range of the bluetooth device.
Fig. 7 shows a schematic diagram of the channels of the target antenna described above. As shown in fig. 7, the target antenna may include a first channel and a second channel. The first channel can receive a signal strength range smaller than that of the second channel by arranging an attenuation device in the first channel, the first channel can search a distance range smaller than that of the second channel, and the first channel and the second channel can be switched by a single-pole double-position switch.
For example, if the mobile phone determines that the first antenna is the target antenna, to further reduce power consumption or further narrow the search range, the mobile phone may determine the first channel of the first antenna as the target channel.
For example, if the mobile phone determines the first antenna and the second antenna as the target antennas, in order to further expand the search range, i.e. search for a bluetooth headset with a longer distance, the mobile phone may determine the first channel of the first antenna and the first channel of the second antenna as the target channels.
Optionally, similar to the above-mentioned target antenna selection, the target channel may also be selected based on the user requirement.
For example, before the mobile phone searches for the broadcast message of the bluetooth headset, the mobile phone may also display the channel information of the target antenna on the interface.
Under the first possible condition, the user knows that the bluetooth headset is within a small distance from the user, the user can select a channel (such as a first channel) which is corresponding to the target antenna and has a small searching distance range or a small receiving signal range on the interface, and the mobile phone can receive the broadcast message of the bluetooth headset by using the first channel of the target antenna under the condition of detecting a selection instruction of the user, so that the search of the bluetooth headset is realized while the power consumption is reduced.
In a second possible scenario, the user knows that the bluetooth headset is within a large distance from the user, and the user can select a channel (e.g., the second channel) on the interface, where the target antenna can search for a large distance or can receive a large signal. The mobile phone can receive the broadcast message of the Bluetooth headset by using the second channel of the target antenna under the condition of detecting the selection instruction of the user, so that the Bluetooth headset can be quickly searched, and the problem of switching the antenna or the channel for many times is avoided.
The main terminal device in the embodiment of the application can calculate the distance between the main terminal device and different Bluetooth devices in any use scene, and then the user can search different Bluetooth devices based on the distance.
It should be understood that the above embodiments may be coupled with each other, and the present application is not limited thereto. The sequence numbers of the above processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and internal logic, and should not be limited in any way to the implementation process of the embodiments of the present application.
The method for searching for a bluetooth device according to the embodiment of the present application is described in detail above with reference to fig. 1 to 7, and the apparatus according to the embodiment of the present application is described in detail below with reference to fig. 8 to 10.
Fig. 8 shows an apparatus 800 for searching for a bluetooth device according to an embodiment of the present application. Applied to a main terminal device, the apparatus 800 includes: a receiving module 801 and a processing module 802.
Wherein, the receiving module 801 is configured to: receiving a broadcast message from a target Bluetooth device, wherein the target Bluetooth device is one of the at least one Bluetooth device; the processing module 801 is configured to: calculating to obtain the distance between the target Bluetooth device and the main terminal device based on the broadcast message; the distance between the target Bluetooth device and the main terminal device changes along with the movement of the main terminal device, and the position of the target Bluetooth device is determined under the condition that the distance is smaller than a distance threshold value.
Optionally, the broadcast message includes model information of the target bluetooth device, and the processing module 802 is configured to: determining the transmitting power and the transmitting antenna gain of the target Bluetooth device based on the model information of the target Bluetooth device and the reference data, wherein the reference data comprises the model information, the transmitting power and the transmitting antenna gain of the target Bluetooth device; calculating the distance between the target Bluetooth device and the main terminal device based on the transmitting power and the transmitting antenna gain of the target Bluetooth device; wherein, the broadcast message includes the reference data, or the reference data is optionally pre-stored in the main terminal device, and a distance R between the target bluetooth device and the main terminal device satisfies the following formula:
Figure BDA0003768369100000141
wherein, P r Is the received power, P, of the master terminal device t For the transmission power of the above-mentioned target Bluetooth device, G t Gain of transmitting antenna for the above-mentioned target Bluetooth device, G r λ is a bluetooth band wavelength, which is a receiving antenna gain of the main terminal device.
Optionally, the processing module 802 is configured to: determining the direction of the target Bluetooth device relative to the main terminal device based on the signal strength of the broadcast message; displaying the direction of the target Bluetooth device relative to the main terminal device; in the direction of the target Bluetooth device relative to the main terminal device, the signal strength of the broadcast message received by the main terminal device is increased along with the reduction of the distance between the target Bluetooth device and the main terminal device.
Optionally, the main terminal device includes a first antenna and a second antenna, and the receiving module 801 is configured to: receiving a broadcast message from the target bluetooth device via a target antenna, wherein the target antenna includes the first antenna, the second antenna, or any one of the first antenna and the second antenna; the signal intensity range that the first antenna can receive is smaller than the signal intensity range that the second antenna can receive, the signal intensity range that the second antenna can receive is smaller than the signal intensity range that the first antenna and the second antenna can receive when cooperatively working, the distance range that the first antenna can search is smaller than the distance range that the second antenna can search, and the distance range that the second antenna can search is smaller than the distance range that the first antenna and the second antenna can search when cooperatively working.
Optionally, the target antenna is determined by the master terminal device according to an antenna selection policy, where the antenna selection policy includes: the main terminal device takes the high-priority antenna as a target antenna preferentially; the priority of the antenna is determined according to the signal strength range which can be received by the antenna or the searching distance range.
Optionally, in a case where the main terminal device is in a low power consumption state, the antenna with a smaller range of signal strength that can be received in the first antenna and the second antenna or a smaller range of distance that can be searched is higher in priority.
Optionally, the antenna selection policy further includes: and under the condition that the broadcast message of the target Bluetooth device is not detected through the search of the current antenna, the main terminal device determines the antenna with the priority lower than that of the current antenna as the target antenna.
Optionally, the target antenna includes a first channel and a second channel, and the receiving module 801 is configured to: receiving a broadcast message from the target Bluetooth device through a target channel, wherein the target channel comprises the first channel or the second channel; the signal intensity range that the first channel can receive is smaller than the signal intensity range that the second channel can receive, and the distance range that the first channel can search is smaller than the distance range that the second channel can search.
Optionally, the target channel is determined by the master terminal device according to a channel selection policy, where the channel selection policy includes: the main terminal device takes the high priority channel as a target channel preferentially; wherein, the priority of the channel is determined according to the signal strength range which can be received by the channel or the searching distance range.
Optionally, in a case where the master terminal device is in a low power consumption state, the channel in which the range of the received signal strength in the first channel and the second channel is smaller or the range of the searchable distance is smaller has a higher priority.
Optionally, the channel selection policy further includes: and under the condition that the broadcast message of the target Bluetooth device is not detected in the searching process through the current channel, the main terminal device determines the channel with the priority lower than that of the current channel as the target channel.
It should be appreciated that the apparatus 800 herein is embodied in the form of functional modules. The term module herein may refer to an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality. In an optional example, it may be understood by those skilled in the art that the apparatus 800 may be embodied as a main terminal device in the foregoing embodiment, or the functions of the main terminal device in the foregoing embodiment may be integrated in the apparatus 800, and the apparatus 800 may be configured to execute each procedure and/or step corresponding to the main terminal device in the foregoing method embodiment, and in order to avoid repetition, details are not described here again.
The device 800 has the function of implementing the corresponding steps executed by the main terminal device in the method; the above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
In an embodiment of the present application, the apparatus 800 in fig. 8 may also be a chip or a chip system, for example: system on chip (SoC).
Fig. 9 illustrates an apparatus 900 for searching for a bluetooth device according to an embodiment of the present application. Applied to at least one bluetooth device, the apparatus 900 comprises: a sending module 901 and a processing module 902.
The sending module 901 is configured to: the system is used for sending broadcast messages in a low power consumption state; the processing module 901 is configured to: and entering the low power consumption state under the condition of detecting a shutdown instruction.
Optionally, the at least one bluetooth device comprises a bluetooth headset including a charging chamber or a bluetooth headset without a charging chamber.
It should be appreciated that the apparatus 900 herein is embodied in the form of functional modules. The term module herein may refer to an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality. In an alternative example, it may be understood by those skilled in the art that the apparatus 900 may be embodied as at least one bluetooth device in the foregoing embodiment, or the function of at least one bluetooth device in the foregoing embodiment may be integrated in the apparatus 900, and the apparatus 900 may be configured to execute each process and/or step corresponding to at least one bluetooth device in the foregoing method embodiment, and is not described herein again to avoid repetition.
The device 900 has functions of implementing corresponding steps executed by at least one bluetooth apparatus in the method; the above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
In an embodiment of the present application, the apparatus 900 in fig. 9 may also be a chip or a chip system, for example: system on chip (SoC).
Fig. 10 shows another apparatus 1000 for searching for bluetooth devices according to an embodiment of the present application. The apparatus 1000 is applied to a search system, which further includes a master terminal device and at least one bluetooth device, and includes: a processor 1001 and memory 1002, a communication interface 1003, and a bus 1004. The memory 1002 is used for storing instructions, and the processor 1001 is used for executing the instructions stored in the memory 1002. The processor 1001, the memory 1002, and the communication interface 1003 realize communication connection with each other through a bus 1004.
In a first implementation manner, the apparatus 1000 may be embodied as a master terminal device in the foregoing embodiment, where the processor 1001 is configured to: receiving a broadcast message from a target Bluetooth device, wherein the target Bluetooth device is one of the at least one Bluetooth device; and calculating to obtain the distance between the target Bluetooth device and the main terminal device based on the broadcast message; the distance between the target Bluetooth device and the main terminal device changes along with the movement of the main terminal device, and the position of the target Bluetooth device is determined under the condition that the distance is smaller than a distance threshold value.
In a second implementation manner, the apparatus 1000 may be embodied as at least one bluetooth device in the foregoing embodiment, where the processor 1001 is configured to: sending a broadcast message in a low power consumption state; and the at least one Bluetooth device enters the low power consumption state under the condition of detecting a power-off instruction.
It should be understood that the apparatus 1000 may be embodied as the master terminal device or the at least one bluetooth device in the foregoing embodiments, or the functions of the master terminal device or the at least one bluetooth device in the foregoing embodiments may be integrated in the apparatus 1000, and the apparatus 1000 may be configured to perform each step and/or flow corresponding to the master terminal device or the at least one bluetooth device in the foregoing method embodiments.
The memory 1002 may optionally include both read-only memory and random access memory, and provides instructions and data to the processor 1001. A portion of the memory 1002 may also include non-volatile random access memory. For example, the memory 1002 may also store device type information. The processor 1001 may be configured to execute the instructions stored in the memory, and when the processor executes the instructions, the processor 1001 may perform each step and/or flow corresponding to the master terminal device or the at least one bluetooth device in the above method embodiments.
It should be understood that, in the embodiments of the present application, the processor may be a Central Processing Unit (CPU), and the processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor executes instructions in the memory, in combination with hardware thereof, to perform the steps of the above-described method. To avoid repetition, it is not described in detail here.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a portable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (32)

1. A method for searching Bluetooth equipment, which is applied to a main terminal equipment, is characterized in that the method comprises the following steps:
the main terminal equipment receives a broadcast message from target Bluetooth equipment;
the main terminal device calculates to obtain the distance between the target Bluetooth device and the main terminal device based on the broadcast message;
wherein the distance between the target bluetooth device and the master terminal device changes with the movement of the master terminal device, and the position of the target bluetooth device is determined when the distance is less than a distance threshold.
2. The method according to claim 1, wherein the broadcast packet includes model information of the target bluetooth device, and the calculating, by the master terminal device, a distance between the target bluetooth device and the master terminal device based on the broadcast packet includes:
the master terminal device determines the transmitting power and the transmitting antenna gain of the target Bluetooth device based on the model information and the reference data of the target Bluetooth device, wherein the reference data comprises the model information, the transmitting power and the transmitting antenna gain of the target Bluetooth device;
the main terminal device calculates the distance between the target Bluetooth device and the main terminal device based on the transmitting power and the transmitting antenna gain of the target Bluetooth device;
wherein the broadcast packet includes the reference data, or the reference data is pre-stored by the master terminal device.
3. The method of claim 2, wherein the distance R between the target bluetooth device and the master terminal device satisfies the following equation:
Figure FDA0003768369090000011
wherein, P r Is the received power, P, of the master terminal device t Is the transmission power of the target Bluetooth device, G t Gain of transmitting antenna for the target Bluetooth device, G r And the lambda is the wavelength of the Bluetooth wave band.
4. The method according to any one of claims 1 to 3, further comprising: the main terminal equipment determines the direction of the target Bluetooth equipment relative to the main terminal equipment based on the signal strength of the broadcast message;
the main terminal device displays the direction of the target Bluetooth device relative to the main terminal device;
in the direction of the target bluetooth device relative to the master terminal device, the signal strength of the broadcast message received by the master terminal device increases as the distance between the target bluetooth device and the master terminal device decreases.
5. The method of claim 1, wherein the master end-point device comprises a first antenna and a second antenna, and wherein the master end-point device receives the broadcast message from the target bluetooth device, and comprises:
the main terminal equipment receives a broadcast message from the target Bluetooth equipment through a target antenna, wherein the target antenna comprises the first antenna, the second antenna or any one of the first antenna and the second antenna;
the signal intensity range which can be received by the first antenna is smaller than the signal intensity range which can be received by the second antenna, the signal intensity range which can be received by the second antenna is smaller than the signal intensity range which can be received when the first antenna and the second antenna work cooperatively, the distance range which can be searched by the first antenna is smaller than the distance range which can be searched by the second antenna, and the distance range which can be searched by the second antenna is smaller than the distance range which can be searched when the first antenna and the second antenna work cooperatively.
6. The method of claim 5, wherein the target antenna is determined by the master terminal device according to an antenna selection policy, wherein the antenna selection policy comprises:
the main terminal device takes a high-priority antenna as the target antenna preferentially;
the priority of the antenna is determined according to the signal strength range which can be received by the antenna or the searching distance range.
7. The method of claim 6, wherein the antenna with the smaller range of signal strength or the smaller range of distance that can be searched for in the first antenna and the second antenna has higher priority when the master terminal device is in a low power consumption state.
8. The method of claim 6, wherein the antenna selection strategy further comprises:
and under the condition that the broadcast message of the target Bluetooth device is searched through the current antenna but not detected, the terminal device determines the antenna with the priority lower than that of the current antenna as the target antenna.
9. The method according to any one of claims 5 to 8, wherein the target antenna comprises a first channel and a second channel, and the master terminal device receives the broadcast message from the target bluetooth device through the target antenna, comprising:
the main terminal equipment receives a broadcast message from the target Bluetooth equipment through a target channel, wherein the target channel comprises the first channel or the second channel;
the signal intensity range which can be received by the first channel is smaller than the signal intensity range which can be received by the second channel, and the distance range which can be searched by the first channel is smaller than the distance range which can be searched by the second channel.
10. The method of claim 9, wherein the target channel is determined by the master end-point device according to a channel selection policy, the channel selection policy comprising:
the main terminal device preferentially takes a high-priority channel as the target channel;
wherein, the priority of the channel is determined according to the signal strength range which can be received by the channel or the searching distance range.
11. The method according to claim 9, wherein the channel priority is higher when the master terminal device is in a low power consumption state, and the first channel and the second channel have a smaller range of receivable signal strengths or a smaller range of searchable distances.
12. The method of claim 10, wherein the channel selection policy further comprises:
and under the condition that the broadcast message of the target Bluetooth device is searched through the current channel but not detected, the terminal device determines the channel with the priority lower than that of the current channel as the target channel.
13. A method for searching for bluetooth devices, applied to at least one bluetooth device, the method comprising:
the at least one Bluetooth device sends a broadcast message in a low power consumption state;
and the at least one Bluetooth device enters the low power consumption state under the condition of detecting a power-off instruction.
14. The method of claim 13, wherein the at least one bluetooth device comprises a bluetooth headset having a charging bin or a bluetooth headset without a charging bin.
15. A method for searching Bluetooth devices, applied to a search system, the search system comprising: a master terminal device and at least one bluetooth device, the method comprising:
a target Bluetooth device sends a broadcast message, wherein the target Bluetooth device is one of the at least one Bluetooth device;
the main terminal equipment receives a broadcast message from the target Bluetooth equipment;
the main terminal device calculates to obtain the distance between the target Bluetooth device and the main terminal device based on the broadcast message;
the distance between the target Bluetooth device and the main terminal device changes along with the movement of the main terminal device, and the position of the target Bluetooth device is determined under the condition that the distance is smaller than a distance threshold value.
16. An apparatus for searching Bluetooth devices, applied to a main terminal device, the apparatus comprising:
a receiving module, configured to receive a broadcast packet from a target bluetooth device, where the target bluetooth device is one of the at least one bluetooth device;
the processing module is used for calculating and obtaining the distance between the target Bluetooth device and the main terminal device based on the broadcast message;
wherein the distance between the target bluetooth device and the master terminal device changes with the movement of the master terminal device, and the position of the target bluetooth device is determined when the distance is less than a distance threshold.
17. The apparatus of claim 16, wherein the broadcast packet comprises model information of the target bluetooth device, and wherein the processing module is configured to:
determining the transmitting power and the transmitting antenna gain of the target Bluetooth device based on the model information of the target Bluetooth device and the reference data, wherein the reference data comprises the model information, the transmitting power and the transmitting antenna gain of the target Bluetooth device;
calculating to obtain the distance between the target Bluetooth device and the main terminal device based on the transmitting power and the transmitting antenna gain of the target Bluetooth device;
wherein the broadcast packet includes the reference data, or the reference data is pre-stored by the master terminal device.
18. The apparatus of claim 17, wherein the distance R between the target bluetooth device and the master terminal device satisfies the following equation:
Figure FDA0003768369090000031
wherein, P r Is the received power, P, of the master terminal device t Is the transmission power of the target Bluetooth device, G t Gain of transmitting antenna for the target Bluetooth device, G r And the lambda is the wavelength of the Bluetooth wave band.
19. The apparatus of any one of claims 16 to 18, wherein the processing module is configured to:
determining the direction of the target Bluetooth device relative to the main terminal device based on the signal strength of the broadcast message;
displaying the direction of the target Bluetooth device relative to the main terminal device;
in the direction of the target bluetooth device relative to the master terminal device, the signal strength of the broadcast message received by the master terminal device is increased as the distance between the target bluetooth device and the master terminal device decreases.
20. The apparatus of claim 16, wherein the master terminal device comprises a first antenna and a second antenna, and wherein the receiving module is configured to:
receiving a broadcast message from the target Bluetooth device through a target antenna, wherein the target antenna comprises the first antenna, the second antenna, or any one of the first antenna and the second antenna;
the signal intensity range which can be received by the first antenna is smaller than the signal intensity range which can be received by the second antenna, the signal intensity range which can be received by the second antenna is smaller than the signal intensity range which can be received when the first antenna and the second antenna work cooperatively, the distance range which can be searched by the first antenna is smaller than the distance range which can be searched by the second antenna, and the distance range which can be searched by the second antenna is smaller than the distance range which can be searched when the first antenna and the second antenna work cooperatively.
21. The apparatus of claim 20, wherein the target antenna is determined by the master terminal device according to an antenna selection policy, wherein the antenna selection policy comprises:
the main terminal device takes a high-priority antenna as the target antenna preferentially;
the priority of the antenna is determined according to the signal strength range which can be received by the antenna or the searching distance range.
22. The apparatus of claim 21, wherein the antenna with the smaller receivable signal strength range or the smaller searchable distance range in the first antenna and the second antenna has higher priority when the master terminal device is in a low power consumption state.
23. The apparatus of claim 20, wherein the antenna selection strategy further comprises: and under the condition that the broadcast message of the target Bluetooth device is not detected through the search of the current antenna, the main terminal device determines the antenna with the priority lower than that of the current antenna as the target antenna.
24. The apparatus of any of claims 16 to 23, wherein the target antenna comprises a first channel and a second channel, and wherein the receiving module is configured to:
receiving a broadcast message from the target Bluetooth device through a target channel, wherein the target channel comprises the first channel or the second channel;
the signal intensity range which can be received by the first channel is smaller than the signal intensity range which can be received by the second channel, and the distance range which can be searched by the first channel is smaller than the distance range which can be searched by the second channel.
25. The apparatus of claim 24, wherein the target channel is determined by the master end-point device according to a channel selection policy, wherein the channel selection policy comprises:
the main terminal device preferentially takes a high-priority channel as the target channel;
wherein, the priority of the channel is determined according to the signal strength range which can be received by the channel or the searching distance range.
26. The apparatus of claim 25, wherein the channel priority is higher when the master terminal device is in a low power consumption state, and wherein the first channel and the second channel have a smaller range of receivable signal strengths or a smaller range of searchable distances.
27. The apparatus of claim 25, wherein the channel selection policy further comprises:
and under the condition that the broadcast message of the target Bluetooth device is not detected in the searching through the current channel, the main terminal device determines the channel with the priority lower than that of the current channel as the target channel.
28. An apparatus for searching for bluetooth devices, applied to at least one bluetooth device, the apparatus comprising:
the sending module is used for sending the broadcast message in a low power consumption state;
the processing module is used for entering the low power consumption state under the condition that a shutdown instruction is detected.
29. The apparatus of claim 28, wherein the at least one bluetooth device comprises a bluetooth headset having a charging chamber or a bluetooth headset without a charging chamber.
30. An apparatus for searching for a bluetooth device, comprising a processor and a memory, the memory for storing code instructions; the processor is configured to execute the code instructions to perform the method of any of claims 1 to 15.
31. A computer-readable storage medium for storing a computer program comprising instructions for implementing the method of any one of claims 1 to 15.
32. A computer program product comprising computer program code which, when run on a computer, causes the computer to carry out the method according to any one of claims 1 to 15.
CN202210893165.0A 2022-07-27 2022-07-27 Method and device for searching Bluetooth device Pending CN115065931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210893165.0A CN115065931A (en) 2022-07-27 2022-07-27 Method and device for searching Bluetooth device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210893165.0A CN115065931A (en) 2022-07-27 2022-07-27 Method and device for searching Bluetooth device

Publications (1)

Publication Number Publication Date
CN115065931A true CN115065931A (en) 2022-09-16

Family

ID=83205724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210893165.0A Pending CN115065931A (en) 2022-07-27 2022-07-27 Method and device for searching Bluetooth device

Country Status (1)

Country Link
CN (1) CN115065931A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116668940A (en) * 2022-10-31 2023-08-29 荣耀终端有限公司 Bluetooth device positioning method, electronic device, storage medium and program product

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306109A (en) * 2015-09-17 2016-02-03 北京自在科技有限责任公司 Bluetooth low-power consumption equipment and Bluetooth low-power consumption equipment antenna switching method
CN106912003A (en) * 2017-02-22 2017-06-30 上海斐讯数据通信技术有限公司 A kind of short distance hunting system and object method for searching
CN108738008A (en) * 2018-07-10 2018-11-02 深圳市闻耀电子科技有限公司 Bluetooth pairing methods and system
CN108882176A (en) * 2018-08-31 2018-11-23 上海与德科技有限公司 The acquisition methods and report method of position
CN109496437A (en) * 2017-05-08 2019-03-19 深圳市汇顶科技股份有限公司 Localization method and its device based on bluetooth BLE
CN110972059A (en) * 2019-12-04 2020-04-07 深圳传音控股股份有限公司 Wireless device retrieving method, mobile terminal and computer storage medium
CN111586588A (en) * 2020-04-01 2020-08-25 佛山市拓拓网络科技有限公司 Positioning method and system of smart watch
CN113194371A (en) * 2021-04-23 2021-07-30 深圳市傲声智能有限公司 Wireless earphone retrieving method and device and computer storage medium
WO2021196577A1 (en) * 2020-03-30 2021-10-07 歌尔股份有限公司 Bluetooth earphone connection switching method, apparatus and device, and storage medium
CN114286442A (en) * 2022-01-24 2022-04-05 杭州涂鸦信息技术有限公司 Positioning method, control method of device to be positioned, mobile device and storage medium
CN114666694A (en) * 2020-12-22 2022-06-24 华为技术有限公司 Bluetooth headset loss prevention method and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306109A (en) * 2015-09-17 2016-02-03 北京自在科技有限责任公司 Bluetooth low-power consumption equipment and Bluetooth low-power consumption equipment antenna switching method
CN106912003A (en) * 2017-02-22 2017-06-30 上海斐讯数据通信技术有限公司 A kind of short distance hunting system and object method for searching
CN109496437A (en) * 2017-05-08 2019-03-19 深圳市汇顶科技股份有限公司 Localization method and its device based on bluetooth BLE
CN108738008A (en) * 2018-07-10 2018-11-02 深圳市闻耀电子科技有限公司 Bluetooth pairing methods and system
CN108882176A (en) * 2018-08-31 2018-11-23 上海与德科技有限公司 The acquisition methods and report method of position
CN110972059A (en) * 2019-12-04 2020-04-07 深圳传音控股股份有限公司 Wireless device retrieving method, mobile terminal and computer storage medium
WO2021196577A1 (en) * 2020-03-30 2021-10-07 歌尔股份有限公司 Bluetooth earphone connection switching method, apparatus and device, and storage medium
CN111586588A (en) * 2020-04-01 2020-08-25 佛山市拓拓网络科技有限公司 Positioning method and system of smart watch
CN114666694A (en) * 2020-12-22 2022-06-24 华为技术有限公司 Bluetooth headset loss prevention method and electronic equipment
CN113194371A (en) * 2021-04-23 2021-07-30 深圳市傲声智能有限公司 Wireless earphone retrieving method and device and computer storage medium
CN114286442A (en) * 2022-01-24 2022-04-05 杭州涂鸦信息技术有限公司 Positioning method, control method of device to be positioned, mobile device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116668940A (en) * 2022-10-31 2023-08-29 荣耀终端有限公司 Bluetooth device positioning method, electronic device, storage medium and program product
CN116668940B (en) * 2022-10-31 2024-04-12 荣耀终端有限公司 Bluetooth device positioning method, electronic device, storage medium and program product

Similar Documents

Publication Publication Date Title
CN110149132B (en) Transmitting antenna switching method and terminal equipment
US20200404616A1 (en) Paging synchronization indication method and device, paging synchronization method and device, and base station
CN107896119B (en) Antenna sharing circuit and mobile terminal
US12063606B2 (en) SSB transmission indication method and apparatus, terminal, device, and medium
CN108781410B (en) Scanning method and device
CN112769445B (en) Radio frequency circuit, signal transmitting method and electronic equipment
US20100120364A1 (en) Apparatus and method for obtaining information on bluetooth devices in a computing device using bluetooth
CN112262532B (en) Method for improving MIMO throughput direction by increasing radio frequency path and terminal equipment
US20220061096A1 (en) Wifi Channel Interference Resolution Method and Related Product
US9549387B2 (en) Techniques for reducing interference in communications using conducted RF links
CN115065931A (en) Method and device for searching Bluetooth device
CN113747346A (en) Standby method of terminal equipment and terminal equipment
CN112468270B (en) Information indication method and communication device
US9838979B2 (en) Power efficient wireless network detection
AU2007267943B2 (en) Power efficient wireless network detection
CN107592132B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
CN113296664A (en) Screen resolution adjusting method and device, terminal equipment and storage medium
CN114666744B (en) Method, device, equipment, storage medium and product for connecting near field communication equipment
CN110365357B (en) Signal processing method and device and storage medium
CN112261634B (en) Bluetooth transmission control method and device, terminal equipment and storage medium
US20230180175A1 (en) Positioning measurement method, positioning measurement apparatus and storage medium
CN111835484B (en) COT indication method, terminal and network side equipment
RU2775830C1 (en) Method and device for indicating ssb block transmission, terminal device, network device and information carrier
US12074635B2 (en) Method for operating ultra wideband signal and electronic device
CN113014998B (en) Audio output method, device, television and computer readable storage medium

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