<?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>Trouble connecting to iOS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39087/trouble-connecting-to-ios</link><description>When I connect to my device with an iPhone, using the nRF Connect app, I am experiencing an immediate disconnect. The part does not have time to start pairing. I have shared the Wireshark log in this post. Could someone please help me interpret the log</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Oct 2018 19:38:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39087/trouble-connecting-to-ios" /><item><title>RE: Trouble connecting to iOS</title><link>https://devzone.nordicsemi.com/thread/152741?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 19:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0493ac2-bfaa-4483-945f-b744a1d8705b</guid><dc:creator>Wavecake</dc:creator><description>&lt;p&gt;It ended being that noise introduced by an LED pattern caused the disconnect events. &amp;nbsp;The LED pattern on connection was driven by PWM which impacted the RF signal integrity. &amp;nbsp;The loss of communication resulted in missed&amp;nbsp;packets which led to the HCI timeout.&lt;/p&gt;
&lt;p&gt;The recommended steps in this post helped the most. &amp;nbsp;In particular, I took an example from the Nordic SDK and ported to our new board. &amp;nbsp;When I saw the example program worked, I had something to go off of. &amp;nbsp;From there, I just commented out initialization code to make it look similar. &amp;nbsp;Eventually, nothing was left except for the LED pattern. &amp;nbsp;Thanks for all your help Kenneth.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/45896372/ios-how-to-discover-unadvertised-services-on-a-ble-peripheral"&gt;stackoverflow.com/.../ios-how-to-discover-unadvertised-services-on-a-ble-peripheral&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble connecting to iOS</title><link>https://devzone.nordicsemi.com/thread/152562?ContentTypeID=1</link><pubDate>Thu, 11 Oct 2018 21:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc1385c8-23c7-4bfe-845e-4953166bc1ed</guid><dc:creator>Wavecake</dc:creator><description>&lt;p&gt;I also noticed that I am receiving an unhandled BLE_EVT code 4. &amp;nbsp;The header files for common evts don&amp;#39;t have an event defined for that value. &amp;nbsp;Any ideas what that could mean?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble connecting to iOS</title><link>https://devzone.nordicsemi.com/thread/152551?ContentTypeID=1</link><pubDate>Thu, 11 Oct 2018 16:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6c0e94b-06a9-4813-b79b-6a45d1e1cf87</guid><dc:creator>Wavecake</dc:creator><description>&lt;p&gt;Yes, I updated to S132v3.1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a screen shot of from the debugger. &amp;nbsp;The reason shows up as&amp;nbsp;BLE_HCI_CONNECTION_TIMEOUT.&lt;/p&gt;
&lt;p&gt;I also noticed the last GATTC event has an error code. &amp;nbsp;Is that a valid event? &amp;nbsp;Or is it wrong to interpret that event since the current event is a GAP_EVT disconnect?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Snip20181011_5F00_2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble connecting to iOS</title><link>https://devzone.nordicsemi.com/thread/152431?ContentTypeID=1</link><pubDate>Thu, 11 Oct 2018 06:48:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a474670-3850-423c-adf8-3b9db72627fc</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I assume you have updated to S132v3.1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is the &lt;span&gt;disconnect reason&lt;/span&gt; when disconnecting (e.g. on BLE_GAP_EVT_DISCONNECTED check p_ble_evt-&amp;gt;evt.gap_evt.params.disconnected.reason)?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble connecting to iOS</title><link>https://devzone.nordicsemi.com/thread/152415?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 19:22:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3a56a57-1354-40fd-8a4d-71baf50c25dd</guid><dc:creator>Wavecake</dc:creator><description>&lt;p&gt;So far I&amp;#39;ve narrowed some things down.&lt;/p&gt;
&lt;p&gt;1. The BLE HTS example runs on my hardware and allows an iOS connection without any issues.&lt;/p&gt;
&lt;p&gt;2. I realized that I don&amp;#39;t have an external LFC. &amp;nbsp;Instead of using the SYNTH setting, I switched to the RC clk with recommended 16/2 settings. &amp;nbsp;This didn&amp;#39;t fix any issues, but I believe it is the right thing to do.&lt;/p&gt;
&lt;p&gt;I think the next step is to identify some error codes related to when the device disconnects. &amp;nbsp;Are there any variables I should be looking at in particular?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble connecting to iOS</title><link>https://devzone.nordicsemi.com/thread/151290?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 16:58:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71a30b83-af28-4d22-9782-86fcaf7ca412</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The log is indeed odd, do you see this issue only when running on your own hardware or also when running on nRF52832-DK?&lt;/p&gt;
&lt;p&gt;In any case I recommend to update to S132v3.1, you can download S132v3.1 from here:&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF52832/S132-SD-v3/56261"&gt;https://www.nordicsemi.com/eng/nordic/Products/nRF52832/S132-SD-v3/56261&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Make sure to update your project with the S132v3.1 softdevice header files, then re-compile your application, and you should be able to program both S132v3.1 softdevice and application.&lt;/p&gt;
&lt;p&gt;I recommend to check the known issue list:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/16156/what-are-sdk-12-x-0-known-issues"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/16156/what-are-sdk-12-x-0-known-issues&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>