<?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>S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29784/s332-ble-connect-ios-device</link><description>i used SoftDevice s332,and download the example:\examples\multiprotocol\ble_ant_app_hrm
i find that using android device can connect pca10040 ble well,but use ipad or iphone(lightblue) both can&amp;#39;t connect.
i want to know how to solve this problem?
thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Feb 2018 12:26:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29784/s332-ble-connect-ios-device" /><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/119526?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2018 12:26:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a79214b7-4bb8-43b6-8d8d-dba0abf5a032</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;OK, the event ans SD call is part of the softdevice headers, so you shouldn&amp;#39;t need the nrf_ble_gatt.h header. I.E the mtu request event is also handled by the GATT module (in nrf_ble_gatt_on_ble_evt)if you enable this in sdk_config.h. but it&amp;#39;s fine to do that in main instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118148?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 13:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d541a4a5-f86c-4024-8efa-899c718e966f</guid><dc:creator>Toyman</dc:creator><description>&lt;p&gt;Actually, not. Although &lt;code&gt;#include &amp;quot;nrf_ble_gatt.h&lt;/code&gt; was not mentioned direcgly in main.c, the nrf_ble_gatt.h header was already listed among others in Keil project pane. I believe, it&amp;#39;s due to the fact that nrf_ble_gatt.h is cross-linked by other headers.
But I still inserted &lt;code&gt;#include &amp;quot;nrf_ble_gatt.h&lt;/code&gt; into main.c to be on the safe side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118147?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 13:25:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b8d705a-76d5-4628-8654-44be4cfcc340</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Yes, it should. Did you actually need &lt;code&gt;#include &amp;quot;nrf_ble_gatt.h&lt;/code&gt; for that to work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118146?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 12:58:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d46d74b-d615-49fb-b3ec-ae32254e442f</guid><dc:creator>Toyman</dc:creator><description>&lt;p&gt;It works! I just added:
&lt;code&gt;#include &amp;quot;nrf_ble_gatt.h&amp;quot;&lt;/code&gt; and&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
			err_code=sd_ble_gatts_exchange_mtu_reply(p_ble_evt-&amp;gt;evt.gatts_evt.conn_handle, 23);
			APP_ERROR_CHECK(err_code);
            break;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118145?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 12:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc19b202-520d-4149-93db-b393d53209a1</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;And also make sure that #define NRF_BLE_GATT_ENABLED 1 in sdk_config.h as well as configre NRF_BLE_GATT_BLE_OBSERVER_PRIO&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118144?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 10:13:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f68d003c-84b2-47b8-a369-b52d37cea008</guid><dc:creator>Toyman</dc:creator><description>&lt;p&gt;@run_ar I&amp;#39;m using SDK14.2
As far as I undetstand, I should
a) add &lt;code&gt;#include nrf_ble_gatt.h&lt;/code&gt;
b) add nrf_ble_gatt.c to sources
c) add the code to &lt;code&gt;ble_evt_handler();&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118143?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 09:50:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdfb4333-1c5a-4ebd-b6c8-f96cd9c3fe19</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;@Toyman. Depends on which SDK you are using. Most likely the answer is yes, but you should check if you have the gatt module, nrf_ble_gatt.c. This module will handle the ATT mtu request.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118139?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 09:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77fb242f-2de3-4b3c-8047-bf81bec68636</guid><dc:creator>Toyman</dc:creator><description>&lt;p&gt;@run_ar the combined ANT/BLE example doesn&amp;#39;t have &lt;code&gt;void on_ble_evt(ble_evt_t * p_ble_evt)&lt;/code&gt; function mentioned above. It has &lt;code&gt;ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)&lt;/code&gt;function.
Is it where I should add the MTU handling code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118141?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 07:50:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0efc7a3-c7b2-4f71-9e41-915d84c95aeb</guid><dc:creator>Toyman</dc:creator><description>&lt;p&gt;Thx. I&amp;#39;ll try that. I&amp;#39;ll also implement a longer workaround  suggested in the link above.
Will they work together?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118140?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 07:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15dab8f8-e9b1-409c-8a3a-fc83f03a4dc1</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Most likely. If you do not handle that event today, that is the first thing you should fix.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118142?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 06:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca11465b-90a3-409c-8a0b-793f117bc9ef</guid><dc:creator>Toyman</dc:creator><description>&lt;p&gt;I have exactly the same issue: I get &amp;quot;interrogation&amp;quot; failed in Lightblue, but Nordic apps do not work either.
Does adding the event you mentioned solves the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118149?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 03:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37befb8f-d2c4-485d-9eec-488304fe2206</guid><dc:creator>sillysg5110</dc:creator><description>&lt;p&gt;You must add event to &lt;code&gt;void on_ble_evt(ble_evt_t * p_ble_evt)&lt;/code&gt; that is &lt;code&gt;BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST&lt;/code&gt;
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5556.QQ20170329112431.png" alt="image description" /&gt;
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6457.QQ20170329112815.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118138?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2017 08:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:990eaea2-c0e8-4f37-b500-88e458a6b542</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;@jwx555 which SDK version are you using? Please check if the solution found by @Tostikoning in the case he links to works for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S332 BLE CONNECT IOS DEVICE</title><link>https://devzone.nordicsemi.com/thread/118137?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 09:01:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:877ca9b6-6587-48fb-b2cf-0e70a069c6dc</guid><dc:creator>Tostikoning</dc:creator><description>&lt;p&gt;Does the LightBlue app gives an error that the &amp;quot;interrogation&amp;quot; failed? Try the nRF Connect app. I am having the same issues with a only BLE application. See the following question &lt;a href="https://devzone.nordicsemi.com/question/122994/ios-compatibillity-with-sdk13/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>