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

Completely disabling bluetooth.

Hey!

I'm working on a device which requires Bluetooth to be completely disabled for short periods of time. It's got a sensor in it that's sensitive to 2.4 GHz radiation. Chip is nRF51822, SoftDevice is S110 v6.0.0.

I disable Bluetooth using the following code snippet:

	// If connected, disconnect
	if (m_conn_handle != BLE_CONN_HANDLE_INVALID)
	{
		err_code = sd_ble_gap_disconnect(m_conn_handle,  BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
		if (err_code != NRF_SUCCESS) return err_code;
	}

	// Stop advertising
	err_code = sd_ble_gap_adv_stop();
	if (err_code != NRF_SUCCESS) return err_code;

And reenable later by calling advertising start.

Does disconnecting and stopping advertising completely shut down the radio or do I need to do something more low-level? I want to be as certain as possible that Bluetooth isn't interfering with the sensor.

Cheers,

Anne.

Related