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

how to Soft reset nRF51822 using Softdevice?? & connection setup latency.

main.cHi , I'm using nRF51822 and S110 stack and sd_6.0.0. having an ble app UART example. Facing a strange problem that when (from nrf Uart App)connecting and disconnecting back to back multiple times ,sometimes it takes too much time to connect (15 seconds ) and sometimes it keeps on saying "Connecting. ..." for 5 10 minutes and then disconnects.

ADV timeout is 10 seconds. Can anyone plus suggest me what's wrong??? I also need to know how to do Soft reset the board using Softdevice. ???

Parents
    1. for your first question, you need to give more information on what changes you made to the example provided in the SDK. What is it connecting to? what are the intervals used? if possible provide the code.

    2. nrf_soc.h

    /**@brief System Reset.

    • @note Corresponds to NVIC_SystemReset in CMSIS.
    • @retval ::NRF_ERROR_SOC_NVIC_SHOULD_NOT_RETURN */ SVCALL(SD_NVIC_SYSTEMRESET, uint32_t, sd_nvic_SystemReset(void));

    UPDATE:

    Tried to explain little more here

  • Also Aryan , How a peripheral device is supposed to know that a connection request is received from Central device, is there any event in this current example ??

    I'm still struggling with uncertainty if connection with central device, sometimes after connecting it goes into state where it doesn't even go into main loop of the main file and just receives the interrupts (have seen debug prints of Gpio interrupt handler and timer interrupt handler). Do yo have any idea about this issue ? Sometimes it comes out of the that state when Central App is terminated forcefully and even sometimes that also doesn't work. Thanks

    Brajesh

Reply
  • Also Aryan , How a peripheral device is supposed to know that a connection request is received from Central device, is there any event in this current example ??

    I'm still struggling with uncertainty if connection with central device, sometimes after connecting it goes into state where it doesn't even go into main loop of the main file and just receives the interrupts (have seen debug prints of Gpio interrupt handler and timer interrupt handler). Do yo have any idea about this issue ? Sometimes it comes out of the that state when Central App is terminated forcefully and even sometimes that also doesn't work. Thanks

    Brajesh

Children
No Data
Related