-
Notifications
You must be signed in to change notification settings - Fork 8.2k
samples: Bluetooth: observer: Extended Scanning on BBC Micro Bit board #95191
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
Merged
kartben
merged 3 commits into
zephyrproject-rtos:main
from
cvinayak:github_observer_bbc_microbit
Sep 2, 2025
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,5 @@ | ||
| # Enable thread analysis | ||
| CONFIG_THREAD_ANALYZER=y | ||
| CONFIG_THREAD_ANALYZER_AUTO=y | ||
| CONFIG_THREAD_ANALYZER_AUTO_INTERVAL=5 | ||
| CONFIG_THREAD_NAME=y |
This file contains hidden or 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,7 @@ | ||
| /* Keep default IRQ priority low for peripherals to reduce Radio ISR latency. | ||
| * ARM Cortex-M4 lowest priority value of 5, i.e. considering Zephyr reserved 2 | ||
| * levels for Exceptions and ZLI (if enabled). | ||
| * ARM Cortex-M0 lowest priority value of 3, i.e. we use it as Zephyr has no | ||
| * support for ZLI on Cortex-M0. | ||
| */ | ||
| #define NRF_DEFAULT_IRQ_PRIORITY 3 |
53 changes: 53 additions & 0 deletions
53
samples/bluetooth/observer/overlay_bbc_microbit-bt_ll_sw_split.conf
This file contains hidden or 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,53 @@ | ||
| # Adjust Stack Sizes for reduce RAM usage | ||
| CONFIG_MAIN_STACK_SIZE=1024 | ||
| CONFIG_IDLE_STACK_SIZE=128 | ||
| CONFIG_ISR_STACK_SIZE=1024 | ||
| CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1024 | ||
|
|
||
| # Enable Extended Scanning | ||
| # CONFIG_BT_EXT_ADV=y | ||
|
|
||
| # Set maximum scan data length for Extended Scanning | ||
| CONFIG_BT_EXT_SCAN_BUF_SIZE=192 | ||
|
|
||
| # Zephyr Bluetooth LE Controller needs 16 event buffers to generate Extended | ||
| # Advertising Report for receiving the complete 1650 bytes of data. | ||
| # Use 4 to be able to receive a minimal extended advertising with chains. | ||
| CONFIG_BT_BUF_EVT_RX_COUNT=4 | ||
|
|
||
| # Use Zephyr Bluetooth Low Energy Controller implementation | ||
| CONFIG_BT_LL_SW_SPLIT=y | ||
|
|
||
| # Set maximum scan data length for Extended Scanning in Bluetooth LE Controller. | ||
| CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=192 | ||
|
|
||
| # Increase Zephyr Bluetooth LE Controller Rx buffer to receive complete chain | ||
| # of PDUs. Need 9 for maximum of 1650 bytes, but we use 3 as minimum to receive | ||
| # at least a primary PDU, an auxiliary PDU and a chain PDU. | ||
| CONFIG_BT_CTLR_RX_BUFFERS=3 | ||
|
|
||
| # Enable advanced features | ||
| CONFIG_BT_CTLR_ADVANCED_FEATURES=y | ||
|
|
||
| # Adjust execution context priorities to achieve lower Radio ISR latencies | ||
| CONFIG_BT_CTLR_LLL_PRIO=0 | ||
| CONFIG_BT_CTLR_ULL_HIGH_PRIO=1 | ||
| CONFIG_BT_CTLR_ULL_LOW_PRIO=1 | ||
|
|
||
| # Use just-in-time collision resolution in ticker and LLL pipeline | ||
| CONFIG_BT_CTLR_LOW_LAT=n | ||
| CONFIG_BT_CTLR_LOW_LAT_ULL_DONE=n | ||
| CONFIG_BT_TICKER_LOW_LAT=n | ||
|
|
||
| # Increase the below to receive interleaved advertising chains | ||
| CONFIG_BT_CTLR_SCAN_AUX_SET=3 | ||
| CONFIG_BT_CTLR_LOW_LAT_ULL=y | ||
| # CONFIG_BT_CTLR_SCAN_AUX_USE_CHAINS=y | ||
| # CONFIG_BT_CTLR_SCAN_AUX_CHAIN_COUNT=3 | ||
|
|
||
| # Use unreserved timespace scanning | ||
| CONFIG_BT_CTLR_SCAN_UNRESERVED=y | ||
|
|
||
| # Code size reduction | ||
| CONFIG_ISR_TABLES_LOCAL_DECLARATION=y | ||
| CONFIG_LTO=y | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.