<?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>“The handle is invalid“ error thrown right at the end of firmware upgrade</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118022/the-handle-is-invalid-error-thrown-right-at-the-end-of-firmware-upgrade</link><description>We have written a Flutter app, which uses the Flutter-nRF-Connect-Device-Manager package to perform firmware upgrades on bluetooth devices that the app bonds with. 
 If iOS users pair and bond with our bluetooth device and then perform a firmware upgrade</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Feb 2025 13:56:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118022/the-handle-is-invalid-error-thrown-right-at-the-end-of-firmware-upgrade" /><item><title>RE: “The handle is invalid“ error thrown right at the end of firmware upgrade</title><link>https://devzone.nordicsemi.com/thread/521326?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 13:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c1f335-7a17-4dc9-a036-cc13e25e7f64</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Did you see my suggestion below?&lt;/p&gt;
[quote user="Sigurd Hellesvik"]Agreed. Still, can you try the test only, just to debug this issue?[/quote]
&lt;p&gt;I suggest that you test this and let me know how this went before moving on to the attribute question&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: “The handle is invalid“ error thrown right at the end of firmware upgrade</title><link>https://devzone.nordicsemi.com/thread/520771?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 16:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caaee253-5103-4894-bd86-05fb384af4e4</guid><dc:creator>WesCJ</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;I was doing some more investigation into this issue today and I noticed that&amp;nbsp;&lt;span&gt;our firmware exposes a Service Changed characteristic under the &amp;quot;Generic Attribute&amp;quot; service.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20250130_2D00_152907_5F00_nRF-Connect-_2800_2_2900_.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, when I try to access that &amp;quot;Generic Attribute&amp;quot; service from inside the app code (see code below), I get null.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1738254944277v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Should the app be able to access this service? I&amp;#39;m wondering if the fact that the app can&amp;#39;t access this service is the reason why the app isn&amp;#39;t reacting to the Service Changed indications from that characteristic, resulting in the &amp;quot;handle is invalid&amp;quot; error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: “The handle is invalid“ error thrown right at the end of firmware upgrade</title><link>https://devzone.nordicsemi.com/thread/520410?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2025 15:20:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5842e3b2-66e2-4452-b13b-75cee8ba88ff</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="WesCJ"]Those are promising suggestions. However, I would ideally like to get to the bottom of why test&amp;amp;confirm isn&amp;#39;t working as expected, rather than avoid using it.[/quote]
&lt;p&gt;Agreed. Still, can you try the test only, just to debug this issue?&lt;/p&gt;
[quote user="WesCJ"]By &amp;quot;application&amp;quot;, do you mean the&amp;nbsp;&lt;span&gt;nRF Connect Device Manager app? If so, I didn&amp;#39;t change anything. I just ran the upgrade as instructed and that &amp;quot;handle is invalid&amp;quot; error came out when I tried reconnecting to the device.&lt;/span&gt;[/quote]
&lt;p&gt;I mean the application running on the nRF Chip. If the hash of the nRF chip firmware is the same, DFU will be aborted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: “The handle is invalid“ error thrown right at the end of firmware upgrade</title><link>https://devzone.nordicsemi.com/thread/520396?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2025 14:42:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f80ccb6-572e-4e3f-a3d4-30171d2b6a44</guid><dc:creator>WesCJ</dc:creator><description>&lt;p&gt;Thanks for your replies.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/118022/the-handle-is-invalid-error-thrown-right-at-the-end-of-firmware-upgrade/519737"]You can do &amp;quot;test only&amp;quot; and then manually &amp;quot;confirm&amp;quot; after the swap is done.&lt;br /&gt;As an alternative you can also confirm from the application, if you prefer to do local tests.[/quote]
&lt;p&gt;Those are promising suggestions. However, I would ideally like to get to the bottom of why test&amp;amp;confirm isn&amp;#39;t working as expected, rather than avoid using it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/118022/the-handle-is-invalid-error-thrown-right-at-the-end-of-firmware-upgrade/519737"]What did you change in the application for this test DFU?[/quote]
&lt;p&gt;By &amp;quot;application&amp;quot;, do you mean the&amp;nbsp;&lt;span&gt;nRF Connect Device Manager app? If so, I didn&amp;#39;t change anything. I just ran the upgrade as instructed and that &amp;quot;handle is invalid&amp;quot; error came out when I tried reconnecting to the device.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: “The handle is invalid“ error thrown right at the end of firmware upgrade</title><link>https://devzone.nordicsemi.com/thread/519737?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 11:49:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d5c688b-c93f-4926-82ab-38524ebb4987</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will continue to help with this ticket.&lt;/p&gt;
[quote user="WesCJ"]We need around 70 seconds for the swap to complete, which means the nRF app always times ou[/quote]
&lt;p&gt;This is is you choose test&amp;amp;confirm.&lt;/p&gt;
&lt;p&gt;You can do &amp;quot;test only&amp;quot; and then manually &amp;quot;confirm&amp;quot; after the swap is done.&lt;br /&gt;As an alternative you can also confirm from the application, if you prefer to do local tests.&lt;/p&gt;
[quote user="WesCJ"]&amp;quot;The handle is invalid&amp;quot;[/quote]
&lt;p&gt;What did you change in the application for this test DFU?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: “The handle is invalid“ error thrown right at the end of firmware upgrade</title><link>https://devzone.nordicsemi.com/thread/518720?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2025 18:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a527dc-1cfe-43bb-9e87-2115f7330ef9</guid><dc:creator>WesCJ</dc:creator><description>&lt;p&gt;Hi Charlie, I downloaded the nRF Connect Device Manager app and tried using it to upgrade the firmware on our device. Unfortunately the maximum swap time that the app can be configured to wait before confirming is 40 seconds. We need around 70 seconds for the swap to complete, which means the nRF app always times out.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_0082.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Interestingly, when our bluetooth device does finally reboot and I try to pair with&amp;nbsp;it from the nRF Connect Device Manager app again, I get a response which says &amp;quot;The handle is invalid&amp;quot; i.e. the same error message I initially raised this ticket about.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5228.IMG_5F00_0083.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Does that provide any&amp;nbsp;insight into what might be causing this issue?&lt;br /&gt;&lt;br /&gt;Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: “The handle is invalid“ error thrown right at the end of firmware upgrade</title><link>https://devzone.nordicsemi.com/thread/518507?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 18:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73fea161-e7a6-43df-a300-a974eed4f68b</guid><dc:creator>WesCJ</dc:creator><description>&lt;p&gt;Hi Charlie, thanks for your reply. I will try that tomorrow and let you know how it goes. Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: “The handle is invalid“ error thrown right at the end of firmware upgrade</title><link>https://devzone.nordicsemi.com/thread/518454?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 13:53:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36b01644-043d-4041-9f4c-faa0bea6fd31</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;If this app works as expected, you can refer to its source code to learn more about the DFU implementation.&lt;/p&gt;
&lt;p&gt;You can find a summary of related resources from our app developer in the following link:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/107707/how-to-integrate-the-hardware-upgrade-sdk-on-the-app/466014"&gt;RE: How to integrate the hardware upgrade sdk on the App？&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: “The handle is invalid“ error thrown right at the end of firmware upgrade</title><link>https://devzone.nordicsemi.com/thread/518407?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 10:07:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ace6077-2d57-4eb2-9c39-0657747b8aa9</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried using the &amp;nbsp;&lt;a href="https://apps.apple.com/us/app/nrf-connect-device-manager/id1519423539"&gt;nRF Connect Device Manager on the App&amp;nbsp;Store &lt;/a&gt;&amp;nbsp;available on the App Store? It’s the app currently under active maintenance, and we recommend it for developers.&lt;/p&gt;
&lt;p&gt;Let me know the test result and we can have further discussion.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>