Android – Reading Bluetooth RSSI for BLE proximity profile in Android

androidbluetoothbluetooth-lowenergyrssi

I am currently developing Bluetooth Low Energy proximity profile for Android and I have stumbled upon an issue regarding RSSI.

In order to make proximity profile work I have to receive RSSI data with already connected device every short period.

As I did some research I understand it is possible to get Bluetooth RSSI during device discovery. That doesn't work for me as the slave device doesn't advertise after connection.

The other way round is digging down to HCI level and using BlueZ. It seems to be pretty low level. Has anyone had any experience with that?

Has anyone seen a proximity profile developed on Android?

Best Answer

you can use readRemoteRssi () method repeatedly after some time after connection. but it will not work well.because of pending flag error. another approch is you can start and stop blescan and get rssi value of scan device it will be better approach because in nexus 7 2013 device and some Samsung devices are not filter ble device and it will return ble device ones .

Related Topic