<?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>Cannot connect to nRF52840 from iPhone/iPad running iOS 14 using nRF Connect App</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70225/cannot-connect-to-nrf52840-from-iphone-ipad-running-ios-14-using-nrf-connect-app</link><description>Hi, 
 As iOS developer, I&amp;#39;m facing a really strange issue : Using the nRF Connect app, I try to connect my BLE device, with success or not depending my iPhone/iPad configuration; you can see the detail below 
 
 iPad mini 1 - iOS 12.4.5 
 iPad Air 3 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jan 2021 15:35:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70225/cannot-connect-to-nrf52840-from-iphone-ipad-running-ios-14-using-nrf-connect-app" /><item><title>RE: Cannot connect to nRF52840 from iPhone/iPad running iOS 14 using nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/289271?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 15:35:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a69d17b0-282e-4cfe-9675-dfe4294bb0b5</guid><dc:creator>erickcinco</dc:creator><description>&lt;p&gt;Turns out I&amp;nbsp;handle the&amp;nbsp;BLE_GAP_EVT_PHY_UPDATE_REQUEST case in all of my embedded applications except for this one!&lt;/p&gt;
&lt;p&gt;Note that this also works with iOS if you want to use PHY2MBPS.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
    
    NRF_LOG_DEBUG(&amp;quot;PHY update request.&amp;quot;);
    ble_gap_phys_t const phys =
    {
        .rx_phys = BLE_GAP_PHY_2MBPS,
        .tx_phys = BLE_GAP_PHY_2MBPS, 
    };
    err_code = sd_ble_gap_phy_update(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle, &amp;amp;phys);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot connect to nRF52840 from iPhone/iPad running iOS 14 using nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/289141?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 10:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15149e12-ca68-4fa0-945d-f0fcd4b0123f</guid><dc:creator>DDelforge</dc:creator><description>&lt;p&gt;Hi, thanks for your feedback,&lt;br /&gt;&lt;br /&gt;Indeed with little change, it&amp;#39;s now working perfectly on my iOS devices ! &lt;br /&gt;&lt;br /&gt;Thanks a lot !&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot connect to nRF52840 from iPhone/iPad running iOS 14 using nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/289124?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 10:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59304972-2a5f-4a8e-87e1-73db2802cc50</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;It looks like the issue is that your BLE device is not responding to LL_PHY_REQ which some IOS centrals are querrying for.&lt;/p&gt;
&lt;p&gt;Can you please add a response to that request as below in your ble_event_handler in you app&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
        {
            NRF_LOG_DEBUG(&amp;quot;PHY update request.&amp;quot;);
            ble_gap_phys_t const phys =
            {
                .rx_phys = BLE_GAP_PHY_AUTO,
                .tx_phys = BLE_GAP_PHY_AUTO,
            };
            err_code = sd_ble_gap_phy_update(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle, &amp;amp;phys);
            APP_ERROR_CHECK(err_code);
        } br&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and see if that works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot connect to nRF52840 from iPhone/iPad running iOS 14 using nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/288750?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 17:47:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f32e3348-536e-4356-94dc-5d7ad16fc8ea</guid><dc:creator>erickcinco</dc:creator><description>&lt;p&gt;I am seeing the same behavior.&lt;/p&gt;
&lt;p&gt;With my peripheral embedded device under the debugger I can see a&amp;nbsp;connection request go through and the connection seems to be properly established (from the peripheral&amp;#39;s perspective). I have not seen any issues on an Android device. Curiously, the iPhone SE (1st Gen) works with both iOS 13 and 14.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/ddelforge"&gt;DDelforge&lt;/a&gt;&amp;#39;s capture shows that the central app and peripheral device establish a connection and keep the connection alive with Empty PDU packets.&lt;/p&gt;
&lt;p&gt;Could it be that the iOS apps are not handling a connection event correctly which leaves it stuck in the &amp;quot;connecting&amp;quot; state?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;iPhone 7 - iOS 13.5.1&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610038674490v8.png" /&gt;&lt;/li&gt;
&lt;li&gt;iPhone SE (1st Gen) -&amp;nbsp;&lt;span&gt;iOS&amp;nbsp;13.5.1&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610038674490v8.png" /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;iPhone SE &lt;span&gt;(1st Gen)&amp;nbsp;&lt;/span&gt;-&amp;nbsp;&lt;span&gt;iOS 14.3&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610038674490v8.png" /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;iPhone 11 ProMax - iOS 14.0.1&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610038674490v7.png" /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;iPhone 11 - iOS 14.3&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610038674490v7.png" /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;iPad Air (4th Gen) - iOS 14.3&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610038674490v7.png" /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Samsung Galaxy Note 20 - Android &lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610038674490v8.png" /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;LG Nexus 5X - Android 8.1.0&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610038674490v8.png" /&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot connect to nRF52840 from iPhone/iPad running iOS 14 using nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/288642?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 12:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12e0f367-c583-4f55-8f65-11baf20ce26a</guid><dc:creator>DDelforge</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You can find some logs generate et tested with the original code from Nordic&amp;nbsp;&lt;span&gt;&amp;nbsp;(ble_thread_dyn_mtd_coap_cli) and&amp;nbsp;nrfConnect. Chip used is&amp;nbsp;nrf52840.&lt;br /&gt;&lt;br /&gt;Inside the .zip file, you will find&amp;nbsp;logs from&amp;nbsp;successful connection, but&amp;nbsp;also logs where connection fails.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Wireshark.zip"&gt;devzone.nordicsemi.com/.../Wireshark.zip&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot connect to nRF52840 from iPhone/iPad running iOS 14 using nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/288371?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 12:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:413d8deb-c8fd-4809-844b-f5c94682a947</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Then somehow you need to provide me the sniffer log of the failed connection transaction.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have an extra nRF kit, then you can use it as a BLE sniffer using the firmware given &lt;a href="https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-Sniffer/sw/blesnifferwin101.zip"&gt;here&lt;/a&gt;&amp;nbsp;and using &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF_Sniffer_BLE_UG_v3.1.pdf"&gt;Wireshark&lt;/a&gt;. I am not sure how else to see what went wrong with the connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot connect to nRF52840 from iPhone/iPad running iOS 14 using nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/288339?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 10:40:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27ab39e5-b11d-48ff-8e2d-7e96c3e23f78</guid><dc:creator>DDelforge</dc:creator><description>&lt;p&gt;Hi, &lt;br /&gt;&lt;br /&gt;Thanks for the input. I tried the proposed solution, unfortunately i got the exact same issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot connect to nRF52840 from iPhone/iPad running iOS 14 using nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/288331?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 10:16:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f26c2c5-6063-4ca2-a91c-23780accaf46</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I asked the IOS expert to see if he knows about some issue regarding IOS incompatibilities with any BLE versions. It seems that this is something new to us.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We suspect that this might something to do with IOS BLE caching mechanism which is not updated with your device info.&lt;/p&gt;
&lt;p&gt;Can you please try to do this for the failing device&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;close the nRF Connect App.&lt;/li&gt;
&lt;li&gt;Go to settings and turn off Bleutooth. You need to turn of the Bluetooth from the main IOS settings and not from the control center.&lt;/li&gt;
&lt;li&gt;turn the bluetoon on again and&lt;/li&gt;
&lt;li&gt;start the nRF connect app and try to connect again.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This should forcefully update the BLE cache and nRF Connect should be able to connect to your device from here on. Please give it a try&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot connect to nRF52840 from iPhone/iPad running iOS 14 using nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/288320?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 09:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d938265e-d12c-4b50-8344-0ed0089afeb5</guid><dc:creator>DDelforge</dc:creator><description>&lt;p&gt;You are right : using nRF Connect App, I try to connect a nRF BLE Device (this BLE device is a nfr52840 in my case) using my iPhone.&lt;br /&gt;&lt;br /&gt;Connection works well on android device (BLE 4 or BLE 5 Compatible devices)&lt;br /&gt;Connection works as&amp;nbsp;well on some&amp;nbsp;iOS devices, but it seems, that some devices running iOS 14 cannot connect my BLE device.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regarding logs, unfortunately, I don&amp;#39;t have much. it seems we are stuck at the step CentralManager.connect(), with failing device, we will never go further than this step.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_4074.jpg" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot connect to nRF52840 from iPhone/iPad running iOS 14 using nRF Connect App</title><link>https://devzone.nordicsemi.com/thread/288314?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 09:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a133135-dead-4a9a-a886-4520aaf22363</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Just to be clear, you are using nRF connect APP to connect to nRF BLE devices? So nRF Connect app has issues connecting to nRF on some IOS versions?&lt;/p&gt;
&lt;p&gt;Maybe a sniffer log from one of the connection failure might help me undestand the problem a bit more in detail.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>