direction_finding_connectionless_rx nRF5340dk rebooting after "Waiting for periodic sync lost..."

I succesfully flashed both direction finding samples to two different nRF5340dk's, but the rx board keeps rebooting afer the "Waiting for periodic sync lost..." message, while the sample page says that the next output should be:

PER_ADV_SYNC[X]: [DEVICE]: XX:XX:XX:XX:XX:XX, tx_power XXX, RSSI XX, CTE XXX, data length X, data: XXX
CTE[X]: samples count XX, cte type XXX, slot durations: X [us], packet status XXX, RSSI XXX
"



any idea on why this is? It seems to me like this is stopping me from correctly reading out the IQ samples?
Parents
  • Hi

    Okay, so after some testing on my end I think I found the issue. By default, the direction finding connectionless RX project does not have board and overlay files for the nRF53 DK by default, and these need to be added to your locator project. Please note that this overlay will be part of the network core of the nRF5340, so the overlay file should be stored in /samples/bluetooth/hci_rpmsg/boards/nrf5340dk_nrf5340_cpunet.overlay instead of on the application core.

    It should be sufficient to do the following:

    The beacon device works as intended by default, as using an nRF52833 locator is able to read the advertising data from an nRF5340 beacon. 

    Best regards,

    Simon

  • Hi Simon

    Sorry for that I locked my question by accident, I tried what you said but it didn't work. By the way, no matter how I moved two boards, the IQ data changed nothing. Then I found where nrf samples are, I followed this page, I found that I don't have to change any file, so I just run this code:

    G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_rx>west build -b nrf5340dk_nrf5340_cpuapp
    Build and flash succeeded, but output was wrong:

    *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    Starting Connectionless Locator Demo
    Bluetooth initialization...success
    Scan callbacks register...success.
    Periodic Advertising callbacks register...success.
    Start scanning...success
    Waiting for periodic advertising...
    [DEVICE]: 35:2D:67:A2:6B:8B (random), AD evt type 3, Tx Pwr: 127, RSSI -95  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:43:00:EA:0E:31 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:03:BA:BC:E4:B7 (random), AD evt type 3, Tx Pwr: 127, RSSI -98  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 12:99:4A:08:44:E8 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 02:10:53:6C:17:42 (random), AD evt type 3, Tx Pwr: 127, RSSI -94  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:D3:F1:E9:5F:4A (random), AD evt type 3, Tx Pwr: 127, RSSI -88  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 48:F7:60:26:7B:76 (random), AD evt type 3, Tx Pwr: 127, RSSI -102  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:7E:0A:55:18:17 (random), AD evt type 3, Tx Pwr: 127, RSSI -58  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2D:1E:CD:F4:1E:6D (random), AD evt type 3, Tx Pwr: 127, RSSI -74  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2F:6A:CE:54:3D:D4 (random), AD evt type 3, Tx Pwr: 127, RSSI -96  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 5B:BA:5B:21:4F:C2 (random), AD evt type 0, Tx Pwr: 127, RSSI -105  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 3C:DB:C5:45:0B:C5 (random), AD evt type 3, Tx Pwr: 127, RSSI -83  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: E9:E3:0D:73:48:C3 (random), AD evt type 0, Tx Pwr: 127, RSSI -95  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 0E:C8:7C:23:7B:79 (random), AD evt type 3, Tx Pwr: 127, RSSI -83  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 13:63:7F:B5:E9:5E (random), AD evt type 3, Tx Pwr: 127, RSSI -93  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 28:11:A5:4F:6D:D8 (public), AD evt type 0, Tx Pwr: 127, RSSI -93  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 26:76:88:16:0B:08 (random), AD evt type 5, Tx Pwr: 127, RSSI -51 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0
    success. Found periodic advertising.
    Creating Periodic Advertising Sync...success.
    Waiting for periodic sync...
    [DEVICE]: 12:99:4A:08:44:E8 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:43:00:EA:0E:31 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:03:BA:BC:E4:B7 (random), AD evt type 3, Tx Pwr: 127, RSSI -98  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:D3:F1:E9:5F:4A (random), AD evt type 3, Tx Pwr: 127, RSSI -88  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 66:B2:73:83:83:8B (random), AD evt type 0, Tx Pwr: 127, RSSI -95  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 66:B2:73:83:83:8B (random), AD evt type 4, Tx Pwr: 127, RSSI -96  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 02:10:53:6C:17:42 (random), AD evt type 3, Tx Pwr: 127, RSSI -94  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:FD:43:EA:7F:24 (random), AD evt type 3, Tx Pwr: 127, RSSI -102  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: D5:D2:D6:29:FE:29 (random), AD evt type 0, Tx Pwr: 127, RSSI -84  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    PER_ADV_SYNC[0]: [DEVICE]: 26:76:88:16:0B:08 (random) synced, Interval 0x0780 (2400 ms), PHY LE 2M
    success. Periodic sync established.
    Enable receiving of CTE...
    failed (err -134)
    Scan disable...Success.
    Waiting for periodic sync lost...
    *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    Starting Connectionless Locator Demo
    Bluetooth initialization...success
    Scan callbacks register...success.
    Periodic Advertising callbacks register...success.
    Start scanning...success
    Waiting for periodic advertising...
    [DEVICE]: 28:11:A5:4F:6D:D8 (public), AD evt type 0, Tx Pwr: 127, RSSI -93  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: FD:26:62:38:5A:DF (random), AD evt type 0, Tx Pwr: 127, RSSI -98  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 18:0E:E5:A5:44:2D (random), AD evt type 3, Tx Pwr: 127, RSSI -91  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:03:BA:BC:E4:B7 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 49:42:40:96:AB:70 (random), AD evt type 3, Tx Pwr: 127, RSSI -103  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 12:99:4A:08:44:E8 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:D3:F1:E9:5F:4A (random), AD evt type 3, Tx Pwr: 127, RSSI -89  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:7E:0A:55:18:17 (random), AD evt type 3, Tx Pwr: 127, RSSI -54  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2D:1E:CD:F4:1E:6D (random), AD evt type 3, Tx Pwr: 127, RSSI -74  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 7D:3D:04:AC:E1:54 (random), AD evt type 0, Tx Pwr: 127, RSSI -94  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 7D:3D:04:AC:E1:54 (random), AD evt type 4, Tx Pwr: 127, RSSI -94  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 26:76:88:16:0B:08 (random), AD evt type 5, Tx Pwr: 127, RSSI -51 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0
    [DEVICE]: 66:B2:73:83:83:8B (random), AD evt type 0, Tx Pwr: 127, RSSI -96  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 02:10:53:6C:17:42 (random), AD evt type 3, Tx Pwr: 127, RSSI -90  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: D5:D2:D6:29:FE:29 (random), AD evt type 0, Tx Pwr: 127, RSSI -78  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: D5:D2:D6:29:FE:29 (random), AD evt type 4, Tx Pwr: 127, RSSI -78  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 35:2D:67:A2:6B:8B (random), AD evt type 3, Tx Pwr: 127, RSSI -88  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    success. Found periodic advertising.
    Creating Periodic Advertising Sync...success.
    Waiti[DEVICE]: 07:FD:43:EA:7F:24 (random), AD evt type 3, Tx Pwr: 127, RSSI -91  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: E9:E3:0D:73:48:C3 (random), AD evt type 0, Tx Pwr: 127, RSSI -95  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: E9:E3:0D:73:48:C3 (random), AD evt type 4, Tx Pwr: 127, RSSI -94  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: FD:26:62:38:5A:DF (random), AD evt type 0, Tx Pwr: 127, RSSI -98  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2E:64:70:BE:97:1D (random), AD evt type 3, Tx Pwr: 127, RSSI -103  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 18:0E:E5:A5:44:2D (random), AD evt type 3, Tx Pwr: 127, RSSI -81  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    ng for periodic sync...
    [DEVICE]: 2C:AC:AC:01:DF:22 (random), AD evt type 3, Tx Pwr: 127, RSSI -91  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:03:BA:BC:E4:B7 (random), AD evt type 3, Tx Pwr: 127, RSSI -98  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 12:99:4A:08:44:E8 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:D3:F1:E9:5F:4A (random), AD evt type 3, Tx Pwr: 127, RSSI -89  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:7E:0A:55:18:17 (random), AD evt type 3, Tx Pwr: 127, RSSI -58  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2D:1E:CD:F4:1E:6D (random), AD evt type 3, Tx Pwr: 127, RSSI -73  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 28:11:A5:4F:6D:D8 (public), AD evt type 0, Tx Pwr: 127, RSSI -94  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 3C:DB:C5:45:0B:C5 (random), AD evt type 3, Tx Pwr: 127, RSSI -87  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    PER_ADV_SYNC[0]: [DEVICE]: 26:76:88:16:0B:08 (random) synced, Interval 0x0780 (2400 ms), PHY LE 2M
    [DEVICE]: 26:76:88:16:0B:08 (random), AD evt type 5, Tx Pwr: 127, RSSI -51 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0
    success. Periodic sync established.
    Enable receiving of CTE...
    failed (err -134)
    Scan disable...Success.
    Waiting for periodic sync lost...
    *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    Starting Connectionless Locator Demo
    Bluetooth initialization...success
    Scan callbacks register...success.
    Periodic Advertising callbacks register...success.
    Start scanning...success
    Waiting for periodic ad[DEVICE]: C4:59:0A:00:96:E4 (random), AD evt type 3, Tx Pwr: 127, RSSI -92  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 1C:0A:A9:93:09:84 (random), AD evt type 3, Tx Pwr: 127, RSSI -103  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: FD:26:62:38:5A:DF (random), AD evt type 0, Tx Pwr: 127, RSSI -98  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:43:00:EA:0E:31 (random), AD evt type 3, Tx Pwr: 127, RSSI -96  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:03:BA:BC:E4:B7 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 3C:DB:C5:45:0B:C5 (random), AD evt type 3, Tx Pwr: 127, RSSI -74  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 01:68:39:E2:85:54 (random), AD evt type 3, Tx Pwr: 127, RSSI -101  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2F:6A:CE:54:3D:D4 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:7E:0A:55:18:17 (random), AD evt type 3, Tx Pwr: 127, RSSI -58  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    vertising...
    [DEVICE]: 00:D3:F1:E9:5F:4A (random), AD evt type 3, Tx Pwr: 127, RSSI -79  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 10:9D:19:72:BF:8D (random), AD evt type 3, Tx Pwr: 127, RSSI -73  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 18:0E:E5:A5:44:2D (random), AD evt type 3, Tx Pwr: 127, RSSI -89  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 26:76:88:16:0B:08 (random), AD evt type 5, Tx Pwr: 127, RSSI -51 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0
    [DEVICE]: 02:10:53:6C:17:42 (random), AD evt type 3, Tx Pwr: 127, RSSI -93  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 66:B2:73:83:83:8B (random), AD evt type 0, Tx Pwr: 127, RSSI -96  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    success. Found periodic advertising.
    Creating Periodic Advertising Sync...success.
    Waiting for periodic sync...
    [DEVICE]: 2C:AC:AC:01:DF:22 (random), AD evt type 3, Tx Pwr: 127, RSSI -90  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    PER_ADV_SYNC[0]: [DEVICE]: 26:76:88:16:0B:08 (random) synced, Interval 0x0780 (2400 ms), PHY LE 2M
    success. Periodic sync established.
    Enable receiving of CTE...
    failed (err -134)
    Scan disable...Success.
    Waiting for periodic sync lost...

    This error is similar to this ticket's, so I found here. I'm not sure that I've added necessary child images on the network core, I just run one code and I think it worked well. Hope to get your reply.

    Best regards,

    Majoris

