Closed wcauchois closed 4 years ago
@wcauchois Thanks for reporting the issue. Would you please help provide more details as suggested in the issue template? Information like elf, sdk configuration, backtrace, log outputs, commit ID, and etc. would help us debug further. Thanks.
Thanks for the reply @Alvin1Zhang. Here's my sdkconfig and some more comprehensive logs: https://gist.github.com/wcauchois/f0d0df5d26c19f24b895b1c5d1f84936
To give some color to the logs: my code is pretty similar to the GATT client tutorial, wherein I maintain a profile_tab with the connection ID. To sanity check things, I have those STATUS
logs which just print out the profile tab gatt IFs and conn IDs every second.
Hello. Sorry for the late reply. From your sdkconfig and logs, I found you try to connect more than four devices but config in menuconfig is just for four, so you can not connect the device and got the error log "Max TCB for gatt_if reached". If you want to connect more than four devices you need to change the menuconfig of both host option → Component config → Bluetooth → Bluedroid Options → BT/BLE MAX ACL CONNECTIONS(1~7)
and controller option → Component config → Bluetooth → Bluetooth controller → BLE Max Connections
.
@wcauchois Thanks for reporting, will close due to short of feedback, feel free to reopen with more details. Thanks.
Environment
git describe --tags
to find it): //v3.3
xtensa-esp32-elf-gcc --version
to find it): // xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 5.2.0Problem Description
I have an application that's acting as a BLE GATT client and connecting to up to 3 peripherals. Sometimes I get the following log message:
Where
5
is one of the client interfaces. After this, GATTC opens on that interface fail repeatedly. Does anyone know what this error message means or how I can investigate this further?