Skip to content

Commit

Permalink
Broadcast assistant PoC
Browse files Browse the repository at this point in the history
  • Loading branch information
ldab committed Jul 17, 2024
1 parent 7700a3b commit 11c8480
Show file tree
Hide file tree
Showing 18 changed files with 2,312 additions and 4 deletions.
12 changes: 12 additions & 0 deletions app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ menu "ZSWatch"
prompt "Activate the application 'PPT remote'"
default n

config APPLICATIONS_USE_LEA_ASSISTANT
bool
select BT_CENTRAL
select BT_AUDIO
select BT_BAP_BROADCAST_ASSISTANT
select BT_TINYCRYPT_ECC
# CONFIG_BT_BAP_SCAN_DELEGATOR=y is required until the following
# bug is fixed: https://github.com/zephyrproject-rtos/zephyr/issues/68338
select BT_BAP_SCAN_DELEGATOR
prompt "Activate the application 'LE Audio Assistant'"
default n
endmenu

menu "Watchface"
Expand Down Expand Up @@ -254,5 +265,6 @@ menu "ZSWatch"
rsource "src/applications/notification/Kconfig"
rsource "src/applications/trivia/Kconfig"
rsource "src/applications/ppt_remote/Kconfig"
rsource "src/applications/lea_assistant/Kconfig"
endmenu
endmenu
10 changes: 8 additions & 2 deletions app/child_image/hci_ipc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=n
CONFIG_BT_CTLR_DF_CTE_RX=n

# Limit number of possible connection to decrease memory usage
CONFIG_BT_MAX_CONN=1
CONFIG_BT_MAX_CONN=3

# Enable chaining of multiple CTEs in periodic advertising
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
Expand Down Expand Up @@ -44,4 +44,10 @@ CONFIG_BT_BUF_ACL_TX_SIZE=502
# Temporary fix as there is a strange behaviour with some Android
# phones.
CONFIG_BT_DATA_LEN_UPDATE=n
#CONFIG_BT_CTLR_DATA_LENGTH_MAX=251

CONFIG_BT_PER_ADV_SYNC=y

CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=1650

CONFIG_BT_BUF_EVT_RX_COUNT=16

5 changes: 3 additions & 2 deletions app/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,18 @@ CONFIG_BT_DEVICE_APPEARANCE=194
CONFIG_BT_KEYS_OVERWRITE_OLDEST=y
CONFIG_BT_SETTINGS=y
CONFIG_BT_MAX_PAIRED=5
CONFIG_BT_MAX_CONN=1
CONFIG_BT_MAX_CONN=3
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_CACHING=y
CONFIG_BT_GATT_NOTIFY_MULTIPLE=y

CONFIG_BT_BROADCASTER=y
CONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE=y
CONFIG_BT_ECC=y
CONFIG_BT_CONN_TX_MAX=3
CONFIG_BT_CONN_TX_MAX=6

CONFIG_BT_L2CAP_TX_MTU=498
CONFIG_BT_L2CAP_TX_BUF_COUNT=6
CONFIG_BT_BUF_ACL_RX_SIZE=502
CONFIG_BT_BUF_ACL_TX_SIZE=502

Expand Down
4 changes: 4 additions & 0 deletions app/src/applications/lea_assistant/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if(CONFIG_APPLICATIONS_USE_LEA_ASSISTANT)
FILE(GLOB app_sources *.c)
target_sources(app PRIVATE ${app_sources})
endif()
3 changes: 3 additions & 0 deletions app/src/applications/lea_assistant/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module = ZSW_LEA_ASSISTANT_APP
module-str = ZSW_LEA_ASSISTANT_APP
source "subsys/logging/Kconfig.template.log_config"
Loading

0 comments on commit 11c8480

Please sign in to comment.