Closed praditautama closed 1 year ago
I tried to use https://github.com/lemmingDev/ESP32-BLE-Gamepad/issues/111#issuecomment-1254260699 and it worked but connection is not stable
is it related to NimBLE?
I have not seen this error reported in the past, can't really give you much feedback, just options on how to possible track the problem down.
Try the simpler example code first, like SingleButton
. Don't forget to remove/delete/forget the device in the host manager you using, as the UUID and other BLE attribs can be cached and might not change on the host, even if you upload new code to your ESP32 device.
Another things to look at, which version of: Arduino core for the ESP32 NimBLE-Arduino
Also, If you are able to post an example or snippet of the code showing the problem, might be easier to give more feedback.
Hope that helps.
Hi @LeeNX I added my source code.
Nothing jumps out as wrong or broken.
Test the SingleButton
sketch, to rule out Bluetooth hardware/OS/Drivers.
If you not using HATs, could disable them.
Interesting problem, keep us updated.
hi @LeeNX
I bought another BT 5.x USB dongle and I don't get WDF_VIOLATION errors anymore.
I think it's UB400 USD dongle issue.
I will close this
Hello, I am building BLE Gamepad with 0.9 inch OLED display on ESP32 DEVKITC V4 WROOM-32U, I use macOS for development.
Everything works on macOS, I can test all buttons using "Controller Lite" app from AppStore, all buttons worked. But every time I connected to Windows 11 PC, I got BSOD with WDF_VIOLATION error.
I searched for WDF_VIOLATION, It's related to bad driver mostly BT driver. Is there any chance my USB dongle doesn't support for BLE?
My PC:
Added my source code