<?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>Central can&amp;#39;t find primary service successfully</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28627/central-can-t-find-primary-service-successfully</link><description>Hi,nordics 
 I failed to find primary service successfully .The sdk version is 10.00 and I reffered to the example is ble_app_uart_c_s120.The pripheral is a gamepad .I can connect to the gamepad successfully ,but I can&amp;#39;t find the primary service .When</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Dec 2017 11:40:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28627/central-can-t-find-primary-service-successfully" /><item><title>RE: Central can't find primary service successfully</title><link>https://devzone.nordicsemi.com/thread/113466?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2017 11:40:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61d05a6c-1af2-4584-9f25-3470b5059ea9</guid><dc:creator>anna</dc:creator><description>&lt;p&gt;Thank you very much .The service uuid is not in a right order .I checked a lot of times  but  I didn&amp;#39;t find it  .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central can't find primary service successfully</title><link>https://devzone.nordicsemi.com/thread/113465?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2017 12:12:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94d29934-98f0-4558-8e0b-5b7d3545bcd2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;As you can find in Bluetooth Spec (Section 4.4.2 Vol 3 Part G Core spec v4.2) if there isn&amp;#39;t any primary service match with the UUID you are looking for you will have Attribute not found error response back. Are you sure it&amp;#39;s BLE_GATT_STATUS_ATTERR_INVALID not BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND ?&lt;/p&gt;
&lt;p&gt;Make sure you match the UUID correctly, both the base UUID and service UUID.&lt;/p&gt;
&lt;p&gt;I would suggest to use a &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/"&gt;sniffer&lt;/a&gt; and track what actually happens over the air.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central can't find primary service successfully</title><link>https://devzone.nordicsemi.com/thread/113468?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2017 02:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34b7786c-6b1d-48f6-8d08-86e337216a16</guid><dc:creator>anna</dc:creator><description>&lt;p&gt;I add a log in the function of on_primary_srv_discovery_rsp,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void on_primary_srv_discovery_rsp(ble_db_discovery_t * const    p_db_discovery,                                const  ble_gattc_evt_t * const p_ble_gattc_evt)
{
                                         
       DB_LOG(&amp;quot;[DB]: status is %d\r\n&amp;quot; , p_ble_gattc_evt-&amp;gt;gatt_status); 
      if (p_ble_gattc_evt-&amp;gt;gatt_status == BLE_GATT_STATUS_SUCCESS) 
      .....
 }    
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;when the central connect to the device  successfully ,the central begin to do primary service discovery .I used the project of ble_app_uart_c_s120 .I just changed the base uuid and service uuid .And the central connect to the device through target name .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central can't find primary service successfully</title><link>https://devzone.nordicsemi.com/thread/113467?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2017 14:08:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:999f3fb1-639f-458e-a497-891077388e11</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;When do you read p_ble_gattc_evt-&amp;gt;gatt_status ? in which event ?&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s not in a relevant event, the value of p_ble_gattc_evt-&amp;gt;gatt_status doesn&amp;#39;t have any meaning.&lt;/p&gt;
&lt;p&gt;How did you do primary service discovery ? Please post the snippet of you code when you trigger service discovery.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>