<?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>PIN Code timeout event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/943/pin-code-timeout-event</link><description>Hi 
 I&amp;#39;m using the nrf51822 with Softdevice S110. I want to find out why a pairing has not worked, PIN-Code was wrong, PIN-Code timeout. 
 Which events I can use for that failures?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Nov 2013 12:23:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/943/pin-code-timeout-event" /><item><title>RE: PIN Code timeout event</title><link>https://devzone.nordicsemi.com/thread/4521?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2013 12:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cd08de8-b923-4a13-b08b-8e2dee31419a</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Sorry for the delay, but you will get a BLE_EVT_GAP_AUTH_STATUS event, with the auth_status field set to something else than BLE_GAP_SEC_STATUS_SUCCESS:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In the case of timeout, it will be set to BLE_GAP_SEC_STATUS_TIMEOUT.&lt;/li&gt;
&lt;li&gt;In the case of wrong key entered, BLE_GAP_SEC_STATUS_CONFIRM_VALUE.&lt;/li&gt;
&lt;li&gt;In the case of a cancel or too long or too short passkey, BLE_GAP_SEC_STATUS_PASSKEY_ENTRY_FAILED.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The above was tested with an iPhone. Beware that there could be slight differences in the exact error codes used between different Centrals. MCP seems to for example use BLE_GAP_SEC_STATUS_PASSKEY_ENTRY_FAILED both for wrong key and wrong key format (i.e. too long or too short).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PIN Code timeout event</title><link>https://devzone.nordicsemi.com/thread/4520?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2013 09:26:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4814aa2e-e84e-4c3c-9c23-146bc9d0bb4f</guid><dc:creator>Manuel Urfer</dc:creator><description>&lt;p&gt;I want to know if there is an event (similar to BLE_GAP_EVT_CONNECTED) for the cases:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;PIN code timeout&lt;/li&gt;
&lt;li&gt;PIN code wrong
?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PIN Code timeout event</title><link>https://devzone.nordicsemi.com/thread/4519?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2013 14:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:336aaa8e-d222-41f9-ba3f-562f13c34d7b</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;It isn&amp;#39;t quite clear to me exactly what you need to know, but you can specify the timeout you want to use for pin entering in the timeout field of the ble_gap_sec_params_t structure. By setting this to for example 30 s, the link will be disconnected if the user doesn&amp;#39;t enter the passkey on the peer device within 30 s.&lt;/p&gt;
&lt;p&gt;Edit: On second look, this is actually &lt;strong&gt;not correct&lt;/strong&gt;, the softdevice will require this value to be 30 s, and you can not adjust it. I&amp;#39;m sorry for the confusion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>