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
  • You said your system is going to system off, so after the wakeup, which will cause a system reset, the scanner is started again (sd_ble_gap_scan_start), could this be the reason you are seeing more adv packets? If not then probably APP_ERROR_CHECK failure is causing system reset and causing the scanner to be started again?

    I am assuming that you have double verified that there are no other calls or paths to sd_ble_gap_scan_start other than reset.

Reply
  • You said your system is going to system off, so after the wakeup, which will cause a system reset, the scanner is started again (sd_ble_gap_scan_start), could this be the reason you are seeing more adv packets? If not then probably APP_ERROR_CHECK failure is causing system reset and causing the scanner to be started again?

    I am assuming that you have double verified that there are no other calls or paths to sd_ble_gap_scan_start other than reset.

Children
No Data
Related