<?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>Terminate established peripheral connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81909/terminate-established-peripheral-connection</link><description>Hello all! 
 I am currently developing on the development board nRF52832, SDK16.0 and SD132v7.2.0. 
 My developmnet board acts as a central whereas my phone as peripheral. The idea is now that my developmnet board terminates the connection with my phone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Nov 2021 10:14:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81909/terminate-established-peripheral-connection" /><item><title>RE: Terminate established peripheral connection</title><link>https://devzone.nordicsemi.com/thread/339999?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 10:14:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa7447a4-2ba7-4d00-9e54-9a0b03e6caf2</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="MKarl"]thank you for your quick response.[/quote][quote user="MKarl"]Thank you again.[/quote]
&lt;p&gt;No problem at all, Karl - I am happy to help!&lt;/p&gt;
[quote user="MKarl"]As you also proposed, i am starting a timer and after expiration, the link is disconnected by using sd_ble_gap_disconnect.[/quote]
&lt;p&gt;Great, that is a good way to implement it.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open another ticket if you should encounter any other issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Terminate established peripheral connection</title><link>https://devzone.nordicsemi.com/thread/339995?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 10:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7766868-a36f-4635-9b42-cd8456e258d6</guid><dc:creator>MKarl</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;thank you for your quick response. As you also proposed, i am starting a timer and after expiration, the link is disconnected by using sd_ble_gap_disconnect.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Terminate established peripheral connection</title><link>https://devzone.nordicsemi.com/thread/339977?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 09:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a65c2069-95f3-4bff-b259-873e23231ffd</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
[quote user=""]Please correct me if i am wrong but based on the code snippet above the connection to the peripheral should terminate after 4 s? But the problem is that the connection remains until i disconnet manually on my peripheral itself.[/quote]
&lt;p&gt;This is not quite correct, since the Connection Supervision Timeout parameter configures the time it will take to terminate a link when the peer has become unresponsive. In essence, this is the time that the devices will keep trying to reach the peer, even though the peer has stopped responding. This thus only comes into play once one of the peers stops showing up to the connection events.&lt;br /&gt;&lt;br /&gt;If you would like to disconnect the link after a specific time has passed you should instead set up a timer that invokes the&amp;nbsp;&lt;span&gt;sd_ble_gap_disconnect function upon expiration.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>