<?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>iOS/iPhone BLE service discovery timeout with ant shared channel demo</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19453/ios-iphone-ble-service-discovery-timeout-with-ant-shared-channel-demo</link><description>Hi! 
 Using the out of the box ANT shared channel demo with a NRF52-DK board and the iOS demo app everything compiles and installs nicely, using the Android-based app nRF Connect for Mobile I can successfully connect and control the hub/peripherals,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Feb 2017 12:37:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19453/ios-iphone-ble-service-discovery-timeout-with-ant-shared-channel-demo" /><item><title>RE: iOS/iPhone BLE service discovery timeout with ant shared channel demo</title><link>https://devzone.nordicsemi.com/thread/75570?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2017 12:37:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df095099-c646-4860-b09b-ceb0b05bc586</guid><dc:creator>philip</dc:creator><description>&lt;p&gt;Super yes, that indeed does the trick - many thanks! I was following the wrong idea..
Just complete: &lt;code&gt;ble_evt_dispatch(..)&lt;/code&gt; is to be found in &lt;code&gt;asc_coordinator.c&lt;/code&gt;.
According to &lt;a href="https://github.com/NordicSemiconductor/ANT-Shared-Channel-Demo/issues/1#event-956567618"&gt;philips77&lt;/a&gt; the new iOS (10.xx) is sending the ATT MTU request which previous versions didn&amp;#39;t.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS/iPhone BLE service discovery timeout with ant shared channel demo</title><link>https://devzone.nordicsemi.com/thread/75569?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 10:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b501168-0b1d-495d-aecc-781ed5c37532</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I did a &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/No-MTU-response.pcapng"&gt;sniffer trace&lt;/a&gt;, it seems iOS is sending a ATT MTU request that is not responded to, and because of that iOS disconnects after 30s.&lt;/p&gt;
&lt;p&gt;If you replace the ble_evt_dispatch() function with the following, the MTU request should be responded to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void ble_evt_dispatch(ble_evt_t * p_ble_evt)
{
    uint32_t err_code;
    
    cntrldevice_event_handler(p_ble_evt);    
    
    if(p_ble_evt-&amp;gt;header.evt_id == BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST)
    {
        err_code = sd_ble_gatts_exchange_mtu_reply(p_ble_evt-&amp;gt;evt.common_evt.conn_handle, GATT_MTU_SIZE_DEFAULT); 
        APP_ERROR_CHECK(err_code);
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I would also like to mention that the iOS app is old (2 years), it is not tested with later SDK, and it will not be updated. It can of course still be used as a starting point for development.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS/iPhone BLE service discovery timeout with ant shared channel demo</title><link>https://devzone.nordicsemi.com/thread/75568?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 14:17:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07358c7f-de20-4d1c-90e0-3cebb47600bd</guid><dc:creator>philip</dc:creator><description>&lt;p&gt;Ah very good idea, right on it now - many thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iOS/iPhone BLE service discovery timeout with ant shared channel demo</title><link>https://devzone.nordicsemi.com/thread/75567?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2017 16:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f6fb177-4efb-4ca5-b329-56e0f66b4418</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what could be causing this. Have you done a sniffer trace to see what is happening on air? You can use the &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB"&gt;nRF Sniffer&lt;/a&gt;. I&amp;#39;ll try to test this first thing tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>