Hi Nordic Community
I have a problem with the PAwR examples were I'm unable to place a sync interval bigger than 2 secs.
The example starts with an interval of 0xFF * 1.25 = 318.75 ms. I altered it to 1 sec and everything works. But if I increase it further it stops working.
I tried this with the periodic_adv_conn and periodic_sync_connect (PAST) as well as with the periodic_adv_rsp and periodic_sync_rsp.
This is are the errors given for the periodic_sync_conn:
*** Booting nRF Connect SDK v2.5.2 ***
[00:00:00.000,701] <inf> Log_Main: main: Starting Beacon Demo
[00:00:00.000,732] <inf> Log_Main: main: It is an ID: ID!!
[00:00:00.000,854] <inf> bt_sdc_hci_driver: hci_driver_open: SoftDevice Controller build revision:
8d dc 02 cb 49 26 c6 47 1a 6a 3d 4e 2f d1 a4 f2 |....I&.G .j=N/...
2e 38 1b 75 |.8.u
[00:00:00.003,814] <inf> bt_hci_core: hci_vs_init: HW Platform: Nordic Semiconductor (0x0002)
[00:00:00.003,845] <inf> bt_hci_core: hci_vs_init: HW Variant: nRF52x (0x0002)
[00:00:00.003,875] <inf> bt_hci_core: hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 141.732 Build 3324398027
[00:00:00.004,974] <inf> bt_hci_core: bt_dev_show_info: Identity: C3:13:1C:91:79:C5 (random)
[00:00:00.005,004] <inf> bt_hci_core: bt_dev_show_info: HCI: version 5.4 (0x0d) revision 0x1168, manufacturer 0x0059
[00:00:00.005,035] <inf> bt_hci_core: bt_dev_show_info: LMP: version 5.4 (0x0d) subver 0x1168
[00:00:00.005,065] <inf> Log_bleFasePAwR: bleFasePAwR_ready: Bluetooth initialized
[00:00:00.005,065] <dbg> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Starting Scan
[00:00:00.005,767] <dbg> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Scanning
[00:00:00.080,932] <inf> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Found periodic advertising.
[00:00:00.080,993] <inf> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Creating Periodic Advertising Sync
[00:00:00.081,268] <inf> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Waiting for periodic sync
[00:00:02.560,028] <inf> Log_bleFasePAwR: sync_cb: Synced to 40:84:D1:A0:B5:23 (random) with 5 subevents
[00:00:02.560,211] <wrn> bt_hci_core: bt_hci_cmd_send_sync: opcode 0x2084 status 0x42
[00:00:02.560,241] <err> Log_bleFasePAwR: sync_cb: Failed to set subevents to sync to (err -5)
[00:00:02.560,302] <dbg> Log_bleFasePAwR: recv_cb: info->subevent: 0
[00:00:02.560,302] <dbg> Log_bleFasePAwR: recv_cb: buf.len: 30, buf.data: 30, , , 0, 0
[00:00:02.561,035] <inf> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Periodic sync established.
[00:00:02.561,309] <inf> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Stopped scanning
[00:00:02.561,340] <wrn> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Expected: The sem_per_term has been reseted to 0 (err -16)
[00:00:02.562,713] <inf> Log_bleFasePAwR: recv_cb: Responding with transmitedData: flags: 0, ID: A1, len: 30
[00:00:02.562,927] <wrn> bt_hci_core: bt_hci_cmd_send_sync: opcode 0x2083 status 0x42
[00:00:02.562,957] <err> Log_bleFasePAwR: recv_cb: Failed to send response (err -5)
[00:00:02.563,049] <inf> Log_bleFasePAwR: term_cb: Sync terminated (reason 31)
[00:00:02.563,110] <dbg> Log_Main: main: Terminated Main
[00:00:02.563,110] <dbg> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Starting Scan
[00:00:02.563,537] <dbg> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Scanning
[00:00:02.585,021] <inf> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Found periodic advertising.
[00:00:02.585,052] <inf> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Creating Periodic Advertising Sync
[00:00:02.585,296] <inf> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Waiting for periodic sync
[00:00:05.060,089] <inf> Log_bleFasePAwR: sync_cb: Synced to 40:84:D1:A0:B5:23 (random) with 5 subevents
[00:00:05.060,302] <wrn> bt_hci_core: bt_hci_cmd_send_sync: opcode 0x2084 status 0x42
[00:00:05.060,302] <err> Log_bleFasePAwR: sync_cb: Failed to set subevents to sync to (err -5)
[00:00:05.060,363] <dbg> Log_bleFasePAwR: recv_cb: info->subevent: 0
[00:00:05.060,394] <dbg> Log_bleFasePAwR: recv_cb: buf.len: 30, buf.data: 30, , , 0, 0
[00:00:05.061,126] <inf> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Periodic sync established.
[00:00:05.062,805] <inf> Log_bleFasePAwR: recv_cb: Responding with transmitedData: flags: 0, ID: A1, len: 30
[00:00:05.063,018] <wrn> bt_hci_core: bt_hci_cmd_send_sync: opcode 0x2083 status 0x42
[00:00:05.063,049] <err> Log_bleFasePAwR: recv_cb: Failed to send response (err -5)
[00:00:05.063,140] <inf> Log_bleFasePAwR: term_cb: Sync terminated (reason 31)
[00:00:05.063,201] <inf> Log_bleFasePAwR: bleFasePAwR_adquirePeriodicSync: Stopped scanning
I saw that a interval of 10 s is possible as is presented in:
Periodic Advertising with Responses (PAwR): A practical guide
I'm using NCS 2.5.2.
I would appreciate any guidance. Thank you for your help,
Fish