I like to create a kind of indoor-tracking-system for my already existing home automation system. I thought of using BLE. I already successfully set up hcitool
on my Raspberry Pi and I can connect to my iPhone without any problems. But how can I obtain the signal strength between my Raspberry Pi and my iPhone without connecting them. I already tried to use sudo hcitool cc [BTADDRESS]
to connect to my iPhone without authentication, but it looks like the iPhone don't allow those connection to stay open. I think that must be a way to get the signal strength without connecting both devices. I want to use it to determine the distance from my Raspberry Pi to my iPhone. May I am able to calculate the distance from the time I need to discover my iPhone?
Obtain bluetooth signal strength on Raspberry Pi of BT device without pairing
3.4k views Asked by David Gölzhäuser At
1
There are two ways to go, and by now I have been able to get both work reliably only on Android devices.
On the raspberry, I used PyBluez to scan and looking for the presence of smartphones running (1) or (2). I report a code example: