<?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>9160modem delta update issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116636/9160modem-delta-update-issue</link><description>My NCS version is 2.6.1, and the modem firmware version is 1.3.6 
 I found that delta upgrade often fails when testing the firmware of FOTA upgrade modem for 9160. Currently, I have discovered that there are some issues with the dfu_target _offset_get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Dec 2024 01:25:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116636/9160modem-delta-update-issue" /><item><title>RE: 9160modem delta update issue</title><link>https://devzone.nordicsemi.com/thread/513938?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 01:25:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7df89373-cbe0-446d-b42e-6fd1eed5db80</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;Okay, I&amp;#39;ll try using the log module when I have time and get back to you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160modem delta update issue</title><link>https://devzone.nordicsemi.com/thread/513809?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2024 10:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c4114c2-eb0c-4336-8f04-733b94d4136d</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;span&gt;The download will be aborted if there is an error on receive and then it has to be restarted. That is expected. If the download is in progress (with an offset returned by modem), fota_download will cancel the current download and start a new one from the given offset. If the offset is actually zero because it has already been erased, it will continue and if the offset is dirty (0x280000) it must be erased first. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It could be that there is a log synchronization issue in your terminal output. It looks like some lines are using logging module while others use printk().&amp;nbsp;&lt;span&gt;The offset is read in &lt;/span&gt;&lt;span&gt;dfu_target_modem_delta_init() and if it is dirty, the area will be erased. Then &lt;/span&gt;&lt;span&gt;dfu_target_offset_get() is called in the download_client_callback &lt;/span&gt;&lt;span&gt;which will return 0 and then 452 after first write. Can you try to use logging module for all logs (and not mix it with printk())? You could also add logs for all offsets reported by calls to nrf_modem_delta_dfu_offset() in dfu_target_modem_delta.c. This might show different behavior.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160modem delta update issue</title><link>https://devzone.nordicsemi.com/thread/513534?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 01:55:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a06725c6-17cf-42d8-b036-5b89912152fc</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;hi dejans&lt;/p&gt;
