<?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>BLE Peripheral Passphrase example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66747/ble-peripheral-passphrase-example</link><description>Hello, I am trying to implement a basic BLE connection between the nRF52840 Dongle and an Android Device (nRF Connect). I wanted to secure this BLE connection with a passphrase, ie, on trying to connect to the dongle, the android device will be prompted</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Oct 2020 08:40:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66747/ble-peripheral-passphrase-example" /><item><title>RE: BLE Peripheral Passphrase example</title><link>https://devzone.nordicsemi.com/thread/275515?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 08:40:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:699e4e89-6e92-4c1e-b938-9c0c92dd8a05</guid><dc:creator>akio_7</dc:creator><description>&lt;p&gt;Hello Amanda&lt;br /&gt;&lt;br /&gt;Thank you very much for your reply.&amp;nbsp;I was able to protect the write permission of the characteristics. I was trying to combine the ble_app_blinky program and the program which I have right now which is based on&amp;nbsp;the&amp;nbsp;example you uploaded&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63813/pin-pairing/264832#264832"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The program compiles and I could flash it on the dongle, but then the DEBUG log shows log_init completed and then results in a FATAL ERROR and then reboots. This repeats. Would it be possible for you to look into my code? I am attaching the example folder with this post. Thank you in advance.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_test.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_template_5F00_test.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Peripheral Passphrase example</title><link>https://devzone.nordicsemi.com/thread/273403?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2020 08:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b353f97-67bf-48ac-b5dc-62280f3333da</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Sebastian,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can call&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/group___b_l_e___g_a_p___c_o_n_n___s_e_c___m_o_d_e___s_e_t___m_a_c_r_o_s.html#ga9130b57af7649cba1702b99e1594736c"&gt;BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;to set permission for&amp;nbsp;characteristics. Please see this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51055/ble_gap_conn_sec_mode_set_enc_with_mitm-not-working-for-write"&gt;post&lt;/a&gt;. and enable LESC connection in main.c as&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define SEC_PARAM_LESC                  1                                       /**&amp;lt; LE Secure Connections not enabled. */&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Peripheral Passphrase example</title><link>https://devzone.nordicsemi.com/thread/273332?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2020 00:04:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5befa6ba-fbdf-433e-85e6-4ecd5ab443c6</guid><dc:creator>akio_7</dc:creator><description>&lt;p&gt;Hello Amanda&lt;br /&gt;&lt;br /&gt;The previous answer and the example provided in the post were very much helpful. But please correct me if I am wrong:&lt;br /&gt;&lt;br /&gt;I am still able to connect to the device without entering the passphrase and the passphrase is only requested if I am trying to bond to the device. My aim was to create a passphrase for a connection as well so that unauthorized users can&amp;#39;t change the BLE characteristics. I&amp;nbsp;compared the permissions of a device connected to the Dongle with bonding and without bonding and the permissions are the same. Am I wrong? Thank you once again for your support. Really appreciate it. :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Peripheral Passphrase example</title><link>https://devzone.nordicsemi.com/thread/273222?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 12:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9036301-44e3-4986-8cd6-7a24bbf24249</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You could try the example which I uploaded into this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63813/pin-pairing/264832#264832"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Peripheral Passphrase example</title><link>https://devzone.nordicsemi.com/thread/273191?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 11:15:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87b23364-c5de-4e06-a8bb-5eae7b39f2e2</guid><dc:creator>akio_7</dc:creator><description>&lt;p&gt;Thanks for the reply Amanda. I have tried the example with two android phones and one Apple device. The android devices&amp;nbsp;refuse to connect and they don&amp;#39;t ask for the passphrase. An android notification appears for pair and connect but then the devices just don&amp;#39;t connect and the log is attached below:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Log.jpeg" /&gt;&lt;br /&gt;&lt;br /&gt;On the Apple device, it asks for the passphrase and asks to enter the passphrase arriving on the UART. But the nRF Toolbox app gets stuck at connecting when trying to connect using the UART option.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Anyway, would it be possible to change this to a static passphrase? Something like &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/20711/static-passkey-s132"&gt;this&lt;/a&gt;. Are the same functions applicable for the S140 device as well?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Peripheral Passphrase example</title><link>https://devzone.nordicsemi.com/thread/273108?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 08:10:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b5ed92e-2001-4d35-bec6-81902af5560d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Sebastian,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can take a look at this&amp;nbsp;&lt;a title="Glucose Application" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_gls.html?cp=7_1_4_2_2_11"&gt;Glucose Application&lt;/a&gt;, and y&lt;span&gt;ou should consider the nRF52840 DK instead if you want to develop firmware or application for the nRF52840. The nRF52840 dongle is primarily intended to be used together with nRF Connect for desktop and is not well suitable as a development board. This is primarily because it lacks an onboard debugger.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>