1

Problem with system off mode and stopping advertisement [closed]

RohanKadam gravatar image

asked 2017-08-11 11:37:34 +0200

updated 2017-08-12 07:34:30 +0200

Hi,

Most of the sections of my application are functioning as I want it to, except these two (step 3 and step 4).

Application:

  1. Connect device (with Auto connect enabled)
  2. Transfer data using nus service from peripheral to central device.
  3. Stop/disable advertising.
  4. Initiate System OFF.
  5. Press button to restart advertising.
  6. Auto connect
  7. Repeat (from 2)

Problem 1: I'm unable to stop advertising using ble_advertising_start(BLE_ADV_MODE_IDLE); and sd_ble_gap_adv_stop(); as per https://devzone.nordicsemi.com/questi...

Problem 2: System OFF mode gives current consumption of around 1.6mA (unlike the expected 0.6uA). Even after resetting the device to get it out of debug mode (removing battery as well as using nrfjprog --pinreset).

Please help!!

edit retag flag offensive reopen delete report spam

Closed as "the question is answered, right answer was accepted" by RohanKadam at 2017-08-14 07:59:41 +0200

1 answer

Sort by ยป oldest newest most voted
0
RohanKadam gravatar image

answered 2017-08-14 07:58:46 +0200

Including a small delay before System Off command,solved the problem. Now everything stops on System Off. (even advertising stops without using sd_ble_gap_adv_stop();)

nrf_delay_ms(4000);

sd_power_system_off();

edit flag offensive delete publish link more

Question Tools

1 follower

Stats

Asked: 2017-08-11 11:37:34 +0200

Seen: 41 times

Last updated: 2 days ago