Open yythackery opened 3 months ago
I can reproduce it as well.
It happens with BLE controllers. I cannot pair more than 2 BLE controllers... I don't receive data from it... or crashes.
But works Ok with non-BLE (BR/EDR) controllers.
After my testing, it should have been due to insufficient resources in the ESP32 hardware, so I eventually replaced it with another chip.
what do you mean "insufficient resources" ? did you replace it with another esp32 chip ? which one ? is it working now?
Pico W had the same issue. Fixed here: https://github.com/ricardoquesada/bluepad32/commit/db6d69a1c42bf5f6dc2401ce002c9289a3bd4b49
what do you mean "insufficient resources" ? did you replace it with another esp32 chip ? which one ? is it working now?
I want to choose another Bluetooth chip to implement it, but I haven't chosen it yet.
resources
what do you mean "insufficient resources" ? did you replace it with another esp32 chip ? which one ? is it working now?
It should be tested that when connecting to the third one, the data can enter the uni_hid_device_process_controller function, but cannot enter uni_get_platform() ->on_controller_data (d,&d ->controller); This call is very strange. Then an exception is reported when connecting the fourth x1 handle. In summary, it seems that there is an issue with the Bluetooth firmware of ESP32.
I'll investigate it a bit further... but in the meantime use Pico W (latest develop
branch) which works Ok with 4 BLE controllers
I'll investigate it a bit further... but in the meantime use Pico W (latest
develop
branch) which works Ok with 4 BLE controllers
Ok. Tanks.
@yythackery wondering why did you close it? did you find how to connect 4 BLE devices in ESP32 ?
(I'm reopening so that we can keep with the investigation)
@yythackery wondering why did you close it? did you find how to connect 4 BLE devices in ESP32 ?
I have chosen another chip.
@yythackery great. which one?
@yythackery great. which one?
esp32 s2
@yythackery esp32-s2 doesn't have bluetooth. you mean esp32 s3 ? thanks.
@yythackery esp32-s2 doesn't have bluetooth. you mean esp32 s3 ? thanks.
yes,its s3
What happened?
When I am using ESP32 as my platform and simultaneously connecting the fourth Xboxone controller, the program crashes as shown below. And when connecting to the third handle, it shows that the connection is normal, but there is no data given to the callback function my_platform_on_controller_data when operating the third handle.
Bluepad32 Version
latest from develop branch
Bluepad32 version custom
Example: Using Git develop branch commit hash #xxxxxxx
Bluepad32 Platform
ESP-IDF
Platform version
ESP-IDF v5.2.1
Controller
Xbox Wireless (model 1914, 3 buttons)
Microcontroller
ESP32
Microcontroller board
ESP32-WROOM-32
OS
Windows
Relevant log output
Relevant sketch