Skip to content

Repository files navigation

Welcome to BTstack

BTstack is BlueKitchen's implementation of the official Bluetooth stack. It is well suited for small, resource-constraint devices such as 8 or 16 bit embedded systems as it is highly configurable and comes with an ultra small memory footprint.

Targeting a variety of platforms is as simple as providing the necessary UART, CPU, and CLOCK implementations. BTstack is currently capable of connecting to Bluetooth-modules via: (H2) HCI USB, (H4) HCI UART + TI's eHCILL, and (H5) HCI Three-Wire UART.

On smaller embedded systems, a minimal run loop implementation allows to use BTstack without a Real Time OS (RTOS). If a RTOS is already provided, BTstack can be integrated and run as a single thread.

On larger systems, BTstack provides a server that connects to a Bluetooth module. Multiple applications can communicate with this server over different inter-process communication methods. As sockets are used for client/server communication, it's easy to interact via higher-level level languages, e.g. there's already a Java binding for use in desktop environments.

BTstack supports the Central and the Peripheral Role of Bluetooth 5 Low Energy specification incl. LE Secure Connections, LE Data Channels, and LE Data Length Extension. It can be configured to run as either single-mode stack or a dual-mode stack.

BTstack is free for non-commercial use. However, for commercial use, tell us a bit about your project to get a quote.

Documentation:HTML, PDF

Discussion and Community Support:BTstack Google Group

Supported Protocols and Profiles

Protocols: L2CAP (incl. LE Data Channels), RFCOMM, SDP, BNEP, AVDTP, AVCTP, ATT, SM (incl. LE Secure Connections).

Profiles: GAP, IOP, HFP, HSP, SPP, PAN, A2DP, AVRCP incl. Browsing, GATT.

Beta Stage: HID, HOGP, PBAP.

In Development: BLE Mesh and more.

It has been qualified with the Bluetooth SIG (QDID 110883) for GAP, IOP, HFP, HSP, SPP, PAN, A2DP, AVRCP profiles and GATT, SM of the Bluetooth 5 specification. For information on MFi/iAP2 support, please contact us.

Evaluation Platforms

Embedded Platforms:

Build StatusPortPlatform
esp32Espressif ESP32 2.4 GHz Wi-Fi and Bluetooth Dual-Mode combo chip using FreeRTOS
ez430-rf2560EZ430-RF256x Bluetooth Evaluation Tool for MSP430
msp-exp430f5438-cc2564bMSP430F5438 Experimenter Board for MSP430 with Bluetooth CC2564 Module Evaluation Board
msp430f5529lp-cc2564bMSP-EXP430F5529LP LaunchPad with Bluetooth CC2564 Module Evaluation Board and EM Adapter BoosterPack with additional 32768Hz quartz oscillator
max32630-fthrMAX32630FTHR ARM Cortex M4F Board with onboard Panasonic PAN1326 module containing TI CC2564B Bluetooth controller
samv71-xplained-atwilc3000SAMV71 Ultra Xplained Ultra evaluation kit with ATWILC3000 SHIELD
stm32-f103rb-nucleoSTM32 Nucleo development board NUCLEO-F103RB with Bluetooth CC2564 Module Evaluation Board and EM Adapter BoosterPack with additional 32768Hz quartz oscillator
stm32-f4discovery-cc2564bSTM32 F4 Discovery Board with CC256xEM Bluetooth Adapter Kit for ST and CC2564B Dual-mode Bluetooth® Controller Evaluation Module
stm32-l073rz-nucleo-em9304EM9304 DVK: STM32 Nucleo development board NUCELO-L73RZ with EM9304 Bluetooth Controller
pic32-harmonyMicrochip's PIC32 Bluetooth Audio Development Kit
wiced-h4Broadcom/Cypress platforms that support the WICED SDK via H4 UART, e.g. RedBear Duo (BCM43438 A1), Inventek Systems ISM4334x (BCM43438 A1), Inventek Systems ISM4343 (BCM43340)
No build serverwiced-h5Broadcom platforms that support the WICED SDK via H5 UART, see wiced-h4

Other Platforms:

StatusPortPlatform
posix-h4Unix-based system connected to Bluetooth module via H4 over serial port
No build serverposix-h4-da14581Unix-based system connected to Dialog Semiconductor DA14581 via H4 over serial port
No build serverposix-h4-da14585Unix-based system connected to Dialog Semiconductor DA14585 via H4 over serial port
No build serverposix-h5Unix-based system connected to Bluetooth module via H5 over serial port
No build serverposix-h5-bcmUnix-based system connected to Broadcom/Cypress Bluetooth module via H5 over serial port
libusbUnix-based system with dedicated USB Bluetooth dongle
No build serverlibusb-intelUnix-based system with Intel Wireless 8260/8265 Controller
No build serverwindows-h4Win32-based system connected to Bluetooth module via serial port
No build serverwindows-winusbWin32-based system with dedicated USB Bluetooth dongle
No build serverwindows-winusb-intelWin32-based system with Intel Wireless 8260/8265 Controller
No build serverraspiRaspberry Pi 3 or Raspberry Pi Zero W with built-in BCM4343 Bluetooth/Wifi Controller
daemonTCP and Unix domain named socket client-server architecture supporting multiple clients
javaJava wrapper for daemon
mtkdaemon for rooted Android devices, based on Mediatek MT65xx processor, Java and C client-server API
iosdaemon for iOS jailbreak devices, C client-server API
No build serverfreertosFreeRTOS: Run BTstack on a dedicated thread, not thread-safe.

Supported Chipsets

ChipsetTypeHCI TransportSCO over HCIBTstack folderComment
Atmel ATWILC3000LEH4n.a.atwilc3000Firmware size: 60 kB
Broadcom UARTDual modeH4, H5ProbablybcmMax UART baudrate 2 mbps
Broadcom USB DonglesDual modeUSBYesbcm
CSR UARTDual modeH4, H5, BCSPNo (didn't work)csr
CSR USB DonglesDual modeUSBYescsr
Cypress CYW20704Dual modeH4, H5, USBProbablybcm
Cypress PSoC 4LEH4n.a.HCI Firmware part of PSoC Creator kit examples
Dialog Semiconductor DA14581, DA14585LEH4, SPIn.a.da14581Official HCI firmware used
Dialog Semiconductor DA1469xLEH4, SPIn.aHCI Firmware part of DA1469x SDK
Espressif ESP32Dual modeVHCINot yetSoC with Bluetooth and Wifi
EM 9301, 9304LESPIn.a.em9301Custom HCI SPI implementation
Intel Dual Wireless 8260, 8265Dual modeUSBProbablyintelFirmware size: 400 kB
Nordic nRFLEH4n.a.Requires custom HCI firmware
STM STLC2500DClassicH4No (didn't try)stlc2500dCustom deep sleep management not supported
Toshiba TC35661Dual modeH4Notc3566
TI CC256x, WL183xDual modeH4, H5, eHCILLYescc256xAlso WL185x, WL187x, and WL189x

More infos on supported chipsets

Source Tree Overview

PathDescription
chipsetSupport for individual Bluetooth chipsets
docSources for BTstack documentation
exampleExample applications available for all ports
platformSupport for special OSs and/or MCU architectures
portComplete port for a MCU + Chipset combinations
srcBluetooth stack implementation
testUnit and PTS tests
toolHelper tools for BTstack

About

Dual-mode Bluetooth stack, with small memory footprint.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages