<?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>Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34257/service-discovery-attribute-not-found-0x0001</link><description>Dear all, 
 I am having issues with service discovery of two primary services ( Battery and one propriotary based on NUS) I am currently using SDK 14.2 on NRF52832 chip running as central device application trying to discover these services on off-the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Jun 2019 07:40:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34257/service-discovery-attribute-not-found-0x0001" /><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/193554?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 07:40:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bd68f6e-70af-437a-9109-139597f65f96</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Sorry for the delayed response. I have been on a business trip the past two weeks. From&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/s132_msc_overview.html?cp=3_4_1_4_1"&gt; this message sequence chart&lt;/a&gt;, you can see that you can use variant 2: discover a specific service if you want to change how service discovery is done. If you take a closer look at the softdevice API, you should be able to modify the service discovery the way you want to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/190923?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 21:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45fab02c-2dea-4cbd-a3ed-c662a7b92f0a</guid><dc:creator>laran</dc:creator><description>&lt;p&gt;Ok, I am back on this issue and I have my Wireshark up and running gain, so that helps.&lt;/p&gt;
&lt;p&gt;Now, when I look at my log in the initial post, the discovery starts with &amp;quot;Sent Find By Type Value Request&amp;quot; starting at 0x0001. All devices that manage to perform a discovery start with a &amp;quot;Sent Read By Group Type Response&amp;quot;, then do the &amp;quot;... Find by Type....&amp;quot; based on what was was returned from the &amp;quot;... Read Group Response ...&amp;quot;&lt;/p&gt;
&lt;p&gt;My basic question is, if&amp;nbsp; this is something that can be controlled when initializing the service discovery.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/135910?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 11:51:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:869736e3-b9bc-49d6-a16d-cab80b253699</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Sorry about the delayed response. Got a tip from a colleague, which was to take a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/ble_sdk_app_hrc.html?cp=4_0_1_4_2_0_1"&gt;ble heart rate collector central example&lt;/a&gt;. I believe the answer should be quite straightforward if you take a look at the ble_app_hrs example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; * @brief Battery level collector initialization.
 */
static void bas_c_init(void)
{
    ble_bas_c_init_t bas_c_init_obj;

    bas_c_init_obj.evt_handler = bas_c_evt_handler;

    ret_code_t err_code = ble_bas_c_init(&amp;amp;m_bas_c, &amp;amp;bas_c_init_obj);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint32_t ble_bas_c_init(ble_bas_c_t * p_ble_bas_c, ble_bas_c_init_t * p_ble_bas_c_init)
{
    VERIFY_PARAM_NOT_NULL(p_ble_bas_c);
    VERIFY_PARAM_NOT_NULL(p_ble_bas_c_init);

    ble_uuid_t bas_uuid;

    bas_uuid.type                = BLE_UUID_TYPE_BLE;
    bas_uuid.uuid                = BLE_UUID_BATTERY_SERVICE;

    p_ble_bas_c-&amp;gt;conn_handle                = BLE_CONN_HANDLE_INVALID;
    p_ble_bas_c-&amp;gt;peer_bas_db.bl_cccd_handle = BLE_GATT_HANDLE_INVALID;
    p_ble_bas_c-&amp;gt;peer_bas_db.bl_handle      = BLE_GATT_HANDLE_INVALID;
    p_ble_bas_c-&amp;gt;evt_handler                = p_ble_bas_c_init-&amp;gt;evt_handler;

    return ble_db_discovery_evt_register(&amp;amp;bas_uuid);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also, take a look at how the BLE_UUID_BATTERY_SERVICE is discovered in the&amp;nbsp;ble_bas_on_db_disc_evt() in ble_bas_c.c.&lt;/p&gt;
&lt;p&gt;I would test with the ble_app_hrs example first &amp;amp; when that works (it definitely should), then you can make the relevant changes in the multilink example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Even though the BLE_UUID_BATTERY_SERVICE is included in ble_srv_common.h, it is not discovered in&amp;nbsp;ble_bas_on_db_disc_evt() or&amp;nbsp;ble_bas_c_init().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/135253?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 19:23:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1930ef07-482f-4041-93f1-d79a83df783d</guid><dc:creator>laran</dc:creator><description>&lt;p&gt;Yes, I am still using SDK 14.2 with SD s132 (v5.0.0)&lt;/p&gt;
&lt;p&gt;This is what I get when printing out the GATT status:&lt;br /&gt;&amp;lt;debug&amp;gt; ble_db_disc: Service UUID 0x180F not found (GATT Status = 0x010A).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/135061?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 07:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc8b9f18-f226-4c35-bacc-f8f6e96a9a80</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;It seems the on_primary_srv_discovery_rsp() function is printing out the &amp;quot;Service UUID 0x0 not found&amp;quot; to the log. The reason for this is that the line &amp;quot;p_ble_gattc_evt-&amp;gt;gatt_status&amp;quot; inside the if block of the&amp;nbsp;on_primary_srv_discovery_rsp() function inside ble_db_discovery.c of the multilink example does not return BLE_GATT_STATUS_SUCCESS. Could you set a breakpoint here or print out what the GATT status code is? If you are still using SDK v 14.2 with Softdevice v5.0.0, &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_t_t___s_t_a_t_u_s___c_o_d_e_s.html?cp=2_3_1_1_1_2_3_0_4"&gt;you can find the different GATT status codes here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/134809?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 20:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00b4b923-04e2-42d1-b0bc-93da7e736f44</guid><dc:creator>laran</dc:creator><description>&lt;p&gt;I have had major issues with Wireshark. I can&amp;#39;t get it to capture anything else then advertisement packages. Occasionally I get a scan request from some Apple device in the area. therefore my logs are useless at the moment. I have tried to recreate the loggs I made earlier without luck.&lt;/p&gt;
&lt;p&gt;The best I can do for now is the debug output from the debug output.&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; nrf_sdh: State request: 0x00000000 &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: Notify observer 0x00027D78 =&amp;gt; ready &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000000 &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000001 &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: RAM starts at 0x20004190 &lt;br /&gt;&amp;lt;info&amp;gt; app: Multilink example started. &lt;br /&gt;&amp;lt;info&amp;gt; app: Start scanning for device 46 2C 90 17 02 0F &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x1D. &lt;br /&gt;&amp;lt;debug&amp;gt; app: Adv report. &lt;br /&gt;&amp;lt;info&amp;gt; app: Connecting to target 62 CE BB 51 F9 F4 &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x1D. &lt;br /&gt;&amp;lt;debug&amp;gt; app: Adv report. &lt;br /&gt;&amp;lt;info&amp;gt; app: Connecting to target 90 63 86 95 13 15 &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x1D. &lt;br /&gt;&amp;lt;debug&amp;gt; app: Adv report. &lt;br /&gt;&amp;lt;info&amp;gt; app: Connecting to target 46 2C 90 17 02 0F &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x10. &lt;br /&gt;&amp;lt;info&amp;gt; app: Connection 0x0 established, starting DB discovery. &lt;br /&gt;&amp;lt;debug&amp;gt; ble_db_disc: Starting discovery of service with UUID 0x180F on connection handle 0x0. &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x30. &lt;br /&gt;&amp;lt;debug&amp;gt; ble_db_disc: Service UUID 0x180F not found. &lt;br /&gt;&amp;lt;debug&amp;gt; app: call to ble_lbs_on_db_disc_evt for instance 0 and link 0x0! &lt;br /&gt;&amp;lt;debug&amp;gt; ble_bas_c: Battery Service discovery failure at peer. &amp;nbsp;&lt;br /&gt;&amp;lt;debug&amp;gt; ble_db_disc: Service UUID 0x0 not found. &lt;br /&gt;&amp;lt;debug&amp;gt; ble_db_disc: Service UUID 0x0 not found. &lt;br /&gt;&amp;lt;debug&amp;gt; ble_db_disc: Service UUID 0x0 not found. &lt;br /&gt;&amp;lt;debug&amp;gt; ble_db_disc: Service UUID 0x0 not found. &lt;br /&gt;&amp;lt;debug&amp;gt; ble_db_disc: Service UUID 0x0 not found. &lt;br /&gt;&amp;lt;debug&amp;gt; ble_db_disc: Service UUID 0x0 not found. &lt;br /&gt;&amp;lt;debug&amp;gt; ble_db_disc: Service UUID 0x0 not found. &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x11. &lt;br /&gt;&amp;lt;info&amp;gt; app: LBS central link 0x0 disconnected (reason: 0x8) &lt;br /&gt;&amp;lt;info&amp;gt; app: Start scanning for device 46 2C 90 17 02 0F &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x1D. &lt;br /&gt;&amp;lt;debug&amp;gt; app: Adv report. &lt;br /&gt;&amp;lt;info&amp;gt; app: Connecting to target 59 E1 D5 4E 74 C0 &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x1D. &lt;br /&gt;&amp;lt;debug&amp;gt; app: Adv report. &lt;br /&gt;&amp;lt;info&amp;gt; app: Connecting to target 46 2C 90 17 02 0F &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x10. &lt;br /&gt;&amp;lt;info&amp;gt; app: Connection 0x0 established, starting DB discovery. &lt;br /&gt;&amp;lt;debug&amp;gt; ble_db_disc: Starting discovery of service with UUID 0x180F on connection handle 0x0. &lt;br /&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x30. &lt;br /&gt;&amp;lt;debug&amp;gt; ble_db_disc: Service UUID 0x180F not found. &lt;br /&gt;&amp;lt;debug&amp;gt; app: call to ble_lbs_on_db_disc_evt for instance 0 and link 0x0! &lt;br /&gt;&amp;lt;debug&amp;gt; ble_bas_c: Battery Service discovery failure at peer.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/134622?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 22:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3b7465b-dab2-40a0-a5ab-749f0ed1f050</guid><dc:creator>SRA</dc:creator><description>&lt;p&gt;Just a heads up that I have a similar issue in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35078/ios-disconnects-after-exactly-33-seconds-with-nrf-connect-not-other-app-android-no-issue"&gt;another post&lt;/a&gt;. Also getting Attribute Not Found for three of my characteristics on discovery. So I&amp;#39;m interested in the response here.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/134469?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 07:43:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b93f20f4-3c3f-4dbd-9ce2-fd2378e3b8ab</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;That&amp;#39;s weird. Do you also have any logging information from the multilink example that you could upload? Might be helpful in debugging this further.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/134453?ContentTypeID=1</link><pubDate>Mon, 04 Jun 2018 06:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd054125-f4fb-4517-81fa-38dea4fc4499</guid><dc:creator>laran</dc:creator><description>&lt;p&gt;Just for a quick test I used the &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/ble_sdk_app_multilink.html?cp=4_0_1_4_2_0_2"&gt;multilink central example&lt;/a&gt; you suggested. Since it already has the battery service it was perfect for testing this. However, it does not connect here either. I&amp;#39;ll uplode a Wireshark log later today.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/132664?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 08:04:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd1aeb43-ef4e-4538-9e03-fb7b71f7991b</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Sorry for the delayed response. I have taken a closer look at the uart central example &amp;amp; I believe this example only searches for the uart service. I think it would be better if you tested with the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/ble_sdk_app_multilink.html?cp=4_0_1_4_2_0_2"&gt;multilink central example&lt;/a&gt;, as that example does not limit itself to the uart service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/132338?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 17:04:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7c11111-fe2a-452d-badf-8b3502509d88</guid><dc:creator>laran</dc:creator><description>&lt;p&gt;I am sorry, I was unclear. nrf Connect is able to do the service discovery on all the printers. My implementation on the nrf52 chip works on some of them. I still expect something is wrong with my code.&lt;/p&gt;
&lt;p&gt;When looking at package 520 one can see the the 128 bit service is broadcasted by the printer. Then in package #526 the primary service declaration request is hapening, asking for the same 128 bit value, right? then in #527 the &amp;quot;not found&amp;quot; response happen. Starting at package 35052 one can see how the connection and service discovery between the printer and nrf connect my android device.&amp;nbsp; I interpret it as the printer uses a CSR chip.&lt;/p&gt;
&lt;p&gt;I attach a Wireshark log with a device that work. the service discovery starts at package #224&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/PTP_2D00_II.pcapng"&gt;devzone.nordicsemi.com/.../PTP_2D00_II.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/132218?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 09:43:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6856fa63-650c-4d15-8f36-1cd63c22a72c</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;What kind of Bluetooth chip do the thermal printers use? If service discovery works using nrf connect, it seems you have done this part correctly. If the thermal printers do not use a Nordic Bluetooth chip, it could be that there is some kind of service discovery error occurring on the server side in the thermal printers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/131938?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 20:58:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6032352-e741-4167-8c03-2f80d63b9f61</guid><dc:creator>laran</dc:creator><description>&lt;p&gt;My project is based on the ble_app_uart_c example with the battery service added to it. I am running Wireshark 2.4.6 using the nrf-sniffer-2.&lt;/p&gt;
&lt;p&gt;I have uploaded the Wireshark logg. Go to message 520 for a start.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/POS_2D00_5802.pcapng"&gt;devzone.nordicsemi.com/.../POS_2D00_5802.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery, attribute not found 0x0001</title><link>https://devzone.nordicsemi.com/thread/131821?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 09:06:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0eb10f5-8941-45c7-a7eb-f08401e39e44</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;If you take a look at Chapter 3.4.1.1 Error Response in the &lt;a href="https://www.bluetooth.com/specifications/bluetooth-core-specification"&gt;Bluetooth Core Specification&amp;nbsp;&lt;/a&gt;, you can see that the error code 0x0A&amp;nbsp; refers to: &amp;quot;No attribute found within the given attribute handle range&amp;quot;. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/5205/pdu-error-codes"&gt;According to this case&lt;/a&gt;, this error code is sent for characteristics that do not have a value. Which example from SDK 14.2 are you basing your code off of? Could you upload the whole wireshark log for me to take a look at please? Also, which version of wireshark &amp;amp; nrf sniffer are you currently using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>