Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calculate distance Between Bluetooth device in android

I want to calculate distance Bluetooth Paired device from android mobile. I am new in Android Bluetooth Concept can any one suggest me it's possible or not possible in android sdk.if it's possible post any code or tutorial link!

like image 386
Stack Overflow User Avatar asked Aug 07 '12 12:08

Stack Overflow User


People also ask

How can I find the distance between two Bluetooth devices on Android?

There are a number of ways to find the distance between two Bluetooth devices in Android. The most accurate way is to use a Bluetooth scanner, which will scan for devices and provide a readings in RSSI (Received Signal Strength Indicator).

How can I find the distance between two Bluetooth devices?

just calculate the bluethooth response time in nano secs, physically measure the distance between the devices and make a tree rule... is the same concept of GPS. This is a Laboratory work.

Can you determine distance with Bluetooth?

Using bluetooth you can at best obtain a distance resolution of few meters, but you can't calculate the direction, not even roughly.

How do you measure distance with ble?

Distance = 10 ^ ((Measured Power -RSSI)/(10 * N))


2 Answers

The Bluetooth signal strength distance relation depends on the devices (built-in Bluetooth device, antenna, actual orientation of device), current way the persons hold their devices, objects in-between... You could measure this for a pair of devices for a given situation and use these information.

A larger and more general solution would incorporate an external Bluetooth network. Bluetooth triangulation is the basic concept, that will help. The link will give an insight on certainties that are achievable with such a setup. Take is as an upper limit, a device to device approach will be worse.

like image 126
alex Avatar answered Sep 19 '22 01:09

alex


The EE Stack Exchange site has a more complete answer which includes a mention of Apple using 802.11v for determining if Apple Watch is close to a MacBook.

Bluetooth uses radio, and radio travels at the speed of light. A 1cm round trip will take less than 100ps. Timing something that short will be tricky, probably you'll want a 10GHz clock, though there are other options. But even then, Bluetooth isn't designed to instantly echo the radio message. If you receive, process and re-transmit the message, then the processing delay will be much longer than the time of flight, and will vary randomly by at least the period of the clock used with the Bluetooth chip.

like image 45
Tomáš Hübelbauer Avatar answered Sep 18 '22 01:09

Tomáš Hübelbauer