Reply
  • Hi Simon

    Sorry for that I locked my question by accident, I tried what you said but it didn't work. By the way, no matter how I moved two boards, the IQ data changed nothing. Then I found where nrf samples are, I followed this page, I found that I don't have to change any file, so I just run this code:

    G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_rx>west build -b nrf5340dk_nrf5340_cpuapp
    Build and flash succeeded, but output was wrong:

    *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    Starting Connectionless Locator Demo
    Bluetooth initialization...success
    Scan callbacks register...success.
    Periodic Advertising callbacks register...success.
    Start scanning...success
    Waiting for periodic advertising...
    [DEVICE]: 35:2D:67:A2:6B:8B (random), AD evt type 3, Tx Pwr: 127, RSSI -95  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:43:00:EA:0E:31 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:03:BA:BC:E4:B7 (random), AD evt type 3, Tx Pwr: 127, RSSI -98  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 12:99:4A:08:44:E8 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 02:10:53:6C:17:42 (random), AD evt type 3, Tx Pwr: 127, RSSI -94  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:D3:F1:E9:5F:4A (random), AD evt type 3, Tx Pwr: 127, RSSI -88  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 48:F7:60:26:7B:76 (random), AD evt type 3, Tx Pwr: 127, RSSI -102  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:7E:0A:55:18:17 (random), AD evt type 3, Tx Pwr: 127, RSSI -58  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2D:1E:CD:F4:1E:6D (random), AD evt type 3, Tx Pwr: 127, RSSI -74  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2F:6A:CE:54:3D:D4 (random), AD evt type 3, Tx Pwr: 127, RSSI -96  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 5B:BA:5B:21:4F:C2 (random), AD evt type 0, Tx Pwr: 127, RSSI -105  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 3C:DB:C5:45:0B:C5 (random), AD evt type 3, Tx Pwr: 127, RSSI -83  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: E9:E3:0D:73:48:C3 (random), AD evt type 0, Tx Pwr: 127, RSSI -95  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 0E:C8:7C:23:7B:79 (random), AD evt type 3, Tx Pwr: 127, RSSI -83  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 13:63:7F:B5:E9:5E (random), AD evt type 3, Tx Pwr: 127, RSSI -93  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 28:11:A5:4F:6D:D8 (public), AD evt type 0, Tx Pwr: 127, RSSI -93  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 26:76:88:16:0B:08 (random), AD evt type 5, Tx Pwr: 127, RSSI -51 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0
    success. Found periodic advertising.
    Creating Periodic Advertising Sync...success.
    Waiting for periodic sync...
    [DEVICE]: 12:99:4A:08:44:E8 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:43:00:EA:0E:31 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:03:BA:BC:E4:B7 (random), AD evt type 3, Tx Pwr: 127, RSSI -98  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:D3:F1:E9:5F:4A (random), AD evt type 3, Tx Pwr: 127, RSSI -88  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 66:B2:73:83:83:8B (random), AD evt type 0, Tx Pwr: 127, RSSI -95  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 66:B2:73:83:83:8B (random), AD evt type 4, Tx Pwr: 127, RSSI -96  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 02:10:53:6C:17:42 (random), AD evt type 3, Tx Pwr: 127, RSSI -94  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:FD:43:EA:7F:24 (random), AD evt type 3, Tx Pwr: 127, RSSI -102  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: D5:D2:D6:29:FE:29 (random), AD evt type 0, Tx Pwr: 127, RSSI -84  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    PER_ADV_SYNC[0]: [DEVICE]: 26:76:88:16:0B:08 (random) synced, Interval 0x0780 (2400 ms), PHY LE 2M
    success. Periodic sync established.
    Enable receiving of CTE...
    failed (err -134)
    Scan disable...Success.
    Waiting for periodic sync lost...
    *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    Starting Connectionless Locator Demo
    Bluetooth initialization...success
    Scan callbacks register...success.
    Periodic Advertising callbacks register...success.
    Start scanning...success
    Waiting for periodic advertising...
    [DEVICE]: 28:11:A5:4F:6D:D8 (public), AD evt type 0, Tx Pwr: 127, RSSI -93  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: FD:26:62:38:5A:DF (random), AD evt type 0, Tx Pwr: 127, RSSI -98  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 18:0E:E5:A5:44:2D (random), AD evt type 3, Tx Pwr: 127, RSSI -91  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:03:BA:BC:E4:B7 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 49:42:40:96:AB:70 (random), AD evt type 3, Tx Pwr: 127, RSSI -103  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 12:99:4A:08:44:E8 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:D3:F1:E9:5F:4A (random), AD evt type 3, Tx Pwr: 127, RSSI -89  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:7E:0A:55:18:17 (random), AD evt type 3, Tx Pwr: 127, RSSI -54  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2D:1E:CD:F4:1E:6D (random), AD evt type 3, Tx Pwr: 127, RSSI -74  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 7D:3D:04:AC:E1:54 (random), AD evt type 0, Tx Pwr: 127, RSSI -94  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 7D:3D:04:AC:E1:54 (random), AD evt type 4, Tx Pwr: 127, RSSI -94  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 26:76:88:16:0B:08 (random), AD evt type 5, Tx Pwr: 127, RSSI -51 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0
    [DEVICE]: 66:B2:73:83:83:8B (random), AD evt type 0, Tx Pwr: 127, RSSI -96  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 02:10:53:6C:17:42 (random), AD evt type 3, Tx Pwr: 127, RSSI -90  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: D5:D2:D6:29:FE:29 (random), AD evt type 0, Tx Pwr: 127, RSSI -78  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: D5:D2:D6:29:FE:29 (random), AD evt type 4, Tx Pwr: 127, RSSI -78  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 35:2D:67:A2:6B:8B (random), AD evt type 3, Tx Pwr: 127, RSSI -88  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    success. Found periodic advertising.
    Creating Periodic Advertising Sync...success.
    Waiti[DEVICE]: 07:FD:43:EA:7F:24 (random), AD evt type 3, Tx Pwr: 127, RSSI -91  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: E9:E3:0D:73:48:C3 (random), AD evt type 0, Tx Pwr: 127, RSSI -95  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: E9:E3:0D:73:48:C3 (random), AD evt type 4, Tx Pwr: 127, RSSI -94  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: FD:26:62:38:5A:DF (random), AD evt type 0, Tx Pwr: 127, RSSI -98  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2E:64:70:BE:97:1D (random), AD evt type 3, Tx Pwr: 127, RSSI -103  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 18:0E:E5:A5:44:2D (random), AD evt type 3, Tx Pwr: 127, RSSI -81  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    ng for periodic sync...
    [DEVICE]: 2C:AC:AC:01:DF:22 (random), AD evt type 3, Tx Pwr: 127, RSSI -91  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:03:BA:BC:E4:B7 (random), AD evt type 3, Tx Pwr: 127, RSSI -98  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 12:99:4A:08:44:E8 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:D3:F1:E9:5F:4A (random), AD evt type 3, Tx Pwr: 127, RSSI -89  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:7E:0A:55:18:17 (random), AD evt type 3, Tx Pwr: 127, RSSI -58  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2D:1E:CD:F4:1E:6D (random), AD evt type 3, Tx Pwr: 127, RSSI -73  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 28:11:A5:4F:6D:D8 (public), AD evt type 0, Tx Pwr: 127, RSSI -94  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 3C:DB:C5:45:0B:C5 (random), AD evt type 3, Tx Pwr: 127, RSSI -87  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    PER_ADV_SYNC[0]: [DEVICE]: 26:76:88:16:0B:08 (random) synced, Interval 0x0780 (2400 ms), PHY LE 2M
    [DEVICE]: 26:76:88:16:0B:08 (random), AD evt type 5, Tx Pwr: 127, RSSI -51 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0
    success. Periodic sync established.
    Enable receiving of CTE...
    failed (err -134)
    Scan disable...Success.
    Waiting for periodic sync lost...
    *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    Starting Connectionless Locator Demo
    Bluetooth initialization...success
    Scan callbacks register...success.
    Periodic Advertising callbacks register...success.
    Start scanning...success
    Waiting for periodic ad[DEVICE]: C4:59:0A:00:96:E4 (random), AD evt type 3, Tx Pwr: 127, RSSI -92  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 1C:0A:A9:93:09:84 (random), AD evt type 3, Tx Pwr: 127, RSSI -103  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: FD:26:62:38:5A:DF (random), AD evt type 0, Tx Pwr: 127, RSSI -98  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:43:00:EA:0E:31 (random), AD evt type 3, Tx Pwr: 127, RSSI -96  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:03:BA:BC:E4:B7 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 3C:DB:C5:45:0B:C5 (random), AD evt type 3, Tx Pwr: 127, RSSI -74  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 01:68:39:E2:85:54 (random), AD evt type 3, Tx Pwr: 127, RSSI -101  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2F:6A:CE:54:3D:D4 (random), AD evt type 3, Tx Pwr: 127, RSSI -97  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 00:7E:0A:55:18:17 (random), AD evt type 3, Tx Pwr: 127, RSSI -58  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    vertising...
    [DEVICE]: 00:D3:F1:E9:5F:4A (random), AD evt type 3, Tx Pwr: 127, RSSI -79  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 10:9D:19:72:BF:8D (random), AD evt type 3, Tx Pwr: 127, RSSI -73  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 18:0E:E5:A5:44:2D (random), AD evt type 3, Tx Pwr: 127, RSSI -89  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 26:76:88:16:0B:08 (random), AD evt type 5, Tx Pwr: 127, RSSI -51 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0
    [DEVICE]: 02:10:53:6C:17:42 (random), AD evt type 3, Tx Pwr: 127, RSSI -93  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 66:B2:73:83:83:8B (random), AD evt type 0, Tx Pwr: 127, RSSI -96  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    success. Found periodic advertising.
    Creating Periodic Advertising Sync...success.
    Waiting for periodic sync...
    [DEVICE]: 2C:AC:AC:01:DF:22 (random), AD evt type 3, Tx Pwr: 127, RSSI -90  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    PER_ADV_SYNC[0]: [DEVICE]: 26:76:88:16:0B:08 (random) synced, Interval 0x0780 (2400 ms), PHY LE 2M
    success. Periodic sync established.
    Enable receiving of CTE...
    failed (err -134)
    Scan disable...Success.
    Waiting for periodic sync lost...

    This error is similar to this ticket's, so I found here. I'm not sure that I've added necessary child images on the network core, I just run one code and I think it worked well. Hope to get your reply.

    Best regards,

    Majoris

Children
Related