Skip to content

Conversation

cvinayak
Copy link
Contributor

@cvinayak cvinayak commented Aug 10, 2025

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:
image

@cvinayak cvinayak force-pushed the github_broadcast_multiple_with_legacy branch 9 times, most recently from 771caba to 7afe802 Compare August 11, 2025 04:29
@cvinayak cvinayak marked this pull request as ready for review August 11, 2025 05:10
Copy link
Contributor

@Thalley Thalley left a 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

@cvinayak
Copy link
Contributor Author

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

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.

Comment on lines 12 to 13
# Enable Coded PHY support in Zephyr Controller, if testing 4 advertising sets
# CONFIG_BT_CTLR_PHY_CODED=y
Copy link
Contributor Author

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree

@cvinayak cvinayak force-pushed the github_broadcast_multiple_with_legacy branch 3 times, most recently from e99363d to eda4498 Compare August 14, 2025 03:38
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]>
@cvinayak cvinayak force-pushed the github_broadcast_multiple_with_legacy branch from eda4498 to 3c717d8 Compare August 28, 2025 21:59
Copy link

Comment on lines +91 to +97
/* 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,
Copy link
Member

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,
		...

Copy link
Contributor Author

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.

Copy link
Contributor Author

@cvinayak cvinayak left a 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.

Comment on lines +91 to +97
/* 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,
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

5 participants