Update CTE params...failed (err -134) in 'direction_finding_connectionless_tx'

Hi

I'm working with the sample 'ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx' on nRF5340,  I followed this page and built with AoA mode, then added content of overlay-aoa.conf file to child_image/hci_rpmsg.conf file, ran this code:

G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx>west build -b nrf5340dk_nrf5340_cpuapp -- -DCMAKE_BUILD_TYPE=overlay-aoa.conf

Build and flash seems correct,  but output in putty is wrong:

*** Booting Zephyr OS build v2.6.99-ncs1-1  ***
Starting Connectionless Beacon Demo
Bluetooth initialization...success
Advertising set create...success
Update CTE params...failed (err -134)

 I tried as Amanda said, erased the kit before flash, but it doesn't help. How to solve this problem? Thanks in advance.

Best regards,

Majoris

Parents
  • Maybe you can add cmake kconfig in command line or with ses.

    in command line, i use west to build  project.

    west build - b <boards name> -d <build dir> -- -DOVERLAY_CONFIG="overlay-aoa.conf"

    in ses, you can use DOVERLAY_CONFUG=overlay-aoa.conf as cmake config.I try this successfuly.

    may you can  have a try.You should add a network core to thid solution.

  • Today I got this err when I run the DF Connectionless tx sample in ncs. With this, the terminal told me that:

    #include errors detected based on information provided by the configurationProvider setting. Squiggles are disabled for this translation unit (D:\AoAoD2\direction_finding_connectionless_tx\src\main.c).C/C++(1696)
    cannot open source file "syscall_list.h" (dependency of "C:\Users\ziao\.vscode\extensions\ms-vscode.cpptools-1.20.1-win32-x64\bin\zephyr\kernel.h")C/C++(1696)

    I don't know why I can't open the source file...

    But when I copy a new project to build as same as I done before, this error disappeared...

  • You can copy it in the original directory and try recompiling the code.

Reply Children
  • I built and flashed the connectionless sample just for aoa successfully today. But I got the same err on the terminal of RX when it enables receiving of CTE....

    Then it just goes back to the top of the while loop and excutes the code again and again. Whenever err = bt_df_per_adv_sync_cte_rx_enable(sync, &cte_rx_params) in enable_cte_rx()  is called, the err -134 will be thrown like this:

    [DEVICE]: 2E:A1:15:C5:BB:B7 (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]: DA:C7:3B:78:43:5D (random), AD evt type 0, Tx Pwr: 127, RSSI -90  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:55:BF:A2:37:85 (random), AD evt type 5, Tx Pwr: 127, RSSI -63 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]: DA:C7:3B:78:43:5D (random), AD evt type 0, Tx Pwr: 127, RSSI -89  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 3C:9C:C4:75:5A:B1 (random), AD evt type 3, Tx Pwr: 127, RSSI -84  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 74:F6:1C:38:E3:8A (public), AD evt type 0, Tx Pwr: 127, RSSI -72 HTC BS 8ACFCA C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 3E:82:6A:61:E6:42 (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]: 1B:91:8C:BC:8A:98 (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
    [DEVICE]: 0B:27:53:E0:46:0A (random), AD evt type 3, Tx Pwr: 127, RSSI -62  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 3C:9C:C4:75:5A:B1 (random), AD evt type 3, Tx Pwr: 127, RSSI -80  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 74:F6:1C:38:E3:8A (public), AD evt type 0, Tx Pwr: 127, RSSI -66 HTC BS 8ACFCA C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 0A:7B:F7:6C:20:AF (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
    [DEVICE]: 3E:82:6A:61:E6:42 (random), AD evt type 3, Tx Pwr: 127, RSSI -69  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 7C:27:BC:D1:9D:2E (public), AD evt type 3, Tx Pwr: 127, RSSI -77  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 29:13:AC:D3:F4:DD (random), AD evt type 3, Tx Pwr: 127, RSSI -53  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2E:A1:15:C5:BB:B7 (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
    PER_ADV_SYNC[0]: [DEVICE]: 07:55:BF:A2:37:85 (random) synced, Interval 0x0780 (2400 ms), PHY LE 2M
    PER_ADV_SYNC[0]: [DEVICE]: 07:55:BF:A2:37:85 (random) sync terminated
    success. Periodic sync established.
    Enable receiving of CTE...
    failed (err -134)
    Scan disable...Success.
    Waiting for periodic sync lost...
    Periodic sync lost.
    Start scanning...success
    Waiting for periodic advertising...
    [DEVICE]: 7E:DD:2C:61:3A:00 (random), AD evt type 2, Tx Pwr: 127, RSSI -65  C:0 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:55:BF:A2:37:85 (random), AD evt type 5, Tx Pwr: 127, RSSI -69 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 perio[DEVICE]: 49:D7:CC:A4:E2:8B (random), AD evt type 0, Tx Pwr: 127, RSSI -85  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 49:D7:CC:A4:E2:8B (random), AD evt type 4, Tx Pwr: 127, RSSI -85  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 03:BB:27:F5:78:2E (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]: 29:13:AC:D3:F4:DD (random), AD evt type 3, Tx Pwr: 127, RSSI -47  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    dic sync...
    [DEVICE]: 5A:23:B0:B5:ED:98 (random), AD evt type 2, Tx Pwr: 127, RSSI -76  C:0 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:55:BF:A2:37:85 (random), AD evt type 5, Tx Pwr: 127, RSSI -69 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]: 03:BB:27:F5:78:2E (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
    

Related