<?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>Adding device identifier to BLE DFU application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69049/adding-device-identifier-to-ble-dfu-application</link><description>I am using bootloader based on Nordic secure bootloader example. I would like to add possibility to identify device after entering BLE DFU. I was thinking about device MAC address however this solution won&amp;#39;t work with Apple devices as they don&amp;#39;t have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Mar 2021 06:37:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69049/adding-device-identifier-to-ble-dfu-application" /><item><title>RE: Adding device identifier to BLE DFU application</title><link>https://devzone.nordicsemi.com/thread/300278?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 06:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e3b4d9a-2a31-4a5c-b7e8-2ccb6b64c748</guid><dc:creator>Krzysztof Cieniawski</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/mrono"&gt;mrono&lt;/a&gt; you are right. Buttonless DFU Service provided with Bluetooth SIG has command to setting bootloader advertising name after entering to it. I have found this few days ago and wanted to reply to my question but you were faster.&lt;/p&gt;
&lt;p&gt;To sum up. Then developer is using bootloader prepared by Nordic then he set up advertising name with `#define` preprocessor directive. Easiest way to provide customizable bootloader advertising name is to provide Buttonless DFU Service in application. This service has two commands: first is for jumping into bootloader and second is for setting DFU target name after jumping. On the other hand this solution has some limitations, more informations: &lt;a href="https://infocenter.nordicsemi.com"&gt;https://infocenter.nordicsemi.com&lt;/a&gt; =&amp;gt; SDK =&amp;gt; nRF5 SDK =&amp;gt; Libraries =&amp;gt; BLE Services =&amp;gt; Buttonless Secure DFU Service&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding device identifier to BLE DFU application</title><link>https://devzone.nordicsemi.com/thread/285766?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 08:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49c332da-055b-4819-8c4b-1db983076496</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;I believe there already is a command to specify the advertising name by writing to the Buttonless DFU control point characteristic. I think the Nordic DFU libraries use this in some cases, but I&amp;#39;m not sure when exactly.&lt;/p&gt;
&lt;p&gt;I tried to find documentation but couldn&amp;#39;t, so I&amp;#39;ll point you to the source code:&lt;/p&gt;
&lt;p&gt;In ble_dfu_unbonded.c check function ble_dfu_buttonless_on_crtl_pt_write(). There is a command called DFU_OP_SET_ADV_NAME. I think this is used to specify the name that the device advertises when in bootloader mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding device identifier to BLE DFU application</title><link>https://devzone.nordicsemi.com/thread/285664?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 14:18:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc5ef0ef-c6f8-4153-ba5c-9af3179e080a</guid><dc:creator>Krzysztof Cieniawski</dc:creator><description>&lt;p&gt;Sigurd, unfortunately iOS doesn&amp;#39;t allow developers to obtain MAC address from advertising data. Device has to be identified in some other way e.g. adding custom field in manufacturer data. But does bootloader libraries allows customization advertising data without changes in code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding device identifier to BLE DFU application</title><link>https://devzone.nordicsemi.com/thread/285086?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 13:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06bca8d7-8ee2-4025-b416-f22bf211e64c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When the nRF52 device enters bootloader mode,&amp;nbsp;&lt;span&gt;the bootloader starts to advertise with MAC address incremented by 1, so from the phone&amp;#39;s perspective it&amp;#39;s a completely&amp;nbsp;new device. But if you know the old address, you only need to increment&amp;nbsp;that with 1 to know the new address.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can find our&amp;nbsp;&lt;span&gt;OTA DFU Library for Mac and iOS here:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library"&gt;https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding device identifier to BLE DFU application</title><link>https://devzone.nordicsemi.com/thread/283074?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 12:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b321ec1-ba31-454a-bc97-b78363bf8e2c</guid><dc:creator>Krzysztof Cieniawski</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I would like to identify nRF52 device from BLE central. Phone is sending request to device to enter DFU what cause the device to disconnect and reboot as DFU device. In case of two devices in DFU mode with same name Apple mobile is not able to recognize its device. I would like phone to recognize the device to which should it send new application.&lt;/p&gt;
&lt;p&gt;As far as I know DFU library doesn&amp;#39;t provide way to customize name per device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding device identifier to BLE DFU application</title><link>https://devzone.nordicsemi.com/thread/283068?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 12:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5995e0fd-7ec4-4570-8cd0-7b420cea8bf8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What device do you want to identify ?&lt;/p&gt;
&lt;p&gt;Do you want to identify the nRF52 device, from the BLE central(e.g.&amp;nbsp;a phone/computer) ?&lt;/p&gt;
&lt;p&gt;or do you want to&amp;nbsp;identify the BLE central(phone/computer), from the nRF52-device ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>