-
Notifications
You must be signed in to change notification settings - Fork 63
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
detection glitch? #8
Comments
I have not run into this case before. But I usually keep my phone's bluetooth always on. |
@ewenchou I keep my bluetooth on too, but when you simulate the phone leaving the detectable range, AKA turning it off, and back on again, that's when the script stops working. |
As far as I have figured out the script does some kind of value caching. The problem with powering off is not the only way the results can be wrong. In my case the rssi is always 0 doesn't matter how far away I am away. After restart then the next first value e.G. none gets cached and so on. |
I believe I've found a solution to disable the caching
The same problem will occur in bluetooth_scanner.py - it doesn't recognize when a device disappears.
|
I had the same problem and tried this for bluetooth_scanner.py. The solution does seem to work when there is only one bluetooth address in the list. If I add a second address, it will once trigger the call back function when the script is started for the second address only. Af that, the script runs fine. So "walking" in/out of range or switching on/off bluetooth still is a problem for the script! |
I am having the same problem that tddeleeuw mentions above with more than 1 address the callback function is triggered once for everyone at script start and then works fine. I did not have problems with the script going into a loop or anything with more than 2 addresses. |
I'm running the test_address.py code with 999 cycles to detect my iPhone X.
It all runs fine until I turn off bluetooth on my phone, in which case the RSSI value becomes 0(I've seen other issues where it's supposed to be "None"?).
And even after I turn bluetooth back on, the value still stuck at 0 until I restart the script.
I also tried to turn off my phone and ran the script again, and i got "None", which is normal. But after I turn on my phone, it still repeats itself as "None" without giving the correct value. I'd assume something, like cache, stuck in there without being refreshed or something? Can this be fixed?
The text was updated successfully, but these errors were encountered: