Skip to content

Bluetooth: ISO Broadcast shell updates #88151

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Apr 4, 2025

Fixed issue with broadcast code as the broadcaster and updates the shell documentation.

@Thalley Thalley marked this pull request as ready for review April 4, 2025 11:05
@github-actions github-actions bot added area: Bluetooth area: Bluetooth ISO Bluetooth LE Isochronous Channels labels Apr 4, 2025
@Thalley Thalley requested review from cvinayak and Copilot April 4, 2025 12:29
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • doc/connectivity/bluetooth/shell/host/iso.rst: Language not supported
Comments suppressed due to low confidence (2)

subsys/bluetooth/host/shell/iso.c:799

  • Changing the argument index to argv[2] appears to be a fix for correctly parsing the broadcast code. Please verify that the expected argument count and command usage align with this update.
size_t bcode_len = hex2bin(argv[2], strlen(argv[2]), param.bcode, sizeof(param.bcode));

subsys/bluetooth/host/shell/iso.c:802

  • [nitpick] While including the broadcast code length in the error message adds useful context, ensure that exposing this detail does not have unintended side effects in production environments.
shell_error(sh, "Invalid Broadcast Code Length %zu", bcode_len);

@Thalley Thalley force-pushed the iso_broadcast_enc_fix branch from 1d88d31 to 9576c4c Compare April 7, 2025 09:02
Thalley added 2 commits April 22, 2025 10:41
The broadcast code was attempting to read from argv[1] instead
of argv[2] that actually contains the broadcast code.

Signed-off-by: Emil Gydesen <[email protected]>
Add examples of how to use the ISO shell with broadcast.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the iso_broadcast_enc_fix branch from 9576c4c to daeb7d8 Compare April 22, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth ISO Bluetooth LE Isochronous Channels area: Bluetooth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant