<?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>Custom BLE service can&amp;#39;t read all characteristics</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95034/custom-ble-service-can-t-read-all-characteristics</link><description>Hello guys, 
 I&amp;#39;m currently trying to get notifications from a custom ble service. I can connect to the service, but I only see 6 out of 9 characteristics. The first pic shows the ble communication between my central and the peripheral device. The second</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Dec 2022 08:49:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95034/custom-ble-service-can-t-read-all-characteristics" /><item><title>RE: Custom BLE service can't read all characteristics</title><link>https://devzone.nordicsemi.com/thread/401658?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 08:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c51ab67-75fe-46f9-9961-890b031fa6da</guid><dc:creator>MicSch</dc:creator><description>&lt;p&gt;I found the issue. In the on_characteristic_discovery_rsp() there is BLE_GATT_DB_MAX_CHARS which limits the max amount. It is declared in ble_gatt_dh.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE service can't read all characteristics</title><link>https://devzone.nordicsemi.com/thread/401653?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 08:29:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d2c1ec3-f07c-48d5-91ef-6488bf925f00</guid><dc:creator>MicSch</dc:creator><description>&lt;p&gt;Yes I modified the &lt;span&gt;BLE_DB_DISCOVERY_MAX_SRV&lt;/span&gt; in &lt;span&gt;ble_db_discovery.h&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE service can't read all characteristics</title><link>https://devzone.nordicsemi.com/thread/401650?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 08:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dff96c8-24dc-49ca-a0be-6019b9d4eb4f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi MicSch,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Have you modified&amp;nbsp;&lt;span&gt;BLE_DB_DISCOVERY_MAX_SRV&amp;nbsp;&amp;nbsp;inside&amp;nbsp;ble_db_discovery.h ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE service can't read all characteristics</title><link>https://devzone.nordicsemi.com/thread/401584?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 16:22:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3590ecd-a421-48e7-93b4-3ea183fa0fc7</guid><dc:creator>MicSch</dc:creator><description>&lt;p&gt;They are indeed under the same service. I increased both, but it didn&amp;#39;t work. BLE_GATT_DB_MAX_CHARS wasn&amp;#39;t declared in the library or the sdk_confiq file, but it doesnt matter where I declare it?&lt;br /&gt;I will try do search for the query of the ATT_READ_BY_TYPE_RSP response tomorrow, maybe this will fix the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE service can't read all characteristics</title><link>https://devzone.nordicsemi.com/thread/401574?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 15:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4b1c578-1ed7-4718-a700-2057d96830f9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi MicSch,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I found this declaration&amp;nbsp;BLE_DB_DISCOVERY_MAX_SRV&amp;nbsp; set to 6 in the ble_db_discovery.h . It matched with what you observed.&lt;/p&gt;
&lt;p&gt;Could you try to increase it&amp;nbsp; ?&amp;nbsp;&lt;br /&gt;I&amp;#39;m not sure if all of your characteristic is under the same service or not, but if they are, then you need to increase&amp;nbsp;BLE_GATT_DB_MAX_CHARS as well.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE service can't read all characteristics</title><link>https://devzone.nordicsemi.com/thread/401565?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 15:11:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2803f82f-c30d-41dd-8063-0feb9b6f6571</guid><dc:creator>MicSch</dc:creator><description>&lt;p&gt;Hello Hung Bui,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using the ble_db_discovery lib. I changed a client example to be able to discover the custom service. It&amp;#39;s running on a nrf52832 chip. In the meantime I will try to find the query for the ATT_READ_BY_TYPE_RSP response.&lt;/p&gt;
&lt;p&gt;Here are the two traces.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/snifferTraceCentral.pcapng"&gt;devzone.nordicsemi.com/.../snifferTraceCentral.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/snifferTraceBleApp.pcapng"&gt;devzone.nordicsemi.com/.../snifferTraceBleApp.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom BLE service can't read all characteristics</title><link>https://devzone.nordicsemi.com/thread/401551?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 14:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:392a9826-7f5b-4123-8507-598fa20da937</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi MicSch,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you give more information about your central ? Did you use our service discovery library to do the task ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please attach the sniffer trace file so we can have a look.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My understanding is that after receiving&amp;nbsp;ATT_READ_BY_TYPE_RSP and the result was not &amp;quot;Attribute Not Found &amp;quot; you would need to continue sending&amp;nbsp;ATT_READ_BY_TYPE_REQ again with the start handled updated until you receive &amp;quot;Attribute not found&amp;quot; Please see Section 4.6.1 Vol 3 Part G in Bluetooth Spec.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1671546905257v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>