<?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 at central NR52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39776/service-discovery-at-central-nr52840</link><description>Hi, 
 
 I am scanning for particular device name, and able to connect.I am using ble_app_gatt example. 
 Now i want to discover services of that connected device and print all this services and characterisitics. 
 I saw ble_app_uart example consist this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Oct 2018 13:22:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39776/service-discovery-at-central-nr52840" /><item><title>RE: Service discovery at central NR52840</title><link>https://devzone.nordicsemi.com/thread/155138?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 13:22:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c4fadc3-87d8-4502-a2c8-59e6c52e1587</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;As I said, the discovery module should not be initialized, so dont do that if you do that in the main-loop (that means dont call &lt;strong&gt;db_discovery_init();&lt;/strong&gt;).&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery at central NR52840</title><link>https://devzone.nordicsemi.com/thread/155092?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 12:03:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d98b107b-b01b-446f-a9f6-e2ad9eff2ddd</guid><dc:creator>Prajakta</dc:creator><description>&lt;p&gt;Is any initialization or declaration need to do in code. as I am using ble_app_gatts central example code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery at central NR52840</title><link>https://devzone.nordicsemi.com/thread/155028?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 08:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ec05c0a-440b-47ca-8cef-774863a54d6b</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;If you look at the message sequence chart in the infocenter for &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v6.1.0%2Fgroup___b_l_e___g_a_t_t_c___p_r_i_m___s_r_v_c___d_i_s_c___m_s_c.html"&gt;primary service discovery&lt;/a&gt;, you can see that discovery is done by using the SoftDevice API &lt;strong&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v6.1.0%2Fgroup___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=gaa778ccc1990e05fffa4aaf304c95e614"&gt;sd_ble_gattc_primary_services_discover&lt;/a&gt;().&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You have to iterate through the discovery like the message sequence chart by using &lt;strong&gt;sd_ble_gattc_primary_services_discover()&lt;/strong&gt;, and you do this by increasing the start_handle giving p_srvc_uuid the vaule NULL.&lt;/p&gt;
&lt;p&gt;The discovery module should also not be initialized in order for this to work. You have to do a manual discovery.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery at central NR52840</title><link>https://devzone.nordicsemi.com/thread/154600?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 05:25:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7813aede-2b10-48a5-aa9c-85cd2ecfef64</guid><dc:creator>Prajakta</dc:creator><description>&lt;p&gt;1. Which API needs to be used to collect services.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service discovery at central NR52840</title><link>https://devzone.nordicsemi.com/thread/154282?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 12:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ec91f02-10c4-4237-be79-3e7b79018215</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;1. If you want to print print services you have to collect the services, place them in a buffer, and use for example UART to print them.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. You can read on our infocenter how you can run the UART examples, and more information on how the code works.&lt;/p&gt;
&lt;p&gt;For SDK 15.2, you can read:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fble_sdk_app_nus_c.html"&gt;&amp;nbsp;Nordic UART Service Client (&lt;code&gt;\examples\ble_central\ble_app_uart_c&lt;/code&gt;)&lt;/a&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fble_sdk_app_nus_eval.html"&gt;UART/Serial Port Emulation over BLE (&lt;code&gt;\examples\ble_peripheral\ble_app_uart&lt;/code&gt;)&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;- Andreas&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>