<?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  I can get phone name or address on S110 based proximity device ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16041/how-i-can-get-phone-name-or-address-on-s110-based-proximity-device</link><description>Hi 
 I am working on customization of proximity device with nrf51822 and I need to lock it to first connected device (so after first pairing I have to make blocking connections from another devices).
But I can&amp;#39;t find how I can get incoming connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 28 Aug 2016 23:54:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16041/how-i-can-get-phone-name-or-address-on-s110-based-proximity-device" /><item><title>RE: How  I can get phone name or address on S110 based proximity device ?</title><link>https://devzone.nordicsemi.com/thread/61172?ContentTypeID=1</link><pubDate>Sun, 28 Aug 2016 23:54:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1af25942-2264-4c3c-be84-ec41a8918408</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;No the peer name is not in there, that requires reading a characteristic on the other device. It&amp;#39;s the peer address you need to recognise the peer anyway, the name is totally irrelevant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  I can get phone name or address on S110 based proximity device ?</title><link>https://devzone.nordicsemi.com/thread/61171?ContentTypeID=1</link><pubDate>Sun, 28 Aug 2016 21:46:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9f0cd3d-b151-4907-bfea-083d0d2a4aa7</guid><dc:creator>FlashBack</dc:creator><description>&lt;p&gt;But if peer name is also available there ? As in that structure I can get address only of peer. Or name is not translated to device ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  I can get phone name or address on S110 based proximity device ?</title><link>https://devzone.nordicsemi.com/thread/61170?ContentTypeID=1</link><pubDate>Sun, 28 Aug 2016 21:28:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0bf4090-444e-4d29-80d1-1995bb8cc17a</guid><dc:creator>FlashBack</dc:creator><description>&lt;p&gt;Oh, right. That was very close, found in p_ble_evt-&amp;gt;evt.gap_evt.params.connected.peer_addr
Thanks a lot!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  I can get phone name or address on S110 based proximity device ?</title><link>https://devzone.nordicsemi.com/thread/61169?ContentTypeID=1</link><pubDate>Sun, 28 Aug 2016 21:26:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e81f07ac-eea2-4613-8d14-24aad389d14c</guid><dc:creator>FlashBack</dc:creator><description>&lt;p&gt;Yes, but in BLE_GAP_EVT_CONNECTED event I am getting 2 sources of information : ble_evt_t * p_ble_evt and m_conn_handle      = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle, which is part of p_ble_evt.
So, they allow me to get local address, local name and I can perform some operations like disconnection, getting rssi info and other around connection. But how I can get peer information there ? Looks I am missing something :(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  I can get phone name or address on S110 based proximity device ?</title><link>https://devzone.nordicsemi.com/thread/61168?ContentTypeID=1</link><pubDate>Sun, 28 Aug 2016 01:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30e1531d-253a-4cf4-9f16-ba5aeec12fdb</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;The address of the central is in the data which comes with the connection event, &lt;code&gt;BLE_GAP_EVT_CONNECTED&lt;/code&gt;. That gives you your address and the peer address and a whole load of other information too.&lt;/p&gt;
&lt;p&gt;No there is no other mechanism besides whitelisting to block incoming connections. If you advertise connectably without a whitelist anything can connect to you, read the GATT table and attempt to read and write characteristics. Depending on the permissions you set up for the services it may not be able to read or write anything and after it&amp;#39;s connected you will get an event and can disconnect it again forcibly, but absent a whitelist, anything can get as far as being connected to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>