<?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>Why gatttool can access characteristics whithout secure connection on ble_app_gls example from SDK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42679/why-gatttool-can-access-characteristics-whithout-secure-connection-on-ble_app_gls-example-from-sdk</link><description>Hi, 
 I just started with Nordic nRF52 DK and builded and flashed nRF5_SDK_15.2.0_9412b96/examples/ble_peripheral/ble_app_gls application on Ubuntu 18.04 using armgcc toolchain. Softdevice is s132 6.1.0. 
 I just used what was there in the SDK and &amp;quot;make</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Jan 2019 15:34:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42679/why-gatttool-can-access-characteristics-whithout-secure-connection-on-ble_app_gls-example-from-sdk" /><item><title>RE: Why gatttool can access characteristics whithout secure connection on ble_app_gls example from SDK?</title><link>https://devzone.nordicsemi.com/thread/166545?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 15:34:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdce08b9-1ddb-4366-b8ce-4088937ef943</guid><dc:creator>Chencheng</dc:creator><description>&lt;p&gt;Great, Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why gatttool can access characteristics whithout secure connection on ble_app_gls example from SDK?</title><link>https://devzone.nordicsemi.com/thread/166540?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 15:26:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1392f71-a57c-43b2-b04c-35df36ee92df</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Checheng,&lt;/p&gt;
&lt;p&gt;I think it&amp;#39;s easier if you look at the switch case in ble_srv_common.c::set_security_req() which invoke&amp;nbsp;BLE_GAP_CONN_SEC_MODE_SET_* macros. These macros show what security mode and level each&amp;nbsp;security_req_t member correspond to. Then have a look at the different security modes and levels&amp;nbsp;defined by the core spec (core spec v5, vol. 3, part C, section 10.2).&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;All OOB, numeric comparison, and passkey pairing are for MITM protection as I understand.&amp;quot; Yes, that is correct.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why gatttool can access characteristics whithout secure connection on ble_app_gls example from SDK?</title><link>https://devzone.nordicsemi.com/thread/166516?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 14:26:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b16af74-5fb0-4fcd-be82-a377b7912804</guid><dc:creator>Chencheng</dc:creator><description>&lt;p&gt;Thanks Vidar,&lt;/p&gt;
&lt;p&gt;That&amp;#39;s exact answer to my problem.&lt;/p&gt;
&lt;p&gt;BTW, can you elaborate what pairing methods does SEC_SIGNED applies to? Or what is the difference between SEC_MITM and SEC_SIGNED_MITM? Do they differs just as LEGACY versus LESC connection?&lt;/p&gt;
&lt;p&gt;(&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.0%2Fgroup___b_l_e___g_a_p___p_e_r_i_p_h___s_e_c___m_s_c.html&amp;amp;cp=2_3_1_1_0_2_1_3_10"&gt;http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.0%2Fgroup___b_l_e___g_a_p___p_e_r_i_p_h___s_e_c___m_s_c.html&amp;amp;cp=2_3_1_1_0_2_1_3_10&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;All OOB, numeric comparison, and passkey pairing are for MITM protection as I understand.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Chencheng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why gatttool can access characteristics whithout secure connection on ble_app_gls example from SDK?</title><link>https://devzone.nordicsemi.com/thread/166510?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 14:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb357d3e-c456-4f21-a177-a443e72b42a6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The security level on the gls characteristics are set to &amp;quot;just works&amp;quot; by default, so MITM protection is not required to access these. You can change the security level in service init to require MITM:&lt;/p&gt;
&lt;p&gt;// Here the sec level for the Glucose Service can be changed/increased.&lt;br /&gt; gls_init.gl_meas_cccd_wr_sec = SEC_JUST_WORKS;&lt;br /&gt; gls_init.gl_feature_rd_sec = SEC_JUST_WORKS;&lt;br /&gt; gls_init.racp_cccd_wr_sec = SEC_JUST_WORKS;&lt;br /&gt; gls_init.racp_wr_sec = SEC_JUST_WORKS;&lt;/p&gt;
&lt;p&gt;Here are some&amp;nbsp;message sequence charts that illustrate the different bonding procedures:&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.0/group___b_l_e___g_a_p___p_e_r_i_p_h___s_e_c___m_s_c.html?cp=2_3_1_1_0_2_1_3_10"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.0/group___b_l_e___g_a_p___p_e_r_i_p_h___s_e_c___m_s_c.html?cp=2_3_1_1_0_2_1_3_10&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>