You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to btstack-dev
Hi,
I want to check if current code supports to free hci connection memory automatically when disconnecting by BTstack.
I use "a2dp_source_disconnect" and "hid_host_disconnect" to test and find the memory can not be freed autoly, which will possibly cause memory leak. On the other hand, disconnecting by device will trigger hci connection memory free in BTstack.
Is there hasn't been considered before, or is the code designed that way?
Best wishes,
Mike
mikew
unread,
Apr 7, 2024, 4:36:19 AMApr 7
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to btstack-dev
The function to trigger is "hci_shutdown_connection" in hid (br/edr), and there is more in audio device.
Matthias Ringwald
unread,
Apr 8, 2024, 4:58:32 AMApr 8
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to btsta...@googlegroups.com
Hi Mike
Both a2dp_source_disconnect and hid_host_disconnect disconnect the specified profile, but keep the HCI connection alive in case for up to 10 seconds in case you want to switch to other services.
if you just want to disconnect a remote device, you can call "gap_disconnect".