<?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 integrate bonding into UART Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56845/how-to-integrate-bonding-into-uart-example</link><description>Hello, I have a working application that transmits data to a smartphone using NUS, based off of the uart example. I would now like to integrate bonding into my application. I am developing on the nRF52 DK using Segger Embedded Studios, with SDK version</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jan 2020 07:50:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56845/how-to-integrate-bonding-into-uart-example" /><item><title>RE: How to integrate bonding into UART Example</title><link>https://devzone.nordicsemi.com/thread/230234?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 07:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5605edd-017a-4c03-bcac-3064aa7efaca</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You will need to add the&amp;nbsp;&lt;a title="Software Development Kit" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/lib_peer_manager.html?resultof=%22%70%65%65%72%22%20%22%6d%61%6e%61%67%65%72%22%20%22%6d%61%6e%61%67%22%20"&gt;Peer Manager&lt;/a&gt;&amp;nbsp;to the NUS examples in order to support pairing/bonding.&amp;nbsp;&lt;/span&gt;&lt;span&gt;You&amp;nbsp;should&amp;nbsp;take&amp;nbsp;a look at another example on how it is done, for example, ble_app_hrs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to integrate bonding into UART Example</title><link>https://devzone.nordicsemi.com/thread/230233?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 07:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a256b4e6-820d-4564-88e3-cd27d43d73e1</guid><dc:creator>Noah</dc:creator><description>&lt;p&gt;Update: when integrating these functions into my application, my device just connects and disconnects over and over again. The nF52 application enters the &amp;quot;BLE_GAP_EVT_CONNECTED&amp;quot; case of function &amp;quot;ble_evt_handler()&amp;quot;, but then disconnects itself and enters the &amp;quot;BLE_GAP_EVT_DISCONNECTED&amp;quot; case of the function &amp;quot;ble_evt_handler()&amp;quot;. No error is thrown, it just repeatedly connects, disconnects, connects, disconnects, repeatedly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to integrate bonding into UART Example</title><link>https://devzone.nordicsemi.com/thread/230225?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 07:36:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d63e1eb-978c-46a0-9e5b-6322924319bf</guid><dc:creator>Noah</dc:creator><description>&lt;p&gt;Update: I have tried incorporating all peer manager functions from the ble_app_uart example, but now my application hangs and just says &amp;quot;connecting&amp;quot;. Specifically I have incorporated pm_evt_handler(), peer_manager_init(), delete_bonds().&lt;/p&gt;
&lt;p&gt;Perhaps I am confused, but I don&amp;#39;t see how bonding actually is performed in the ble_app_template example. The peer manager is initialized, but I do not see any function call that &amp;quot;creates the bond&amp;quot;. There must be something I am missing here.&lt;/p&gt;
&lt;p&gt;Also, how can I check if a device is bonded or not? I have the nRF Connect mobile application, the most recent version, and there does not seem to be any indication anywhere of whether my device is bonded or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>