<?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>NRF52 - Extract correctly IRK from connected_evt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22489/nrf52---extract-correctly-irk-from-connected_evt</link><description>Hello, 
 I&amp;#39;m working with SDK 11 on nRF52832. 
 I want to get the IRK from a connection event. I need to identify the connected device. 
 My following code : 
 static void on_ble_evt(ble_evt_t * p_ble_evt)
{
 uint32_t err_code;

 switch (p_ble_evt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Jun 2017 11:44:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22489/nrf52---extract-correctly-irk-from-connected_evt" /><item><title>RE: NRF52 - Extract correctly IRK from connected_evt</title><link>https://devzone.nordicsemi.com/thread/88487?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 11:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb79e26e-0e09-4d06-89e4-d39941fdb820</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;&amp;amp;compared_data.p_bonding_data-&amp;gt;peer_id.id_info doesn&amp;#39;t make any sense to me.&lt;/p&gt;
&lt;p&gt;Have you tried pm_peer_data_bonding_load()? It should return the LTK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 - Extract correctly IRK from connected_evt</title><link>https://devzone.nordicsemi.com/thread/88486?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 10:24:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f3ea286-a0a4-46b9-a546-3a7452a0853b</guid><dc:creator>Nabil</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;After bonding where can i read that IRK ? With the same way ?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;amp;compared_data.p_bonding_data-&amp;gt;peer_id.id_info ?
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 - Extract correctly IRK from connected_evt</title><link>https://devzone.nordicsemi.com/thread/88485?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 10:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0397beb-b3fd-44a8-94fe-d9ebe1e3870f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;No IRK comes with the connection event.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see that you are setting the IRK anywhere, you are just declaring a pm_peer_data_flash_t struct. The IRK in there is probably just random.&lt;/p&gt;
&lt;p&gt;If you want to resolve an address with an IRK you first need an IRK. The only way to get the IRK is to bond.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>