Failing to Create CS config

Hi , 
i am trying to use ble channel sounding feature through hci uart with an external host. I am sending CS commands but getting the following error for one of the commands. I am trying to create Cs config ( ogf= 0x08 , ocf =0x0090)  but getting invalid parameters from the controller (212). Can you help me solve this? 

cmd->conn_handle = 2fd
cmd->config_id = 0
cmd->create_context = 0
cmd->main_mode_type = 1
cmd->sub_mode_type = 1
cmd->min_main_mode_steps = 2
cmd->max_main_mode_steps = 5
cmd->main_mode_repetition = 0
cmd->mode_0_steps = 3
cmd->role = 0
cmd->rtt_type = 0
cmd->cs_sync_phy = 1
cmd->channel_map_repetition = 3
cmd->channel_selection_type = 0
cmd->ch3c_shape = 0
cmd->ch3c_jump = 2

Parents
  • Hello,

    I suggest to look at an existing example that support channel sounding and use the kconfig options from there as reference:
    \nrf\samples\bluetooth\channel_sounding_ras_initiator\prj.conf

    Kenneth

  • Hi I used the same proj.conf options of ras_initiator in hci_uart application, but it didn't help . .Floowing is proj,conf file 

    CONFIG_CONSOLE=n
    CONFIG_STDOUT_CONSOLE=n
    CONFIG_UART_CONSOLE=n
    CONFIG_GPIO=y
    CONFIG_SERIAL=y
    CONFIG_UART_INTERRUPT_DRIVEN=y
    CONFIG_BT=y
    CONFIG_BT_HCI_RAW=y
    CONFIG_BT_HCI_RAW_H4=y
    CONFIG_BT_HCI_RAW_H4_ENABLE=y
    CONFIG_BT_BUF_ACL_RX_SIZE=255
    CONFIG_BT_BUF_CMD_TX_SIZE=255
    CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255
    CONFIG_BT_CTLR_ASSERT_HANDLER=y
    CONFIG_BT_MAX_CONN=16
    CONFIG_BT_CTLR_DTM_HCI=y
    CONFIG_BT_CTLR_ADV_EXT=y
    CONFIG_BT_CTLR_CHANNEL_SOUNDING=y
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
    CONFIG_BT_CTLR_SDC_CS_MAX_ANTENNA_PATHS=1
    CONFIG_BT_CTLR_SDC_CS_NUM_ANTENNAS=1
    CONFIG_BT_CTLR_SDC_CS_STEP_MODE3=n

    # Workaround: Unable to allocate command buffer when using K_NO_WAIT since
    # Host number of completed commands does not follow normal flow control.
    CONFIG_BT_BUF_CMD_TX_COUNT=10
Reply
  • Hi I used the same proj.conf options of ras_initiator in hci_uart application, but it didn't help . .Floowing is proj,conf file 

    CONFIG_CONSOLE=n
    CONFIG_STDOUT_CONSOLE=n
    CONFIG_UART_CONSOLE=n
    CONFIG_GPIO=y
    CONFIG_SERIAL=y
    CONFIG_UART_INTERRUPT_DRIVEN=y
    CONFIG_BT=y
    CONFIG_BT_HCI_RAW=y
    CONFIG_BT_HCI_RAW_H4=y
    CONFIG_BT_HCI_RAW_H4_ENABLE=y
    CONFIG_BT_BUF_ACL_RX_SIZE=255
    CONFIG_BT_BUF_CMD_TX_SIZE=255
    CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255
    CONFIG_BT_CTLR_ASSERT_HANDLER=y
    CONFIG_BT_MAX_CONN=16
    CONFIG_BT_CTLR_DTM_HCI=y
    CONFIG_BT_CTLR_ADV_EXT=y
    CONFIG_BT_CTLR_CHANNEL_SOUNDING=y
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
    CONFIG_BT_CTLR_SDC_CS_MAX_ANTENNA_PATHS=1
    CONFIG_BT_CTLR_SDC_CS_NUM_ANTENNAS=1
    CONFIG_BT_CTLR_SDC_CS_STEP_MODE3=n

    # Workaround: Unable to allocate command buffer when using K_NO_WAIT since
    # Host number of completed commands does not follow normal flow control.
    CONFIG_BT_BUF_CMD_TX_COUNT=10
Children
No Data
Related