<?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>[nRF Connect SDK] Connect to iOS with mac address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101247/nrf-connect-sdk-connect-to-ios-with-mac-address</link><description>Target nRF52832(nrf52dk_nrf52832) SDK NCS v2.0.0 Hello. Recently I know that iOS cannot get BLE mac address by scan, but my project requires connection based on BLE mac. I add bt mac adversting data using BT_DATA_LE_BT_DEVICE_ADDRESS but it failed. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Jun 2023 09:00:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101247/nrf-connect-sdk-connect-to-ios-with-mac-address" /><item><title>RE: [nRF Connect SDK] Connect to iOS with mac address</title><link>https://devzone.nordicsemi.com/thread/433626?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 09:00:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f05af48-ca4f-4965-9342-e0c880f2e653</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Noted! That explains the use for public mac. Thank you for elaborating.&lt;/p&gt;
&lt;p&gt;Then I would suggest adding the MAC into the adv data as you mention and let the central decide if they should connect to that based on the identity created from the mac address or from the address advertised&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Connect to iOS with mac address</title><link>https://devzone.nordicsemi.com/thread/433620?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 08:18:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d90c9573-e0b9-404f-98b6-a4665427c3b6</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Thanks for updating.&lt;br /&gt;&lt;br /&gt;First of all, I have to use public mac because mac is printed the cover of product. Customer should use it.&lt;br /&gt;&lt;br /&gt;And I could manage to insert ble mac into adv data.&lt;br /&gt;I&amp;#39;m waiting for my customer&amp;#39;s reply.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll ask more request then. Thanks anyway!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Connect to iOS with mac address</title><link>https://devzone.nordicsemi.com/thread/433455?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 12:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7670f4a3-baf0-426f-baa0-e2a23f8e4db7</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should be possible to use DEVICEADDR (i.e MAC address) to identify the device as well as IRK and RPA&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/gap.html#c.bt_id_create"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/gap.html#c.bt_id_create&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can have a look at this relevant sample:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/bluetooth-dev.html#bluetooth-application-example"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/bluetooth-dev.html#bluetooth-application-example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is a colleagues comment on public address vs.&amp;nbsp;random static address that you may find useful:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&amp;quot;There is no need to use public address type anywhere no,&amp;nbsp;the&amp;nbsp;random static address type is by far the most used (I don&amp;#39;t think this address type was available in BT classic). We have seen very few questions on using public address type (only some companies use them for historic reasons coming from BT classic products, and likely have already purchased/registered public address types that can be used).&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;So I suggest to stay with random static address type, simply avoid the &amp;quot;hazzle&amp;quot; of registering with IEEE and also the logistic problem of assigning them to products in production.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;All nRF devices come with a random static address generated during Nordic production test and programmed to FICR.&amp;quot;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] Connect to iOS with mac address</title><link>https://devzone.nordicsemi.com/thread/433100?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2023 07:12:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c823a7bb-3f05-4ab7-91e0-12597bd7fe75</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;+addition&lt;br /&gt;&lt;br /&gt;static const struct bt_data ad[] = {&lt;br /&gt; BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),&lt;br /&gt; BT_DATA(BT_DATA_LE_BT_DEVICE_ADDRESS, local_bda, 6),&lt;br /&gt; BT_DATA_BYTES(BT_DATA_UUID128_ALL, BT_UUID_BUS_VAL),&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;I could add ble mac at adv data, but it seems iOS does not show those information except for service UUID.&lt;br /&gt;Can you give me any guide?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>