-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Bluetooth: settings: No space to store CCC config after successful pairing #10460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
CC @pdunaj |
CC @nvlsianpu |
Increasing BT_GATT_CCC_MAX (to BT_MAX_PAIRED+BT_MAX_CONN+5) nor CCC_STORE_MAX (from 48 to 96) does not solve the problem. Still can be reproduced with the above scenario. |
This might be a different issue than just lack of storage then. Do you have the logs with CONFIG_BT_GATT_DEBUG=y? |
Logs with GATT debug and BT storage debug enabled:
|
@Qbicz Try printing what is the cfg_len, perhaps there is some bug in BT_GATT_CCC macro that don't evaluate the actual array size for some reason. |
Hi, I did some additional investigation and this problem is not caused by GATT code. This is caused by custom service that we use. Closing this as it is not a Zephyr issue. Thanks for help! |
@Qbicz I have a similar issue, but no idea where it comes from. Do you happen to remember how you solved this issue? |
Hi @BeckmaR at that time I was working on Gaming Mouse - you can find the code here: I think the problem was that the underlying HID Service implementation by Nordic had a bug which disallowed saving more CCCs. But it was fixed shortly after we found the bug. The service is here: |
When subsequent peer connects, enabling CCC fails even though pairing was successful.
Steps to reproduce:
[bt] [WRN] bt_gatt_attr_write_ccc: No space to store CCC cfg
CCC is not enabled and it is not possible to send notifications.
Reproduced on BLE peripheral, nRF52840, BT_MAX_PAIRED = 2.
@Vudentz please let me know if you need additional information.
The text was updated successfully, but these errors were encountered: