{"id":2367,"date":"2025-06-10T12:11:44","date_gmt":"2025-06-10T12:11:44","guid":{"rendered":"https:\/\/www.beaconzone.co.uk\/blog\/?p=2367"},"modified":"2025-06-10T12:12:54","modified_gmt":"2025-06-10T12:12:54","slug":"obtaining-distance-from-rssi","status":"publish","type":"post","link":"https:\/\/www.beaconzone.co.uk\/blog\/obtaining-distance-from-rssi\/","title":{"rendered":"Obtaining Distance from RSSI"},"content":{"rendered":"\n<p>RSSI is the signal strength at the Bluetooth <strong>receiver<\/strong>. The signal type, for example, iBeacon, Eddystone or <a href=\"https:\/\/www.beaconzone.co.uk\/sensor\" target=\"_blank\" rel=\"noopener noreferrer\">sensor beacon<\/a> is irrelevant. The value of the RSSI can be used to infer distance.<\/p>\n\n\n\n<p>The accuracy of the distance measurement depends on many factors such as&nbsp;the type of sending device used, the output power, the capability of the receiving device, obstacles and importantly the distance of the beacon from the receiving device.<\/p>\n\n\n\n<p>The output power isn&#8217;t known to the receiver so it&#8217;s sometimes added to the advertising data in the form of the &#8216;measured power&#8217; which is the power at 1m from the sender.<\/p>\n\n\n\n<p>The closer the beacon is to the receiver, the more accurate the derived distance. As <a href=\"https:\/\/www.beaconzone.co.uk\/bluetoothleposition\" target=\"_blank\" rel=\"noopener noreferrer\">our article mentions<\/a>, projects that get more detailed location derived from RSSI, usually via trilateration and weighted averages, usually achieve accuracies of about 5m within the full range of the beacon or 1.5m within a shorter range confined space.<\/p>\n\n\n\n<p>Some beacons, <a href=\"https:\/\/www.beaconzone.co.uk\/UltraLongRange\" target=\"_blank\" rel=\"noreferrer noopener\">mainly those with output RF amplifiers<\/a>, transmit more than 50m and in these cases, while the beacon can be detected, using RSSI to infer distance isn&#8217;t usually reliable due to noise (variation) in the RSSI value.<\/p>\n\n\n\n<p>There&#8217;s some <a href=\"https:\/\/github.com\/kevindigi\/android-iot-samples\/blob\/dev\/app\/src\/main\/java\/com\/digicorp\/androidiotsamples\/ble_distance\/BLEDistanceActivity.java\" target=\"_blank\" rel=\"noopener noreferrer\">Android Java code on GitHub<\/a> if you want to experiment with extracting distance from RSSI. There&#8217;s an <a href=\"https:\/\/stackoverflow.com\/questions\/20416218\/understanding-ibeacon-distancing\/20434019#20434019\" target=\"_blank\" rel=\"noopener noreferrer\">equation for iOS<\/a> on GitHub.<\/p>\n\n\n\n<p>Need more help? Consider a <a href=\"https:\/\/beaconzone.consulting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Feasibility Study<\/a>.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.beaconzone.co.uk\/SocialDistancing\" target=\"_blank\" rel=\"noopener noreferrer\">Beacons that flash\/vibrate at a given distance<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RSSI is the signal strength at the Bluetooth receiver. The signal type, for example, iBeacon, Eddystone or sensor beacon is irrelevant. The value of the RSSI can be used to infer distance. The accuracy of the distance measurement depends on many factors such as&nbsp;the type of sending device used, the output power, the capability of &hellip; <a href=\"https:\/\/www.beaconzone.co.uk\/blog\/obtaining-distance-from-rssi\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Obtaining Distance from RSSI&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,32,33,130],"tags":[],"_links":{"self":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2367"}],"collection":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=2367"}],"version-history":[{"count":11,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2367\/revisions"}],"predecessor-version":[{"id":9881,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2367\/revisions\/9881"}],"wp:attachment":[{"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=2367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=2367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beaconzone.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=2367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}