nuttx/drivers/usbhost
Lwazi Dube 1349dcfc1f drivers/usbhost: Add a USB bluetooth driver.
This change adds support for the USB Transport Layer as described
in the bluetooth spec. Isochronous endpoints are not yet supported.
Because of limitations in the NuttX bluetooth stack, only one USB
device can be used. This driver will only allow one USB dongle to
use bluetooth.

A Laird USB BT4.2 dongle (from Mouser) was used for testing:
M/N BT851 1.0 1829, FCC ID:SQGBT850
lsusb: 04b4:f901 Cypress Semiconductor Corp. CYW20704A2

The following commands were used to test from the nsh prompt:
bt bnep0 scan start
bt bnep0 scan stop
bt bnep0 scan get
bt bnep0 info

The Linux gatttool was used to connect over wireless.

With the BDAddr found by "bt bnep0 info", start gatttool using:
gatttool -b BDAddr -I

Connect to the device using:
connect

Read the device name using the GAP device name UUID:
char-read-uuid 2a00

Part of the response is:
value: 41 70 61 63 68 65 20 4e 75 74 74 58
which is the string "Apache NuttX"
2024-01-16 16:02:15 +01:00
..
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
hid_parser.c
Kconfig drivers/usbhost: Add a USB bluetooth driver. 2024-01-16 16:02:15 +01:00
Make.defs drivers/usbhost: Add a USB bluetooth driver. 2024-01-16 16:02:15 +01:00
usbhost_bthci.c drivers/usbhost: Add a USB bluetooth driver. 2024-01-16 16:02:15 +01:00
usbhost_cdcacm.c inode/i_private: remove all unnecessary cast for i_private 2023-08-29 08:58:07 +02:00
usbhost_cdcmbim.c poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
usbhost_composite.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
usbhost_composite.h
usbhost_devaddr.c usbhost: Fix function address generation for multi-port root hubs. 2023-05-11 09:44:18 +02:00
usbhost_enumerate.c usbhost: Can now handle multiple interface descriptors. 2023-05-21 09:50:36 -03:00
usbhost_findclass.c
usbhost_ft232r.c inode/i_private: remove all unnecessary cast for i_private 2023-08-29 08:58:07 +02:00
usbhost_hidkbd.c poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
usbhost_hidmouse.c sched_lock refine: remove sched_[un]lock in xxx_waitsample 2023-11-21 20:03:43 -08:00
usbhost_hub.c drivers: usbhost_hub: usb communication memory should use DRVR_ALLOC 2023-07-19 13:38:36 +08:00
usbhost_max3421e.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
usbhost_registerclass.c
usbhost_registry.c
usbhost_registry.h
usbhost_skeleton.c drivers/usbhost/usbhost_skeleton: fix typo 2022-11-03 14:43:12 +01:00
usbhost_storage.c inode/i_private: remove all unnecessary cast for i_private 2023-08-29 08:58:07 +02:00
usbhost_trace.c
usbhost_xboxcontroller.c sched_lock refine: remove sched_[un]lock in xxx_waitsample 2023-11-21 20:03:43 -08:00