This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRFConnect SDK Sample not working (periodic_adv _sync)

Hi,

nRFConnect SDK Sample not working (periodic_adv _sync)

I have two nRF52840 DK with nRFConnect SDK 1.7.1

Compiled and run on nRF52840 boards:

   \ncs1.7.1\zephyr\samples\bluetooth\periodic_adv

   \ncs1.7.1\zephyr\samples\bluetooth\periodic_sync

i've only changed prink to BT_INFO.

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]: 21:B6:31:15:B8:3C (random), AD evt type 5, Tx Pwr: 127, RSSI -53 PerAdv C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0000 (0 ms), SID: 0

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?

thank a lot.

maybe I can't use Wireshark-win64

  • Please try the hex files I built below. The only change I made was to enable the Zephyr LL controller by adding CONFIG_BT_LL_SW_SPLIT=y to the project config files. Logging is enabled over UART.

    Hex and .conf files:

    Log output:

  • i've change to ncs1.8.0, i see your picture, My version is different from yours.

    why my Bluetooth controller Version is 223 and HCI/LMP version is 5.2?

    Is there a problem? Does it need to be upgraded?if need how to upgrade?

    thanks.

  • Hello,Vidar Berg,

    thank you very much.

     i didn't change the source code except BT_INFO instead of prinfk and configuration.

    i've erase two 52840DK,.

    save all,   reload project,   clean,    rebuild,   download to 52840DK

    save all,   reload project,   clean,    rebuild,   download to another 52840DK

    Next, I'm going to try it with 1.8.0.  thanks

     

  • Hello,

    The log shows that you are using the Softdevice link layer even though CONFIG_BT_LL_SW_SPLIT=y is set in your project config. Maybe you need to reload the project for this change to take effect?

    As you might now, the Softdevice LL did not support periodic advertising in v1.7.x (experimental support introduced in v1.8.0).

    Log output with Zephyr controller and SDK v1.8.0:

  • Hello,Vidar Berg,   i'm sorry.

    Please ignore my previous reply,I've found log.txt,  and capture the le data.

    but  callbacks  sync_cb,recv_cb  are never called.

    thank a lot.

Related