<?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>Avoid service discovery</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47269/avoid-service-discovery</link><description>I am using S130, SDK13 and NRF52832 both on my central and peripheral - custom boards. 
 I am trying to avoid service discovery on my peripheral. 
 I have set the service_changed to 0 when configuring the softdevice. 
 On my central I do not run service</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jul 2019 14:55:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47269/avoid-service-discovery" /><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/201032?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 14:55:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5afceb9-66e8-4a4b-ab5d-12d1c35b60cd</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Jens,&lt;/p&gt;
&lt;p&gt;So if I understood correctly you are expecting a write event which is not being sent? I agree with Runar and think you should check if you are actually sending the write and also if you are writing to the right characteristic.&lt;/p&gt;
&lt;p&gt;I am also not completely sure of what you are trying to implement. If you want to avoid service discovery, then the central (GATT client) needs to catch the peripheral&amp;#39;s gatt server attribute table, this means you should do service discovery one time (first time) and then store the peripheral&amp;#39;s gatt server attribute table (and handles) in you central. It does not make sense to me to hardcode the attribute handlers in the gatt server.... could you just explain a bit more about what you are trying to achieve and how?&lt;/p&gt;
&lt;p&gt;Did you read the user guide for the nRF sniffer? You need to install the nRF sniffer extension in Wireshark. &lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/200857?ContentTypeID=1</link><pubDate>Sun, 28 Jul 2019 13:52:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ac98278-ffd0-4b16-823d-745bea9a245d</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;I have installed the sniffer program on the PCA10040 board. LED is toggling. So it should be picking up BLE packets.&lt;/p&gt;
&lt;p&gt;But Wireshark is not showing nRF sniffer interface.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What could be wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/200856?ContentTypeID=1</link><pubDate>Sun, 28 Jul 2019 12:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:039d5e3b-84a0-4d17-83c8-d9b12813ba6f</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;&lt;span&gt;I am getting connect &amp;amp; disconnect events both in my custom service event handler and the main function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However in the main ble event handler and the custom service event handler I do NOT&amp;nbsp;get the write event! What could be the reason for not receiving any write events in the ble event handler?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I connect the ble event handler is called!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/197114?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 11:55:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ea2dcd4-daa4-4988-85e8-d2111b032541</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems you have been using the old sniffer, could you try and see if it works better for you with the nRFSniffer v2? User guide &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF_Sniffer_UG_v2.1.pdf?cp=6_4_0"&gt;here&lt;/a&gt; and download link &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer/Download#infotabs"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/195133?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 12:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cfff284-25dc-44b9-8ced-3d9025616213</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;handling of the MTU request does not have an effect. Still if I do service discovery, everything works fine. My custom central can control my custom peripheral.&lt;/p&gt;
&lt;p&gt;The sniffer is a bit cumbersome. I have used Wireshark, but I need to start a DOS prompt first and find the device and then hope for Wireshark to start up correctly - seldomly happens. Do you have another and better way of sniffing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/193338?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2019 08:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7297185-e73b-4a0f-965e-30eca9bb3909</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the late reply. Could you post the sniffer trace here?&lt;/p&gt;
&lt;p&gt;Also please check to make sure you are handling incomming ATT MTU requests, S130 will probably just reply with unknown procedure, but for S132 you will have to handle this in the application. &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___g_a_t_t_s___m_t_u___e_x_c_h_a_n_g_e.html"&gt;GATTS ATT_MTU Exchange&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/190474?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 10:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b78b3d15-dbb4-4078-8011-266aaab69c3c</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;I am&amp;nbsp;using SDK 15 - I am using S132. Chipset nRF52832. I am using Segger Studio.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Write is actually sent on air!&lt;/p&gt;
&lt;p&gt;I do service discovery in nRFConnect - all works fine!&lt;/p&gt;
&lt;p&gt;Still when I use my custom board - as central - without making service discovery, then it does not work! I am not getting any ble events - also no ble events in main.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/188874?ContentTypeID=1</link><pubDate>Thu, 23 May 2019 14:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3810c896-4294-4329-a241-e31627ca0c5f</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Unfortunately I am not familiar with that example, but seems like it is written for nRF5 SDK v15, while you are using sdk13? Would it be possible to use the latest Softdevice and SDK version?&lt;/p&gt;
&lt;p&gt;Anyway, Can you check with a sniffer that the write is actually sent on air?&lt;/p&gt;
&lt;p&gt;Did you do a service discovery in nRFConnect?&lt;/p&gt;
&lt;p&gt;Also, could you check in the main ble event handler if you get the write event there?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/188619?ContentTypeID=1</link><pubDate>Wed, 22 May 2019 14:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63eaac7c-f279-420b-bbc7-3a9a5dee2ac0</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;I am following the GitHub example (custom_ble_service - bjornspockle) line by line, but I do not get a on_write event when I send a byte from nRFConnect?!? I am using SEGGER Studio.&lt;/p&gt;
&lt;p&gt;What could be wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/188241?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 11:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79372ea3-d229-4b2e-8dd9-6e4a3aea2996</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;No, I do not think there is any particular difference in that sense. The only thing I can think about is there are some actions that happen based on the service discovery, Are you sure you enable the cccd&amp;#39;s etc? Have you tried to capture a sniffer trace to see what is happening?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/187866?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 10:52:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f5fe8d6-6a17-436f-bfbf-95e83b4cf036</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;I have tried on an older peripheral (nRF51 and S110) and that works without service discovery on my central. Any difference between S110 and S132? The code is almost identically.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/187839?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 09:19:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8c688cb-b649-469c-9b1e-218abf18f5b0</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;It works perfectly when I do service discovery on my central, but as soon as I switch of service discovery I can connect but I do not get on_write event even though the handles are hard coded.&lt;/p&gt;
&lt;p&gt;I am not new to service and char, but I read through the tutorials just to be sure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What could I do wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/187549?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 13:25:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:847b007c-d9b2-4d31-ae63-636dd315ea65</guid><dc:creator>Jenzo</dc:creator><description>&lt;p class="p1"&gt;On the GATT server I have hard coded the handles:&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;#define&lt;/span&gt; BLE_LOCK_STATUS_HANDLE&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;0x0014&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;#define&lt;/span&gt; BLE_LOCK_STATUS_CCCD_HANDLE&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;0x0015&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;#define&lt;/span&gt; BLE_LOCK_CMD_HANDLE&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;0x0017&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;#define&lt;/span&gt; BLE_LOCK_NAME_HANDLE&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;0x0019&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;#define&lt;/span&gt; BLE_LOCK_VERSION_HANDLE&lt;span class="Apple-tab-span"&gt; &lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;0x001B&lt;/p&gt;
&lt;p class="p1"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;Still does not work. What do I need to do on the client side to make it work?&lt;/p&gt;
&lt;p class="p1"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;span class="Apple-converted-space"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/187466?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 09:10:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c404ded-6130-49aa-8a43-f3d40b34a203</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;The gatt server on the peripheral does not do service discovery. You can connect to you peripheral using nRF connect to check what attribute handle your custom characteristic has, it is not 0x0001.&lt;/p&gt;
&lt;p&gt;If you need additional information on how to set up the service and characteristics I would recommend that you take a look at our tutorial section &lt;a href="https://devzone.nordicsemi.com/tutorials/b/bluetooth-low-energy"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/187406?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 06:39:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4da1c23-deb5-46f0-8f9c-0f3fefeaa0c6</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;sorry -&amp;nbsp;&lt;span class="s1"&gt;uint16_t. But is it correct to hard code it with the value 0x0001. I only have one custom service.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/187289?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 13:32:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:020ac5b1-f046-4083-a043-2aab1123a866</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;it is the gatt server on the peripheral!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How do you hard code the attribute handle on the gatt client? The handle is a unint8 - do I set it to 0x0001?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid service discovery</title><link>https://devzone.nordicsemi.com/thread/187271?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 12:42:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c106b716-d4fe-4967-945b-3834631d2c18</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am slightly confused, is the gatt server on the peripheral or on the central? Regardless you should probably disable the &lt;span&gt;&lt;a title="Database Discovery Module" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_ble_db_discovery.html?cp=5_1_3_2_3"&gt;Database Discovery Module&lt;/a&gt;&lt;/span&gt; if you do not want to do service discovery. But please note that you will have to hard code the attribute handles on the gatt client if you do not do service discovery.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>