btashton commented on pull request #1661: URL: https://github.com/apache/incubator-nuttx/pull/1661#issuecomment-693716628
> hey @btashton, I'm experimenting with nimBLE stack. I noticed they support HCI on Linux using BTPROTO_HCI socket (they do L2CAP themselves). I managed to get things more or less built and testing using SIM. I also pulled your changes from this PR since it would otherwise fail on bind(). I'm at the point of sendto() in bluetooth_sockif.c. It seems sending over HCI is not supported. Do you think it would be feasible to support on NuttX? I know that the idea is to use BTPROTO_L2CAP but also supporting sending HCI commands directly over BTPROTO_HCI would be nice to have. Yeah a large part of this PR is to be able to send and recv via BTPROTO_HCI, but I have not built that out yet. I got distracted with my keyboard feather project, but I have almost got that to a workable state to hop back on the Bluetooth work. I kind of wanted a board with Bluetooth to play with and this has been a good exercise for getting up to speed with the nRF52. We could probably hack in the RAW channel without too much work, but ideally we would add what you need via the CONTROL channel as that lets the kernel do some filtering and keep everything organized. Is the HCI related task that you need covered by one of the APIs here? https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/mgmt-api.txt ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org