<?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>Retrieve Access Address from the SoftDevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30388/retrieve-access-address-from-the-softdevice</link><description>Is there any way to get the currently used access address from the softdevice? I have an application that needs to know what access address is being used. I can sort of get it every once in a while by retrieving the NRF_RADIO-&amp;gt;BASE0 and prefix registers</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Feb 2018 13:15:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30388/retrieve-access-address-from-the-softdevice" /><item><title>RE: Retrieve Access Address from the SoftDevice</title><link>https://devzone.nordicsemi.com/thread/121668?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 13:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a430b53-8667-48a4-80c4-5e6f3b714266</guid><dc:creator>daniel_hill</dc:creator><description>&lt;p&gt;Ok. Just for future use if someone must do what I am working on, it is possible to search the sd ram using gdb and locate the memory addresses. Then create pointers to read the data out for use in the app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve Access Address from the SoftDevice</title><link>https://devzone.nordicsemi.com/thread/121618?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 08:29:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0706b28b-4b58-4369-8559-c014e94f69e9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I am sorry, there is no APIs for accessing the data you&amp;#39;re asking for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve Access Address from the SoftDevice</title><link>https://devzone.nordicsemi.com/thread/121570?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 17:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d59075f-e46c-40d2-90cd-4e5d7139eb77</guid><dc:creator>daniel_hill</dc:creator><description>&lt;p&gt;Is there any specific time that I can read it out? Using radio notifications or something? Is there no API to access the stored connection parameters (hop rate, access address, and crc_init) for each connection that the SD is maintaining?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve Access Address from the SoftDevice</title><link>https://devzone.nordicsemi.com/thread/120792?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 10:01:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbfac1c3-fc32-4733-a269-e124a996670e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The Softdevice will&amp;nbsp;reset the radio peripheral for each connection event, to ensure that it starts from a known state, so you will not be able to read out the radio content at all times.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve Access Address from the SoftDevice</title><link>https://devzone.nordicsemi.com/thread/120577?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 14:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:423c5740-d357-4c92-97b3-b025441cb341</guid><dc:creator>daniel_hill</dc:creator><description>&lt;p&gt;Yes, I know what it is and how it&amp;#39;s used. I want to retrieve it on the master side (nrf52 dk running as a central on S132). The registers for BAS0 and PREFIX0 that I am reading are unfortunately zeroed by the SD after each RX or TX. I was hoping there was some api to get the address being utilized for the current connection set. As I said, I can get it once during the first rssi update from the BASE0 and PREFIX0 registers, but all subsequent reads in following rssi updates or other events give values of 0x00 for both registers.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve Access Address from the SoftDevice</title><link>https://devzone.nordicsemi.com/thread/120575?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 13:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:589842b5-3f09-4c6d-a19d-17b3701d1f05</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Sorry for misunderstanding. The access address is sent in the CONNECT_REQ packet from the master to the slave (ie: unique for each connection),&amp;nbsp;and there is no API to fetch this address on the slave side. Why do you need the access address?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve Access Address from the SoftDevice</title><link>https://devzone.nordicsemi.com/thread/120573?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 13:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99ea0b84-8ba8-4cca-8aa0-2616cc0ff5fb</guid><dc:creator>daniel_hill</dc:creator><description>&lt;p&gt;The address I am trying to get is not the mac address. It is the on-air access address (part of the ble preamble). To set it in raw radio mode, I use the NRF_RADIO-&amp;gt;BASE0 and PREFIX0 registers. I can retrieve it exactly once during the first RSSI update after a new connection starts, but never after that point (they read 0x00).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve Access Address from the SoftDevice</title><link>https://devzone.nordicsemi.com/thread/120564?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 12:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1be65577-8353-400c-9447-5a357c9430df</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can get the peer address in the BLE_GAP_EVT_CONNECTED, by reading the type &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/structble__gap__evt__connected__t.html?cp=2_3_1_1_1_2_1_4_17"&gt;ble_gap_evt_connected_t&lt;/a&gt;&amp;nbsp;for either your own addr or the peer addr:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;case BLE_GAP_EVT_CONNECTED:
    {
        ble_gap_addr_t peer_addr = p_ble_evt-&amp;gt;evt.gap_evt.params.connected.peer_addr;
        ble_gap_addr_t own_addr  = p_ble_evt-&amp;gt;evt.gap_evt.params.connected.own_addr;
    }
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you&amp;nbsp;want to know the default address of your device, you can derive this from the NRF_FICR structure, as explained in this thread:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/2112/how-to-get-6-byte-mac-address-at-nrf51822"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/2112/how-to-get-6-byte-mac-address-at-nrf51822&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>