Add true wireless BAP broadcast tests
Status from this message: This series was applied to bluetooth/bluez.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | doc: describe the true wireless broadcast test casesdoc/ | +112 | 1 reply | |
| 2/6 | doc: describe the true wireless broadcast assistant test casedoc/ | +122 | 0 replies | |
| 3/6 | test: functional: add the true wireless broadcast testsclient/ client/ doc/ +1 more | +158 | 0 replies | |
| 4/6 | bass: keep the push target per MediaAssistant objectprofiles/ | +28 | 0 replies | |
| 5/6 | client: connect a device that is already pairedclient/ doc/ | +44 | 0 replies | |
| 6/6 | test: functional: add the true wireless broadcast assistant testclient/ client/ doc/ +1 more | +239 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH BlueZ v1 0/6] Add true wireless BAP broadcast tests
From: Luiz Augusto von Dentz <[email protected]>
This adds functional tests for broadcast setups where the left and the right side are separate devices, as in a pair of earbuds, which so far were only covered with a single sink taking both channels.
The source broadcasts one BIS per channel, and each side registers a single location, so each of them only gets a transport for the BIS carrying its own channel: the sides are told apart by the BIS index of the transport path.
Two topologies are covered. In the first one there is no connection at all, and each side scans, syncs to the periodic advertising and reads the BASE on its own. In the second one the two sides are Scan Delegators forming a coordinated set, so the assistant discovers and connects them as one device, and pushes one BIS to each of them, each receiving the periodic advertising sync over its own ACL (PAST).
Writing the second one turned up two bugs, fixed here as well:
- Every MediaAssistant object of a local broadcast shared the bass_data of the adapter, and a push stored the session it was pushed to in it, so pushing to the second side replaced the target of the first one. The Broadcast Code the left side asked for was then written to the right one, and the left side never synced. This only shows with more than one delegator, which is why it went unnoticed so far.
- Pairing a device that is already paired was rejected with AlreadyExists, although the documentation described it as re-pairing. It connects the device instead now, which is of actual use to the user, and lets a test run against hosts that a previous one left bonded, as the hosts are reused.
Luiz Augusto von Dentz (6):
doc: describe the true wireless broadcast test cases
doc: describe the true wireless broadcast assistant test case
test: functional: add the true wireless broadcast tests
bass: keep the push target per MediaAssistant object
client: connect a device that is already paired
test: functional: add the true wireless broadcast assistant test
client/main.c | 40 +++ client/scripts/broadcast-delegator-left.bt | 32 +++ client/scripts/broadcast-delegator-right.bt | 32 +++ client/scripts/broadcast-sink-left.bt | 23 ++ client/scripts/broadcast-sink-right.bt | 23 ++ doc/bluetoothctl.rst | 6 +- doc/functional-bap.rst | 246 +++++++++++++++++ profiles/audio/bass.c | 39 ++- test/functional/test_bap.py | 285 +++++++++++++++++++- 9 files changed, 701 insertions(+), 25 deletions(-) create mode 100644 client/scripts/broadcast-delegator-left.bt create mode 100644 client/scripts/broadcast-delegator-right.bt create mode 100644 client/scripts/broadcast-sink-left.bt create mode 100644 client/scripts/broadcast-sink-right.bt
Signature · 1 line
2.55.0