<?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>Connection Loss between nRF and Iphone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33906/connection-loss-between-nrf-and-iphone</link><description>Hi Nordic, 
 
 I&amp;#39;m using nRF51, SDK 12 and softdevice version S130 to stream data from nrf51 to iphone6 over BLE. 
 Sometimes, Few hours after launching streaming, the BLE communication between iphone and nrf51 is get lost. 
 Following the sniffing trace</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 May 2018 11:52:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33906/connection-loss-between-nrf-and-iphone" /><item><title>RE: Connection Loss between nRF and Iphone</title><link>https://devzone.nordicsemi.com/thread/130516?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 11:52:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce30796a-f173-473c-8c4d-7eb6edc7ef81</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;That seems to be it. It looks like the crystal has a +-40 ppm accuracy, so you should try to use that in your code rather than 20. As David mentions, you can also try to use even higher PPMs or the internal RC source to rule out any issues with your external crystal.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Loss between nRF and Iphone</title><link>https://devzone.nordicsemi.com/thread/130371?ContentTypeID=1</link><pubDate>Tue, 01 May 2018 09:49:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a109f13-b821-45b9-b46f-576d799a1d85</guid><dc:creator>Mehdi</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;I think you talk about this table. Right ?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1525168124087v1.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Loss between nRF and Iphone</title><link>https://devzone.nordicsemi.com/thread/130330?ContentTypeID=1</link><pubDate>Mon, 30 Apr 2018 15:57:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:492d13eb-6df6-4986-a7f7-6c2215dcc7f0</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;&lt;strong&gt;Comments:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1. The timeout seems to be 720 ms, which should be ok as it gives more than 20 missed packets before the link drops due to supervision timeout. (at a connection interval of 30ms)&lt;/p&gt;
&lt;p&gt;2. The accuracy used in the code is 20ppm but this needs to match the actual accuracy of the 32 KHz crystal as used by the manufacturer. The SDK code is intended to set the 32 KHz accuracy as it is on the board. If the number used in this case i.e. 20ppm is incorrect you will get link losses.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Actions on your end:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;-&amp;nbsp;&lt;/strong&gt;Get the 32 KHz crystal accuracy from your manufacturer or from the datasheets of the module&lt;/p&gt;
&lt;p&gt;- Change the crystal drift to a higher level perhaps 50ppm or more and verify if the stability increases&lt;/p&gt;
&lt;p&gt;- You can also change the 32KHz source to the internal 32KHz RC source so you are not dependent on the module vendor&amp;#39;s 32 KHz clock source. Verify if the stability increases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Loss between nRF and Iphone</title><link>https://devzone.nordicsemi.com/thread/130322?ContentTypeID=1</link><pubDate>Mon, 30 Apr 2018 15:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95f8abf1-f885-4dd0-ac7e-a0b7685b74e0</guid><dc:creator>Mehdi</dc:creator><description>&lt;p&gt;Hi David,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The occuracy i used is 20 PPM .&lt;/p&gt;
&lt;p&gt;Please find attached the sniffer traces&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/snifing-streaming.pcapng"&gt;devzone.nordicsemi.com/.../snifing-streaming.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Loss between nRF and Iphone</title><link>https://devzone.nordicsemi.com/thread/130305?ContentTypeID=1</link><pubDate>Mon, 30 Apr 2018 13:56:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eff588ee-e005-4df4-9f57-1673745cc816</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Can you attach the sniffer traces here here, you can also make the case private if desired.&lt;/p&gt;
&lt;p&gt;I looked at the data sheet for the&amp;nbsp;&lt;span&gt;ISP130301 and I could not figure out the accuracy&amp;nbsp;of the 32 KHz crystal used in the&amp;nbsp;ISP130301. Please reach out to the manufacturer and get the accuracy of the 32 KHZ crystal.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Update the&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_stack_init()&lt;/pre&gt; function in SDK 12.x to set the crystal accuracy as stated by the manufacturer of the nRF51 module as the default used may not be correct.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Loss between nRF and Iphone</title><link>https://devzone.nordicsemi.com/thread/130298?ContentTypeID=1</link><pubDate>Mon, 30 Apr 2018 13:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc180d8b-99b5-4bb4-ba46-0ef1c914fdba</guid><dc:creator>Mehdi</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your quick reply.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the sniffer trace is bellow&amp;nbsp;:&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href="https://drive.google.com/file/d/1O8jS2S8YYREXJKIeDp3VmbPKmbHzRfdl/view?usp=sharing"&gt;https://drive.google.com/file/d/1O8jS2S8YYREXJKIeDp3VmbPKmbHzRfdl/view?usp=sharing&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The markings on the top of my IC is : ISP130301&amp;nbsp; BL 1625C.&lt;/li&gt;
&lt;li&gt;Clock source Crystal, i don&amp;#39;t find clock occuracy on SDK_Config, so may be it&amp;#39;s the default value.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection Loss between nRF and Iphone</title><link>https://devzone.nordicsemi.com/thread/130286?ContentTypeID=1</link><pubDate>Mon, 30 Apr 2018 13:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08feac6b-3e65-45be-b534-7c55d16db1ac</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Requested actions:&lt;/p&gt;
&lt;p&gt;1. Can you post the sniffer traces&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Can you state the 32 KHz clock source (Crystal or RC) and its accuracy (in ppm) on the nRF51 board&lt;/p&gt;
&lt;p&gt;3. Can you state markings on top of your IC&lt;/p&gt;
&lt;p&gt;4. I will look for the Sleep clock accuracy of the iPhone in the sniffer trace, which should be in the connect request. Please make sure that the connect request is present in the trace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>