CN116233733A - Distance measuring method, device and storage medium based on Bluetooth signals - Google Patents

Distance measuring method, device and storage medium based on Bluetooth signals Download PDF

Info

Publication number
CN116233733A
CN116233733A CN202211707405.XA CN202211707405A CN116233733A CN 116233733 A CN116233733 A CN 116233733A CN 202211707405 A CN202211707405 A CN 202211707405A CN 116233733 A CN116233733 A CN 116233733A
Authority
CN
China
Prior art keywords
bluetooth
distance
equipment
bluetooth signal
signal
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
CN202211707405.XA
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.)
Shenzhen Kaihong Digital Industry Development Co Ltd
Original Assignee
Shenzhen Kaihong Digital Industry Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kaihong Digital Industry Development Co Ltd filed Critical Shenzhen Kaihong Digital Industry Development Co Ltd
Priority to CN202211707405.XA priority Critical patent/CN116233733A/en
Publication of CN116233733A publication Critical patent/CN116233733A/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
    • 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/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)
  • Radar Systems Or Details Thereof (AREA)

Abstract

The application relates to the field of wireless communication, and provides a distance measurement method, device and computer storage medium based on Bluetooth, wherein the method comprises the following steps: receiving a first Bluetooth signal sent by second equipment to obtain at least one first signal intensity; if the first signal strength does not meet the preset ranging condition, transmitting a transfer instruction to the second equipment to instruct the second equipment to transmit a second Bluetooth signal to the transfer equipment, wherein the second Bluetooth signal is used for determining first distance information between the transfer equipment and the second equipment; and determining a target distance between the first equipment and the second equipment according to the second distance information of the first equipment and the transit equipment and the first distance information. The Bluetooth signal transfer is carried out through the transfer equipment, so that the influence of shielding between the first equipment and the second equipment on the distance measurement is reduced, and the accuracy of Bluetooth distance measurement and the universality of application scenes are improved.

Description

Distance measuring method, device and storage medium based on Bluetooth signals
Technical Field
The present disclosure relates to the field of wireless communications technologies, and in particular, to a distance measurement method, device, and storage medium based on bluetooth signals.
Background
According to the characteristic that the Bluetooth signal decays along with the propagation distance, the distance between the transmitting equipment and the receiving equipment can be determined through the attenuation degree of the Bluetooth signal. However, in practical applications, various forms of obstructions exist between the transmitting device and the receiving device, which affect the propagation of bluetooth signals, resulting in reduced accuracy of ranging of bluetooth signals. Therefore, a technical solution for avoiding the interference of the bluetooth signal in the bluetooth signal ranging process is needed.
Disclosure of Invention
The main object of the present application is to provide a distance measurement method, a device and a computer storage medium based on bluetooth, which aim to reduce the influence of shielding between a first device and a second device on bluetooth ranging.
In a first aspect, the present application provides a bluetooth-based distance measurement method, applied to a first device, including the following steps:
receiving a first Bluetooth signal sent by second equipment to obtain at least one first signal intensity;
if the first signal strength does not meet the preset ranging condition, transmitting a transfer instruction to the second equipment to instruct the second equipment to transmit a second Bluetooth signal to the transfer equipment, wherein the second Bluetooth signal is used for determining first distance information between the transfer equipment and the second equipment;
and determining a target distance between the first equipment and the second equipment according to the second distance information of the first equipment and the transit equipment and the first distance information.
In a second aspect, the present application further provides another bluetooth-based distance measurement method applied to a second device, including the steps of:
transmitting a fifth Bluetooth signal to the first device at least one preset transmission power;
if a transfer instruction sent by the first device is received, determining transfer devices from candidate Bluetooth devices based on a preset device traversal algorithm;
and transmitting a sixth Bluetooth signal to the transfer device, so that the transfer device determines third distance information between the transfer device and the second device according to the sixth Bluetooth signal and determines a target distance between the first device and the second device according to the third distance information.
In a third aspect, the present application also provides a bluetooth-based distance measurement device, the computer device comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements any of the bluetooth-based distance measurement methods as described above.
In a fourth aspect, the present application further provides a computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements any of the bluetooth-based distance measurement methods as described above.
The application provides a distance measuring method, device and computer storage medium based on Bluetooth, wherein at least one first signal strength is obtained by receiving a first Bluetooth signal sent by second equipment; if the first signal strength does not meet the preset ranging condition, transmitting a transfer instruction to the second equipment to instruct the second equipment to transmit a second Bluetooth signal to the transfer equipment, wherein the second Bluetooth signal is used for determining first distance information between the transfer equipment and the second equipment; and determining a target distance between the first equipment and the second equipment according to the second distance information of the first equipment and the transit equipment and the first distance information. Because the second equipment is indicated to transfer the Bluetooth signal through the transfer equipment under the condition that shielding exists between the first equipment and the second equipment, the influence of shielding between the first equipment and the second equipment on Bluetooth ranging is reduced, accurate ranging can be performed through the Bluetooth signal under the condition that shielding exists between the first equipment and the second equipment, and the universality of the Bluetooth ranging application scene is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a bluetooth-based distance measurement method according to an embodiment of the present application;
FIG. 2 is a diagram of a usage scenario of a Bluetooth-based distance measurement method according to an embodiment of the present application;
FIG. 3 is a diagram of another usage scenario of a Bluetooth-based distance measurement method according to an embodiment of the present application;
fig. 4 is a schematic flow chart of another bluetooth-based distance measurement method according to an embodiment of the present application;
FIG. 5 is a diagram of a usage scenario of a Bluetooth-based distance measurement method according to an embodiment of the present application;
fig. 6 is a schematic block diagram of a bluetooth-based distance measurement device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
The embodiment of the application provides a distance measuring method, device and computer readable storage medium based on Bluetooth.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a flow chart of a bluetooth-based distance measurement method according to an embodiment of the present application. The Bluetooth-based distance measurement method is applied to the first device so as to measure the distance between the first device and the second device through the first device. The first device, the second device, and the transfer device may be electronic devices such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device with bluetooth function, which is not limited herein.
Referring to fig. 2 and 3, fig. 2 and 3 are usage patterns of a bluetooth-based distance measurement method according to an embodiment of the present application. As shown in fig. 2 and 3, in the case that the first device determines that there is an occlusion between the first device and the second device, a transfer instruction may be sent to the second device, to instruct the second device to send a bluetooth signal, the influence of the occlusion on the bluetooth signal is avoided by the transfer device, and the first device may determine the distance between the first device and the second device through interaction with the transfer device. It will be appreciated that the first device, the second device, and the relay device may be different types of electronic devices, or may be the same type of electronic device, and the first device, the second device, and the relay device shown in fig. 2 are only for illustration, and are not limited to the types of devices.
As shown in fig. 1, the bluetooth-based distance measurement method includes steps S101 to S103.
Step S101, receiving a first Bluetooth signal sent by a second device, and obtaining at least one first signal intensity.
For example, if there is no occlusion between the first device and the second device, the first device may determine the distance between the first device and the second device according to the attenuation condition of the signal strength by acquiring the first signal strength of the first bluetooth signal. Specifically, the distance between the second device and the first device may be determined according to the signal strength of the scanned bluetooth signal based on the relationship between the following signal strengths and distances:
Figure BDA0004021022930000041
wherein, A is the signal intensity at a preset distance, which may be, for example, 1 meter; n is the environmental attenuation factor corresponding to the current environment, and can be adjusted according to the environmental temperature, propagation medium and other factors. Under the condition that A and n are determined, the distance d between the first device and the second device can be determined according to the received RSSI (received signal strength) of the Bluetooth, which is not described herein.
For example, the distance information and the distance estimation value in the embodiment of the present invention may be determined by the above method, which is not limited to the above method, and is not limited to the above method.
For example, if there is a shielding between the first device and the second device, the first signal strength acquired by the first device will not meet the preset ranging condition, and at this time, the first device can send a transfer instruction to the second device, so as to perform bluetooth ranging through the transfer device.
In an exemplary embodiment, when receiving the first bluetooth signal of the second device, at least one first bluetooth signal sent by the second device is received through a preset receiving power, so as to obtain at least one first signal strength corresponding to the at least one first bluetooth signal.
Step S102, if the first signal strength does not meet the preset ranging condition, a transfer instruction is sent to the second device to instruct the second device to send a second Bluetooth signal to the transfer device, wherein the second Bluetooth signal is used for determining first distance information between the transfer device and the second device.
By analyzing the signal strength of the first bluetooth signal sent by the second device, whether shielding exists between the first device and the second device or not can be determined, so that whether a transfer instruction is sent to the second device or not can be determined according to actual conditions, the bluetooth ranging process can be adapted to the actual environment, and the accuracy of bluetooth ranging is improved.
For example, if it is determined that there is an occlusion between the first device and the second device, the second device is instructed to send a second bluetooth signal to the relay device through the relay instruction, so that the relay device determines a distance between the second device and the second device according to the second bluetooth signal. It will be appreciated that the degree of occlusion between the second device and the relay device is less than the degree of occlusion between the first device and the second device.
In some embodiments, the sending, if the first signal strength does not meet the preset ranging condition, a transfer instruction to the second device includes: determining at least one first distance estimate based on at least one of the first signal strengths; and if the variance of the first distance presumption value is larger than a preset threshold value, transmitting a transfer instruction to the second equipment, wherein the first Bluetooth signal is a Bluetooth signal transmitted by the second Bluetooth equipment with at least one preset transmitting power.
The first device receives at least one first bluetooth signal transmitted by the second device based on different transmission powers at a constant reception power, resulting in at least one first signal strength. If the first Bluetooth signal is not shielded in the process of propagation, the first distance presumption value obtained by the first equipment according to the first signal strength of the first Bluetooth signals with different transmission powers should be close to each other; otherwise, if the first bluetooth signal is blocked in the propagation process, the first distance estimated value calculated by the first device according to the first signal strengths of the first bluetooth signals with different transmission powers will have larger fluctuation. Thus, it may be determined whether the first bluetooth signal is blocked during propagation, i.e. whether there is a blocking between the first device and the second device, according to the magnitude of the variance of the first distance estimate.
For example, if the variance of the first distance presumption value is greater than the preset threshold, which indicates that there is a large fluctuation in the first signal strength, there is a shielding between the first device and the second device, bluetooth ranging between the first device and the second device needs to be performed through the transfer device, and the first device is controlled to send a transfer instruction to the second device.
Step S103, determining a target distance between the first device and the second device according to second distance information of the first device and the transit device and the first distance information.
For example, since the second device performs bluetooth interaction with the relay device based on the relay instruction, the first distance information between the second device and the relay device can be determined, and only the second distance information between the first device and the relay device needs to be determined, the target distance between the first device and the second device can be determined according to the first distance information and the second distance information.
The target distance may be determined by the first device, or may be determined by the relay device and then sent to the first device, which is not limited herein.
In some embodiments, the determining the target distance between the first device and the second device according to the second distance information of the first device and the transit device and the first distance information includes: and acquiring a third Bluetooth signal sent by the transfer equipment, determining the first distance information according to the distance information carried in the third Bluetooth signal, and determining the second distance information according to the signal strength of the third Bluetooth signal.
As shown in fig. 2, after determining the first distance information between the relay device and the second device according to the second bluetooth signal sent by the second device, the relay device sends the first distance information to the first device through the third bluetooth signal. At this time, the first device determines second distance information between the first device and the transfer device according to the attenuation degree of the third bluetooth signal sent by the transfer device, and determines a target distance between the first device and the second device according to the second distance information and the first distance information carried by the third bluetooth signal.
In some embodiments, the determining the target distance between the first device and the second device according to the second distance information of the first device and the transit device and the first distance information includes: and sending a fourth Bluetooth signal to the transfer equipment, so that the transfer equipment determines second distance information with the first equipment according to the fourth Bluetooth signal.
As shown in fig. 3, calculating the target distance may also be accomplished by the relay device. The transit device determines second distance information between the transit device and the first device according to the attenuation degree of the fourth Bluetooth signal sent by the first device, and then determines a target distance between the first device and the second device according to the first distance information determined in step S102.
Illustratively, the relay device can send the calculated target distance to the first device.
By way of example, since the transfer device and the first device can both perform calculation of the target distance, the first device can instruct the transfer device to calculate the target distance when the calculation pressure is high, so that the calculation pressure of the first device is reduced, and the rationality and flexibility of the distribution of the Bluetooth ranging calculation amount are improved.
In some embodiments, the first distance information includes: a first distance value and a first relative direction between the second device and the transit device, the second distance information comprising: a second distance value and a second relative direction between the first device and the transit device; the determining, according to the second distance information of the first device and the transit device and the first distance information, a target distance between the first device and the second device includes: and determining the target distance according to the included angle between the first opposite direction and the second opposite direction, the first distance value and the second distance value.
By way of example, not only the distance but also the angle between the devices can be detected by bluetooth signals between the devices. Specifically, for example, an Angle of arrival (AoA) measurement technique is used to determine an Angle formed by the bluetooth signal transmitter and the receiver, which is not described herein.
By way of example, determining the distance value and angle in the first distance information and the second distance information enables calculation of the target distance between the first device and the second device. Specifically, for example, the first distance information and the second distance information are respectively used as vectors, and a module of vector addition (or subtraction) is calculated by cosine theorem, which is not described herein.
Referring to fig. 4, fig. 4 is a flowchart of another bluetooth-based distance measurement method according to an embodiment of the present application. The Bluetooth-based distance measurement method is applied to the second device so as to measure the distance between the first device and the second device by sending Bluetooth signals to the transit device. The first device, the second device, and the transfer device may be electronic devices such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device with bluetooth function, which is not limited herein.
Referring to fig. 5, fig. 5 is a usage scenario diagram of another bluetooth-based distance measurement method according to an embodiment of the present application. As shown in fig. 5, the second device can interact with the candidate device according to the received transfer instruction, determine the candidate device as the transfer device, and send a bluetooth signal to the transfer device, so as to determine the distance between the second device and the transfer device, and further determine the distance between the first device and the second device. It will be appreciated that the second device and each candidate bluetooth device may be different types of electronic devices, or may be the same type of electronic device, and the second device and each candidate bluetooth device shown in fig. 5 are only for illustration, and are not limited to the type or number of devices.
As shown in fig. 4, the bluetooth-based distance measurement method includes steps S201 to S203.
Step S201, transmitting a fifth bluetooth signal to the first device with at least one preset transmission power.
The second device sends a fifth bluetooth signal to the first device with at least one preset sending power, so that the first device determines whether an occlusion exists between the first device and the second device according to the fifth bluetooth signal, and sends a transfer instruction to the second device if the occlusion is determined to exist.
Step S202, if a transfer instruction sent by the first device is received, determining transfer devices from candidate Bluetooth devices based on a preset device traversal algorithm.
For example, if the second device receives the transfer instruction sent by the first device, the first device is identified to determine that there is a shielding between the first device and the second device, and the second device needs to select the transfer device from the candidate bluetooth devices.
By way of example, many different electronic devices may have bluetooth communication capabilities, and the second device may be in an environment where there are more than two candidate bluetooth devices that can act as transit devices. Specifically, the second device can traverse each candidate bluetooth device through a preset device traversal algorithm to determine the candidate bluetooth device as the transit device.
In some embodiments, if the transfer instruction sent by the first device is received, determining, based on a preset device traversal algorithm, a transfer device from among candidate bluetooth devices includes: transmitting a Bluetooth signal request to the candidate Bluetooth device; receiving at least one seventh Bluetooth signal sent by each candidate Bluetooth device respectively; and determining candidate Bluetooth equipment serving as the transit equipment according to the second signal strength of the seventh Bluetooth signal.
As shown in fig. 5, the second device sends bluetooth request signals to the bluetooth candidate device 1, the bluetooth candidate device 2, the bluetooth candidate device 3, and the bluetooth candidate device 4, respectively, and receives at least one seventh bluetooth signal returned by each bluetooth candidate device, respectively.
It will be appreciated that in order to avoid interference between signals, the bluetooth request signal 1, the bluetooth request signal 2, the bluetooth request signal 3, and the bluetooth request signal 4 are transmitted at different times, and that at least one seventh bluetooth signal 1, at least one seventh bluetooth signal 2, at least one seventh bluetooth signal 3, and at least one seventh bluetooth signal 4 are received at different times.
Illustratively, the second device determines the candidate bluetooth signal as the transit device based on a second signal strength of a seventh bluetooth signal returned by each candidate bluetooth device.
In some embodiments, the determining a candidate bluetooth device as the transit device according to the second signal strength of the seventh bluetooth signal includes: determining at least one second distance presumption value corresponding to each candidate Bluetooth device according to at least one second signal intensity corresponding to each candidate Bluetooth device; determining the transit equipment from the candidate Bluetooth equipment according to the variance of at least one second distance presumption value corresponding to each Bluetooth equipment; wherein the seventh bluetooth signal is a bluetooth signal transmitted by each candidate bluetooth device at least one preset transmission power.
In an exemplary embodiment, each candidate device transmits at least one seventh bluetooth signal to the second device at least one preset transmission power, and the second device determines at least one second distance estimate from each candidate bluetooth device according to at least one second signal strength of the candidate bluetooth device.
It will be appreciated that the second device determines a set of second range projection data for the candidate bluetooth device 1, a set of second range projection data … … for the candidate bluetooth device 2, and so on, each set of second range projection data comprising at least one second range projection value.
The method includes that according to the variance of at least one second distance presumption value corresponding to each bluetooth device, determining the transit device from the candidate bluetooth devices, and selecting the candidate bluetooth device with the smallest variance of the second distance presumption value as the transit device after traversing all candidate bluetooth devices; in the process of traversing the candidate bluetooth devices, the candidate bluetooth devices with the second distance presumption value variance smaller than the preset variance can be directly determined as transit devices, which is not limited herein.
Step S203, a sixth bluetooth signal is sent to the relay device, so that the relay device determines third distance information between the relay device and the second device according to the sixth bluetooth signal, and determines a target distance between the first device and the second device according to the third distance information.
The second device, after determining the transit device, sends a sixth bluetooth signal to the transit device, so that the transit device determines third distance information between the second device and the second device according to the sixth bluetooth signal.
The target distance between the first device and the second device may be determined by the relay device or the first device according to the third distance information, which is not limited herein.
In some embodiments, the sending a sixth bluetooth signal to the relay device includes: transmitting the sixth Bluetooth signal to the transfer equipment, wherein the sixth Bluetooth signal carries fourth distance information; wherein the fourth distance information includes: and the third device is a Bluetooth device for transmitting Bluetooth signals to the second device.
The second device may be, for example, a relay device of the previous device. Specifically, the bluetooth ranging process may be performed through two or more times of relay, which is not limited herein.
For example, if the second device is a transit device of the third device, the second device may carry fourth distance information between the second device and the third device in a sixth bluetooth signal, and send the fourth distance information to the transit device of the second device, so as to finally determine the distance between the first device and the third device.
The distance measuring method based on the bluetooth signal provided in the embodiment of the present application may further include more devices, which is not limited herein.
According to the distance measuring method based on the Bluetooth signals, at least one first signal strength is obtained by receiving the first Bluetooth signals sent by the second equipment; if the first signal strength does not meet the preset ranging condition, transmitting a transfer instruction to the second equipment to instruct the second equipment to transmit a second Bluetooth signal to the transfer equipment, wherein the second Bluetooth signal is used for determining first distance information between the transfer equipment and the second equipment; and determining a target distance between the first equipment and the second equipment according to the second distance information of the first equipment and the transit equipment and the first distance information. Because the second equipment is indicated to transfer the Bluetooth signal through the transfer equipment under the condition that shielding exists between the first equipment and the second equipment, the influence of shielding between the first equipment and the second equipment on Bluetooth ranging is reduced, accurate ranging can be performed through the Bluetooth signal under the condition that shielding exists between the first equipment and the second equipment, and the universality of the Bluetooth ranging application scene is improved.
It should be noted that, for convenience and brevity of description, specific working processes of the above-described apparatus and each module, unit may refer to corresponding processes in the foregoing method embodiments, which are not repeated herein.
The methods and apparatus of the present application are operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The above-described methods, apparatus may be implemented, for example, in the form of a computer program that is operable on a bluetooth-based distance measuring device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of a bluetooth-based distance measurement device according to an embodiment of the present application. The bluetooth-based distance measuring device may be a server or a terminal.
As shown in fig. 6, the bluetooth-based distance measuring device includes a processor, a memory, and a network interface connected through a system bus, wherein the memory may include a storage medium and an internal memory.
The storage medium may store an operating system and a computer program. The computer program comprises program instructions that, when executed, cause the processor to perform any of a number of bluetooth-based distance measurement methods.
The processor is configured to provide computing and control capabilities to support the operation of the entire bluetooth-based distance measurement device.
The internal memory provides an environment for the execution of a computer program in the storage medium that, when executed by the processor, causes the processor to perform any of the bluetooth-based distance measurement methods.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of a portion of the structure associated with the present application and does not constitute a limitation of the bluetooth-based distance measuring apparatus to which the present application is applied, and that a particular bluetooth-based distance measuring apparatus may include more or less components than those shown, or may combine certain components, or may have a different arrangement of components.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in one embodiment the processor is configured to run a computer program stored in the memory to implement the steps of:
receiving a first Bluetooth signal sent by second equipment to obtain at least one first signal intensity;
if the first signal strength does not meet the preset ranging condition, transmitting a transfer instruction to the second equipment to instruct the second equipment to transmit a second Bluetooth signal to the transfer equipment, wherein the second Bluetooth signal is used for determining first distance information between the transfer equipment and the second equipment;
and determining a target distance between the first equipment and the second equipment according to the second distance information of the first equipment and the transit equipment and the first distance information.
In one embodiment, the processor is configured to, when implementing that the first signal strength does not meet a preset ranging condition, send a relay instruction to the second device, implement:
determining at least one first distance estimate based on at least one of the first signal strengths;
if the variance of the first distance presumption value is larger than a preset threshold value, transmitting a transfer instruction to the second equipment;
the first Bluetooth signal is a Bluetooth signal sent by the second Bluetooth device at least with a preset sending power.
In one embodiment, the processor is configured to, when implementing the determining, according to the second distance information of the first device and the relay device and the first distance information, implement:
and acquiring a third Bluetooth signal sent by the transfer equipment, determining the first distance information according to the distance information carried in the third Bluetooth signal, and determining the second distance information according to the signal strength of the third Bluetooth signal.
In one embodiment, the processor is configured to, when implementing the determining, according to the second distance information of the first device and the relay device and the first distance information, implement:
and sending a fourth Bluetooth signal to the transfer equipment, so that the transfer equipment determines second distance information with the first equipment according to the fourth Bluetooth signal.
In one embodiment, the first distance information includes: a first distance value and a first relative direction between the second device and the transit device, the second distance information comprising: a second distance value and a second relative direction between the first device and the transit device; the processor is configured to, when implementing the determining, according to the second distance information of the first device and the relay device and the first distance information, a target distance between the first device and the second device, implement:
and determining the target distance according to the included angle between the first opposite direction and the second opposite direction, the first distance value and the second distance value.
In another embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
transmitting a fifth Bluetooth signal to the first device at least one preset transmission power;
if a transfer instruction sent by the first device is received, determining transfer devices from candidate Bluetooth devices based on a preset device traversal algorithm;
and transmitting a sixth Bluetooth signal to the transfer device, so that the transfer device determines third distance information between the transfer device and the second device according to the sixth Bluetooth signal and determines a target distance between the first device and the second device according to the third distance information.
In one embodiment, when the processor implements the transfer instruction sent by the first device and determines, based on a preset device traversal algorithm, a transfer device from among candidate bluetooth devices, the processor is configured to implement:
transmitting a Bluetooth signal request to the candidate Bluetooth device;
receiving at least one seventh Bluetooth signal sent by each candidate Bluetooth device respectively;
and determining candidate Bluetooth equipment serving as the transit equipment according to the second signal strength of the seventh Bluetooth signal.
In one embodiment, the processor, when implementing the determining, according to the second signal strength of the seventh bluetooth signal, a candidate bluetooth device as the transit device, is configured to implement:
determining at least one second distance presumption value corresponding to each candidate Bluetooth device according to at least one second signal intensity corresponding to each candidate Bluetooth device;
determining the transit equipment from the candidate Bluetooth equipment according to the variance of at least one second distance presumption value corresponding to each Bluetooth equipment;
wherein the seventh bluetooth signal is a bluetooth signal transmitted by each candidate bluetooth device at least one preset transmission power.
In one embodiment, when implementing the sending of the sixth bluetooth signal to the relay device, the processor is configured to implement:
transmitting the sixth Bluetooth signal to the transfer equipment, wherein the sixth Bluetooth signal carries fourth distance information;
wherein the fourth distance information includes: and the third device is a Bluetooth device for transmitting Bluetooth signals to the second device.
It should be noted that, for convenience and brevity of description, the specific working process of the bluetooth-based distance measurement described above may refer to the corresponding process in the foregoing embodiment of the bluetooth-based distance measurement control method, which is not described herein again.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored thereon, where the computer program includes program instructions, and where the method implemented when the program instructions are executed may refer to various embodiments of the bluetooth-based distance measurement method of the present application.
The computer readable storage medium may be an internal storage unit of the bluetooth-based distance measurement device according to the foregoing embodiment, for example, a hard disk or a memory of the bluetooth-based distance measurement device. The computer readable storage medium may also be an external storage device of the bluetooth-based distance measuring device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the computer device.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments. While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method for determining distance based on bluetooth signals, the method being applied to a first device and comprising:
receiving a first Bluetooth signal sent by second equipment to obtain at least one first signal intensity;
if the first signal strength does not meet the preset ranging condition, transmitting a transfer instruction to the second equipment to instruct the second equipment to transmit a second Bluetooth signal to the transfer equipment, wherein the second Bluetooth signal is used for determining first distance information between the transfer equipment and the second equipment;
and determining a target distance between the first equipment and the second equipment according to the second distance information of the first equipment and the transit equipment and the first distance information.
2. The bluetooth signal based distance measurement method according to claim 1, wherein the transmitting a transfer instruction to the second device if the first signal strength does not satisfy a preset ranging condition includes:
determining at least one first distance estimate based on at least one of the first signal strengths;
if the variance of the first distance presumption value is larger than a preset threshold value, transmitting a transfer instruction to the second equipment;
the first Bluetooth signal is a Bluetooth signal sent by the second Bluetooth device at least with a preset sending power.
3. The bluetooth signal based distance measurement method according to claim 1, wherein the determining the target distance between the first device and the second device according to the second distance information of the first device and the relay device and the first distance information comprises:
and acquiring a third Bluetooth signal sent by the transfer equipment, determining the first distance information according to the distance information carried in the third Bluetooth signal, and determining the second distance information according to the signal strength of the third Bluetooth signal.
4. The bluetooth signal based distance measurement method according to claim 1, wherein the determining the target distance between the first device and the second device according to the second distance information of the first device and the relay device and the first distance information comprises:
and sending a fourth Bluetooth signal to the transfer equipment, so that the transfer equipment determines second distance information with the first equipment according to the fourth Bluetooth signal.
5. The bluetooth based distance measurement method according to any one of claims 1-4, wherein the first distance information comprises: a first distance value and a first relative direction between the second device and the transit device, the second distance information comprising: a second distance value and a second relative direction between the first device and the transit device;
the determining, according to the second distance information of the first device and the transit device and the first distance information, a target distance between the first device and the second device includes:
and determining the target distance according to the included angle between the first opposite direction and the second opposite direction, the first distance value and the second distance value.
6. A method of distance measurement based on bluetooth signals, the method being applied to a second device, the method comprising:
transmitting a fifth Bluetooth signal to the first device at least one preset transmission power;
if a transfer instruction sent by the first device is received, determining transfer devices from candidate Bluetooth devices based on a preset device traversal algorithm;
and transmitting a sixth Bluetooth signal to the transfer device, so that the transfer device determines third distance information between the transfer device and the second device according to the sixth Bluetooth signal and determines a target distance between the first device and the second device according to the third distance information.
7. The bluetooth signal based distance measurement method according to claim 6, wherein if the relay command sent by the first device is received, determining a relay device from candidate bluetooth devices based on a preset device traversal algorithm, includes:
transmitting a Bluetooth signal request to the candidate Bluetooth device;
receiving at least one seventh Bluetooth signal sent by each candidate Bluetooth device respectively;
and determining candidate Bluetooth equipment serving as the transit equipment according to the second signal strength of the seventh Bluetooth signal.
8. The bluetooth signal based distance measurement method according to claim 7, wherein the determining a candidate bluetooth device as the relay device according to the second signal strength of the seventh bluetooth signal includes:
determining at least one second distance presumption value corresponding to each candidate Bluetooth device according to at least one second signal intensity corresponding to each candidate Bluetooth device;
determining the transit equipment from the candidate Bluetooth equipment according to the variance of at least one second distance presumption value corresponding to each Bluetooth equipment;
wherein the seventh bluetooth signal is a bluetooth signal transmitted by each candidate bluetooth device at least one preset transmission power.
9. The bluetooth signal based distance measurement method according to claim 6, wherein the transmitting a sixth bluetooth signal to the relay device includes:
transmitting the sixth Bluetooth signal to the transfer equipment, wherein the sixth Bluetooth signal carries fourth distance information;
wherein the fourth distance information includes: and the second device is in a fourth distance and a fourth opposite direction with the third device, and the third device is a device for transmitting Bluetooth signals to the second device.
10. A distance measuring device based on bluetooth signals, characterized in that the information management device comprises a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program is implemented when executed by the processor
The step of a bluetooth signal based distance measurement method according to any one of claims 1 to 5; or alternatively, the process may be performed,
the method for bluetooth signal based distance determination according to any of the claims 6 to 9.
11. A computer readable storage medium, wherein the computer readable storage medium has a computer program stored thereon, wherein the computer program is implemented when executed by a processor
The step of a bluetooth signal based distance measurement method according to any one of claims 1 to 5; or alternatively, the process may be performed,
the method for bluetooth signal based distance determination according to any of the claims 6 to 9.
CN202211707405.XA 2022-12-27 2022-12-27 Distance measuring method, device and storage medium based on Bluetooth signals Pending CN116233733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211707405.XA CN116233733A (en) 2022-12-27 2022-12-27 Distance measuring method, device and storage medium based on Bluetooth signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211707405.XA CN116233733A (en) 2022-12-27 2022-12-27 Distance measuring method, device and storage medium based on Bluetooth signals

Publications (1)

Publication Number Publication Date
CN116233733A true CN116233733A (en) 2023-06-06

Family

ID=86583476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211707405.XA Pending CN116233733A (en) 2022-12-27 2022-12-27 Distance measuring method, device and storage medium based on Bluetooth signals

Country Status (1)

Country Link
CN (1) CN116233733A (en)

Similar Documents

Publication Publication Date Title
CN111435159B (en) Method and equipment for positioning
JP4868169B2 (en) POSITION ESTIMATION SYSTEM, POSITION ESTIMATION METHOD, AND POSITION ESTIMATION PROGRAM
JP5170389B2 (en) Identification target / position estimation system, method and program thereof
JP2005176386A (en) Mobile device
US10859671B2 (en) Position estimation apparatus and position estimation method
KR20190021957A (en) Method and apparatus for positioning terminal moving indoors
Zadgaonkar et al. Locating objects in warehouses using ble beacons & machine learning
US9936477B2 (en) Method for detecting location of mobile computing device and mobile computing device performing the same
CN111565357B (en) Positioning method and terminal
CN116233733A (en) Distance measuring method, device and storage medium based on Bluetooth signals
KR20200145066A (en) Method for emproving the accuracy of a distance measurement and electronic device thereof
CN112566242B (en) Positioning method and device based on Bayesian estimation and electronic equipment
CN108490389B (en) Positioning method and device based on multipath reflection, electronic equipment and storage medium
US11067398B1 (en) Indoor positioning method, electronic device and readable storage medium
CN114630416B (en) Method, device and equipment for positioning mobile terminal
US11296803B2 (en) Apparatus and method for position estimation
US11510171B2 (en) Apparatus and method for position estimation
CN118151186A (en) Fraudulent type satellite identification method, fraudulent type satellite identification device, electronic equipment and readable storage medium
CN110072189B (en) Method and device for determining floor where terminal equipment is located
KR102254711B1 (en) System for Estimating Direction of Internet of Thing Device Based on Gyro Sensors and Beacon Messages
CN110336625B (en) Antenna alignment method, antenna alignment device and terminal
KR102276611B1 (en) Distance measuring system using corrected receiveing angle of antenna and distance measuring method therefor
JP2022084137A (en) Wireless communication device, system, and program
KR102153659B1 (en) Method for tracking moving of physical distributions object to real time employing blockchain in smart port
KR101186066B1 (en) Method and System for determining position using reference station and Recording medium thereof

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