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

Closing the TimeSlot API in Observer Example

I'm using the Github project github.com/NordicSemiconducto... in order to SCAN in a specific channel rather than all 3 channels. I don't want to use the timeslot API continuously, and I want to be able to activate and deactivate it.

For deactivating it (in the specific observer example) is it just enough to use: sd_radio_session_close () and disable the two interrupts: SD_EVT_IRQn and SWI0_IRQn with sd_nvic_DisableIRQ.

Parents Reply
  • after closing the time slot session you can put a breakpoint in the timeslot callback handler and see if anything hits. if not then we can say with confidence that no timeslots are being scheduled.

    Otherwise if your scanner is active then see if it sends any scan requests by sniffing the packets.

    Regarding your other problem of the program jumping to start or main, seems like there is some error_check failure in your app and the default behavior of the assert handler is to do a system soft reset.

Children
No Data
Related