-
Notifications
You must be signed in to change notification settings - Fork 426
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
Media Keys on Android do not work after reconnect BLE #12
Comments
That's very odd. Can you tell me which devices you tested this on and tell me their Android/iOS version? For now, my guess is that Bluetooth on Android is just buggy. I've had issues with Bluetooth headsets on several Android devices that often required re-pairing after a disconnect. |
Hello
I have following setup:
ESP32 Board: Adafruit HUZZAH32 feather with WROOM-32
5 buttons connected to GPIO 14, 32, 15, 33, 27
using internal pull-ups
GPIO activated if button connected to GND
My device is used for for the electronic rally road book project for
scrolling the road-book and correcting the oddometer for motorcycle
rallying. Compatible to MDR road book, or Rally Roadbook App.
Android or IOS device uses to display road book etc.
Carpe Iter Pad
Android 5.1
works after pairing inclusive media Buttons.
reconnecting (restaring ESP32)works after 2-5 seconds, key commands are
transfered but no media keys.
Bluetooth off/on on Android device same effect
after new pairing it works fine again inclusive media Buttons.
Samsung Galaxy Tab A SM-T380
Android 9
works after pairing inclusive media Buttons.
reconnecting (restaring ESP32) works after 2-3 seconds, key commands are
transfered but no media keys.
Bluetooth off/on on Android device works fine inclusive media Buttons, no
repairing needed
Redmi Note 6 Pro
Android 9
works after pairing inclusive media Buttons.
reconecting (restaring ESP32) but imedeately after reconnecting it
disables Bluetooth on device (strange ???) after enabeling Bluetooth again
it works inclusive media Buttons.
Why can a reconnection of a Bluetooth connection disable the Bluetooth
function on phone?
BR
Gerald
Zitat von T-vK <notifications@github.com>:
That's very odd. Can you tell me which devices you tested this on and
tell me their Android/iOS version?
Did this happen with one of the provided examples? (If not, I'd like to
check your code.)
For now, my guess is that Bluetooth on Android is just buggy. I've had
issues with Bluetooth headsets on several Android devices that often
required re-pairing after a disconnect.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub[1], or unsubscribe[2].
Links:
------
[1]
#12?email_source=notifications&email_token=AOO35LQLYXHCQKUEJGNKP2TRBJ5ODA5CNFSM4KP4RWO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK2UOFQ#issuecomment-582305558
[2]
https://github.com/notifications/unsubscribe-auth/AOO35LXHFO3JYPYKPO5MKQDRBJ5ODANCNFSM4KP4RWOQ
|
Hello,
yes, same problem with your example code
BR
Gerald
Zitat von T-vK <notifications@github.com>:
That's very odd. Can you tell me which devices you tested this on and
tell me their Android/iOS version?
Did this happen with one of the provided examples? (If not, I'd like to
check your code.)
For now, my guess is that Bluetooth on Android is just buggy. I've had
issues with Bluetooth headsets on several Android devices that often
required re-pairing after a disconnect.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub[1], or unsubscribe[2].
Links:
------
[1]
#12?email_source=notifications&email_token=AOO35LQLYXHCQKUEJGNKP2TRBJ5ODA5CNFSM4KP4RWO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK2UOFQ#issuecomment-582305558
[2]
https://github.com/notifications/unsubscribe-auth/AOO35LXHFO3JYPYKPO5MKQDRBJ5ODANCNFSM4KP4RWOQ
|
Hello, I have found following example and there the media keys work after
reconnecting on Android.
https://gist.github.com/ematt/29983b14381444ce1081177c65e22010[1]
BR
Gerald
Zitat von T-vK <notifications@github.com>:
That's very odd. Can you tell me which devices you tested this on and
tell me their Android/iOS version?
Did this happen with one of the provided examples? (If not, I'd like to
check your code.)
For now, my guess is that Bluetooth on Android is just buggy. I've had
issues with Bluetooth headsets on several Android devices that often
required re-pairing after a disconnect.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub[2], or unsubscribe[3].
Links:
------
[1]
https://www.youtube.com/redirect?stzid=UgyV7a8ZDn_DGR6d69h4AaABAg.93Z8O_kx69l94hmGRikzG6&q=https%3A%2F%2Fgist.github.com%2Fematt%2F29983b14381444ce1081177c65e22010&event=comments&redir_token=Kpe8Ico92fDwGRuS2fJF-18AKNV8MTU4MTE1MjA2MEAxNTgxMDY1NjYw
[2]
#12?email_source=notifications&email_token=AOO35LQLYXHCQKUEJGNKP2TRBJ5ODA5CNFSM4KP4RWO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK2UOFQ#issuecomment-582305558
[3]
https://github.com/notifications/unsubscribe-auth/AOO35LXHFO3JYPYKPO5MKQDRBJ5ODANCNFSM4KP4RWOQ
|
The problem is on class BleConnectionStatus, in the callbacks methods. You must set notification true or false also for the inputMediaKeys. |
Thanks to @mwinters-stuff for fixing this in #16 . This is now fixed in release 0.2.1. |
I send media key commands and it works fine on my Android device.
But if connection is lost (to far away) or ESP32 is restarted the BLE connection is reestablished but my Android device will not get the media key information anymore/or does not react to it. I can send text with print or characters with write and this works fine.
With mit IOS device everything works fine even after lot connection and reconnect.
If I do a new pairing between Android device and ESP it works again fine.
Tested now on two different Android devices.
Do you have any clue why media key commands do not work after reconnect?
The text was updated successfully, but these errors were encountered: