> I see that there is an ioctl interface for the bluetooth network > driver, but I don't think this is really a good idea. GATT is really > something that should be handled in userspace.
Yes, I've been using what exists at the host layer in NuttX, via the btsak application. While it opens a socket specifying "L2CAP", a lot of functionality is implemented via ioctl calls which use gatt for example. > I finally have a few weeks off, so I can see about making some HCI > socket progress, going to take a bit to get hardware setup for it > though. Cool! I can help test this. I have two nrf52832 boards I'm using: Sparkfun breakout, used as sniffer using raccoon firmware and MakerDiary MDK as main dev platform. The MDK is quite good, has embedded debugger + uart via USB (using DAPLINK). BTW, I would like to CC Xiang to have him in the loop but I can't find his email address (only GitHub handle). Can you copy him? Best, Matias