Skip to content

Conversation

Thalley
Copy link
Contributor

@Thalley Thalley commented Oct 12, 2025

Expand the CIS tests to connect and use multiple CIS
instead of only using the default_chan.

Refactor the TX for the ISO host BSIM tests to use
a separate thread, instead of a timer.
This is the recommended way to handle TX, and is what the
LE Audio BSIM tests and samples use.

The TX will send 1->sdu number of octets, increasing, to
verify that any size can be sent (and to keep the check
for this in the bis_receiver).

Signed-off-by: Emil Gydesen <[email protected]>
Move the call to bt_iso_reset to before bt_conn_cleanup_all.
The reason for this is that bt_conn_cleanup_all will disconnect
all the ACL connections, which will put the CIS in a disconnecting
state, without finalizing them.
This means that if we get a num_completed_packet event between
the call to bt_conn_cleanup_all and before the BT_HCI_OP_RESET
request has been completed, we will trigger an assert in the
hci_num_completed_packets function as the CIS still exists,
but where we would already have cleaned up the pending TX
without telling the controller.

Moving the call to bt_iso_reset means that the CIS will have
been fully terminated at this point, which will prevent
the assert from happening. Since CIS depends on ACLs, this
is also the logical order for resetting them.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the iso_test_multi_cis branch from 982dc40 to cdcb100 Compare October 13, 2025 08:02
Expand the CIS tests to connect and use multiple CIS
instead of only using the default_chan.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the iso_test_multi_cis branch from cdcb100 to 3ac135f Compare October 13, 2025 10:38
Copy link

@Thalley
Copy link
Contributor Author

Thalley commented Oct 13, 2025

Depends on #97439

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant