Locating a bluetooth device in a room


Question

There is a bluetooth device out of sight in a room that is paired to my Android smartphone, and I can connect to it when I am close by. (It is a muted audio device.) Are there any methods to locate that device within the room with the use of the smartphone? Say, by dynamically measuring signal strength so that I can move the device around to see where it gets stronger.



Both App downloads, Android Studio( with Java), and other sorts of answers are welcome. (But AS is more appreciated.)


Answer

Not really, with a standard Bluetooth device and antenna, there's a lot of really big technical problems, and even physics is against you



You may or may not be aware of BLE and Bluetooth Beacons - there is a BLE Specification called Proximity that allows small bits of data to be sent as Bluetooth Advertisements. Devices can be calibrated and made to interpret these and the RSSIs etc and give a fairly reliable (depends) proximity



There are lots of libraries out there for working with them- and apps. I suggest taking a look at Radius Networks' Altbeacon library, it does all the maths and device specific calibrations that you would otherwise have to do yourself. All the big Beacon Manufacturers have their own though (Kontakt.io, Estimote etc)



Be aware, unless you have a directional mic, BLE should not be considered directional without using some kind of triangulation technique (otherwise you can just say "I am X meters from the device" without knowing if that was up, or behind or whatever)



Also be aware, it's incredibly open to being confounded by other sources of EMF and materials that absorb your waves.



Even more be aware, Smartphone BT Adapters vary wildly, they all log differently, have different nuances and react differently in different situations, but typically it's really good. Some devices like the Nexus 4 should not be used for BT, some hardware kink means the WiFi and BT don't effectively share the Antenna well enough and conflict (also I think the form factor just interferes too)



The best way to position a person or object in a room is by using a mixture of processed and aggregated readings from the device sensors and perhaps even some other hardware in the room. If you look at Google Maps, it doesn't wholly rely on GPS, just like indoor navigation using BLE Beacons shouldn't wholly rely on Bluetooth. Beacons just apply context,



Source: Microlocation developer


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes