<?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>Can a device choose center?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14350/can-a-device-choose-center</link><description>Hi,
I want to identify different kinds of center in a device product. So I have 2 questiones:
1) Can a center (running S120) set its own name?
2) Can a device (running S110) get the center&amp;#39;s name?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Jun 2016 06:25:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14350/can-a-device-choose-center" /><item><title>RE: Can a device choose center?</title><link>https://devzone.nordicsemi.com/thread/54801?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 06:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f571162-eed8-4143-a0b8-1ddbe3a1fd19</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I have updated my answer to answer your questions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can a device choose center?</title><link>https://devzone.nordicsemi.com/thread/54800?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2016 03:25:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:933fa3ce-e5ab-461d-b30d-6833958dc122</guid><dc:creator>mansfield</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;How can I get the central address in the  peripheral device (s110) then ?&lt;/p&gt;
&lt;p&gt;And can I change the address of the central device manually in s120 ? If so, how to  change then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can a device choose center?</title><link>https://devzone.nordicsemi.com/thread/54799?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 11:09:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c079e8-6cc8-4f7e-96f3-34dbcd4a0c04</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt; A device running as a central will not advertise, and it is therefore no need for it to have a name. A central device is identified by its address, or alternatively if it is using resolvable address* it has to be identified by its IRK.
A device using a resolvable address will change its address every given interval, for example every 15 min, and therefore, it cannot be identified by its address. By default, nRF51/2 chips are programmed with a random static address that never change.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt; Since a central doesn&amp;#39;t have a name, there is no  name to give to the peripheral device (s110), the central will instead be identified by its address.&lt;/p&gt;
&lt;p&gt;You  can get the address of the central device in the BLE_GAP_EVT_CONNECTED event (after being connected): p_ble_evt-&amp;gt;evt.gap_evt.connected.peer_address (SDK 11).&lt;/p&gt;
&lt;p&gt;If you want to reject devices before they connect, you will have to use a whitelist. Another option is to make the peripheral device disconnect immediately if a wrong device was connected (instead of using whitelist).&lt;/p&gt;
&lt;p&gt;The address of the central (and peripheral device) can be changed using &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s120.api.v2.1.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=3_6_1_0_0_2_1_4_1&amp;amp;anchor=gaaf0deb48ed35d1e6ede6222dd72fe12c"&gt;sd_ble_gap_address_set()&lt;/a&gt;. If you want to set your own addresses to your devices when in production, you can program them to UICR and then retrieve the address from UICR when setting the address.&lt;/p&gt;
&lt;p&gt;Note: if you are doing new development, I would recommend you to use the latest version the  S130 softdevice instead, because it is the latest softdevice for the nRF51. It supports both central and peripheral role (but you don&amp;#39;t have to use both) and it is supported by the latest version of the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>