Hello. I am trying to implement stable connection between my nordic nrf5340 and Samsung Galaxy Buds3 earbuds. I did it based on ble audio example with two connections (one for each ear). It works, but there is 1 thing. After successfull bonding if I, for example, close the earbuds box then i have disconnection and when I try to reconnect (without reboot, using
bt_conn_le_create(paddresses[0], BT_CONN_LE_CREATE_CONN,
BT_LE_CONN_PARAM_DEFAULT,
&connections[0]);
) I catch an error in security_changed_cb with code 2. If i ignore this error - i cant to discover sinks with code 5. I have tried a lot of things making device config:
CONFIG_BT_PRIVACY=y
CONFIG_BT_BONDABLE=y
CONFIG_SETTINGS=y
CONFIG_BT_SETTINGS=y
then load/save params, check bondings... Bonding is ok, it checks, but i cant connect to bonded device.
But there is no result.
What should i try next?