&lt;p&gt;Is there any new progress on this issue？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160modem delta update issue</title><link>https://devzone.nordicsemi.com/thread/512474?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2024 01:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98fb4eb5-d149-4c20-8473-f37112566bf4</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;ok thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160modem delta update issue</title><link>https://devzone.nordicsemi.com/thread/512377?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 13:36:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c40223c3-9fda-4cbf-9a53-6b50d2132fdf</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;We will investigate this issue. I will get back to you with status update by the end of next week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160modem delta update issue</title><link>https://devzone.nordicsemi.com/thread/512239?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 01:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4554dee-ffd2-439b-b2e2-f7233440e9f4</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;Full update requires pressing two buttons, while delta update uses the same button.&lt;/p&gt;
&lt;p&gt;You probably didn&amp;#39;t understand what I meant&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160modem delta update issue</title><link>https://devzone.nordicsemi.com/thread/512093?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 12:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6575ca3a-3ad1-4b4f-82b2-5be39a70b5a6</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/cellular/http_update/modem_delta_update/README.html#testing"&gt;Testing&lt;/a&gt;&amp;nbsp;section of the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/cellular/http_update/modem_delta_update/README.html"&gt;modem delta update&lt;/a&gt;&amp;nbsp;sample&amp;nbsp;provides information about 2 button presses, first to start downloading delta modem firmware and second to apply the update.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160modem delta update issue</title><link>https://devzone.nordicsemi.com/thread/511811?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 07:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:857c04c7-a26c-446a-ab43-f016a3dbf3f2</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;I just upgraded NCS to 2.8.0 and created a brand new modem delta update example based on 2.8.0. In it, I only modified the server address and file name, and everything else was the default code. I still encounter the same problem in this version&lt;/p&gt;
&lt;p&gt;Here is a complete serial port output information&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/_014F1A4EAE5FE14F2A62FE565F00_17325162968618.png" /&gt;&lt;/p&gt;
&lt;p&gt;In the figure, it can be seen that when I pressed the button for the first time, 9160 connected to my server and downloaded the first 2k sized segment with an offset of 0, but still prompted me to delete the modem firmware. After the deletion was completed, the download client returned an error and prompted me to press the button again to download. At this moment, I pressed the button for the second time and the output message showed that I was connecting to the server. However, after a few seconds, the LTE network was disconnected. After waiting for a while, the output message showed that 9160 downloaded the first 2k segment from my server again and paused the download. Then, it read an offset of 452 from the DFU and continued to download firmware from the server using this offset. At this point, waiting for the download to complete will result in a successful update&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is an example of a modem full update based on version 2.8.0. I only need to press the button once to download and update normally, and the offset value is also normal, not 452 or anything else&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/_1C64D772D89A1F904F6DC88968562A62FE56_20241125145958.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160modem delta update issue</title><link>https://devzone.nordicsemi.com/thread/511801?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 01:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12f653aa-21d4-418a-8727-b19cd069f465</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;In the &lt;span data-slate-fragment="JTVCJTdCJTIydHlwZSUyMiUzQSUyMnBhcmFncmFwaCUyMiUyQyUyMmNoaWxkcmVuJTIyJTNBJTVCJTdCJTIyaWQlMjIlM0ElMjIwajVyVllSRzV2JTIyJTJDJTIycGFyYUlkeCUyMiUzQTAlMkMlMjJzcmMlMjIlM0ElMjIlRTUlOUMlQThmb3RhX2Rvd25sb2FkLmMlRTclOUElODRkb3dubG9hZF93aXRoX29mZnNldCVFNCVCOCVBRCVFRiVCQyU4QyVFNCVCOSU5RiVFNyU5NCVBOCVFNSU4OCVCMCVFNCVCQSU4NmRmdV90YXJnZXRfb2Zmc2V0X2dldCVFOCVBRiVCQiVFNSU4RiU5NiVFNSU4MSU4RiVFNyVBNyVCQiVFOSU4NyU4RiVFNiU5RCVBNSVFNCVCQiU4RSVFNCVCOCU4QSVFNiVBQyVBMSVFNCVCOCVBRCVFNiU5NiVBRCVFNyU5QSU4NCVFNCVCRCU4RCVFNyVCRCVBRSVFNyVCQiVBNyVFNyVCQiVBRCVFOCVCRiU5QiVFOCVBMSU4QyVFNiU5QiVCNCVFNiU5NiVCMCVFRiVCQyU4QyVFOCU4MCU4QyVFNCVCOCU4RCVFNiU5OCVBRiVFNyU5QiVCNCVFNiU4RSVBNSVFNCVCQiU4RSVFNSVBNCVCNCVFNSVCQyU4MCVFNSVBNyU4QiVFRiVCQyU5RiUyMiUyQyUyMmRzdCUyMiUzQSUyMkluJTIwdGhlJTIwZG93bmxvYWR3X2l0aF9vZmZzZXQlMjBvZiUyMGZvdGFfcm93bmxvYWQuJTIwYyUyQyUyMGRmdV90YXJnZXRfb2Zmc2V0X2dldCUyMGlzJTIwY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FNCVCQiU4RSVFNSVBNCVCNCVFNSVCQyU4MCVFNSVBNyU4QiVFRiVCQyU5RiUyMiUyQyUyMmRzdCUyMiUzQSUyMkluJTIwdGhlJTIwZG93bmxvYWR3X2l0aF9vZmZzZXQlMjBvZiUyMGZvdGFfcm93bmxvYWQuJTIwYyUyQyUyMGRmdV90YXJnZXRfb2Zmc2V0X2dldCUyMGlzJTIwYWxzbyUyMHVzZWQlMjB0byUyMHJlYWQlMjB0aGUlMjBvZmZzZXQlMjB0byUyMGNvbnRpbnVlJTIwdXBkYXRpbmclMjBmcm9tJTIwdGhlJTIwbGFzdCUyMGludGVycnVwdGVkJTIwcG9zaXRpb24lMkMlMjBpbnN0ZWFkJTIwb2YlMjBzdGFydGluZyUyMGZyb20lMjBzY3JhdGNoJTNGJTIyJTJDJTIybWV0YWRhdGElMjIlM0ElMjIlMjIlMkMlMjJtZXRhRGF0YSUyMiUzQSU1QiU1RCUyQyUyMnRleHQlMjIlM0ElMjJmb3RhX2Rvd25sb2FkJTIyJTdEJTVEJTdEJTVE"&gt;fota_download&lt;/span&gt;. c, dfu_target_offset_get is also used to read the offset to continue updating from the last interrupted position, instead of starting from scratch?&lt;/p&gt;
&lt;p&gt;In addition, in the delta update, the offset is also read at the beginning of the dfu. The read offset should have been 0, but it was read as a different value. Therefore, in &lt;span data-slate-fragment="JTVCJTdCJTIydHlwZSUyMiUzQSUyMnBhcmFncmFwaCUyMiUyQyUyMmNoaWxkcmVuJTIyJTNBJTVCJTdCJTIyaWQlMjIlM0ElMjJZOTVkQmpCTHFrJTIyJTJDJTIycGFyYUlkeCUyMiUzQTAlMkMlMjJzcmMlMjIlM0ElMjIlRTUlOEYlQTYlRTUlQTQlOTYlRUYlQkMlOEMlRTUlOUMlQThkZWx0YSVFNiU5QiVCNCVFNiU5NiVCMCVFNCVCOCVBRCVFRiVCQyU4QyVFNSU5MCU4QyVFNiVBMCVCNyVFNiU5OCVBRiVFNSU5QyVBOGRmdSVFNSVCQyU4MCVFN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update was not completed, but in fact, there was no previous update, which caused an error to enter the process shown in the figure below. Can you help me try to see if this problem can be reproduced？&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/_1C64D772D89A1F904F6DC88968562A62FE56_20241125095549.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160modem delta update issue</title><link>https://devzone.nordicsemi.com/thread/511718?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2024 15:35:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:732a822e-474c-407a-93fd-0ac535fa0598</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Why do the values obtained by using dfu_target_offset_get in two different update methods differ?[/quote]
&lt;p&gt;&lt;span&gt;The offset should only be used when the application begins the DFU process. If the offset is non-zero the application can resume from that offset. If it is zero the application begins from scratch. The values of offset during the DFU process are opaque to the application. The application does not need to inspect offset value or care about it during the DFU process.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>