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
  • I'm a little confused about which Softdevice you are using. Looking at your main.c file it seems like you act as a central. Assuming that you are acting as a central and that you are using SDK V6.1.0, as you say in your comment, you should use S120 V1.0.1, as specified in the Compatibility Matrix. S120 V1.0.1 does not support sd_ble_gap_scan_start() and NRF_ERROR_NOT_SUPPORTED will be returned if you call the function. If you use S110 V7.1.0 then sd_ble_gap_scan_start() should work, as long as you are in a valid connection.

    I was not able to find any documentation on this actually, but here and here are to relevant posts from devzone.

Reply
  • I'm a little confused about which Softdevice you are using. Looking at your main.c file it seems like you act as a central. Assuming that you are acting as a central and that you are using SDK V6.1.0, as you say in your comment, you should use S120 V1.0.1, as specified in the Compatibility Matrix. S120 V1.0.1 does not support sd_ble_gap_scan_start() and NRF_ERROR_NOT_SUPPORTED will be returned if you call the function. If you use S110 V7.1.0 then sd_ble_gap_scan_start() should work, as long as you are in a valid connection.

    I was not able to find any documentation on this actually, but here and here are to relevant posts from devzone.

Children
No Data
Related