<?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 return BLE peripheral&amp;#39;s connection status</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23027/how-to-return-ble-peripheral-s-connection-status</link><description>I&amp;#39;m writing an Android application that connects to various BLE peripherals including the NRF51 and NRF52. I don&amp;#39;t know if this question is appropriate for this site, but here it goes. 
 I noticed that the method onConnectionStateChange() from Android</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Jun 2017 08:26:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23027/how-to-return-ble-peripheral-s-connection-status" /><item><title>RE: How to return BLE peripheral's connection status</title><link>https://devzone.nordicsemi.com/thread/90587?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 08:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fab8c2fd-d5e8-4110-bc2d-968648592617</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;The beacon can request the connection timeout to be updated. But it&amp;#39;s the phone who decide which number the timeout should be. You can refer to CONN_SUP_TIMEOUT in the nRF51 firmware. Usually we set it to 4 seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to return BLE peripheral's connection status</title><link>https://devzone.nordicsemi.com/thread/90586?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2017 19:23:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72233187-015b-45ea-8309-b9180f3d4ddd</guid><dc:creator>MichaelNordicUser</dc:creator><description>&lt;p&gt;Sorry, I think I misunderstood you. The master is connected to the peripheral. The peripheral can for example be a beacon, and the master could be a phone running a host Android application. Is the supervision time-out parameter programmed into the beacon or into the phone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to return BLE peripheral's connection status</title><link>https://devzone.nordicsemi.com/thread/90585?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2017 16:18:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a4e0882-d12b-4c90-bdf5-1ea0a7a8bda4</guid><dc:creator>MichaelNordicUser</dc:creator><description>&lt;p&gt;Why is the connection supervision timeout parameter set by the peripheral if the peripheral is off? Shouldn&amp;#39;t the master device be responsible for asking the peripheral if it&amp;#39;s disconnected? Or does the peripheral send the parameter to the master?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to return BLE peripheral's connection status</title><link>https://devzone.nordicsemi.com/thread/90584?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2017 11:25:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:628dd87b-e3bb-4958-b3da-fa92b9c7e4ba</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;I would assume that you want to have onConnectionStateChange() involked right away when you power off the device ?&lt;/p&gt;
&lt;p&gt;Note that there is one parameter in  a connection parameters which is connection supervision timeout. The central will continue to send connection events packet even it doesn&amp;#39;t receive anything from the peripheral until the supervision timeout occurs.&lt;/p&gt;
&lt;p&gt;This is because if there is an interference occurs for a short period of time the connection still can be restored.&lt;/p&gt;
&lt;p&gt;You can reduce the time the central waiting by requesting shorter supervision timeout from the peripheral side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>