<?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 with PCA10028 board and UART example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7340/static-passkey-with-pca10028-board-and-uart-example</link><description>Dear Nordic Developers 
 I&amp;#39;m using ble_app_uart example with PCA10028 development board. SDK version is 8.0.0.
I&amp;#39;m trying to program the PCA10028 board for having a static passkey.
Below you can see my modified and added code 
 define STATIC_PASSKEY</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Sep 2015 10:52:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7340/static-passkey-with-pca10028-board-and-uart-example" /><item><title>RE: Static Passkey with PCA10028 board and UART example</title><link>https://devzone.nordicsemi.com/thread/25995?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2015 10:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ab5f38a-8a13-45aa-845e-05e16e3e8a53</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I think you might have stumbled upon a bug in nrf_drv_config.h. First you need to make sure that GPIOTE is enabled by setteing:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define GPIOTE_ENABLED 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then the number of low power GPIOTE events should be set to 6:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 6
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static Passkey with PCA10028 board and UART example</title><link>https://devzone.nordicsemi.com/thread/25994?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2015 06:10:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df9ee3ab-3c86-48cb-acf2-cbe28e2f8023</guid><dc:creator>Nomi</dc:creator><description>&lt;p&gt;i am trying to do the same thing but i cant get it to work can you point the mistake i am making.?
here is my code
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pass.zip"&gt;pass.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static Passkey with PCA10028 board and UART example</title><link>https://devzone.nordicsemi.com/thread/25993?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2015 06:09:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c222b8b7-98fb-4150-8e47-e26aa5de03f6</guid><dc:creator>haruthakop</dc:creator><description>&lt;p&gt;Thanks a lot for your help and assistance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static Passkey with PCA10028 board and UART example</title><link>https://devzone.nordicsemi.com/thread/25992?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2015 13:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d79b6c1d-3356-40ae-8789-649b8bdf4744</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi, sorry for the late response. I don&amp;#39;t think it violates the spec. &lt;a href="https://devzone.nordicsemi.com/question/3873/feature-request-regarding-passkey-authorization/"&gt;Here is an interesting thread&lt;/a&gt;. And &lt;a href="https://github.com/NordicSemiconductor/nRF51-ble-app-uart-static-passkey"&gt;here&lt;/a&gt; is even an example on github that uses the ble-app-uart example with static passkey. It uses an old SDK and SD though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static Passkey with PCA10028 board and UART example</title><link>https://devzone.nordicsemi.com/thread/25991?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2015 15:09:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f8df581-e043-4391-9d9b-d32179cc9957</guid><dc:creator>haruthakop</dc:creator><description>&lt;p&gt;Hi, Thanks a lot for your help, I made it running.
I&amp;#39;m really sorry for disturbing you again. I have one more question. My device doesn&amp;#39;t have any input or output capabilities. Is it against BLE specification to set a static passkey for a pheripheral device which doesn&amp;#39;t have any capabilities?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Static Passkey with PCA10028 board and UART example</title><link>https://devzone.nordicsemi.com/thread/25990?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2015 11:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3417197d-d50f-4274-b882-bb1a2df04c7e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You will need to add &amp;quot;Man In The Middle&amp;quot; encryption when you set up the characteristics. Look up the rx_char_add() and change&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;cccd_md.write_perm);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM(&amp;amp;cccd_md.write_perm);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Have a look at the &lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.1.0/s110/html/a00071.html"&gt;Glucose example&lt;/a&gt;, ble_app_gls, which uses MITM encryption to learn more. These are also informative post regarding MITM: &lt;a href="https://devzone.nordicsemi.com/question/31354/get-nrf_error_invalid_param-for-function-sd_ble_gatts_characteristic_add-after-setting-ble_gap_conn_sec_mode_set_enc_with_mitm-for-notify-type/"&gt;link&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/question/5806/how-to-avoid-mitm-attacks/"&gt;link&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>