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))
    
  • Hello Martin and thank you again for your help. But I really can't find out how this post is related to mine....is it a bad copy/paste or am I just completely lost here?

Reply Children
No Data
Related