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

Is BLE Radio off when sd_ble_gap_scan_start was not called

Hi,

I am developing a device based on NRF52840 soc in ble central mode. Could I claim when I do not call sd_ble_gap_scan_start function BLE radio is thoroughly OFF and there is not any radio activity? for example, consider below code:

ret_code_t err_code;

err_code = nrf_sdh_enable_request();
APP_ERROR_CHECK(err_code);

// Configure the BLE stack using the default settings.
// Fetch the start address of the application RAM.
uint32_t ram_start = 0;
err_code = nrf_sdh_ble_default_cfg_set(APP_BLE_CONN_CFG_TAG, &ram_start);
APP_ERROR_CHECK(err_code);

// Enable BLE stack.
err_code = nrf_sdh_ble_enable(&ram_start);
APP_ERROR_CHECK(err_code);

// Register a handler for BLE events.
NRF_SDH_BLE_OBSERVER(m_ble_observer, APP_BLE_OBSERVER_PRIO, ble_evt_handler, NULL);   

if (RADIO_OFF != YES)
{
  /* Scan Start. */
  sd_ble_gap_scan_stop();
  err_code = sd_ble_gap_scan_start(&m_scan_params, &m_scan_buffer);
}

if RADIO_OFF was set to "YES", would BLE radio be off?

Related