Skip to content
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

How to reconnect to a remote control after long idle time? #138

Open
shooshx opened this issue Nov 11, 2023 · 1 comment
Open

How to reconnect to a remote control after long idle time? #138

shooshx opened this issue Nov 11, 2023 · 1 comment

Comments

@shooshx
Copy link

shooshx commented Nov 11, 2023

Thank you for this excellent library and for being so responsive to help!

I have a cheap remote control from Aliexpress that presents a HID service. I got to the point where I can connect to it when it's advertising and get notifications from it.

The only problem I have left is that after 2 minutes from press event, the device disconnects. If I understand correctly and then the only way to reconnect is to press the button combination to advertise again.
From my understanding, once a connection is established, and then disconnects, on the next button press on the device it's supposed to send a "directed" advertising meant only for the paired host (the ESP32) so that the connection is restored. I was not able to see this happening.
What am I missing?

my code: https://github.com/shooshx/led_matrix_clock/blob/main/ble/ble_remote/ble_remote.ino

@shooshx
Copy link
Author

shooshx commented Nov 11, 2023

Update: I just used the windows BT sniffer to see what packets are being sent from the remote control and some of what was going on there mentioned "LE Extended Advertising Report", which led me to read here:

https://github.com/h2zero/NimBLE-Arduino/blob/bc333ccb6e8d9ff2059af9cbd5006a290a4de3a5/src/nimconfig.h#L41

that Extended Advertising only works with ESP32C3, ESP32S3, ESP32H2, which I don't have
I guess it's back to Aliexpress to order one of these...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant