Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to measure close distance between two iphone devices using bluetooth?

Can you work out if another iphone is say ~5 horizontal meters away?

This question has been asked here almost identically but a decade is a long time in tech. I have no interest in direction. How to measure distance between two iphone devices using bluetooth?

Current solution attempts

GPS - This is too inaccurate for <10m

Bluetooth - iBeacon a potential solution for iphones. Similarly, may be too inaccurate due to BT signal interference. At least as SO claims 5 years ago. (How to measure the distance between an iPhone acting like an iBeacon and an Android device)

Have we made any progress here?

like image 351
Voxoff Avatar asked Mar 27 '20 09:03

Voxoff


People also ask

Can Bluetooth measure distance between phones?

Yes, Bluetooth could keep track which other phones have been in range, however the accuracy is not great (yet). But at least you do not need to use location data like GPS which would be sensitive to privacy issues.

How can I measure the distance between two phones?

WifiNanScan relies on Wi-Fi Aware's core structure and you can use this app to find out how far the other device is from your device. Google describes this app as: The WifiNanScan app measures the distance between two smartphones using the Wi-Fi Aware protocol (also called Neighborhood Aware Networking(NAN)).

How far is an iphones Bluetooth range?

Using a Bluetooth connection, you can use third-party devices such as wireless keyboards, headphones, speakers, car kits, game controllers, and more with iPhone. Note: iPhone must be within about 33 feet (10 meters) of the Bluetooth device.

What is Bluetooth proximity distance?

The range of the Bluetooth® connection is approximately 30 feet (10 meters). However, maximum communication range will vary depending on obstacles (person, metal, wall, etc.) or electromagnetic environment.


1 Answers

There have been no significant changes in the past 5 years. I wrote a blog post with a deep dive into the current state as of 2020. Mobile phones in 2020 have newer bluetooth chipsets than in 2015, and may support Bluetooth 5, but there are no significant new capabilities that improve the reliability distance estimates. Indeed, there are no new proximity sensors on iOS and Android phones (other than NFC, which only measures proximity of a few centimeters away), so it is inappropriate for this use case. What's more, 5 years has made things worse by adding fragmentation, especially on the iOS side. Back in 2015, there were only a few Apple handset variants in common circulation. Now there are over a dozen.

To recap the current state of affairs that is mostly unchanged: you can use one phone to transmit over BLE and another to measure the signal strength and estimate distance. For known transmitters and approximately line of sight conditions (e.g. phones are not in a pocket or purse) measuring whether two phones are 5 meters apart is possible with perhaps a 60 percent confidence interval. Where this falls apart is with three important variables:

  1. Phones and especially Android phones are quite fragmented. Transmitter power and receiver sensitivity are quite unpredictable between models and have a large variance. Apple has much less variance between models, but you still see differences that noticeably affect results.
  2. People often put phones in a case, a purse or a pocket. This throws things off considerably further.
  3. When clear line of sight conditions are not present, results are unreliable as you have said.

Bluetooth 5.1 does offer Angle of Arrival and other features that may improve this, but as of October 2020, neither Android 11 nor iOS 14 support any of these features, making the features unusable with almost any mobile phone.

like image 55
davidgyoung Avatar answered Jan 02 '23 08:01

davidgyoung