Skip to content
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

realtek driver #203

Merged
merged 9 commits into from
Jul 11, 2023
Merged

realtek driver #203

merged 9 commits into from
Jul 11, 2023

Conversation

barbibulle
Copy link
Collaborator

Add support for loading FW images and config on Realtek USB dongles

@barbibulle barbibulle requested a review from uael June 18, 2023 02:08
bumble/drivers/rtk.py Show resolved Hide resolved
host.send_hci_packet(HCI_RTK_Drop_Firmware_Command())

# Wait for the command to be effective (no response is sent)
await asyncio.sleep(Driver.POST_DROP_DELAY)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: perform a reset instead ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerned that performing a reset instead of waiting may lead to a deadlock, because if the reset command is sent while the dongle FW is restarting, it may be dropped, and we'd be waiting for a response for ever.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just realized it's only used for the command line tool so I guess it's fine!

bumble/drivers/rtk.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants