<?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>nrf52840 pdk multirole</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30923/nrf52840-pdk-multirole</link><description>Hi, 
 I am trying to set an nrf52840 pdk (with SDK14 and s140_nrf52840_5.0.0-2.alpha) as peripheral and central at the same time and another nrf52840 pdk just as a peripheral . First the multirole pdk start advertising and smart phones can communicate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Apr 2018 12:03:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30923/nrf52840-pdk-multirole" /><item><title>RE: nrf52840 pdk multirole</title><link>https://devzone.nordicsemi.com/thread/126832?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 12:03:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b562f5e-fa3b-4bc0-b6b6-c9ec9b5858e3</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Yes it works, I&amp;nbsp;do&amp;nbsp;not know what to mark as answer&amp;nbsp; &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f603.svg" title="Smiley"&gt;&amp;#x1f603;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 pdk multirole</title><link>https://devzone.nordicsemi.com/thread/126809?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 10:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e7018cb-132d-4684-92b7-7509cbe67cf6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nahro,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the late response, it&amp;#39;s been the Easter vacation last week.I don&amp;#39;t see any reason that wouldn&amp;#39;t work. You can have a look at &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___b_o_n_d_i_n_g___p_k___p_e_r_i_p_h___o_o_b___m_s_c.html?cp=2_3_1_1_1_2_1_3_5_2_2"&gt;this sequence chart &lt;/a&gt;to see how bonding with passkey work (in this case we skip the part that User enter the passkey)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 pdk multirole</title><link>https://devzone.nordicsemi.com/thread/126327?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 13:39:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b206293-5055-4eee-b962-9ace2e3d6f2e</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;The peripheral is&amp;nbsp;BLE_GAP_IO_CAPS_DISPLAY_ONLY and the central is&amp;nbsp;BLE_GAP_IO_CAPS_KEYBOARD_ONLY. As you said i don&amp;#39;t have keyboard in central and i use&amp;nbsp;NRF_LOG_INFO to display the static passkey in the peripheral. I can connect to the&amp;nbsp;&lt;span&gt;peripheral via smart phone and i was thinking i can do the same with the pdk as central but instead of entering the passkey via keyboard i use&amp;nbsp;sd_ble_gap_auth_key_reply() function to pass the static passkey. I am wondering if there is any othe solution to do that whit static passkey in central side without having any keyboard?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 pdk multirole</title><link>https://devzone.nordicsemi.com/thread/126325?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 13:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:341414d0-d0fe-4210-bd2d-b01e44195148</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;How do you configure the central and peripheral regarding the IO capability ? I mean which device you configured to be keyboard and which one was display ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I suspect that you don&amp;#39;t have IO capability so MITM is not possible. That&amp;#39;s why you have &amp;quot;Collector did not use MITM&amp;quot; and get disconnection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that when you do static passkey with&amp;nbsp;&lt;code&gt;BLE_GAP_OPT_PASSKEY&lt;/code&gt;, you only set it up on one peer as the display. The other peer should be configured as keyboard, with no static passkey.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest you to test with the ble_app_gls example, we use passkey in this example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 pdk multirole</title><link>https://devzone.nordicsemi.com/thread/126312?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 11:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:701bbc94-6038-482b-a643-8b48f3fcf1c3</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Hung&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;Now I tested with single connection and I get&amp;nbsp; Collector did not use MITM from the peripheral side(i have MITM in both) and disconnecting, and on the central side i get Disconnected with error 13. it never reachs BLE_GAP_EVT_AUTH_KEY_REQUEST in central&amp;nbsp; device to send the passkey with the&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;sd_ble_gap_auth_key_reply().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I added if statement in&amp;nbsp;pm_evt_handler in central program(i have the same if statement in peripheral program that is why i get Collector did not use MITM) to check if the peripheral have the MITM, i get the same error (did not use MITM) which means both sides did not authenticated&amp;nbsp; with MITM while i enabled MITM in&amp;nbsp;peer_manager_init in both sides!!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I get MITM authentication while i connect to the peripheral device with smart phone without any problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 pdk multirole</title><link>https://devzone.nordicsemi.com/thread/123373?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 09:11:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:271a57b2-cc9a-4a51-8d77-b279647d2f42</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. After service dicovery i try to read&amp;nbsp;&lt;span&gt;characteristics&amp;nbsp; from the&amp;nbsp;peripheral&amp;nbsp; thats why i receive rejection. I will test your a single connection and i will use sniffer trace but not today maybe next week.I will get back withe test results a soon as i have a time.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 pdk multirole</title><link>https://devzone.nordicsemi.com/thread/123362?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 08:40:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee199b26-d409-4ae5-8c7b-9a9b9f165e55</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nahro,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please try to test with a single connection first. Just to make sure the problem was not because you have multiple roles and for some reasons the peer manager messed up.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Secondly, doing service discovery shouldn&amp;#39;t cause any issue with encryption level.&amp;nbsp;You only receive rejection from the peer when you try to do a read/write that require the connection to be encrypted by MITM.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also the peer shouldn&amp;#39;t disconnect because the link was not encrypted at correct level. Unless it&amp;#39;s how the application designed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Using&amp;nbsp;&lt;span&gt;sd_ble_gap_auth_key_reply() to tell the softdevice what the passkey is (when the peer device display it) is the correct way.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I would suggest you to get&lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/"&gt; a sniffer trace&lt;/a&gt; to see what exactly happens over the air.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>