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

  • Hi Aryan, I have added my main.c file of my firmware. Please have a look at it.

    Now the connection latency or connection rejection issue is coming more frequently and it is making look device really odd. and hangs the device badly.

    Untill i switch off the bluetooth of Central device, the ble_app_uart doesn't start advertising again.

    Can you please have a look at the attached file in my Question above and let me know where is the issue ?

    Your suggestions are needed.

    Thanks

Reply
  • Hi Aryan, I have added my main.c file of my firmware. Please have a look at it.

    Now the connection latency or connection rejection issue is coming more frequently and it is making look device really odd. and hangs the device badly.

    Untill i switch off the bluetooth of Central device, the ble_app_uart doesn't start advertising again.

    Can you please have a look at the attached file in my Question above and let me know where is the issue ?

    Your suggestions are needed.

    Thanks

Children
No Data
Related