Skip to content

Add sml ops ble receive command#41

Merged
Raashid Ansari (silabs-raashid) merged 3 commits into
mainfrom
feature/add-ble-receiver-command
Jun 30, 2026
Merged

Add sml ops ble receive command#41
Raashid Ansari (silabs-raashid) merged 3 commits into
mainfrom
feature/add-ble-receiver-command

Conversation

@silabs-raashid

Copy link
Copy Markdown
Contributor

Description

Adds sml ops ble receive so BLE audio collection (previously only via scripts/rpi/ble_receiver.py) is available through the SDK CLI. Configuration uses hybrid resolution: CLI flags override BLE_* environment variables, which override built-in defaults.

Related Issue

N/A

Changes Made

  • Add sml ops ble receive with options for device name/address, output dir, UUIDs, labels, audio params, buffer size, and scan timeout
  • Extend BLEReceiver with injectable logging, configurable scan timeout, and {label}_{address}_{name}_{timestamp}.wav filenames
  • Add BLE_* settings to central Config and log_data_collection() to Logger
  • Standardize env vars on BLE_* prefix (BLE_OUTPUT_DIR replaces AUDIO_SAMPLES_DIR with no alias)
  • Update RPi scripts, ingestion engines, README, and BLE/RPi docs
  • Add tests/test_cli.py and update BLE receiver tests

Checklist

Additional Notes

Breaking change: AUDIO_SAMPLES_DIR is renamed to BLE_OUTPUT_DIR. Update .env and any automation that referenced the old variable.

Example usage:

sml ops ble receive \
  --device-name "voice_ble_controller" \
  --device-address "AA:BB:CC:DD:EE:FF" \
  --output-dir "./audio_samples" \
  --labels "on,off,unknown"

Made with Cursor

Signed-off-by: Raashid Ansari <raashid.ansari@silabs.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@silabs-raashid
Raashid Ansari (silabs-raashid) requested a review from a team as a code owner June 30, 2026 00:20
@silabs-raashid
Raashid Ansari (silabs-raashid) merged commit e41720c into main Jun 30, 2026
7 checks passed
@silabs-raashid
Raashid Ansari (silabs-raashid) deleted the feature/add-ble-receiver-command branch June 30, 2026 00:49
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant