<?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 bootloader in sdk9 addr[0]+1 ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11139/why-bootloader-in-sdk9-addr-0-1</link><description>In bootloader of sdk9
I find 
 ble_gap_addr_t addr;

err_code = sd_ble_gap_address_get(&amp;amp;addr);
APP_ERROR_CHECK(err_code);

// Increase the BLE address by one when advertising openly.
addr.addr[0] += 1;

err_code = sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jan 2016 13:46:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11139/why-bootloader-in-sdk9-addr-0-1" /><item><title>RE: why bootloader in sdk9 addr[0]+1 ?</title><link>https://devzone.nordicsemi.com/thread/41753?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2016 13:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e5d8d02-5455-4562-8e56-0a3217585357</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;This code is executed when the dfu bootloader is unable to load stored peer data from flash. This means that it will require a new connection from the smartphone. The smartphone on the other hand, might have stored bond information. It will therefore try to connect to the dfu with the stored encryption keys.&lt;/p&gt;
&lt;p&gt;By changing its address, the device will appear as a new device to the smartphone. This changing is done in reaction to an error (no peer data), and should not really be removed. You should rather make sure that peer data is stored in your application. See &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk51.v9.0.0%2Fbledfu_appbonding.html&amp;amp;cp=4_0_4_4_3_2_3"&gt;this&lt;/a&gt; page about sharing bond info in the infocenter. &lt;a href="https://devzone.nordicsemi.com/question/37060/dfu-device-address-changes/"&gt;This&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/question/48962/sd_ble_gap_address_get-returns-different-addr-for-app-and-dfu/"&gt;this&lt;/a&gt; devzone thread might also be of interest.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>