mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-05 21:59:45 +00:00
esp32: enable Host Controller to Host Flow Control and update Readme
This commit is contained in:
parent
f03cd3a129
commit
d851289b95
@ -4,7 +4,8 @@ Status: Basic port incl. all examples. BTstack runs on dedicated FreeRTOS thread
|
||||
|
||||
## Setup
|
||||
|
||||
- Follow [Espressif IoT Development Framework (ESP-IDF) setup](https://github.com/espressif/esp-idf) to install XTensa toolchain and the ESP-IDF.
|
||||
- Follow [Espressif IoT Development Framework (ESP-IDF) setup](https://github.com/espressif/esp-idf) to install XTensa toolchain and the ESP-IDF.
|
||||
- Make sure your checkout is newer than 4654278b1bd6b7f7f55013f7edad76109f7ee944 from Aug 25th, 2017
|
||||
- In port/esp32/template, configure the serial port for firmware upload as described in the ESP-IDF setup guides.
|
||||
|
||||
## Usage
|
||||
@ -37,8 +38,10 @@ The sdkconfig of the example template disables the original Bluedroid stack by d
|
||||
|
||||
## Limitations
|
||||
|
||||
### Bug in ESP32 VHCI Implementation
|
||||
The Host Controller to Host Flow Control of the Virtual HCI (VHCI) on the ESP32 does not work for LE data (it works for HCI Events and Classic ACL packets). Without it, it is not possible to slow down incoming data. For most applications, this won't be an issue, but please keep it in mind. See https://github.com/espressif/esp-idf/issues/644
|
||||
### Bug in Host Controller to Host Flow Control implementation
|
||||
The Link Layer in the ESP32 does not reset the supervision timeout while the Host does not accept new packets (due to slow processing etc..), which will triggger a disconnect based on Connection Timeout (reason 8). See https://github.com/espressif/esp-idf/issues/644#issuecomment-325251315
|
||||
|
||||
For most applications, this won't be an issue, but please keep it in mind.
|
||||
|
||||
### Multi-Threading
|
||||
|
||||
|
@ -27,14 +27,10 @@
|
||||
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
|
||||
|
||||
// HCI Controller to Host Flow Control
|
||||
//
|
||||
// Needed on the ESP32, but not working yet
|
||||
// see https://github.com/espressif/esp-idf/issues/480
|
||||
//
|
||||
// #define ENABLE_HCI_CONTROLLER_TO_HOST_FLOW_CONTROL
|
||||
#define ENABLE_HCI_CONTROLLER_TO_HOST_FLOW_CONTROL
|
||||
|
||||
// Interal ring buffer
|
||||
#define HCI_HOST_ACL_PACKET_NUM 10
|
||||
// Interal ring buffer: 21 kB
|
||||
#define HCI_HOST_ACL_PACKET_NUM 20
|
||||
#define HCI_HOST_ACL_PACKET_LEN 1024
|
||||
#define HCI_HOST_SCO_PACKET_NUM 10
|
||||
#define HCI_HOST_SCO_PACKET_LEN 60
|
||||
|
Loading…
Reference in New Issue
Block a user