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
Duplicate HCI Reset When Tearing Down and Re-Creating Transport #476
Comments
This also works:
|
Changing
I can workaround with this for the time being. |
This is quite odd. I tried to replicate this on a USB controller, without success (i.e this exact code sequence works fine for me). What's peculiar in your case is that the controller seems to be sending a stale or extra response, so the |
Followup: I did find a USB dongle that identifies with the same USB identifiers ( |
I've seen this with a lot of dongles. I use a I think the CSR we have hooked up to the Linux machine is this one from Adafruit, but I'm honestly not sure. It has no markings whatsoever besides Edit: I will double-check to see what the product name is that it reports. |
The name it reports is |
Found another one that is in use: https://www.amazon.com/dp/B084H8R9PB |
Summary
I am seeing a weird issue where if I tear down a transport, then re-create it, that the device fails to power on. The following example reproduces it. When the second
power_on()
is invoked, an error is raised (given below), and the attempt fails.Error
Workaround
I found that adding a second HCI reset command here led to the failure going away: https://github.com/google/bumble/blob/main/bumble/host.py#L239
Without the second invocation, it always fails. I also found that adding a sleep seems to workaround the issue as well:
Environment
0a12:0001
)The text was updated successfully, but these errors were encountered: