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

How to configure to stop system off after 3 minutes?

On custom nRF51422 hardware with S110, I eventually found that after 3 minutes the advertising timeout turns off the system. I reproduced it by using the nRF SDK v9 project ble_app_uart_s110_pca10028

These links mention the 3 minutes timeout

devzone.nordicsemi.com/.../

developer.nordicsemi.com/.../a00076.html

What is the correct way to stop a system off?

Is it by configuration of pca100028.h or ble_advertising.h or perhaps by removing the event handler code?

Parents
  • Are you using directed advertising? If you have BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE flag added to advertising parameters, then you can't set timeout any higher than 180. Higher advertising timeouts only work on general discovery mode i.e. BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE. In SDK 8.0 there is also a bug in the code, which prevents you to set infinite timeout, therefore, you have to either set the timeout to some high number or restart advertising after timeout.

Reply
  • Are you using directed advertising? If you have BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE flag added to advertising parameters, then you can't set timeout any higher than 180. Higher advertising timeouts only work on general discovery mode i.e. BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE. In SDK 8.0 there is also a bug in the code, which prevents you to set infinite timeout, therefore, you have to either set the timeout to some high number or restart advertising after timeout.

Children
No Data
Related