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

1

7

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?

Seurat answered 27/3, 2020 at 9:53 Comment(0)
G
11

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.

Garbage answered 27/3, 2020 at 16:36 Comment(2)
Worth noting bluetooth 5.1 does add improvements that considerably improve measuring distance and direction measurement. But the top of the range phones are currently still using 5.0. Apparently that should improve the accuracy from 3m to 1cm. Apparently.Donelladonelle
Unfortunately Android and iOS do not support key Bluetooth 5.1 features as of June 2020 and have not announced any plans to do so.Garbage

© 2022 - 2024 — McMap. All rights reserved.