-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background mode #6
Comments
@vasquezdennisalon Are you running the Sample App? |
@sachinmobstac I'm actually running the sample application, but when placing the application in background mode it only sends packets every so often or it's a bit slower to read the beacon |
@vasquezdennisalon, That's strange. It works normally for me. Can you let me which hardware beacons are you using? |
@vasquezdennisalon, Hey updates? |
Thank you for the support you provide. The information of the beacons is the following:
And with the new update when I have the app in foreground I quickly detect the beacons but in background mode it takes a bit to detect the beacons or even not detect them. |
@vasquezdennisalon, I don't have the hardware to test the scenario. Since this is an open source project, is it possible for you to check what's going wrong in the background? |
@sachinmobstac, I still have the same problem when the application is in the background, when the application is in the foreground the reading of the bluetooth is fast but when the application is in the I attached the github link of my project The steps to perform the tests is as follows:
I also attach a sample file of readings so you can see what is happening |
Hi @vasquezdennisalon, It looks like the Since the project is open source, you can help us fix this bug by contributing. |
Good day, with good news to improve the library I have found several cases:
Additionally beacons must be configured with Transmit Power (Tx) = Strong (0 dBm) and Advertising interval = 210ms
with this information the formula of the distance would be as follows: if (rssi == 0) {return -1.0}
let ratio: Double = Double (rssi / 1m_RSSI);
var distance: Double = 0
if (ratio <1.0) {distance = pow (ratio, 10)}
else {distance = (A) * pow (ratio, B) + C}
return distance For the other phones that I could not make the measurements, leave one by default: A = 0.89976
B = 0.111
C = 7.70950
1m_RSSI = -60 With this you can get a better approximation of the distance
HelpAnother thing that I would like to try, maybe you help me, I'm doing comparisons with Android and there is a library called AltBeacon creates a method called setBeaconSimulator with which you can simulate a beacon, how could we do this part in Swift so that the management of unit tests is more efficient. https://altbeacon.github.io/android-beacon-library/beacon_simulator.html |
I was reviewing the code but when I put the application in background mode without destroying the application the Eddystone library stops detecting beacon scanning.
The text was updated successfully, but these errors were encountered: