pawr subevent data size

Hi,

When I try nrfsdk/zephyr/sample/bluetooth/periodic_adv_conn. I notice that the max subevent data size is about 64bytes. If I send a data size larger, I will get a error:

[00:00:52.012,695] <wrn> bt_hci_core: opcode 0x2082 status 0x07
Failed to set subevent data (err -5)

I use nrfconnect sdk 2.7. ll is softdevice. The output is

Starting Periodic Advertising Demo
[00:00:00.279,449] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
[00:00:00.279,479] <inf> bt_hci_core: HW Variant: nRF53x (0x0003)
[00:00:00.279,510] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 214.51162 B0
[00:00:00.316,528] <inf> bt_hci_core: Identity: F6:68:C5:DB:A1:04 (random)
[00:00:00.316,528] <inf> bt_hci_core: HCI: version 5.4 (0x0d) revision 0x21fb, manufacturer 0x0059
[00:00:00.316,558] <inf> bt_hci_core: LMP: version 5.4 (0x0d) subver 0x21fb
Start Periodic Advertising
request 0 to 1 at 1
[00:00:00.326,629] <wrn> bt_hci_core: opcode 0x2082 status 0x07

Just want to know the max subdata size and how to increase it. I hope the max size can reach about > 250 bytes.

Thanks,

Chen Yang

Parents Reply
  • Sorry, I thought you were using the nRF52833, so I was testing with the nRF52833 DK as the build target. I see you've tagged the question with nRF5340 now.

    Please try with this modified version of the sample:

    periodic_adv_conn.zip

    I added Kconfig.sysbuild file to include the 'ipc_radio' application in the build, and I added the following config settings in my 'ipc_radio' Kconfig fragment:

    CONFIG_BT_EXT_ADV=y
    CONFIG_BT_PER_ADV=y
    CONFIG_BT_CTLR_SYNC_TRANSFER_SENDER=y
    CONFIG_BT_CTLR_SDC_PAWR_ADV=y
    CONFIG_BT_CTLR_SDC_PERIODIC_ADV_RSP_TX_MAX_DATA_SIZE=249
    CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=255

Children
Related