This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRFConnect SDK Sample not working (periodic_adv _sync)

Hi,

I have nRF52840 DK with nRFConnect SDK 1.6.99

Compiled and run on nRF52840 boards:

F:\_Develop\ConnectSDK\ncs\zephyr\samples\bluetooth\periodic_adv

F:\_Develop\ConnectSDK\ncs\zephyr\samples\bluetooth\periodic_sync

I found that in the periodic_adv,

   mfg_data[2]++;

is sent with the advertisements, but it is not received at periodic_sync:

The debug run printout:

[DEVICE] : 14:0F:D4:7E:DE:A5(random), AD evt type 5, Tx Pwr : 127, RSSI - 30 Test Periodic Advertising C:0 S:0 D:0 SR:0 E:1 Prim : LE 1M, Secn : LE 2M,

In the periodic_sync, function void scan_recv ()

    if (!per_adv_found && info->interval) {
        per_adv_found = true;

        per_sid = info->sid;
        bt_addr_le_copy(&per_addr, info->addr);

        k_sem_give(&sem_per_adv);
    }

info->interval always 0.

And  callbacks     sync_cb,    recv_cb are never called.

Did I miss anything?

Also does bluez5.50 in the linux (btmon) support periodic advertisements? Or is there a way in the linux that can scan and capture such advertisements?

Thank you,

David Zhou

Parents Reply Children
No Data
Related