Skip to content
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

tests: bsim: Bluetooth: Enable some high reliability CAP tests #80788

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Commits on Nov 15, 2024

  1. Bluetooth: Controller: Fix to reschedule before overlap when yielding

    Fix to reschedule before overlap and be collision resolved
    in the next periodic interval for tickers using slot window
    yield.
    
    Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
    cvinayak committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    83b4091 View commit details
    Browse the repository at this point in the history
  2. Bluetooth: Controller: Introduce ticker reschedule with drift

    Introduce ticker reschedule with drift so that role like
    AUX_ADV_IND can start after overlapping states and roles
    using time reservations.
    
    Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
    cvinayak committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    c7bfef4 View commit details
    Browse the repository at this point in the history
  3. Bluetooth: Controller: Ext Adv Auxiliary PDUs with ticks_slot_window

    Add implementation for Extended Advertising Auxiliary PDUs
    to use ticks slot window feature.
    
    This will allow the periodic scheduling of AUX_ADV_IND PDUs
    to drift upto 10 ms advertising delay minus the ticks_slot
    time reservation of the AUX_ADV_IND PDU when overlapping
    with other states/roles that cannot be moved around, to
    avoid skipping them.
    
    Having an active Extended Advertising simultaneously with
    an ISO Synchronized Receiver or Connected ISO connection
    will now have less ISO SDU loss when using 10 ms ISO
    intervals.
    
    Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
    cvinayak committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    1dbe5e6 View commit details
    Browse the repository at this point in the history
  4. Bluetooth: Controller: Fix ISO Sync Receiver skipped ISO SDU

    Fix ISO Sync Receiver implementation to correctly reflect
    the payload number and timestamp.
    
    Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
    cvinayak committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    d1e4102 View commit details
    Browse the repository at this point in the history
  5. Bluetooth: Controller: Fix ISO Sync Receiver time reservations

    Fix ISO Sync Receiver time reservation calculation to use
    peer broadcasted bis_spacing and sub_interval, instead of
    incorrectly calculating using local implementation used
    tMSS value.
    
    Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
    cvinayak committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    c24e87f View commit details
    Browse the repository at this point in the history
  6. Bluetooth: Controller: Fix ISO Sync Receiver is_abort_cb

    Fix ISO Sync Receiver implementation to correctly prevent
    subevent from pre-empted in the unreserve time space.
    
    Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
    cvinayak committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    d46b54a View commit details
    Browse the repository at this point in the history
  7. tests: Bluetooth: Audio: Remove uses of K_FOREVER in syswg for TX

    Several tests were using K_FOREVER when allocating the
    buffer for TX in the system workqueue, which is illegal behavior.
    
    The solution chosen was to create a TX thread to handle TX,
    similar to the solution used in the audio shell and some
    sample applications.
    
    This way we can continue to use K_FOREVER when allocting buffers
    and it will always be done in a round-robin fashion while
    TXing as much as possible, by always enqueuing all the buffers
    with mock data.
    
    Since this works for all streams (both broadcast and unicast),
    it was obvious to use the same implementation for all tests,
    and thus cleaning up the tests a bit and more them more similar.
    
    Signed-off-by: Emil Gydesen <[email protected]>
    Thalley authored and cvinayak committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    9cf88ea View commit details
    Browse the repository at this point in the history
  8. tests: Bluetooth: CAP: Remove dup adv in acceptor bsim test

    Remove a duplicated advertising set in the CAP acceptor babblesim
    test. The advertising set is configured in test_start_adv.
    
    Signed-off-by: Emil Gydesen <[email protected]>
    Thalley authored and cvinayak committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    fac4d40 View commit details
    Browse the repository at this point in the history
  9. tests: Bluetooth: CAP: Acceptor bsim test use ext_adv

    The BSIM test for the CAP acceptor used legacy instead
    of extended advertising.
    
    This also adds the required advertising data and validation
    on the CAP initiator and CAP commander.
    
    Signed-off-by: Emil Gydesen <[email protected]>
    Thalley authored and cvinayak committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    39a8ec0 View commit details
    Browse the repository at this point in the history
  10. tests: bsim: Bluetooth: Align audio test Controller Kconfig

    Align audio test Controller Kconfig value same as used with
    nRF53bsim.
    
    Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
    cvinayak committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    4123443 View commit details
    Browse the repository at this point in the history
  11. tests: bsim: Bluetooth: Enable some high reliability CAP tests

    Enable some high reliability CAP tests by increasing ISO Tx
    buffer counts in the Controller to sufficiently generate
    number of complete when multiple SDUs are transmitted in
    single ISO interval with use of pre-transmissions.
    
    Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
    cvinayak committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    58ddb33 View commit details
    Browse the repository at this point in the history