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

LE Audio Broadcast assistant #301

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ menu "ZSWatch"
default 100
endmenu
endmenu

config APPLICATIONS_USE_LEA_ASSISTANT
bool
select BT_CENTRAL
select BT_AUDIO
select BT_BAP_BROADCAST_ASSISTANT
select BT_TINYCRYPT_ECC
prompt "Activate the application 'LE Audio Assistant'"
default n
endmenu

menu "Watchface"
Expand Down Expand Up @@ -255,6 +264,7 @@ 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

menu "UI"
Expand Down
100 changes: 53 additions & 47 deletions app/child_image/hci_ipc.conf
Original file line number Diff line number Diff line change
@@ -1,47 +1,53 @@
CONFIG_BT_EXT_ADV=y

CONFIG_BT_CTLR=y
CONFIG_BT_LL_SW_SPLIT=y

CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_CTLR_ADV_PERIODIC=y

CONFIG_BT_CTLR_DF=y

CONFIG_BT_CTLR_DF_SCAN_CTE_RX=n
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

# Enable chaining of multiple CTEs in periodic advertising
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_ADV_SYNC_PDU_BACK2BACK=y
CONFIG_BT_CTLR_DF_PER_ADV_CTE_NUM_MAX=16

CONFIG_BT_CTLR_TX_PWR_0=y
CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=191

# Enable chaining of multiple CTEs in periodic advertising
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_ADV_SYNC_PDU_BACK2BACK=y
CONFIG_BT_CTLR_DF_PER_ADV_CTE_NUM_MAX=16

CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=n
CONFIG_BT_BROADCASTER=y

CONFIG_BT_EXT_ADV_MAX_ADV_SET=2
CONFIG_BT_CTLR_ADV_AUX_SET=2
CONFIG_BT_TICKER_UPDATE=y

CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
# DFU over BT requires
# increase of ble throughput
CONFIG_BT_BUF_ACL_RX_SIZE=502
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_EXT_ADV=y

CONFIG_BT_CTLR=y
CONFIG_BT_LL_SW_SPLIT=y

CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_CTLR_ADV_PERIODIC=y

CONFIG_BT_CTLR_DF=y

CONFIG_BT_CTLR_DF_SCAN_CTE_RX=n
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=3

# Enable chaining of multiple CTEs in periodic advertising
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_ADV_SYNC_PDU_BACK2BACK=y
CONFIG_BT_CTLR_DF_PER_ADV_CTE_NUM_MAX=16

CONFIG_BT_CTLR_TX_PWR_0=y
CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=191

# Enable chaining of multiple CTEs in periodic advertising
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_ADV_SYNC_PDU_BACK2BACK=y
CONFIG_BT_CTLR_DF_PER_ADV_CTE_NUM_MAX=16

CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=n
CONFIG_BT_BROADCASTER=y

CONFIG_BT_EXT_ADV_MAX_ADV_SET=2
CONFIG_BT_CTLR_ADV_AUX_SET=2
CONFIG_BT_TICKER_UPDATE=y

CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
# DFU over BT requires
# increase of ble throughput
CONFIG_BT_BUF_ACL_RX_SIZE=502
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_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