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

Parents
  • Hello,

    When the Sniffer is not showing up as an interface in Wireshark it usually because the Python version invoked by Wireshark is missing the PySerial dependency. Maybe you have several versions of python installed?

    Either way, please check the log.txt file in %APPDATA%/Nordic Nordic Semiconductor/Sniffer/logs for errors. It may help us confirm what the problem is.

    Best regards,

    Vidar

  • 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

     

Reply
  • 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

     

Children
No Data
Related