Apply bluefruit ez changes

- rebuild libbt.a and libesp_hid.a with CONFIG_BT_HID_ENABLED=y and
CONFIG_BT_HID_DEVICE_ENABLED=y, also rebuilt is updated to base on idf
v4.4.2
- rebase and update arduino-esp32 to branch release/4.4
- update libbt with SDP_MAX_PAD_LEN=500
- fix hid descriptor len is larger than 256 causing incorrect SDP record in stack
- update lib bt & esp_hid to support device information profile for bluetooth hid
classic(vid/pid/version)
- bump up BluetoothSerial buffer: TX_QUEUE_SIZE from 32 to 128, SPP_TX_MAX from 330 to 4096
This commit is contained in:
hathach 2024-03-27 17:04:23 +07:00
parent 44da992b77
commit bf30f23484
No known key found for this signature in database
GPG key ID: 26FAB84F615C3C52
10 changed files with 15 additions and 3 deletions

View file

@ -41,7 +41,7 @@
const char * _spp_server_name = "ESP32SPP";
#define RX_QUEUE_SIZE 512
#define TX_QUEUE_SIZE 32
#define TX_QUEUE_SIZE 128
#define SPP_TX_QUEUE_TIMEOUT 1000
#define SPP_TX_DONE_TIMEOUT 1000
#define SPP_CONGESTED_TIMEOUT 1000
@ -175,7 +175,7 @@ static esp_err_t _spp_queue_packet(uint8_t *data, size_t len){
return ESP_OK;
}
const uint16_t SPP_TX_MAX = 330;
const uint16_t SPP_TX_MAX = 4096;
static uint8_t _spp_tx_buffer[SPP_TX_MAX];
static uint16_t _spp_tx_buffer_len = 0;
@ -794,6 +794,8 @@ BluetoothSerial::~BluetoothSerial(void)
*/
bool BluetoothSerial::begin(String localName, bool isMaster)
{
log_i("SPP_TX_MAX = %u", SPP_TX_MAX);
log_i("TX_QUEUE_SIZE = %u", TX_QUEUE_SIZE);
_isMaster = isMaster;
if (localName.length()){
local_name = localName;

View file

@ -155,6 +155,8 @@
#define CONFIG_BT_HFP_ENABLE 1
#define CONFIG_BT_HFP_CLIENT_ENABLE 1
#define CONFIG_BT_HFP_AUDIO_DATA_PATH_PCM 1
#define CONFIG_BT_HID_ENABLED 1
#define CONFIG_BT_HID_DEVICE_ENABLED 1
#define CONFIG_BT_SSP_ENABLED 1
#define CONFIG_BT_BLE_ENABLED 1
#define CONFIG_BT_GATTS_ENABLE 1

View file

@ -155,6 +155,8 @@
#define CONFIG_BT_HFP_ENABLE 1
#define CONFIG_BT_HFP_CLIENT_ENABLE 1
#define CONFIG_BT_HFP_AUDIO_DATA_PATH_PCM 1
#define CONFIG_BT_HID_ENABLED 1
#define CONFIG_BT_HID_DEVICE_ENABLED 1
#define CONFIG_BT_SSP_ENABLED 1
#define CONFIG_BT_BLE_ENABLED 1
#define CONFIG_BT_GATTS_ENABLE 1

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -156,6 +156,8 @@
#define CONFIG_BT_HFP_ENABLE 1
#define CONFIG_BT_HFP_CLIENT_ENABLE 1
#define CONFIG_BT_HFP_AUDIO_DATA_PATH_PCM 1
#define CONFIG_BT_HID_ENABLED 1
#define CONFIG_BT_HID_DEVICE_ENABLED 1
#define CONFIG_BT_SSP_ENABLED 1
#define CONFIG_BT_BLE_ENABLED 1
#define CONFIG_BT_GATTS_ENABLE 1

View file

@ -156,6 +156,8 @@
#define CONFIG_BT_HFP_ENABLE 1
#define CONFIG_BT_HFP_CLIENT_ENABLE 1
#define CONFIG_BT_HFP_AUDIO_DATA_PATH_PCM 1
#define CONFIG_BT_HID_ENABLED 1
#define CONFIG_BT_HID_DEVICE_ENABLED 1
#define CONFIG_BT_SSP_ENABLED 1
#define CONFIG_BT_BLE_ENABLED 1
#define CONFIG_BT_GATTS_ENABLE 1

View file

@ -388,7 +388,9 @@ CONFIG_BT_HFP_CLIENT_ENABLE=y
# CONFIG_BT_HFP_AG_ENABLE is not set
CONFIG_BT_HFP_AUDIO_DATA_PATH_PCM=y
# CONFIG_BT_HFP_AUDIO_DATA_PATH_HCI is not set
# CONFIG_BT_HID_ENABLED is not set
CONFIG_BT_HID_ENABLED=y
# CONFIG_BT_HID_HOST_ENABLED is not set
CONFIG_BT_HID_DEVICE_ENABLED=y
CONFIG_BT_SSP_ENABLED=y
CONFIG_BT_BLE_ENABLED=y
CONFIG_BT_GATTS_ENABLE=y

Binary file not shown.