<?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>How to do the services discovery with a bonded device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73282/how-to-do-the-services-discovery-with-a-bonded-device</link><description>Hi , 
 
 I have a project there wtih 2 devices , which is 1 slave and 1 master for Immediate alert service. the master will scan the slave for connection , but I don&amp;#39;t know when to call the service discovery. once I try to call the discovery function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Apr 2021 01:36:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73282/how-to-do-the-services-discovery-with-a-bonded-device" /><item><title>RE: How to do the services discovery with a bonded device</title><link>https://devzone.nordicsemi.com/thread/303320?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2021 01:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67d86796-aa64-43d3-a47a-2018b2cfa16f</guid><dc:creator>Kawing</dc:creator><description>&lt;p&gt;Thanks for reply. everything work now. my problem is forget&amp;nbsp;adding the handler for the secure connection &lt;span&gt;pm_handler_secure_on_connection().&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do the services discovery with a bonded device</title><link>https://devzone.nordicsemi.com/thread/303077?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 09:59:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bc74b80-5cd1-42f4-8744-6ed79226e6e7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kawing,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Could you explain what exactly the application you are building ?&amp;nbsp;&lt;br /&gt;Would it connect to any phone ?&amp;nbsp;&lt;br /&gt;If not, I would suggest to test with the ble_app_uart and ble_app_uart_c example. It&amp;#39;s the better example if you want to do proprietary protocol.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you need to stick to the IAS profile. I assume now you have the IAS server on the peripheral and the IAS client on the central?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please check if the handle you are writing to is correct. You can verify the behavior with a&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE"&gt; sniffer trace&lt;/a&gt;. With the sniffer you can check if the central actually send any write command. So we know if the issue is only the central or on the peripheral.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do the services discovery with a bonded device</title><link>https://devzone.nordicsemi.com/thread/302474?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 23:46:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0616486-86c0-4909-a317-910389f68f58</guid><dc:creator>Kawing</dc:creator><description>&lt;p&gt;Thank for reply. I used other example to develop the central device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now, I can scan and connect the peripherial with bonding ,and then start to do discovery the services uuid&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but I had a issue now. I added the IAS client module in code. it can do the discovery. but not work for write the alert level to peripherial. it cannot received the write action. Do you have any idea on it ? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do the services discovery with a bonded device</title><link>https://devzone.nordicsemi.com/thread/302127?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 12:18:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4262cd0f-f01b-4b7e-91a7-21666b9a8e05</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kawing,&lt;/p&gt;
&lt;p&gt;Please be aware that on the ias profile the client is located on the peripheral and the server is located on the central.&amp;nbsp;&lt;br /&gt;So usually you would do service discovery on the peripheral. That&amp;#39;s what&amp;nbsp;you can find in the ble_app_ias_c example. Inside ble_evt_handler() in main.c you can find&amp;nbsp;ble_db_discovery_start() is called after the device is connected (BLE_GAP_EVT_CONNECTED event).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want you can do service discovery from the central side, but only if you need to do so. You can refer to either the ble_app_ias_c example or other central example, for example ble_app_uart_c.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>