<?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>UWP custom pairing nrf52840 with static passkey , PairingKind ？</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64168/uwp-custom-pairing-nrf52840-with-static-passkey-pairingkind</link><description>My UWP(Universal windows platform) app in Windows 10, Windows 10 tablet as master bluetooth, nrf52840(nRF5_SDK_15.3.0_59ac345) module as slave device. The PIN static-passkey is set for the device. UWP app custom pairing slave device(\Windows-universal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Sep 2023 00:50:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64168/uwp-custom-pairing-nrf52840-with-static-passkey-pairingkind" /><item><title>RE: UWP custom pairing nrf52840 with static passkey , PairingKind ？</title><link>https://devzone.nordicsemi.com/thread/448043?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2023 00:50:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64b79c51-4a89-475d-b7fc-d8f7d645ffb4</guid><dc:creator>hector_leon</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/dahai2018"&gt;dahai2018&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;How did you manage to develop&amp;nbsp;WP(Universal windows platform) app for the&amp;nbsp;nrf52840? I need to do the same in order to put&amp;nbsp;nRF52840 in advertise mode, set a service and a characteristic. I don&amp;#39;t&amp;nbsp;know how to start. &lt;br /&gt;&lt;br /&gt;The&amp;nbsp;nRF52840 dongle appears&amp;nbsp;in the windows device&amp;nbsp;manager&amp;nbsp;in the Ports (COM $ LPT) section as a nRF Connect USB CDC ACM (COM9) instead of a Bluetooth device.&lt;br /&gt;&lt;br /&gt;Thanks in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UWP custom pairing nrf52840 with static passkey , PairingKind ？</title><link>https://devzone.nordicsemi.com/thread/262700?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 07:15:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddd7a15c-89d7-4b11-88a9-6c13d0814ab6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, it looks to be correct. Remember that you can use your Android phone to verify that it works&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UWP custom pairing nrf52840 with static passkey , PairingKind ？</title><link>https://devzone.nordicsemi.com/thread/262669?ContentTypeID=1</link><pubDate>Sun, 02 Aug 2020 06:59:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5056f14a-230a-4040-8bcf-c1b13ffec025</guid><dc:creator>dahai2018</dc:creator><description>&lt;p&gt;Yes, you are right.&lt;br /&gt;The marco &amp;quot;SEC_PARAM_IO_CAPABILITIES&amp;quot; should be defined &amp;quot;as BLE_GAP_IO_CAPS_DISPLAY_ONLY&amp;quot;.&lt;br /&gt;In addition, the next five places are setted to SEC_MITM, is it correct?&lt;/p&gt;
&lt;p&gt;// Add the RX Characteristic.&lt;br /&gt; memset(&amp;amp;add_char_params, 0, sizeof(add_char_params));&lt;br /&gt; add_char_params.uuid = BLE_UUID_NUS_RX_CHARACTERISTIC;&lt;br /&gt; add_char_params.uuid_type = p_nus-&amp;gt;uuid_type;&lt;br /&gt; add_char_params.max_len = BLE_NUS_MAX_RX_CHAR_LEN;&lt;br /&gt; add_char_params.init_len = sizeof(uint8_t);&lt;br /&gt; add_char_params.is_var_len = true;&lt;br /&gt; add_char_params.char_props.write = 1;&lt;br /&gt; add_char_params.char_props.write_wo_resp = 1;&lt;/p&gt;
&lt;p&gt;add_char_params.read_access = SEC_MITM; ////////// It was the SEC_OPEN&lt;br /&gt; add_char_params.write_access = SEC_MITM; ////////// It was the SEC_OPEN&lt;/p&gt;
&lt;p&gt;err_code = characteristic_add(p_nus-&amp;gt;service_handle, &amp;amp;add_char_params, &amp;amp;p_nus-&amp;gt;rx_handles);&lt;br /&gt; if (err_code != NRF_SUCCESS)&lt;br /&gt; {&lt;br /&gt; return err_code;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;// Add the TX Characteristic.&lt;br /&gt; /**@snippet [Adding proprietary characteristic to the SoftDevice] */&lt;br /&gt; memset(&amp;amp;add_char_params, 0, sizeof(add_char_params));&lt;br /&gt; add_char_params.uuid = BLE_UUID_NUS_TX_CHARACTERISTIC;&lt;br /&gt; add_char_params.uuid_type = p_nus-&amp;gt;uuid_type;&lt;br /&gt; add_char_params.max_len = BLE_NUS_MAX_TX_CHAR_LEN;&lt;br /&gt; add_char_params.init_len = sizeof(uint8_t);&lt;br /&gt; add_char_params.is_var_len = true;&lt;br /&gt; add_char_params.char_props.notify = 1;&lt;/p&gt;
&lt;p&gt;add_char_params.read_access = SEC_MITM; ////////// It was the SEC_OPEN&lt;br /&gt; add_char_params.write_access = SEC_MITM; ////////// It was the SEC_OPEN&lt;br /&gt; add_char_params.cccd_write_access = SEC_MITM; ////////// It was the SEC_OPEN&lt;/p&gt;
&lt;p&gt;return characteristic_add(p_nus-&amp;gt;service_handle, &amp;amp;add_char_params, &amp;amp;p_nus-&amp;gt;tx_handles);&lt;br /&gt; /**@snippet [Adding proprietary characteristic to the SoftDevice] */&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UWP custom pairing nrf52840 with static passkey , PairingKind ？</title><link>https://devzone.nordicsemi.com/thread/262174?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 11:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39e3ab74-6d5e-4169-8fa5-91bc6469c949</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The IO capabilities are referring to what IO capabilities are available to the user. And with a static passkey, you could print the key on the final product and thus claim to have display capabilities. &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UWP custom pairing nrf52840 with static passkey , PairingKind ？</title><link>https://devzone.nordicsemi.com/thread/262112?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 07:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efa71e3d-b680-4620-87a7-2cf5b2c09ea3</guid><dc:creator>dahai2018</dc:creator><description>&lt;p&gt;&lt;span&gt;OK, but from the literal meaning of a macro，I think SEC_PARAM_IO_CAPABILITIES should be defined as BLE_GAP_IO_CAPS_KEYBOARD_ONLY or&amp;nbsp;BLE_GAP_IO_CAPS_KEYBOARD_DISPLAY. I will try it in the weekend.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UWP custom pairing nrf52840 with static passkey , PairingKind ？</title><link>https://devzone.nordicsemi.com/thread/262106?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 07:32:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3e93540-537a-4548-bb38-dfabb5123b8f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I think the fact that it works with android indicates that your nrf device is correctly set up for passkey pairing and that the problem is on the windows side. So I think it would be better if you ask Microsoft about this. I don&amp;#39;t have experience with windows app dev unfortunately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UWP custom pairing nrf52840 with static passkey , PairingKind ？</title><link>https://devzone.nordicsemi.com/thread/262103?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 07:05:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e83a13ee-0768-48a9-bd2f-8386bb69a430</guid><dc:creator>dahai2018</dc:creator><description>&lt;p&gt;&lt;span&gt;yes, the passkey pairing works with Android phone by providing an input PIN dialog box, but didnot in win10 UWP. The UWP app cannot register&amp;nbsp;PairingRequestedHandler, for the nrf52840 device do not support&amp;nbsp;&amp;quot;providepin&amp;quot; option.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UWP custom pairing nrf52840 with static passkey , PairingKind ？</title><link>https://devzone.nordicsemi.com/thread/262101?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 06:57:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26f8ed39-5567-48f4-8445-6a7cd1ed2ef2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You should set it to &amp;quot;&lt;span&gt;BLE_GAP_IO_CAPS_DISPLAY_ONLY&lt;/span&gt; when using static passkey. Have you tried to see if the passkey pairing works with an iOS or Android phone? &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UWP custom pairing nrf52840 with static passkey , PairingKind ？</title><link>https://devzone.nordicsemi.com/thread/262099?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 06:52:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e9f1268-ee31-471b-b889-d8f2c49b54ab</guid><dc:creator>dahai2018</dc:creator><description>&lt;p&gt;yes, I have defined&amp;nbsp;&lt;span&gt;SEC_PARAM_IO_CAPABILITIES as BLE_GAP_IO_CAPS_DISPLAY_ONLY, and configured the static passkey with the sd_ble_opt_set() function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;oh, should I&amp;nbsp;defined&amp;nbsp;SEC_PARAM_IO_CAPABILITIES as BLE_GAP_IO_CAPS_KEYBOARD_ONLY or&amp;nbsp;BLE_GAP_IO_CAPS_KEYBOARD_DISPLAY to get UWP&amp;nbsp;&amp;quot;providepin&amp;quot; option ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UWP custom pairing nrf52840 with static passkey , PairingKind ？</title><link>https://devzone.nordicsemi.com/thread/262093?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 06:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9828a867-1e52-487f-bd4f-78fda2eb4f31</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry for the delayed response. I think your description is clear enough. On the nRF side, have you defined SEC_PARAM_IO_CAPABILITIES as BLE_GAP_IO_CAPS_DISPLAY_ONLY, and did you configure the static passkey with the sd_ble_opt_set() function?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Setting a static passkey

    ble_opt_t opt;

    opt.gap_opt.passkey.p_passkey =&amp;quot;123456&amp;quot;

    err_code = sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &amp;amp;opt);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UWP custom pairing nrf52840 with static passkey , PairingKind ？</title><link>https://devzone.nordicsemi.com/thread/262078?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 01:03:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9201d0d8-cf7a-489e-b0d3-93219a0a4667</guid><dc:creator>dahai2018</dc:creator><description>&lt;p&gt;Didn&amp;#39;t I describe the problem clearly?&amp;nbsp;Who can reply?&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t got a technical response yet&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>