<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>how to Soft reset nRF51822 using Softdevice?? &amp;amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8875/how-to-soft-reset-nrf51822-using-softdevice-connection-setup-latency</link><description>main.c Hi ,
I&amp;#39;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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Aug 2015 10:13:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8875/how-to-soft-reset-nrf51822-using-softdevice-connection-setup-latency" /><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32650?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2015 10:13:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94d3a87e-b39d-4519-bbb5-49bd01e69213</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;your description is very generic without specifics. The peripheral either accepts connection request from all or from the whitelists. I am not sure if this is what you asked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32649?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2015 07:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5bb9e75-1b04-47ce-8b1a-1fc6db032d36</guid><dc:creator>Brajesh</dc:creator><description>&lt;p&gt;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 ??&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still struggling with uncertainty if connection with central device, sometimes after connecting it goes into state where it doesn&amp;#39;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&amp;#39;t work.
Thanks&lt;/p&gt;
&lt;p&gt;Brajesh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32648?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2015 07:19:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a28e275d-bad1-4482-be87-2eb5ea45e0c0</guid><dc:creator>Brajesh</dc:creator><description>&lt;p&gt;yes those are different I have take ble_app_uart for base reference of peripheral device and to do notification to Central device.&lt;/p&gt;
&lt;p&gt;Thanks
Brajesh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32647?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2015 11:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9908c2e7-7247-4f23-bb77-30f32bbce272</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;i have compared your main file with the main file of ble_app_uart that came with SDK5.2 (i cannot find SDK5.0) and they look very different.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32646?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2015 13:18:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1537b31-22ab-4ab6-8c20-d4ca3e96312a</guid><dc:creator>Brajesh</dc:creator><description>&lt;p&gt;Yes it is but it seems to work well when i take up basic ble_app_uart code, but after adding so few complicaitons as i attached in file, it starts behaving like that with Central App device.&lt;/p&gt;
&lt;p&gt;HW version is QFACA1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32645?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2015 12:21:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22fc9ce1-5188-4952-888b-d108badb5038</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;it is very old SDK, and HW version looks some thing like this QFAA-A1 (or similar) you should be able to read this on the nordic chip on the board. The square black IC which has its hw version inprinted on it. Its little hard to read as it is just scratch print but you can give it a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32644?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2015 12:09:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69481059-d6ee-46a4-a12e-3926f579179c</guid><dc:creator>Brajesh</dc:creator><description>&lt;p&gt;SDK_5.0 &amp;amp; Softdevice 6.0 and HW- nRF51822&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32643?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2015 07:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d515b6a4-78ef-41f2-9682-809ef7f5b34a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Can you please tell me which SDK and which hardware versions you used?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32642?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2015 06:08:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b9760f9-edf3-4b77-b038-937d7acca3cc</guid><dc:creator>Brajesh</dc:creator><description>&lt;p&gt;Hi Aryan, I have added my main.c file of my firmware. Please have a look at it.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Untill i switch off the bluetooth of Central device, the ble_app_uart doesn&amp;#39;t start advertising again.&lt;/p&gt;
&lt;p&gt;Can you please have a look at the attached file in my Question above and let me know where is the issue ?&lt;/p&gt;
&lt;p&gt;Your suggestions are needed.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32641?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2015 12:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48efcf32-d5b8-4564-ae07-c1879ace5b5c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;NVIC_systemReset is a CMSIS function, i do not see any dependency on it with the softdevice.
How did you test it with and without softdevice? what is the context when you are resetting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32640?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2015 10:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fcaab69-018e-4360-a8c1-0a47596383fa</guid><dc:creator>Brajesh</dc:creator><description>&lt;p&gt;yes, I&amp;#39;v tried NVIC_systemReset with Softdevice also but that doesn&amp;#39;t work. NVIC works only without Softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32639?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2015 09:37:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8279628-b76f-4109-93a4-1513358dd490</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;the prefix &amp;quot;sd_&amp;quot; means that it only works with softdevice enabled.
I personally think that you can use NVIC function as you are anyway resetting the system, so why bother about the softdevice state (make sure your app is not writing anything to flash at that time if you are using direct NVIC_SystemReset function).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32638?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2015 09:20:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c3a40d0-f12a-4e55-bfc1-c6497589ddfc</guid><dc:creator>Brajesh</dc:creator><description>&lt;p&gt;Thanks Aryan for the reply.&lt;/p&gt;
&lt;p&gt;But sd_nvic_SystemReset API doesn&amp;#39;t work with softdevice, though NVIC_SystemReset works without Stack...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to Soft reset nRF51822 using Softdevice?? &amp; connection setup latency.</title><link>https://devzone.nordicsemi.com/thread/32637?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2015 07:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b3b4c84-8840-4d97-87be-6806aea89cdd</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;nrf_soc.h&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;/**@brief System Reset.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;@note Corresponds to NVIC_SystemReset in CMSIS.&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;@retval ::NRF_ERROR_SOC_NVIC_SHOULD_NOT_RETURN
*/
SVCALL(SD_NVIC_SYSTEMRESET, uint32_t, sd_nvic_SystemReset(void));&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;UPDATE:&lt;/h2&gt;
&lt;p&gt;Tried to explain little more &lt;a href="https://devzone.nordicsemi.com/question/77301/correct-way-to-reset-from-high-priority-isr/?answer=77472#post-id-77472"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>