<?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>nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19266/nrf51822-bonding-whitelist-creation</link><description>I am trying to scan and connect to a Polar H7 HR belt (which I can do), with m_scan_mode = BLE_NO_SCAN. Once this happens, I understand they are supposed to bond, and at that point, the H7 belt details will be saved to the whitelist.
Then after doing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Feb 2017 12:26:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19266/nrf51822-bonding-whitelist-creation" /><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74654?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 12:26:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d72ac6cd-0c5c-44d4-917e-92ebaffd4bfd</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;OK, let us know how that goes. It might make sense to use the zip version of the SDK, then you can have multiple SDK versions on the same pc without any problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74653?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 10:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca167e90-405d-47ae-aea8-a55d516ebaf3</guid><dc:creator>the_purple_pig</dc:creator><description>&lt;p&gt;I will try update the SDK on another PC, so as to not change my config on my main PC in case I need to go back it it, and see if that helps.
Not getting stuck in error handler - the program marches past that point and continues to work just fine in all other respects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74652?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 09:44:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8642dbb-a6df-4950-a192-a68d986e87b6</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Not sure exactly which SDK version that is, but it looks like it would be a rev3 compatible one. Are you getting any app erros / asserts, or any resets (which would indicate that you are ending up in the app error handler)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74649?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 09:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:997c15e4-de87-4843-bcae-7016f22f6fef</guid><dc:creator>the_purple_pig</dc:creator><description>&lt;p&gt;That&amp;#39;s the exact sort of thing I was hoping to find out, I wrote the firmware a long time ago, but it was working great so I don&amp;#39;t want to change it - but of course if it doesn&amp;#39;t run on certain chip variants, I will have to. I am using the s120 Softdevice version 2.0.0, and the SoftPacks versions in uVision list as follows:
ARM:CMSIS - 4.3.0
nRF_BLE - 2.0.0
nRf_DeviceFamilyPack - 7.1.1 (maybe this needs updating)
nRF_Drivers - 2.0.0
nRF libraries - 2.0.0
nRf_SoftDeviceCommon - 1.1.2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74651?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 07:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fee190de-9144-4b35-8cbb-76fd398901f3</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;The 01 variant (QFAA G0) is the second revision of the chip. While the 02 variant (QFAA H0) is the third revision. Which Softdevice and SDK version are you using? Maybe you could be missing a workaround or something.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74648?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 16:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:720668f8-c87e-4476-9f7c-5a024a896e29</guid><dc:creator>the_purple_pig</dc:creator><description>&lt;p&gt;I don&amp;#39;t have a Nordik SDK HRM unfortunately, but I have used a few polar belts with a few &amp;#39;01&amp;#39; variants, swapped them between devices, never had any issues until this &amp;#39;02&amp;#39; module arrive. I (try) initiate the bonding:
case BLE_HRS_C_EVT_DISCOVERY_COMPLETE:
// Initiate bonding.
err_code = dm_security_setup_req(&amp;amp;m_dm_device_handle);
APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;it&amp;#39;s all very strange&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74645?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 16:34:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0af44922-4efd-47d1-887c-1a7f0ac13fa0</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;What happens if you try to connect to a nordic SDK HRM? I guess we don&amp;#39;t know what is going on on the polar device either. Could there be any old bonds or something that stops the bonding from happening? Do you know which device is initializing the bonding process (sniffer log or are you calling sd_ble_gap_authenticate somewhere)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74646?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 16:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30e01835-0fd6-4dda-a004-64fcf0a9e002</guid><dc:creator>the_purple_pig</dc:creator><description>&lt;p&gt;Yes, exactly the same FW. My workflow is like this:
Use nrfjprog to do full erase then program in SoftDevice V2.00, then load the application code on directly from uVision via a JLINK, and run it. I&amp;#39;ve only got one &amp;#39;-02&amp;#39; variant modules on a PCB, I have just taken delivery of a few more so will try swap that one out and see if it seems an isolated issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74647?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 16:02:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8248dff4-1dcd-4238-9e93-41af6e5a9538</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Are you 100% sure you are using the same firmware on the modules? I assume you are using the Nordic SDK and has done a full erase of both module types, before programming it with both Softdevice and application (which SDK and SD version are you using)? How many BL-620-SA-02 modules have you tested?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74644?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 13:34:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf943dda-99e1-48df-b373-2a540d6616d2</guid><dc:creator>the_purple_pig</dc:creator><description>&lt;p&gt;Correct - with the same firmware running on BL620-SA-01 (containing nRF51822-QFAA-G0 ), the HR belt gets bonded when I do an open scan, and a whitelist is created, and I can whitelist scan and connect afterwards. Using exactly the same firmware on the newer module BL-620-SA-02 (with nRF51822-QFAA-H0 inside), when I do an open scan, I can connect to the HR belt but the connection never advances on to do bonding as it does in the other module. Therefore I can never create a whitelist. I just don&amp;#39;t understand why the bonding step does not occur in the one module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74650?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 13:29:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03b8f746-66aa-4724-a162-f05a1bec4cb7</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;But you are able to do whitelist scanning with the one that is bonded, right? The whitelist is created using dm_whitelist_create, which get&amp;#39;s the device address&amp;#39;es and IRK&amp;#39;s from the bond table. So it you haven&amp;#39;t bonded nothing will be there to create the whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74643?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 15:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06f66ebe-d835-428a-9773-68ad7daeffab</guid><dc:creator>the_purple_pig</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;ve found something strange. I use a Laird BL620 module to run my app on. On one of my units, the HR belt gets bonded to when pairing it. On the other, it pairs and connects but never goes on to do the bonding. The only difference seems to be in the part number of the Laird modules - BL620-SA-01 for the one that bonds, BL620-SA-02 for the module that doesn&amp;#39;t bond. Very strange..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74655?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 10:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec4b9ebe-5914-4487-bc30-222ec6314c8b</guid><dc:creator>the_purple_pig</dc:creator><description>&lt;p&gt;this is what I get out of the debug output, no mention of bonding:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[APPL]: af0[APPL]: 180d[APPL]: &amp;gt;&amp;gt; DM_EVT_CONNECTION[APPL]:[88 B7 DB D0 22 00]: onnection Established[APPL]: &amp;lt;&amp;lt; DM_EVT_CONNECTION[APPL]: Battery Service discovered.[APPL]: Reading battery level.[APPL]: Enabling Battery Level Notification.[APPL]: &amp;gt;&amp;gt; M_EVT_SECURITY_SETUP_COMPLETE[APPL]: &amp;lt;&amp;lt; DM_EVT_SECURITY_SETUP_COMPLETE[APPL]: HR easurement received 0û[APPL]: HR Measurement received 0[APPL]: Battery Level Read as 100 %[APPL]: HR Measurement received 0[APPL]: HR Measurement received 0&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74642?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 10:05:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:761f9d00-6745-4ab5-a8dc-412e82a31be5</guid><dc:creator>the_purple_pig</dc:creator><description>&lt;p&gt;Hi,
No it doesn&amp;#39;t appear to be bonding, I don&amp;#39;t hit a breakpoint in the BLE_GAP_EVT_AUTH_STATUS case in dm_ble_evt_handler.. How do I initiate bonding? from what I can see bonding is supposed to be carried out. I do hit a breakpoint in the bit below:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_HRS_C_EVT_DISCOVERY_COMPLETE:
        // Initiate bonding.
        err_code = dm_security_setup_req(&amp;amp;m_dm_device_handle);
        APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;My debug printf&amp;#39;s look like this when doing the inital pairing:
*edit - I can&amp;#39;t paste the debug printf&amp;#39;s in this stupid comment box, only the first line shows up. I&amp;#39;ll try paste it in as an answer to my question, don&amp;#39;t know what else to try *&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding/whitelist creation</title><link>https://devzone.nordicsemi.com/thread/74641?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 05:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f6e4a6e-3499-46f6-9708-f26ce23df973</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Are you sure you are actually bonded with the HR belt? Do you get a BLE_GAP_EVT_AUTH_STATUS event, where the bonded field = 1?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>