-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromtree] tests: bluetooth: tester: Add PBP support
Implements the PBP commands of the BTP specs, in order to support testing the PBP through autopts. This PR is in conjunction with the following PR in AutoPTS: auto-pts/auto-pts#1356 Signed-off-by: Frode van der Meeren <[email protected]> (cherry picked from commit 913012ab81aea056b87f052764b8a4cba36c4280) Signed-off-by: Alexander Svensen <[email protected]>
- Loading branch information
Showing
8 changed files
with
384 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,3 +166,6 @@ CONFIG_BT_TBS_SUPPORTED_FEATURES=3 | |
|
||
# TMAP | ||
CONFIG_BT_TMAP=y | ||
|
||
# PBP | ||
CONFIG_BT_PBP=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* btp_pbp.c - Bluetooth PBP Tester */ | ||
|
||
/* | ||
* Copyright (c) 2025 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* This is main.h */ | ||
|
||
#define BTP_PBP_READ_SUPPORTED_COMMANDS 0x01 | ||
struct btp_pbp_read_supported_commands_rp { | ||
uint8_t data[0]; | ||
} __packed; | ||
|
||
#define BTP_PBP_SET_PUBLIC_BROADCAST_ANNOUNCEMENT 0x02 | ||
struct btp_pbp_set_public_broadcast_announcement_cmd { | ||
uint8_t features; | ||
uint8_t metadata_len; | ||
uint8_t metadata[]; | ||
} __packed; | ||
|
||
#define BTP_PBP_SET_BROADCAST_NAME 0x03 | ||
struct btp_pbp_set_broadcast_name_cmd { | ||
uint8_t name_len; | ||
uint8_t name[]; | ||
} __packed; | ||
|
||
#define BTP_PBP_BROADCAST_SCAN_START 0x04 | ||
struct btp_pbp_broadcast_scan_start_cmd { | ||
} __packed; | ||
|
||
#define BTP_PBP_BROADCAST_SCAN_STOP 0x05 | ||
struct btp_pbp_broadcast_scan_stop_cmd { | ||
} __packed; | ||
|
||
#define BTP_PBP_EV_PUBLIC_BROADCAST_ANOUNCEMENT_FOUND 0x80 | ||
struct btp_pbp_ev_public_broadcast_anouncement_found_rp { | ||
bt_addr_le_t address; | ||
uint8_t broadcast_id[BT_AUDIO_BROADCAST_ID_SIZE]; | ||
uint8_t advertiser_sid; | ||
uint16_t padv_interval; | ||
uint8_t pba_features; | ||
uint8_t broadcast_name_len; | ||
uint8_t broadcast_name[]; | ||
} __packed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.