<?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 get MAC address of mobile which trying to connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113776/how-to-get-mac-address-of-mobile-which-trying-to-connect</link><description>I am using nrf52840 dev kit to connect to nrf connect app on my android phone. I using ble_app_uart example to fetch Mobile mac ID when event BLE_GAP_EVT_CONNECTED is triggered. 
 But log prints &amp;quot;addr of app 0xB4 0x5B 0x29 0x70 0x1 0x18&amp;quot; which isn&amp;#39;t matching</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 15 Sep 2024 03:35:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113776/how-to-get-mac-address-of-mobile-which-trying-to-connect" /><item><title>RE: How to get MAC address of mobile which trying to connect</title><link>https://devzone.nordicsemi.com/thread/502538?ContentTypeID=1</link><pubDate>Sun, 15 Sep 2024 03:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:428f67a8-5ab5-4b93-8d59-8033597cd19e</guid><dc:creator>tamojit</dc:creator><description>[quote userid="18935" url="~/f/nordic-q-a/113776/how-to-get-mac-address-of-mobile-which-trying-to-connect/497562"]Modern phones use this for privacy reasons. The actual address is exchanged during the pairing/bonding procedure.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/turboj"&gt;Turbo J&lt;/a&gt; Can you please guide me how to get this &amp;quot;actual address&amp;quot; programatically?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get MAC address of mobile which trying to connect</title><link>https://devzone.nordicsemi.com/thread/497562?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 07:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebd38dae-5a1c-41b5-a8cd-2e231caa63cc</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Is that a modern-ish phone?&lt;/p&gt;
&lt;p&gt;Because an MSB of 0x44 looks a lot like a private resolvable address, and these randomize (IMHO every 15 minutes at least).&lt;/p&gt;
&lt;p&gt;Modern phones use this for privacy reasons. The actual address is exchanged during the pairing/bonding procedure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get MAC address of mobile which trying to connect</title><link>https://devzone.nordicsemi.com/thread/497560?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 07:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b92581b6-c39b-4a28-9286-c32754b278a5</guid><dc:creator>shafi</dc:creator><description>&lt;p&gt;Hi Turbo,&lt;/p&gt;
&lt;p&gt;Thank you for your quick response.&lt;/p&gt;
&lt;p&gt;Tried using peer addr in connected part but the output still doesn&amp;#39;t match.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1723184921791v1.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1723186658282v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It prints&amp;nbsp;&lt;span&gt;&amp;quot;addr of app &amp;nbsp;0x84 0x39 0x87 0x46 0x89 0x44&amp;quot; and&amp;nbsp; the prints aren&amp;#39;t same whenever the nrf dev kit is power cycled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Shafi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get MAC address of mobile which trying to connect</title><link>https://devzone.nordicsemi.com/thread/497496?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 13:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a8c1848-6ac4-47f7-af95-72cb287a7ab1</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Your are using the wrong field from the uinion. Use the fields in the &amp;quot;connected&amp;quot; part.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>