<?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>Central can&amp;#39;t properly encrypt to mode 1 lvl 3, pairing not supported</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22940/central-can-t-properly-encrypt-to-mode-1-lvl-3-pairing-not-supported</link><description>Hello! 
 I&amp;#39;m trying to read data off of a commercial blood pressure monitor (Qardio arm) using an nrf51822 with the nrf51 SDK v10.0.0 as the central role (s120). I am able to connect using sd_ble_gap_connect(), and when I tried to write to a characteristic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Jun 2017 17:38:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22940/central-can-t-properly-encrypt-to-mode-1-lvl-3-pairing-not-supported" /><item><title>RE: Central can't properly encrypt to mode 1 lvl 3, pairing not supported</title><link>https://devzone.nordicsemi.com/thread/90245?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 17:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d543f6ad-9c13-4778-9115-b95eb5cbcb70</guid><dc:creator>Tien Tran</dc:creator><description>&lt;p&gt;Hung Bui,&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t used the sniffer before, but I got it working and it helped me debug the problem. Looks like the issue was with the Qardio Arm itself, not wanting to pair with anything besides my phone. After a factory reset I got past the sd_ble_gap_authenticate(). Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central can't properly encrypt to mode 1 lvl 3, pairing not supported</title><link>https://devzone.nordicsemi.com/thread/90251?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 17:14:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7b7603f-ea08-4ffc-b773-a3a8627d39fd</guid><dc:creator>Tien Tran</dc:creator><description>&lt;p&gt;Turns out my problem was with the BP monitor itself. For some reason it refused pairing with any other device except my phone. I tested using multiple other phones and even with a linux system. To solve my problem I simply figured out how to factory reset the BP monitor, and then I was able to pair/bond with other devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central can't properly encrypt to mode 1 lvl 3, pairing not supported</title><link>https://devzone.nordicsemi.com/thread/90250?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2017 11:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26e6a817-a879-492d-9e0a-fb79fe4e4fbf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;No, I don&amp;#39;t think you need to do anything else. If you can provide a &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/"&gt;sniffer trace&lt;/a&gt;, it would be very useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central can't properly encrypt to mode 1 lvl 3, pairing not supported</title><link>https://devzone.nordicsemi.com/thread/90247?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2017 15:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86e5a209-e055-48c7-9a09-6f0e32b01c39</guid><dc:creator>Tien Tran</dc:creator><description>&lt;p&gt;Hung Bui, I just tried that and unfortunately, same auth status (0x85). Is there something I need to do prior to sd_ble_gap_authenticate()? The first thing ever I do, besides initializing, is running sd_ble_gap_connect(). I already know the device Addr so I don&amp;#39;t do any scanning for advertisements. Once im connected, I store the connection handle, and use it immediately in sd_ble_gap_authenticate(). Do you think I have to do any kind of scanning before I can authenticate? (advertisements/services/characteristics, etc)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central can't properly encrypt to mode 1 lvl 3, pairing not supported</title><link>https://devzone.nordicsemi.com/thread/90244?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2017 07:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9239e7e-4883-407d-a437-fde8e07bd247</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I assume that the blood pressure device require lv3 bonding, meaning you need MITM.&lt;/p&gt;
&lt;p&gt;Could you try MITM =1 and keyboard and display enabled ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central can't properly encrypt to mode 1 lvl 3, pairing not supported</title><link>https://devzone.nordicsemi.com/thread/90243?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 15:10:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3be6287-3bf4-427f-8121-8b568681077e</guid><dc:creator>Tien Tran</dc:creator><description>&lt;p&gt;Hung Bui, I&amp;#39;ve been messing around with the parameters mainly because I&amp;#39;ve been desperate... haha but I have tried it also with oob = 0, no IO cap, and MITM set to 0. Still the exact same error unfortunately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central can't properly encrypt to mode 1 lvl 3, pairing not supported</title><link>https://devzone.nordicsemi.com/thread/90248?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 08:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:399830b2-ff14-4a15-be46-c1fbeec72d44</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Why do you set MITM to 1 and then no IO capability and no OOB, how would you plan to do MITM bonding ? I assume that why the peripheral rejected pairing .&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;register_param.sec_param.mitm         = SEC_PARAM_MITM;            // mitm    = 1
register_param.sec_param.io_caps      = SEC_PARAM_IO_CAPABILITIES; // io cap  = 3  (none)
register_param.sec_param.oob          = SEC_PARAM_OOB;             // oob     = 0
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central can't properly encrypt to mode 1 lvl 3, pairing not supported</title><link>https://devzone.nordicsemi.com/thread/90249?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 15:34:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00adb7cf-aa49-4f18-b424-cca4a33add3c</guid><dc:creator>Tien Tran</dc:creator><description>&lt;p&gt;Here&amp;#39;s what I did exactly on the nRF Connect android app. Just copying the log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Connected to 5C:D6:1F:20:0B:A5 
Services discovered        //After this line, I wrote to characteristic
Deviced bonded
Data written to **characteristic uuid**, value: (0x) F1-01  //start command
&amp;quot;(0x) F1-01&amp;quot; sent
Data written to **characteristic uuid**, value: (0x) F1-02  //stop command
&amp;quot;(0x) F1-02&amp;quot; sent
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So it looks like right after I &amp;quot;wrote&amp;quot; to the characteristic, my phone automatically bonded with the bp monitor. If it can bond, this means it should be able to pair correct?&lt;/p&gt;
&lt;p&gt;I will keep messing around with the parameters, and thank you also for the information about gap_encrypt()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central can't properly encrypt to mode 1 lvl 3, pairing not supported</title><link>https://devzone.nordicsemi.com/thread/90246?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 09:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7644161d-d7eb-4cc7-a749-983ecd93a06c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;When you are using nRF Connect on Android, are you pairing? If not, it is a bit strange that you are able to write. Are you sure you are writing to the same characteristic value in both cases? It is a bit difficult to say why the peripheral returns pairing not supported, but it could be that it doesn&amp;#39;t like the security parameters you are trying to pair with. If you are pairing with the nRF connect, and you have access to a sniffer (for example nRF Sniffer) I would do a sniffer trace of both connections and see if there are any differences in regards to the pairing process.&lt;/p&gt;
&lt;p&gt;PS. You should use sd_ble_gap_authenticate() when you want to pair/bond. If you bond you will share encryption keys that can be used in a later connecting, and then you will use sd_ble_gap_encrypt().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>