-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
System firmware error when trying to make a BLE connection on ESP32-S3 #9614
Comments
Nice job digging! Maybe we aren't flagging the address correctly internally. Want to see if you can fix it? We're happy to help guide. It's probably not a high priority for us to work on ourselves. |
Sure, I can give it a go! I'll definitely need guidance though |
Awesome! Have you gotten it building? There is a tutorial for building here: https://learn.adafruit.com/building-circuitpython We can answer development questions on Discord in #circuitpython-dev. |
I've managed to get it building |
What's the next step towards fixing it? |
You'll need to sort out why the error is being returned and change the input parameters so it succeeds. |
Might it be due to the fact that resolvable addresses haven't been implemented yet? circuitpython/ports/espressif/common-hal/_bleio/Adapter.c Lines 420 to 421 in a9e50e2
This is something I don't have the expertise to implement. |
CircuitPython version
Code/REPL
Behavior
Running the code immediately results in an error.
Description
On a Seeed Xiao ESP32-S3, when attempting to initiate a bluetooth connection to an already-paired device with a
RANDOM_PRIVATE_RESOLVABLE
address, an unknown system firmware error (530) occurs.I've found that the actual address bytes don't matter, only the type (it also happens for
RANDOM_PRIVATE_NON_RESOLVABLE
, but notPUBLIC
orRANDOM_STATIC
).Additional information
I've done a little digging through the CircuitPython source code and I suspect that it's a NimBLE error, in which case it would be an Invalid HCI Command Parameters error (0x212).
It occurs on both 9.1.1 and 9.2.0 alpha.
Running the above code on a Seeed Xiao nRF52840 (CircuitPython 9.0.4) performs as expected (a 'failed to connect' error after 10 seconds):
The text was updated successfully, but these errors were encountered: