-
Notifications
You must be signed in to change notification settings - Fork 7.8k
samples: Bluetooth: Broadcast multiple legacy and extended advertising #94304
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
base: main
Are you sure you want to change the base?
samples: Bluetooth: Broadcast multiple legacy and extended advertising #94304
Conversation
771caba
to
7afe802
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave the same comment here as I usually do when you modify the samples for testing purposes: IMO samples should not be used for this purpose, and should be kept as simple as possible. I don't think the changes to the sample here will help users, and it seems to only be done to help test some features, which should done in a separate test application, instead of (ab)using samples for test purposes
samples/bluetooth/broadcaster_multiple/src/broadcaster_multiple.c
Outdated
Show resolved
Hide resolved
samples/bluetooth/broadcaster_multiple/src/broadcaster_multiple.c
Outdated
Show resolved
Hide resolved
samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf
Outdated
Show resolved
Hide resolved
There are no samples today demonstrating advertising both legacy and extended advertising (LL CI testing has coverage already); Certain phones do not fully/correctly support extended advertising and it has been a need to have advertising both legacy and extended in certain usecases to have a general inter-operability with phones not supporting versus ones that support. |
# Enable Coded PHY support in Zephyr Controller, if testing 4 advertising sets | ||
# CONFIG_BT_CTLR_PHY_CODED=y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jhedberg Currently, the Controller specific is commented for this sample, do you agree that this be moved to a overlay and sample document/readme updated according to indicate the same, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I agree
e99363d
to
eda4498
Compare
Enable similar Controller Kconfig features between nRF52 and nRF5340 BabbleSIM LE Audio testing. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Tune the aux offset calculation overhead assertion to use EVENT_OVERHEAD_START_US; this is the correct maximum overhead causing ISR latency for start of a radio event that occurs thereafter. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Update broadcaster_multiple sample to start multiple advertising sets of type legacy and extended advertising. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
eda4498
to
3c717d8
Compare
|
/* Use 1M legacy PDU */ | ||
{.options = BT_LE_ADV_OPT_NONE, | ||
.ad = ad_short, | ||
.ad_size = ARRAY_SIZE(ad_short), | ||
}, | ||
/* Use 2M auxiliary PDU */ | ||
{.options = BT_LE_ADV_OPT_EXT_ADV, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look like it's following a correct indentation style, where the contents of a new { ... }
block should always be indented by one more tab. If you did it like the following it should be correct, and not even add any new lines:
{ /* Use 1M legacy PDU */
.options = BT_LE_ADV_OPT_NONE,
.ad = ad_short,
.ad_size = ARRAY_SIZE(ad_short),
},
{ /* Use 2M auxiliary PDU */
.options = BT_LE_ADV_OPT_EXT_ADV,
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, will fix this indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is not super critical or is not fixing a bug, will take it at my spare time... will put into draft.
/* Use 1M legacy PDU */ | ||
{.options = BT_LE_ADV_OPT_NONE, | ||
.ad = ad_short, | ||
.ad_size = ARRAY_SIZE(ad_short), | ||
}, | ||
/* Use 2M auxiliary PDU */ | ||
{.options = BT_LE_ADV_OPT_EXT_ADV, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, will fix this indentation.
Update broadcaster_multiple sample to start multiple advertising sets of type legacy and extended advertising.
How they appear on-air (BabbleSim import), for 4 advertising sets:
