bluedroid host supports the maximum number of connections to 9

This commit is contained in:
zhiweijian 2022-11-03 21:33:14 +08:00 committed by zwj
parent 2f23825f60
commit 957bf03d6a
3 changed files with 9 additions and 5 deletions

View File

@ -1010,12 +1010,16 @@ menu "BT DEBUG LOG LEVEL"
endmenu #BT DEBUG LOG LEVEL endmenu #BT DEBUG LOG LEVEL
config BT_ACL_CONNECTIONS config BT_ACL_CONNECTIONS
int "BT/BLE MAX ACL CONNECTIONS(1~7)" int "BT/BLE MAX ACL CONNECTIONS(1~9)"
depends on BT_BLUEDROID_ENABLED depends on BT_BLUEDROID_ENABLED
range 1 7 range 1 9
default 4 default 4
help help
Maximum BT/BLE connection count Maximum BT/BLE connection count. The ESP32-C3/S3 chip supports a maximum of 10 instances,
including ADV, SCAN and connections. The ESP32-C3/S3 chip can connect up to 9 devices if
ADV or SCAN uses only one. If ADV and SCAN are both used, The ESP32-C3/S3 chip is connected
to a maximum of 8 devices. Because Bluetooth cannot reclaim used instances once ADV or SCAN
is used.
config BT_MULTI_CONNECTION_ENBALE config BT_MULTI_CONNECTION_ENBALE
bool "Enable BLE multi-conections" bool "Enable BLE multi-conections"

View File

@ -1153,7 +1153,7 @@ typedef union {
} tBTA_DM_MSG; } tBTA_DM_MSG;
#define BTA_DM_NUM_PEER_DEVICE 7 #define BTA_DM_NUM_PEER_DEVICE MAX_ACL_CONNECTIONS
#define BTA_DM_NOT_CONNECTED 0 #define BTA_DM_NOT_CONNECTED 0
#define BTA_DM_CONNECTED 1 #define BTA_DM_CONNECTED 1

View File

@ -317,7 +317,7 @@ typedef struct {
} tBTA_GATTC_SERV; } tBTA_GATTC_SERV;
#ifndef BTA_GATTC_NOTIF_REG_MAX #ifndef BTA_GATTC_NOTIF_REG_MAX
#define BTA_GATTC_NOTIF_REG_MAX 7//15 #define BTA_GATTC_NOTIF_REG_MAX BTA_GATTC_CONN_MAX
#endif #endif
typedef struct { typedef struct {