<?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>Master Control Panel DFU code uses device name instead of UUID for</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1475/master-control-panel-dfu-code-uses-device-name-instead-of-uuid-for</link><description>During testing I changed the device name in the DFU. After making the change the DFU client in the master control panel would no longer work. 
 Is it possible to make the master control panel select the device based on the custom UUID instead of the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 May 2014 19:13:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1475/master-control-panel-dfu-code-uses-device-name-instead-of-uuid-for" /><item><title>RE: Master Control Panel DFU code uses device name instead of UUID for</title><link>https://devzone.nordicsemi.com/thread/6595?ContentTypeID=1</link><pubDate>Fri, 09 May 2014 19:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66d6396b-25bb-4c8a-9676-d7788bc15df3</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;oh wait, never mind.  I see the DFU has changed, now it is necessary to discover services before DFU capability gets enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Master Control Panel DFU code uses device name instead of UUID for</title><link>https://devzone.nordicsemi.com/thread/6594?ContentTypeID=1</link><pubDate>Fri, 09 May 2014 19:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:952148de-8d49-47df-a4ab-fba88cb87581</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;This problem has resurfaced after updating to master control panel 3.6.0.  Can this get fixed in the next release please!?!?!?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Master Control Panel DFU code uses device name instead of UUID for</title><link>https://devzone.nordicsemi.com/thread/6593?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2014 04:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bea9a1a-4d35-497f-83ef-dc49e1365e3f</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;I confirmed that by editing master_emulator.py, I was able to make the dfu update work.&lt;/p&gt;
&lt;p&gt;Also very cool that the dfu is implemented as python scripts!  This has opened up a whole new level for my use of the master control panel!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Master Control Panel DFU code uses device name instead of UUID for</title><link>https://devzone.nordicsemi.com/thread/6592?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2014 10:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3cec67a-feeb-430a-adb6-9fc604d2ec03</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;You&amp;#39;re right, it will only evaluate what is in the advertising packet itself, not what&amp;#39;s in the scan response. I edited my answer above to explain how this can be changed, but I&amp;#39;ll also report it internally so that it can be fixed in a future release. Thanks for letting us know!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Master Control Panel DFU code uses device name instead of UUID for</title><link>https://devzone.nordicsemi.com/thread/6591?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2014 19:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9af10d2-8f61-4252-aa87-2ad1297e90fb</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;I notice in the successful log file that the &amp;quot;Device Discovery&amp;quot; completes with text:&lt;/p&gt;
&lt;p&gt;257;09:48:59.6837 [480105755][MainThread] [09:48:59.683] device CompleteLocalName &amp;#39;Dfu&amp;#39; address &amp;#39;FB1E9EDACE72&amp;#39;&lt;/p&gt;
&lt;p&gt;258;09:48:59.6887 [480105755][MainThread] [09:48:59.687] Found peer device&lt;/p&gt;
&lt;p&gt;259;09:48:59.7087 [480105755][MainThread] [09:48:59.708] [Emulator] Connecting&lt;/p&gt;
&lt;p&gt;The text &amp;quot;Found peer device&amp;quot; is never displayed in the failed log.&lt;/p&gt;
&lt;p&gt;It appears the &amp;quot;Device Discovery&amp;quot; mechanism is relying on the device name in the advertisement data.  Since the device name in my case was too long to fit in the advertisement data I have moved the device name into the scan response data.  Unfortunately with the 128-bit UUIDs there is very little space remaining for other data, therefore it is necessary to use the scan response fields.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Master Control Panel DFU code uses device name instead of UUID for</title><link>https://devzone.nordicsemi.com/thread/6590?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2014 19:06:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:897c86e9-e8e8-45f0-8f76-dbe21b20533f</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;I tested more today and better identified the problem.  First I agree this is NOT an issue with the name in the advertisement data.  However when I move the name to the scan response data the DFU upload fails.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m attaching a log of the failed update and a log with the successful update.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/mcp_5F00_with_5F00_sr_5F00_fail_5F00_log.txt"&gt;mcp_with_sr_fail_log.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/mcp_5F00_success_5F00_log.txt"&gt;mcp_success_log.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Master Control Panel DFU code uses device name instead of UUID for</title><link>https://devzone.nordicsemi.com/thread/6589?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2014 10:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afb78027-0794-4679-96f8-f2fe7fc1bac1</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I agree that this should work, and as far as I can see, this works as expected with the current Master Control Panel. When trying it, I&amp;#39;m able to use MCP to upload a new firmware to the device no matter what name it advertises with.&lt;/p&gt;
&lt;p&gt;Edit: The default implementation checks both the name and the address, and if both are not in the advertising packet, it will not work properly. However, you can actually change this by editing the files in lib/dfu/. The method you&amp;#39;re looking for is the _discover_peer_named() function in master_emulator.py, and the easiest way to fix this is actually to just not check the name at all, and just succeed if the address is correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>