<?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>Passkey Generation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2765/passkey-generation</link><description>Hello Gentlemen, 
 Is it possible to know the passkey before the BLE_GAP_EVT_PASSKEY_DISPLAY event? 
 my nRF sensor is set as a display only and my central is an Android device. 
 Thanks,
Gil</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Jun 2014 13:56:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2765/passkey-generation" /><item><title>RE: Passkey Generation</title><link>https://devzone.nordicsemi.com/thread/10689?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2014 13:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93a89286-7eb8-4e85-9249-ffe24c6021d8</guid><dc:creator>Gilson</dc:creator><description>&lt;p&gt;Thanks much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passkey Generation</title><link>https://devzone.nordicsemi.com/thread/10688?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2014 13:02:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5d281d7-daf8-4e3e-863e-ea71fd4791c2</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;Hi Gilson,&lt;/p&gt;
&lt;p&gt;Unfortunately the passkey is randomly generated right before you receive the BLE_GAP_EVT_PASSKEY_DISPLAY event, and you can therefore not know it before you receive it.&lt;/p&gt;
&lt;p&gt;BR Pål&lt;/p&gt;
&lt;p&gt;[update 2014-07-02]
With the latest softdevice &lt;a href="http://www.nordicsemi.com/eng/Products/S110-SoftDevice-v7.0"&gt;www.nordicsemi.com/.../S110-SoftDevice-v7.0&lt;/a&gt; you will be able to set a static passkey.&lt;/p&gt;
&lt;p&gt;By using the API call sd_ble_opt_set() with the structure ble_gap_opt_passkey_t, then the passkey display event will come with the passkey you set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>