Posted v 1.17.1
fixed:added:- reduced the rPi bluetooth send frequency from 10/sec to 1/10 seconds. This is only used to check if the rPis are up. And the time period is > 60 seconds.
This reduces the background bluetooth traffic significantly: with 10 rPI from 100/second to 1/ second. I have not seen any negative effect. - added support for bluetooth connect tracking. With this you can track your iPhone without any additional software running on the iPhone. iBeacons send signals all the time and the system just listens to traffic coming by. Normal bluetooth does something only when you want an action. Now this version will try to connect to a devices (e.g. phone) with a given mac number. It will launch a unix process: " sudo hcitool cc mac && sudo hcitool rssi mac " (replace mac with xx:yy... the mac number tested) and read the response
- find the MAC number of e.g. your iPhone in setup/general/bluetooth
- create a device name = xxx type/.. =piBeacon/ BLE-connect
- select which rPi should track this device. I tried 10, that works.
- select refresh/ requery when UP . each of the interactions requires a lot of power, not like the iBeacons at ~ -60dBm, but at 1+ dBm. If the rPi knows the iPhone is up, it does not need to ask again 1 second later. I would set this one to >90 seconds
- select refresh /requery when down. this should be much faster. you want to know when the iPhone is back as soon as possible. I tried 2 seconds that works. But might also drain the battery
- select after how much time the devices should go from up-> down-> expired
- select the normal power level your phone sends data. 0 seems to be good value .. needs more testing. The plugin cuts off at +1( normal iBeacon=-60 that is 10^-6 less power)
After a minute you should start seeing entries in your device view like this:
- Screen Shot 2016-03-14 at 6.00.46 PM.png (97.55 KiB) Viewed 4638 times
You could do multiple iPhone/ samsung.. at the same time. for each MAC numerate a separate independent process is launched and will send its info to the plugin separately.
It does some optimizing on its own. i.e. if no answer it does a second immediately after the failed on. thats seems to catch 99% of any connect issues-- don't know why..
You can use these devices also in FINGSCAN like regular iBeacons.
There will likely be still some bugs. as this is the first version with this functionality and we will need to tune the algorithms to optimize reopens/ battery life/ ...
And many thanks to Hackencrash for figuring out how to do this... Karl
ps after installing this, all rPi will take a bit longer to come back online, as several programs will get loaded.. ~ 1-5 minutes is normal
the device edit screen: