<?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 connection with NRF toolbox</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57202/ble-connection-with-nrf-toolbox</link><description>Hi, 
 
 I&amp;#39;m using NRF52840, and I&amp;#39;ve developed a feature which bonds with NRF toolbox application. The problem is that when I&amp;#39;m using secured BLE, I can&amp;#39;t receive any messages from my mobile (using NRF toolbox). 
 
 I&amp;#39;ve set pairing mode to NFC_PAIRING_MODE_LESC_OOB</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Feb 2020 14:12:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57202/ble-connection-with-nrf-toolbox" /><item><title>RE: BLE connection with NRF toolbox</title><link>https://devzone.nordicsemi.com/thread/232602?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 14:12:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:704ec951-0db8-4f48-a7e5-c364648adbb2</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;Problem solved. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE connection with NRF toolbox</title><link>https://devzone.nordicsemi.com/thread/232458?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 08:02:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:305a1a8b-b704-48aa-853e-0947fc39afd6</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Could you use&amp;nbsp;&lt;span&gt;BLE_GAP_CONN_SEC_MODE_SET_OPEN and modify the&amp;nbsp;security_req_t cccd_write_access =&amp;nbsp;SEC_MITM?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please let me know this helps or not. Thanks.&amp;nbsp;&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 connection with NRF toolbox</title><link>https://devzone.nordicsemi.com/thread/232455?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 07:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fa0195f-90ae-4870-ad4b-6e740204d80e</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand what are the meanings of the attribute handle,&amp;nbsp;Client Characteristic Configuration Descriptor handle, and value handle. How can I change them? Why do they need to be equal in order to establish connection and send messages?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE connection with NRF toolbox</title><link>https://devzone.nordicsemi.com/thread/232381?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 14:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44833239-f2ee-4fe8-840e-15f0c663eec3</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think my issue is different.&lt;/p&gt;
&lt;p&gt;ble_nus event handler executes on_write function when&amp;nbsp;BLE_GATTS_EVT_WRITE event occurs.&lt;/p&gt;
&lt;p&gt;When connecting to mobile, the attribute handle of the event does not equal to the handle of the cccd. Therefore - communication doesn&amp;#39;t start.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After that - when I try to send messages from my mobile to the device - nothing happens and ble_nus event handler is not called.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I also tried the solution from your suggested post - it didn&amp;#39;t help.&lt;/p&gt;
&lt;p&gt;Do you have any other ideas?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE connection with NRF toolbox</title><link>https://devzone.nordicsemi.com/thread/232373?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 14:33:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:503c4054-c20e-4a58-92ea-9139d2c87ac4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please see this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41703/usage-of-ble_gap_conn_sec_mode_set_lesc_enc_with_mitm-and-sd_ble_gatts_attr_get"&gt;post&lt;/a&gt;&amp;nbsp;to for &lt;span&gt;the usage of BLE_GAP_CONN_SEC_MODE_SET_LESC_ENC_WITH_MITM.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Setting the&amp;nbsp;security_req_t cccd_write_access =&amp;nbsp;SEC_MITM will require MITM and LESC to access the attribute. The&amp;nbsp;security_req_t variable is passed to&amp;nbsp;set_security_req() function to set the attributes security level.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>