-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Configure Scanning? #192
Comments
Hey, I can't argue with your observations but it does sound like odd behavior to me. The ESP is always in scanning mode which means it listens to advertisements (passive) but also sends out scanning requests (active). Even if it does find your earbuds, assuming those aren't whitelisted, it shouldn't try to connect to them. |
Sorry for letting this dangle for so long but I have more observations and one possible approach to either fix it or at least take esp32-bl2mqtt out of the equation. When another household-member is using the treadmill a different kind of earbuds is being used. Here, there are no disconnects but the treadmill is acting up. Acting up in this case means that sometimes it switches from running mode to pause mode (slowing down). Both issues, the earbud-disconnect and the treadmill-pausing do not happen when esp32-bl2mqtt is not being used. The earbud-disconnect I can live with since it does not happen once audio is streaming. The treadmill-pausing is more annoying (and less explainable). Would it be possible to add an option where only the whitelisted device is communicated with, other advertisements are ignored and no scanning requests are being sent? Some kind of stealth mode? |
The ESP needs to actively scan to detect the devices it may want to connect with. This scanning request, AFAIK, is a generic broadcast and not destined to any specific BLE device. It then starts listening to any device that might respond and only if that device is in the whitelist, does it try to connect to it. If you're able to test something out, I can suggest changing the scanning mode from active to passive. Let me know... |
Question
I am not sure if this is a "works as designed", a bug situation, or if I am imagining it, therefore I decided to enter it under General Questions.
I have one device (a treadmill) whitelisted and that works well, yet it seems that the solution still interferes with another device's function. Notably, my Bluetooth earbuds disconnect while the audio of the device they are supposed to play back from (an Echo device) is being paused. To put it differently, while audio is paused they seem to react to queries from the ESP and disconnect from the proper device. Once playback continues they reconnect again.
Are my observations correct or is the solution neither scanning nor reacting to queries from other devices?
The text was updated successfully, but these errors were encountered: