<?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>static passkey s132</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20711/static-passkey-s132</link><description>Hi, 
 I&amp;#39;ve allready read a lot about using a static passkey on the DevZone and I have tried tons of things, but I just can&amp;#39;t get it to work. 
 What I want is to connect to my BLE peripheral, a NRF52832 with the S132 softdefice from an Android phone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 May 2017 12:18:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20711/static-passkey-s132" /><item><title>RE: static passkey s132</title><link>https://devzone.nordicsemi.com/thread/80823?ContentTypeID=1</link><pubDate>Mon, 01 May 2017 12:18:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fc533a3-94cb-4a9d-a157-bcd9464e8e76</guid><dc:creator>michaeld</dc:creator><description>&lt;p&gt;Great post!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static passkey s132</title><link>https://devzone.nordicsemi.com/thread/80822?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 14:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a3a8284-f326-44b8-973f-66a158fe2912</guid><dc:creator>jroorda</dc:creator><description>&lt;p&gt;Yes, it is!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static passkey s132</title><link>https://devzone.nordicsemi.com/thread/80821?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 14:49:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3388d524-302c-42d3-9af5-4d7df3862358</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Thanks for the update. So this is resolved?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static passkey s132</title><link>https://devzone.nordicsemi.com/thread/80820?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 13:50:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a265c6d3-df64-436e-b378-7e8c91c7689c</guid><dc:creator>jroorda</dc:creator><description>&lt;p&gt;Thanks for the replies! Peter, I have set those parameters. Today I found out that the problem lies in my Android phone and not in my software. My Phone, a HTC One, does not handle the bonding correct. Upon bonding the OS does not generate a popup to fill in the passkey. Instead it indicates that the devices are bonded, but in reality they are not. Because when the Phone says bonded and I try to read a passkey protected characteristic it takes a long time and after a while disconnects from the device. When another phone is used, in this case a LG Nexus 5 it works as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static passkey s132</title><link>https://devzone.nordicsemi.com/thread/80819?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 13:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4103e629-fa16-411a-a88e-466f38a6e69b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand, the defines I mentioned has nothing to do with sd_ble_opt_set().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static passkey s132</title><link>https://devzone.nordicsemi.com/thread/80818?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 12:49:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5271fc1-b185-456d-9075-13251c3f9aa4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Connect is connect, after you have connected you can pair and optionally bond.&lt;/p&gt;
&lt;p&gt;Have you set that you want to bond, and that you require MITM protection?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SEC_PARAM_BOND                 1                                           /**&amp;lt; Perform bonding. */
#define SEC_PARAM_MITM                 1                                           /**&amp;lt; Man In The Middle protection required. */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Have you set the IO capabilites to display only?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SEC_PARAM_IO_CAPABILITIES      BLE_GAP_IO_CAPS_DISPLAY_ONLY                /**&amp;lt; Display I/O capabilities. */
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>