<?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 data be sent to a BLE GAP Peripheral at the time when a BLE GAP Central establish a connection to it?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11243/can-data-be-sent-to-a-ble-gap-peripheral-at-the-time-when-a-ble-gap-central-establish-a-connection-to-it</link><description>Say, for example, I have a BLE peripheral programmed with S110 on nRF51822. When an Android app connects to it as a BLE GAP central(and becomes GATT client), can any data be sent with the connection packet so that I can perform an authentication?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Jan 2016 10:09:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11243/can-data-be-sent-to-a-ble-gap-peripheral-at-the-time-when-a-ble-gap-central-establish-a-connection-to-it" /><item><title>RE: Can data be sent to a BLE GAP Peripheral at the time when a BLE GAP Central establish a connection to it?</title><link>https://devzone.nordicsemi.com/thread/42212?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2016 10:09:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32d47c39-31b9-453d-af3b-9255439a980b</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;@Rifat I do not mean app, I mean device, i.e. the Android device, since the Android device and its BTLE Stack is what controls the peer address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can data be sent to a BLE GAP Peripheral at the time when a BLE GAP Central establish a connection to it?</title><link>https://devzone.nordicsemi.com/thread/42211?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2016 10:06:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8611c10f-501b-458e-a619-931c094cbd43</guid><dc:creator>Rifat Mahmud</dc:creator><description>&lt;p&gt;@David Edwin. &amp;quot;If you can control the address that is used by your peer device to establish the connection, then you can have more control of the situation.&amp;quot;
By peer device, you mean the mobile app that&amp;#39;ll connect to the end device as a GATT client, right? So, if I can control it, I can use it to authenticate, even during first connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can data be sent to a BLE GAP Peripheral at the time when a BLE GAP Central establish a connection to it?</title><link>https://devzone.nordicsemi.com/thread/42213?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2016 09:40:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa1bc234-6d8b-4709-a1e9-d315054cca00</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Echoing and adding a bit more to RK and endnode:
The peer address is the best way to do the authentication, however this does depend on the address type used by the Android device i.e. public/random static/private resolvable. However only the private resolvable addresses can support some level authentication. This however implies that the devices have been bonded earlier to support this and additionally this authentication cannot be done on the first time connection.&lt;/p&gt;
&lt;p&gt;If you can control the address that is used by your peer device to establish the connection, then you can have more control of the situation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can data be sent to a BLE GAP Peripheral at the time when a BLE GAP Central establish a connection to it?</title><link>https://devzone.nordicsemi.com/thread/42214?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2016 08:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:722152ed-1bf5-47ea-a75e-2ac50e413f9d</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;All what RK said + you could use &amp;quot;resolvable private&amp;quot; Address feature which provides some sort of pre-authentication, although requires some effort and assumptions to implement it (see more details &lt;a href="https://devzone.nordicsemi.com/question/43670/how-to-distinguish-between-random-and-public-gap-addresses/"&gt;here&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can data be sent to a BLE GAP Peripheral at the time when a BLE GAP Central establish a connection to it?</title><link>https://devzone.nordicsemi.com/thread/42210?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2016 04:25:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7df66ad7-b2fc-489c-af5f-094da0b6016c</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;No. The BLE connect process doesn&amp;#39;t have any extra data with it, it&amp;#39;s just a connect. You can whitelist addresses so that only certain centrals can connect, you can require authentication for the characteristics so that after connection you nee to authenticate to do anything. When you get the connect message there&amp;#39;s a little information about peer addresses you can use but nothing else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>