ESP32-BLE-Gamepad icon indicating copy to clipboard operation
ESP32-BLE-Gamepad copied to clipboard

Cannot pair on windows 11 and android, works fine on MacOS

Open SirSlotocato opened this issue 3 years ago • 4 comments

Hello! When I try to pair on windows, it shows a "try to connect again to the device"(or a similar message, I have the os in italian) after trying for a really short time. On android it try for longer, but the result is the same. On mac i need to try 1/2 times maybe, but it seems to work fine... It's the multiple buttons example, but with only 2 buttons, and same happens when trying with a platformio project i found(from github). I'm on latest version

SirSlotocato avatar Jan 04 '23 15:01 SirSlotocato

Only run into connection issues, if another BLE host/server device is scanning for bluetooth devices and lists my BLE-Gamepad device. Solution was to disconnect and turn off all bluetooth hosts/servers while trying to pair device initially. I have been thinking of adding an LED noting if my BLE-Gamepad is connected or advertising.

LeeNX avatar Jan 07 '23 12:01 LeeNX

I'm testing if it's actually working good, but I maybe found a solution. trying an example for nimble, i found that it works "good", just need to do some retries for actually pairing, but not a big deal. The main difference in the init for the server was that in the example of nimble-arduino, they call the setMinPreferred with a 0x12, i tried to add it to the module, and now it seems to work... I'll do some more test, if it work maybe I create a merge request

SirSlotocato avatar Jan 08 '23 20:01 SirSlotocato

@SirSlotocato would you mind to share more details what fixes it? I'm having the same issue.

seikosantana avatar Apr 06 '23 17:04 seikosantana

@seikosantana sorry i missed the notif mail T_T I just added to line 1418 in BleGamepad.cpp
pAdvertising->setMinPreferred(0x12); you can find the file in the library, and it's just a workaround.

It's not a real fix, it works better but sometimes it has a lot of delay. and it need a lot of retryes to actually connect, but after its paired it work, just with the delay i said before.

SirSlotocato avatar Apr 18 '23 14:04 SirSlotocato

@SirSlotocato there have been a number of improvements and releases, would you be keen on updating, testing and reporting if your issues was resolved?

Thanks

LeeNX avatar Jan 09 '25 08:01 LeeNX

@LeeNX, this weekend i'll try on some random esp i can find, im going to update here with the results, hoping it's goin to be good news c:

SirSlotocato avatar Jan 10 '25 17:01 SirSlotocato

Please try with the newly released https://github.com/lemmingDev/ESP32-BLE-Gamepad/releases/tag/v0.6.3 as it resolves a serious Windows reconnection bug

lemmingDev avatar Jan 12 '25 02:01 lemmingDev

Will close due to no feedback provided

Feel free to post here if issue persists and I'll reopen

lemmingDev avatar Jan 24 '25 10:01 lemmingDev