This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

sd_ble_gap_rssi_start not supported?

After I connected a BLE device (HRM sample program on dev kit), I call sd_ble_gap_rssi_start to do a RSSI measurement, it returns error code 6.

Apparently error code 6 means NRF_ERROR_NOT_SUPPORTED.

Is RSSI measurement not supported yet (I'm using API nrf51-ble-driver_win_0.4.1).

Attached (main.c) is the original HRM sample program modified to toggle RSSI measurement ON/OFF (rather than toggling HRM's CCCD descriptor). It makes it easy to reproduce the problem.

Parents
  • Hi. Sorry for the late response.

    You say that you use S120 V1.0.1 which does not support sd_ble_gap_rssi_start(). If you try to call sd_ble_gap_rssi_start() anyway the function will return NRF_ERROR_NOT_SUPPORTED. I will suggest that you upgrade your Softdevice to S120 V2.x.x.

    Also note that there has been a slight signature change in the sd_ble_gap_rssi_start() function between SDK V7.x.x and V8.x.x. In SDK V7.x.x the function call takes one single parameter:

    sd_ble_gap_rssi_start(uint16_t conn_handle)
    

    In SDK V8.0.0 it takes three:

    sd_ble_gap_rssi_start(uint16_t conn_handle, uint8_t threshold_dbm, uint8_t skip_count))
    
  • Hi Martin, thank you for your reply. I tried to upgrade SoftDevice dongle to S120 V2.0.0 (SDK 8.0.0). Unfortunately, I'm unable to connect the dongle anymore (actually, I can open the port, but search operation freezes my application). I'm using win driver 0.4.1. Should I upgrade the driver to 0.5.0? But I'm confused because documentation says that S120 support was dropped in 0.5.0....so which driver should be used with S120 2.0.0 dongle...?

Reply
  • Hi Martin, thank you for your reply. I tried to upgrade SoftDevice dongle to S120 V2.0.0 (SDK 8.0.0). Unfortunately, I'm unable to connect the dongle anymore (actually, I can open the port, but search operation freezes my application). I'm using win driver 0.4.1. Should I upgrade the driver to 0.5.0? But I'm confused because documentation says that S120 support was dropped in 0.5.0....so which driver should be used with S120 2.0.0 dongle...?

Children
No Data
Related