Reputation: 93
I want to use iPhone running a beacon scanning app to detect iBeacon to measure my distance changing. However I found the scanning rate is 1 per second, which cannot satisfy my moving speed. Some documents show scanning 1 time per second is determined by API that cannot be changed.
So do I have chance to speed up scanning rate?
Upvotes: 0
Views: 1340
Reputation: 65015
There are two issues with the ranging beacons with CoreLocation for fast moving mobile devices:
CLBeacon
accuracy
field is based on the running average of the RSSI over 20 seconds, so it effectively gives you the average distance over that interval.Unfortunately, you cannot change this -- it is how the API works. An alternative is to use the CoreBluetooth APIs, which can give you a call back once for each Bluetooth packet -- 10 times per second for a beacon advertising at that rate. Three obstacles with this:
You have to decide if these obstacles are acceptable for your use case.
Upvotes: 2