Direction finding connectionless rx "Waiting for periodic sync... failed (err -11)"

Hello,

I am working on direction finding connectionless locator/beacon (AoA). 

I ran into a problem in the locator. Everything works fine until  "Waiting for periodic sync... failed (err -11)"


RX console log:

*** Booting Zephyr OS build v3.1.99-ncs1  ***
Starting Connectionless Locator Demo
Bluetooth initialization...success
Scan callbacks register...success.
Periodic Advertising callbacks register...success.
Start scanning...success
Waiting for periodic advertising...
[DEVICE]: 37:90:22:59:FC:F1 (random), AD evt type 5, Tx Pwr: 127, RSSI -86 DF Connectionless Beacon C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0060 (120 ms), SID: 0
success. Found periodic advertising.
Creating Periodic Advertising Sync...success.
Waiting for periodic sync...
PER_ADV_SYNC[0]: [DEVICE]: 37:90:22:59:FC:F1 (random) sync terminated
failed (err -11)
Deleting Periodic Advertising Sync...success
Waiting for periodic advertising...


TX console log:

*** Booting Zephyr OS build v3.1.99-ncs1  ***
Starting Connectionless Beacon Demo
Bluetooth initialization...success
Advertising set create...success
Update CTE params...success
Periodic advertising params set...success
Enable CTE...success
Periodic advertising enable...success
Extended advertising enable...success
Started extended advertising as E4:40:51:F4:19:3C (random)
 

I use sample code NRF/direction_finding_connectionless from nRF connect SDK v2.1.1.
For locator I use custom antenna array 3x3 (8 segments) with ubx Nora B101 (nRF5340). 
Beacon is also custom with ubx Nora B101 (nRF5340).
Build board is based on nrf5340dk_nrf5340_cpuapp.

According to the readme file, I modified the files (locator)
boards/nrf5340dk_nrf5340_cpunet.overlay

&gpio_fwd {
    dfe-gpio-if {
        gpios = <&gpio0 29 0>,
            <&gpio0 28 0>,
            <&gpio0 30 0>,
            <&gpio0 31 0>;
        };
};

child_image/child_image/boards/nrf5340dk_nrf5340_cpuapp.overlay
&radio {
    status = "okay";
    /* This is a number of antennas that are available on antenna matrix
     * designed by Nordic. For more information see README.rst.
     */
    dfe-antenna-num = <8>;
    /* This is a setting that enables antenna 12 (in antenna matrix designed
     * by Nordic) for Rx PDU. For more information see README.rst.
     */
    dfe-pdu-antenna = <0x0>;

    /* These are GPIO pin numbers that are provided to
     * Radio peripheral. The pins will be acquired by Radio to
     * drive antenna switching when AoA is enabled.
     * Pin numbers are selected to drive switches on antenna matrix
     * desinged by Nordic. For more information see README.rst.
     *
     * NOTE: Make sure to select the same GPIOs in the application core DTS
     * overlay's gpio_fwd node.
     */
    dfegpio0-gpios = <&gpio0 29 0>;
    dfegpio1-gpios = <&gpio0 28 0>;
    dfegpio2-gpios = <&gpio0 30 0>;
    dfegpio3-gpios = <&gpio0 31 0>;
};
main
static const uint8_t ant_patterns[] = { 0x0, 0x4, 0x2, 0x6, 0x1, 0x5, 0x3, 0x7}; 
in beacon file I add AoD config into project config. 


Are there any other changes required, or what could cause this error?

Thank you.
Parents Reply Children
No Data
Related