<?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>After Disconnecting how to advertise after every 1 minute</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57136/after-disconnecting-how-to-advertise-after-every-1-minute</link><description>Hi Nordic Team, 
 
 My requirement is- 
 Advertise -&amp;gt; Connect to 1 device -&amp;gt; Send packet -&amp;gt; Disconnect -&amp;gt; Delay(1min) -&amp;gt; Advertise -&amp;gt; Connect to 2 device... 
 I am using Timer to make some delay to restart the advertisement for connecting to another peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jan 2020 13:58:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57136/after-disconnecting-how-to-advertise-after-every-1-minute" /><item><title>RE: After Disconnecting how to advertise after every 1 minute</title><link>https://devzone.nordicsemi.com/thread/231916?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 13:58:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77231dbf-d1d0-4405-bb0c-173070e97414</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The error code is&amp;nbsp;BLE_ERROR_INVALID_CONN_HANDLE (0x3002). Likely you are not in a connection at the time you try to disconnect.&lt;/p&gt;
&lt;p&gt;I would recommend to add a delay between &amp;quot;&lt;span&gt;Send packet -&amp;gt; Disconnect&amp;quot;&lt;/span&gt;&lt;span&gt;. Either a fixed delay of for instance 100ms, or that you wait for for BLE_GATTS_EVT_HVN_TX_COMPLETE event before you disconnect:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___b_l_e___g_a_t_t_s___h_v_n___m_s_c.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___b_l_e___g_a_t_t_s___h_v_n___m_s_c.html&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In general it consumes less power to stay connected if you are transmitting one packet every 1 minute. For instance use a connection interval of 400ms and slave latency of 10 and supervisor timeout of 6 seconds (e.g. 15 empty dummy packets each 1 minute). Then that will draw total average current of 3.8uA while in a connection. I think that is less power than if you need to advertise, establish connection, possible execute MTU exhanges, encryption, send packets and then disconnect every 1minute.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>