<?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 know the central and peripheral are still connected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11722/how-to-know-the-central-and-peripheral-are-still-connected</link><description>Hi everybody!!! 
 I am making a project which use NUS service and I have confuses in connection mode: 
 
 
 when the central and peripheral do not have data to transfer in connection mode, the system will go to sleep mode or not?. 
 
 
 If yes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Feb 2016 20:39:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11722/how-to-know-the-central-and-peripheral-are-still-connected" /><item><title>RE: How to know the central and peripheral are still connected</title><link>https://devzone.nordicsemi.com/thread/44338?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2016 20:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:914b2834-17c9-45a3-a649-f35fc4fa888d</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;conn handle 0 is a valid conn handle.  You would want to check for BLE_CONN_HANDLE_INVALID, which is 0xffff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know the central and peripheral are still connected</title><link>https://devzone.nordicsemi.com/thread/44337?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2016 14:26:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa46649d-967d-470e-ab3a-42c53d104c70</guid><dc:creator>Konrad Traczyk</dc:creator><description>&lt;ol start="2"&gt;
&lt;li&gt;Shouldn&amp;#39;t checking the m_conn_handle variable be enough? If it is set to 0 - the device is not connected, if anything else - it is connected.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know the central and peripheral are still connected</title><link>https://devzone.nordicsemi.com/thread/44335?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2016 09:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:455921e3-f48a-40da-a7f4-fbf37d512e88</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;If you designed the software, to do so, I would expect the device to do it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know the central and peripheral are still connected</title><link>https://devzone.nordicsemi.com/thread/44336?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2016 09:13:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68640069-c70e-4967-a103-140b9bcd012e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The system will still go to sleep mode if you have called sleep funtion in a loop in your main(). The system will however wakeup every connection interval to send empty PDUs to keep the connection alive and then go to sleep again because you are calling sleep function in a loop.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Just make sure that you did not get &lt;code&gt;BLE_GAP_EVT_DISCONNECTED&lt;/code&gt; event.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know the central and peripheral are still connected</title><link>https://devzone.nordicsemi.com/thread/44334?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2016 09:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6246a08d-7770-4f29-88e7-22f8c26d7196</guid><dc:creator>Minh</dc:creator><description>&lt;p&gt;If devices still exchange empty PDU, does peripheral device go to sleep mode ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know the central and peripheral are still connected</title><link>https://devzone.nordicsemi.com/thread/44333?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2016 09:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82b2c037-b261-4fa2-84db-50381d2028a2</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;No, in Bluetooth LE, there are still empty PDUs (protocol data units) exchanged, and this is nessary to synchronize the master and slave (central and peropheral). If you do not want this to happen, you have to disconnect the devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>