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

sleep after disconnect

Hi

what is the best way to implement a sleep after disconnect? We are using a custom board and I implemented it this way:

on connect : turn advertisement off on disconnect : event set WDT interval to longer interval, go to system-off on wakeup : read original WDT interval from eeprom

Still I'm getting alot of advertisement packages after the disconnect. Is this a problem in my FW?

Parents
  • sorry, when you said that you are receiving packets, I thought DUT was central. OK , is it possible that you are using ble_advertising.c module. If so it will start the advertising automatically after DISCONNECTED event. If not then the same logic for scanner applies to advertising also except that instead of searching of sd_ble_gap_scan_start now you have to trace sd_ble_Gap_adv_start in your program.

Reply
  • sorry, when you said that you are receiving packets, I thought DUT was central. OK , is it possible that you are using ble_advertising.c module. If so it will start the advertising automatically after DISCONNECTED event. If not then the same logic for scanner applies to advertising also except that instead of searching of sd_ble_gap_scan_start now you have to trace sd_ble_Gap_adv_start in your program.

Children
No Data
Related