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

direction finding rx example problem

I try to run zephyr direction finding cnnetionless rx example, but i get some problem. every time into enable receiving of cte , i got assertion fail

this is my prj.conf

CONFIG_SERIAL=y
CONFIG_NRFX_UARTE0=y
CONFIG_UART_ASYNC_API=y


CONFIG_BT=y
CONFIG_BT_DEVICE_NAME="DF Connectionless Locator App"

CONFIG_BT_EXT_ADV=y
CONFIG_BT_PER_ADV_SYNC=y
CONFIG_BT_OBSERVER=y

# Enable Direction Finding Feature including AoA and AoD
CONFIG_BT_DF=y
CONFIG_BT_DF_CONNECTIONLESS_CTE_RX=y

CONFIG_BT_CTLR=y
CONFIG_BT_LL_SW_SPLIT=y

CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_CTLR_SYNC_PERIODIC=y

# Enable Direction Finding Feature including AoA and AoD
CONFIG_BT_CTLR_DF=y

# Disable Direction Fiding TX mode
CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=n
CONFIG_BT_CTLR_DF_ADV_CTE_TX=n

CONFIG_BT_CTLR_DF_PER_SCAN_CTE_NUM_MAX=16



CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=n


CONFIG_BT_DF_CTE_RX_AOA=n
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y

  • thank you Elfving, Sorry for taking so long to reply to you.

    yes, Maybe I found the problem. I found that even in AOD, the instructions sent are still AOA. On line 326 of the direction.c, I found that the number of antennas sent in the official example is an invalid value. after I modify it, my project work succeed. 

    //dest_ant_ids = net_buf_add(*buf, params->num_ant_ids);
    dest_ant_ids = net_buf_add(*buf, switch_pattern_len);

    Thank you very much for your help

Related