<?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>Automatically re-connect to the previous bonded device in certain range</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12900/automatically-re-connect-to-the-previous-bonded-device-in-certain-range</link><description>Hi there, 
 Currently, I am working on a project which uses iphone(or other IOS device) as a central, and nrf51822 as peripheral.
Basically, the concept is that peripheral device stays in a fixed position, and according to the connection to central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Apr 2016 11:07:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12900/automatically-re-connect-to-the-previous-bonded-device-in-certain-range" /><item><title>RE: Automatically re-connect to the previous bonded device in certain range</title><link>https://devzone.nordicsemi.com/thread/49115?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 11:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd553dda-f2b9-49a2-b283-af86a4d898b6</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;Hello Hao could you please tell me how you tested the ble_prox exmaple on IOS did you odify some part of source code or you just tested without any modiifcations on the source code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically re-connect to the previous bonded device in certain range</title><link>https://devzone.nordicsemi.com/thread/49116?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 16:49:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e4ad3c3-bc62-44b3-9b05-4c33f1c8e4a2</guid><dc:creator>Markus</dc:creator><description>&lt;p&gt;Hello Hao Tsui,&lt;/p&gt;
&lt;p&gt;i am more a newbie than you ... But i want the same as you!&lt;/p&gt;
&lt;p&gt;I want to light up a led when the BLE Nano is in Range and Shut down when it is out of Range.&lt;/p&gt;
&lt;p&gt;Can you please help me to send your Code?&lt;/p&gt;
&lt;p&gt;Thanks alot&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically re-connect to the previous bonded device in certain range</title><link>https://devzone.nordicsemi.com/thread/49114?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2016 14:04:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a2be961-25f5-4665-93d2-04054d9b1f09</guid><dc:creator>Hao Tsui</dc:creator><description>&lt;p&gt;Many thanks Kristin !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically re-connect to the previous bonded device in certain range</title><link>https://devzone.nordicsemi.com/thread/49113?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2016 14:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:892c55b4-7dcf-4599-a755-2d1987635f8c</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;You can download the source code for the nRF Toolbox &lt;a href="https://github.com/NordicSemiconductor/IOS-nRF-Toolbox"&gt;here&lt;/a&gt; to check how the re-connection part is implemented.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically re-connect to the previous bonded device in certain range</title><link>https://devzone.nordicsemi.com/thread/49112?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2016 13:45:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7496bd91-4faf-433c-8d51-3566ceef0b63</guid><dc:creator>Hao Tsui</dc:creator><description>&lt;p&gt;Brillant Kristin!
May I ask do you know what should be done on app part, then it would have the re-connect function just like what NRF TOOLBOX is capable of?
(maybe this question is more like app development :P )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically re-connect to the previous bonded device in certain range</title><link>https://devzone.nordicsemi.com/thread/49111?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2016 12:14:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edcfa425-5ae7-4142-997c-1ec277e00292</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The nRF Toolbox --&amp;gt; Proximity app is designed to have the proximity functionality, for example re-connect upon a link loss. The lightblue app on the other hand is &amp;quot;simply&amp;quot; an app that allows you to connect to devices and interact with the devices, write, read, notifications, etc. It doesn&amp;#39;t know anything about the usecase for the connected peripheral, and it will therefore not automatically reconnect upon a disconnect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically re-connect to the previous bonded device in certain range</title><link>https://devzone.nordicsemi.com/thread/49110?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2016 12:07:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64f70eeb-19a3-4ce0-b388-b57315c5281e</guid><dc:creator>Hao Tsui</dc:creator><description>&lt;p&gt;Hey, Kristin.
It works fine now on NRF TOOLBOX, it will print out the &amp;quot;LINK LOSS ALERT&amp;quot; when iOS far away.
and when iOS closer it automatically re-connect!  It is cool!&lt;/p&gt;
&lt;p&gt;However, when I used LightBlue to test again it did not automatically reconnect.
Could you help me to figure out why there is different result testing on LightBlue and nRF toolbox?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically re-connect to the previous bonded device in certain range</title><link>https://devzone.nordicsemi.com/thread/49107?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2016 10:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0921617c-0991-4a4e-8baf-8e93cb901e70</guid><dc:creator>Hao Tsui</dc:creator><description>&lt;p&gt;Thank you Kristin again. However, regarding to question 2.
When I tested Proximity on nRF Toolbox, it will generate alert sound when my device(iOS) outside the connecting range. And when it (ios) in the range, the sound ends.
It seems fine, however, shouldn&amp;#39;t it print out &amp;quot;LINK LOSS ALERT !!!&amp;quot; on RTT whenever my iOS is far away and closer again?&lt;/p&gt;
&lt;p&gt;On my RTT it only shows: LINK LOSS ALERT !!! (once! at the beginning i manually pair the device)
when I started to testing the proximity range it would not print out &amp;quot;LINK LOSS ALERT&amp;quot; anymore (which I think it should be!)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically re-connect to the previous bonded device in certain range</title><link>https://devzone.nordicsemi.com/thread/49109?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2016 08:28:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:643230e5-548f-4bad-a559-4e50c281a69f</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I have updated the answer to answer question 2 as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically re-connect to the previous bonded device in certain range</title><link>https://devzone.nordicsemi.com/thread/49108?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2016 08:02:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54ff3bf4-a969-4696-a9cf-c0af668cb367</guid><dc:creator>Hao Tsui</dc:creator><description>&lt;p&gt;Thank you Kristin :)
It is a very clear answer for my question 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically re-connect to the previous bonded device in certain range</title><link>https://devzone.nordicsemi.com/thread/49106?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2016 07:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b28acaa-dc75-4743-906f-9fb288d32974</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;LINK LOSS ALERT!!!&amp;quot; will be printed if the reason for the disconnect is a timeout, i.e. the central is out of range and the peripheral doesn&amp;#39;t receive any packet within the connection supervision timeout. When the disconnect reason is &amp;quot;timeout&amp;quot;, the event BLE_LLS_EVT_LINK_LOSS_ALERT will be triggered, see on_disconnect(..) in ble_lls.c.&lt;/p&gt;
&lt;p&gt;&amp;quot;GAP_disconnected&amp;quot; will be printed no matter what the disconnect reason is.&lt;/p&gt;
&lt;p&gt;When the central disconnects the link, the reason is be something else than &amp;quot;timeout&amp;quot;, and thus, only &amp;quot;GAP_disconnected&amp;quot; will be printed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For a fast reconnect, provided that the peripheral is within the range of the central, you can use directed advertising with high duty cycle. Directed advertising with high duty cycle does only last for 1.28 s. So if the peripheral initially is out of range of the central, it may be better to use normal advertising with a short advertising interval.&lt;/p&gt;
&lt;p&gt;In addition, you have to set up the central device to automatically scan and re-connect upon a disconnection. I would think the Nordic iOS app nRF Toolbox --&amp;gt; proximity do that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>