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

Doesn't work after reconnection #79

Closed
AlexM600 opened this issue Oct 12, 2021 · 6 comments
Closed

Doesn't work after reconnection #79

AlexM600 opened this issue Oct 12, 2021 · 6 comments

Comments

@AlexM600
Copy link

  1. I uploaded example (any of them), connect to Windows 10 computer over bluetooth, checked it works.
  2. Reset or repower ESP32
  3. It reconnected to Windows automatically but doesn't work.
    The only way to make it work again: Remove paired device from Windows and connect as new one. And it works again until reset ESP32
@deBoulangerie
Copy link

Are you using the latest nimble version? That fixed my connection problems

@AlexM600
Copy link
Author

Yes. 1.3.1 installed just yesterday from library manager.
It doesn't look like connection problem. It connects and reconnects just fine. But Windows doesn't see any event after reconnection. Only for first "NEW" connected device.
For example "Test All" sketch shows in Serial Monitor messages like "pressing all buttons" etc.. but nothing happens in "Game Controllers" window.

@lemmingDev
Copy link
Owner

Not sure

Works perfectly fine for me when I do the same.

When the ESP32 gets power, it automatically reconnects via Bluetooth and gamepad works fine

@lemmingDev
Copy link
Owner

Please ensure that you have updated ESP32 version in the boards manager, and are running the latest versions of the libraries etc.

It is working fine on reconnect for hundreds of users so I will put it down to something specific on your system and close the issue

@RaazP
Copy link

RaazP commented Jan 4, 2025

Hi, a bit late to the party, but I'm having the same issue with two different boards.
First, thanks a lot for sharing this project, I'm building a DIY wireless buttonplate for simracing, grabbing power from the pins for the original Moza wheels. Wouldn't be possible without this!

Anyway:
One board is the 38 Pin AZDelivery DevKit V2 and the other is some 30 Pin DOIT DevKit V1 Clone from Aliexpress.
When compiling, I'm getting a warning about a deprecated adc driver, but that probably doesn't matter for just using buttons.

I'm using the latest NimBLE 2.1.2 by h2zero and your BLE Gamepad 0.6.1.
Windows 11 23H2 and Win 10 22H2. Same issue with my Surface Pro 8 on 24H2.

My workaround is to "forget" the device in the Windows BT menu, pressing the reset button (connected the EN pin with a microswitch), searching for devices and everything works until the ESP32 shuts down, resets or the PC.

Any ideas?

Thanks in advance!

@LeeNX
Copy link
Contributor

LeeNX commented Jan 4, 2025

Hey @RaazP, this issue is closed and might not get much in the way of feedback.

Just commented on a similar, thou not the exact say issue on Windows - #251.

Could try some of the suggestions I have made there.

I am guessing that this might be Windows been more strict than other host OSs or devices ... or Microsoft sabotaging none licensed Microsoft XBox gamepads ;-)

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

5 participants