<?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>nrf tools on iphone  can not find device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11476/nrf-tools-on-iphone-can-not-find-device</link><description>app: nrf tool uart on iphone 5s 
 sdk: v8.1.0 
 softdevice: s110 
 example: ble_app_uart. 
 i have modify it based on the answer :
 link text 
 my advertsing init as follow: 
 uint32_t err_code;
ble_advdata_t advdata;
ble_advdata_t scanrsp;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Jan 2016 08:56:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11476/nrf-tools-on-iphone-can-not-find-device" /><item><title>RE: nrf tools on iphone  can not find device</title><link>https://devzone.nordicsemi.com/thread/43320?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2016 08:56:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:673b0065-9234-4033-a9d6-a5cc90dfaaea</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Liu,&lt;/p&gt;
&lt;p&gt;Please create another case when you have different question.&lt;/p&gt;
&lt;p&gt;Please give more information than just pasting the code snippet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf tools on iphone  can not find device</title><link>https://devzone.nordicsemi.com/thread/43321?ContentTypeID=1</link><pubDate>Sat, 23 Jan 2016 09:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ce8ae05-443d-4bd8-b659-9c965ec3a526</guid><dc:creator>Liu</dc:creator><description>&lt;p&gt;yes, the example worked. but there is another problem,  because i want to have dfu function, so i add files in the project, and modify the define&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define IS_SRVC_CHANGED_CHARACT_PRESENT 0  
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;as&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define IS_SRVC_CHANGED_CHARACT_PRESENT 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;it can also connect,but data can not transfer. debug, the write handle is wrong:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void on_write(ble_nus_t * p_nus, ble_evt_t * p_ble_evt)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;{
ble_gatts_evt_write_t * p_evt_write = &amp;amp;p_ble_evt-&amp;gt;evt.gatts_evt.params.write;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (
    **(p_evt_write-&amp;gt;handle == p_nus-&amp;gt;rx_handles.cccd_handle)**
    &amp;amp;&amp;amp;
    (p_evt_write-&amp;gt;len == 2)
   )
{
    if (ble_srv_is_notification_enabled(p_evt_write-&amp;gt;data))
    {
        p_nus-&amp;gt;is_notification_enabled = true;
    }
    else
    {
        p_nus-&amp;gt;is_notification_enabled = false;
    }
}
else if (
         **(p_evt_write-&amp;gt;handle == p_nus-&amp;gt;tx_handles.value_handle)**
         &amp;amp;&amp;amp;
         (p_nus-&amp;gt;data_handler != NULL)
        )
{
    p_nus-&amp;gt;data_handler(p_nus, p_evt_write-&amp;gt;data, p_evt_write-&amp;gt;len);
}
else
{
    // Do Nothing. This event is not relevant for this service.
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf tools on iphone  can not find device</title><link>https://devzone.nordicsemi.com/thread/43319?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2016 12:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbfb689c-17a4-4dfb-81ed-0a628189df23</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Liu,&lt;/p&gt;
&lt;p&gt;You have to make sure you included the 128bit UUID of the UART service in the advertising packet.
The UUID should be included in m_adv_uuids that you added to scanrsp.&lt;/p&gt;
&lt;p&gt;You can try to test again with the ble_app_uart example with no modification. I don&amp;#39;t know why you need to modify anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>