Skip to content

per-adv-sync-create doesn't work on nRF52840, ./tests/bluetooth/shell/ #34541

@kaiser-ren

Description

@kaiser-ren

Describe the bug
I tried to make shell sample code of ./tests/bluetooth/shell/ to initial periodic scanner on nRF52840. However, when I typed "bt per-adv-sync-create 00:11:22:33:44:55 random 0 skip 0 timeout 2000", it always return "Failed to set periodic advertising
-35".
I dug into it and found it means Periodic Advertising is not supported. The root cause is that that nRF52840 should define
CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_CTLR_SYNC_PERIODIC=y
if the developers want to use Periodic Advertising and these are experimental. I suggest that add these two flags on prj.conf.

To Reproduce
Steps to reproduce the behavior:

  1. cd ./tests/bluetooth/shell/
  2. west build -p auto -b nrf52840dk_nrf52840 ./
  3. west flash
  4. open a terminal of the right com port
  5. type "bt init"
  6. type "bt per-adv-sync-create 00:11:22:33:44:55 random 0 skip 0 timeout 2000"

Expected behavior
Return an error code, -35.

Impact
Periodic sync doesn't work.

Logs and console output

Environment (please complete the following information):

Additional context

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions