In zephyr,i use direction rx and tx,in tx there a error code (-134),but i can't solve it,this problem occur in ncs direction.where is the problem?

I use the zephyr version 3.0.9,when i build the hci_rpmsg project,it have serial error.then i chnange the onfigruation by  add some new definition.

I add some configurations to nrf5340dk_nrf5340_cpunet.conf files which is in C:\Users\Administrator\zephyrproject\zephyr\samples\bluetooth\hci_rpmsg\boards.

CONFIG_BT_PER_ADV_SYNC=y

# Limit number of possible connection to decrease memory usage
CONFIG_BT_MAX_CONN=1

# Required to enable BT_PER_ADV_SYNC_MAX
CONFIG_BT_PER_ADV_SYNC=y
CONFIG_BT_OBSERVER=y

CONFIG_BT_CTLR=y
CONFIG_BT_LL_SW_SPLIT=y

CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_CTLR_SYNC_PERIODIC=y

CONFIG_BT_MAX_CONN=1
CONFIG_BT_EXT_ADV=y

then i build the rx and tx ,in putty teminator,there is a error.

*** Booting Zephyr OS build v2.7.99-ncs1  ***

Starting Direction Finding periodic advertising Beacon Demo

Bluetooth initialization...success

Advertising set create...success

Update CTE params...failed (err -134)

I try to solve the problem by all kinds of way to,but it don't matter.where is the problem ?or do the procedures have problem?

Parents Reply
  • Hello,

    I countered a similar issue using zephyr for nRF5340.

    First issue regarding the advertsing set error hase been fixed with this topic.

    Then I updated hci_rpmsg.conf like overlay-aoa.conf but issue (error -134) is still present.

    Corrisponding *.conf file are:

    direction_finding_connectionless_tx - prj.conf 

    CONFIG_BT=y
    CONFIG_BT_DEVICE_NAME="DF Connectionless Beacon App"
    
    CONFIG_BT_CTLR_PHY_CODED=y
    CONFIG_BT_EXT_ADV=y
    CONFIG_BT_USER_PHY_UPDATE=y
    
    CONFIG_BT_PER_ADV=y
    CONFIG_BT_BROADCASTER=y
    
    # Enable Direction Finding Feature including AoA and AoD
    CONFIG_BT_DF=y
    CONFIG_BT_DF_CONNECTIONLESS_CTE_TX=y

    direction_finding_connectionless_tx - overlay-aoa.conf 

    # Disable AoD Feature (antenna switching) in Tx mode
    CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=n
    

    child_image/hci_rpmsg.conf

    #
    # Copyright (c) 2021 Nordic Semiconductor
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    
    CONFIG_BT_EXT_ADV=y
    CONFIG_BT_CTLR_ADV_EXT=y
    CONFIG_BT_CTLR_PHY_CODED=y
    
    # Disable AoD Feature (antenna switching) in Tx mode
    CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=n

    Do you have some suggestion?

    Thank you in advance.

Children
Related