I am developing an Bluetooth 4.0 Low Energy application to scan surrounding advertise-only device quickly (10 times or more per second) and get their address with RSSI.
According to Android Bluetooth API, the discovery is asynchronous and takes around 12 seconds. Is there any way to set this time? Or is it possible to directly communicate with the device using HCI or the Bluetooth stack?
I am developing an Bluetooth 4.0 Low Energy application to scan surrounding advertise-only device
Share
You are talking about Bluetooth classic API and not low energy API. It is that slow because classic bluetooth stack doesn’t have fast advertising intervals and there would be no use for such fast scaning times.
Since Bluetooth low energy is not officially included in Android SDK there is not way to set the time or to scan Bluetooth LE devices. You can try to use Boardcom BLE API but from what I can tell it is in alpha stages and for now only few mobile phones can use it.