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

HCI support over RPTUN #8766

Closed
raiden00pl opened this issue Mar 8, 2023 · 4 comments · Fixed by #8794
Closed

HCI support over RPTUN #8766

raiden00pl opened this issue Mar 8, 2023 · 4 comments · Fixed by #8794
Labels
enhancement New feature or request

Comments

@raiden00pl
Copy link
Contributor

raiden00pl commented Mar 8, 2023

Hi, is there anyone currently working on the support of BT HCI over RPTUN ?

A question probably mainly for the Xiaomi team. I prefer to ask to avoid duplication of work before I start implementing it myself.

@raiden00pl raiden00pl added the enhancement New feature or request label Mar 8, 2023
@xiaoxiang781216
Copy link
Contributor

Hi, is there anyone currently working on the support of BT HCI over RPTUN ?

How about btuart_shim+rpmsg-uart?

A question probably mainly for the Xiaomi team. I prefer to ask to avoid duplication of work before I start implementing it myself.

Or you want to make bt_driver remote directly?

@raiden00pl
Copy link
Contributor Author

How about btuart_shim+rpmsg-uart?

TIL: shim is a valid computer programming term :)

I didn't look at bt_uart_shim.c before but I see now this is something that may be helpful.

Or you want to make bt_driver remote directly?

I was thinking about remote bt_driver, something like HCI RPMSG in Zephyr (https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/bluetooth/hci/rpmsg.c), but for now I'll try the solution you proposed.

@xiaoxiang781216
Copy link
Contributor

Both is fine, but we didn't do the Zephyr approach on NuttX yet. If you finally select Zephyr approach, I can help review your change.

@raiden00pl
Copy link
Contributor Author

I ended up writing a Zephyr-like HCI RPMSG controller. After a dozen hardfaults and deadlocks, it seems to work. I'll prepare PR tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants