<?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>PINCODE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/382/pincode</link><description>Hi everyone, 
 Somebody knows if its possible and how to configure a Pin code to establish the connection between the nRF51 peripheral and a phone as a central?
Something like 4 or 5 digit pass code. 
 Thanks!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Sep 2016 07:00:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/382/pincode" /><item><title>RE: PINCODE</title><link>https://devzone.nordicsemi.com/thread/2002?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2016 07:00:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c31b3ecc-cabb-4be1-94df-d3398456b868</guid><dc:creator>duckduck</dc:creator><description>&lt;p&gt;Hi Pål Håland&lt;/p&gt;
&lt;p&gt;For BLE, i know that it is possible to generate the passeky from the S130, but why can&amp;#39;t i chose to be static if my device does not have any display or keypad. I did saw some  example on the UART static passkey example before. Hope you can clarify this point. Thanks...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PINCODE</title><link>https://devzone.nordicsemi.com/thread/2001?ContentTypeID=1</link><pubDate>Wed, 02 Jul 2014 17:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d37889ee-be71-4cb0-8184-78af3d3a268b</guid><dc:creator>Gabriel</dc:creator><description>&lt;p&gt;Thats awesome! Thank you for the update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PINCODE</title><link>https://devzone.nordicsemi.com/thread/2000?ContentTypeID=1</link><pubDate>Wed, 02 Jul 2014 08:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a6af568-c756-4bc8-b2d6-6ffaa0036867</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;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><item><title>RE: PINCODE</title><link>https://devzone.nordicsemi.com/thread/1998?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2013 07:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4e0db5f-5080-43f5-93c7-62cf6d8580d9</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;If you can live with not using a passkey, and have a button or similar as input, I suggest that you go to bonding mode only when you press the button, and at all other times use advertising with whitelisting (or don&amp;#39;t advertise at all, if you have no bonding information). This will ensure&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;that you can only connect to a new device after having pressed the button (possibly for a certain length or pattern), and&lt;/li&gt;
&lt;li&gt;that no other device can connect to it, once it has been bonded with one Central.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The usage of whitelisting and bonding, through the SDK&amp;#39;s bond manager is shown for example in the ble_app_proximity for nrf6310.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PINCODE</title><link>https://devzone.nordicsemi.com/thread/1997?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2013 05:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32c7a51f-661a-4134-9bfc-ecac7bfde6a9</guid><dc:creator>Gabriel</dc:creator><description>&lt;p&gt;Hi again , trying to summarize,&lt;/p&gt;
&lt;p&gt;I need some way to authorize the pairing from the peripheral side.
Imagine that you have a device and only want a specific smartphone to connect to it, this is my case. So if it is not possible to do it with a passkey because the device dont have a keyboard, it could be possible by holding a button or something similar?&lt;/p&gt;
&lt;p&gt;My device has to buttons which could be use for pairing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PINCODE</title><link>https://devzone.nordicsemi.com/thread/1996?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2013 09:21:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c492d1d8-a4f0-44cd-8850-21711ed69b83</guid><dc:creator>Gabriel</dc:creator><description>&lt;p&gt;Thank you very much for the answer.&lt;/p&gt;
&lt;p&gt;I see that is much more complicated than I was thinking. Could you recommend me another way to do something similar? The peripheral to &amp;quot;authorize&amp;quot; the central on the first connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PINCODE</title><link>https://devzone.nordicsemi.com/thread/1995?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2013 07:43:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00c87807-1709-4972-a391-d73d60797756</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;With BLE, it isn&amp;#39;t really possible to use a passkey for bonding as long as one of the devices doesn&amp;#39;t have a keyboard or display. Table 2.4 in the Bluetooth Core Specification, Volume 3, Part H, section 2.3.5.1 shows which bonding methods are doable depending on the I/O capabilities of the devices in question.&lt;/p&gt;
&lt;p&gt;It could in principle be possible to implement something similar to a passkey in the application, but this could easily become quite complicated, and isn&amp;#39;t something I&amp;#39;d normally recommend.&lt;/p&gt;
&lt;p&gt;(Just for completeness: If you have complete control over both ends, you could in principle set both devices to be KeyboardOnly, in which case the table would give Numeric comparison as the method. This means that the user is supposed to enter the same passkey on both devices, and this could in principle then be done by having a static passkey label on one of them and asking the user to enter this on the other device. However, most Central devices (smartphones, tablets, PCs) don&amp;#39;t give you such control over the I/O capabilities, making this impossible for most practical use cases.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PINCODE</title><link>https://devzone.nordicsemi.com/thread/1994?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2013 06:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf538bb2-f2d9-4b6f-a97a-24587b039998</guid><dc:creator>Gabriel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a nRF51 peripheral with no Display nor keyboard and a mobile phone. I want when the mobile try to connect to the nRF this one ask to the phone for a pincode for bonding.
Then if the phone is bonded and try to connect, will not be ask for the pincode.&lt;/p&gt;
&lt;p&gt;I think that this is a common feature in Bluetooth connections, I could be wrong...&lt;/p&gt;
&lt;p&gt;Thanks!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PINCODE</title><link>https://devzone.nordicsemi.com/thread/1999?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2013 05:26:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deef9209-6115-475c-bea3-79b88089253a</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;Hi, can you elaborate what you are trying to achieve?&lt;/p&gt;
&lt;p&gt;Is it to pair the phone with the peripheral? Does the peripheral have a display or keyboard?  In Bluetooth low energy the pairing pin will be a 6 digit key. It will be generated by the device that have the display, and can not be fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>