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

S310 V3 Softdevice Cental Role

The V3 S310 documentation appears to show that it can operate in a Central Role. The BLE_GAP_SVCS enum has been modified to now include the following additional values

SD_BLE_GAP_SCAN_START, /< Start Scanning. */ SD_BLE_GAP_SCAN_STOP, /< Stop Scanning. */ SD_BLE_GAP_CONNECT, /< Connect. */ SD_BLE_GAP_CONNECT_CANCEL, /< Cancel ongoing connection procedure. */

Is this possible, I have ported some known good code from the S130 that uses sd_ble_gap_scan_start, sd_ble_gap_scan_stop, sd_ble_gap_connect etc. The code compiles cleanly but I receive a NRF_ERROR_NOT_SUPPORTED error when calling sd_ble_gap_scan_start.

Does the V3 S310 support the Central role?

If not it is very misleading to have included the Central role api as part of the V3 api.

Parents
  • Hi

    Thanks for you question

    S310 supports ANT and BLE peripheral role. It does not support BLE central role. The APIs of S110 peripheral and S120 central BLE softdevices are aligned, it is a design decision. The S310 is based on S110 peripheral softdevice and S210 ANT softdevice. Perhaps it is confusing, as you have pointed out. An error code should be returned if the sd_* call is not supported in the peripheral role.

Reply
  • Hi

    Thanks for you question

    S310 supports ANT and BLE peripheral role. It does not support BLE central role. The APIs of S110 peripheral and S120 central BLE softdevices are aligned, it is a design decision. The S310 is based on S110 peripheral softdevice and S210 ANT softdevice. Perhaps it is confusing, as you have pointed out. An error code should be returned if the sd_* call is not supported in the peripheral role.

Children
No Data
Related