<?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>Modem firmware updates via serial interface</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96634/modem-firmware-updates-via-serial-interface</link><description>Good day 
 We are currently working with the nrf9160 and using it as a serial modem via AT commands by loading the serial_lte_modem application. I am currently investigating the implementation of modem firmware updates (the zip package) in the field and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Mar 2023 12:36:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96634/modem-firmware-updates-via-serial-interface" /><item><title>RE: Modem firmware updates via serial interface</title><link>https://devzone.nordicsemi.com/thread/413249?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 12:36:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86b12f02-c3d9-41ef-be6b-62caef8433f0</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Johan,&lt;/p&gt;
&lt;p&gt;I am not able to understand what you mean by broken interface.&lt;/p&gt;
&lt;p&gt;After building, I flashed the sample with the same configurations, and I am able to send AT commands and receive response.&lt;/p&gt;
&lt;p&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/pastedimage1677846883690v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Let me know if we are on the same page.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem firmware updates via serial interface</title><link>https://devzone.nordicsemi.com/thread/412270?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2023 12:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebe5e456-8f55-4568-84ae-d92459a2ae5c</guid><dc:creator>Johan-Henry</dc:creator><description>&lt;p&gt;Thanks Naeem.&lt;/p&gt;
&lt;p&gt;Yes, by adding&amp;nbsp;CONFIG_UART_0_INTERRUPT_DRIVEN=n the solution compiles now, but the AT command interface is broken and the modem does not respond to the serial AT commands.&amp;nbsp;Is there any way to get upgrades over serial working without breaking the AT command interface?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Johan-Henry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem firmware updates via serial interface</title><link>https://devzone.nordicsemi.com/thread/411960?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 12:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e5d0cf0-10a9-4ba2-81f5-7f06c7625ab8</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Johan,&lt;/p&gt;
&lt;p&gt;Please add following lines at the end of your proj.conf and do a pristine build.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_UART_0_INTERRUPT_DRIVEN=n
CONFIG_MCUMGR_SMP_UART=y
CONFIG_MCUMGR=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&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/pastedimage1677242267368v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem firmware updates via serial interface</title><link>https://devzone.nordicsemi.com/thread/410433?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 15:27:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:983ab227-29db-4e4c-a8cf-60d529bbc622</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Johan,&lt;/p&gt;
&lt;p&gt;I see it now.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will look into it and will update you accordingly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem firmware updates via serial interface</title><link>https://devzone.nordicsemi.com/thread/410421?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 15:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79eb2b83-1195-4230-906a-b7336fe625f6</guid><dc:creator>Johan-Henry</dc:creator><description>&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/mcu.png" /&gt;&lt;/p&gt;
&lt;p&gt;Just adding CONFIG_MCUMGR_SMP_UART=y does not achieve anything according to this error message as it has other dependencies. If I add&amp;nbsp;&lt;span&gt;CONFIG_MCUMGR&lt;/span&gt;&lt;span&gt;=y as well the build fails&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem firmware updates via serial interface</title><link>https://devzone.nordicsemi.com/thread/410415?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 14:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:559229a6-25a7-4012-bf9c-676d2dbd4d47</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Johan, I forgot to mention that I built it for nCS v2.0.0.&lt;/p&gt;
&lt;p&gt;I just created new free-standing application and chose serial-lte-modem application.&lt;/p&gt;
&lt;p&gt;First built it for the 9160DK (ns). Next, added:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_MCUMGR_SMP_UART=y&lt;/pre&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;to the prj.conf, and did the pristine build.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem firmware updates via serial interface</title><link>https://devzone.nordicsemi.com/thread/410398?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 14:29:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a6ba99e-2ee7-4ec1-b862-20282b955b24</guid><dc:creator>Johan-Henry</dc:creator><description>&lt;p&gt;Hi Naeem&lt;/p&gt;
[quote userid="119245" url="~/f/nordic-q-a/96634/modem-firmware-updates-via-serial-interface/410393"]I just added this configuration in the serial lte modem app and was able to compile correctly.[/quote]
&lt;p&gt;That is good news, I was not able to get&amp;nbsp;the serial lte modem&amp;nbsp;to compile when I added the&amp;nbsp;&lt;strong&gt;fmfu_smp_svr&amp;nbsp;&amp;nbsp;&lt;/strong&gt;configuration in prj.conf file. I am using v2.2.99-dev3. Is there a possibility that you can send the prj.conf file for the serial lte modem with SMP activated so that I can test please? That would be exactly what I require.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem firmware updates via serial interface</title><link>https://devzone.nordicsemi.com/thread/410393?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 14:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af047b5e-ffd3-4290-b27e-3f00c5d31917</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Johan,&lt;/p&gt;
&lt;p&gt;Yes you are right that XFOTA would download the target image from the url.&lt;/p&gt;
&lt;p&gt;I was also thinking to refer you to &lt;strong&gt;fmfu_smp_svr&lt;/strong&gt; sample.&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;quot;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;can not activate in serial_lte_modem application&lt;/span&gt;&amp;quot;?&lt;/p&gt;
&lt;p&gt;I just added this configuration in the serial lte modem app and was able to compile correctly.&lt;/p&gt;
&lt;p&gt;Also, what do you mean by &amp;quot;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;interfere with the at command parser&lt;/span&gt;&amp;quot;?&lt;/p&gt;
&lt;p&gt;What interference or error you are getting?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also,&lt;/p&gt;
&lt;p&gt;we can see from the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/working_with_nrf/nrf91/nrf91_features.html#lte-modem:~:text=A%20delta%20patch%20can%20only%20upgrade%20the%20modem%20firmware%20from%20one%20specific%20version%20to%20another%20version%20(for%20example%2C%20v1.2.1%20to%20v1.2.2).%20If%20you%20need%20to%20perform%20a%20major%20version%20update%20(for%20example%2C%20v1.2.x%20to%20v1.3.x)%2C%20you%20need%20an%20external%20flash%20with%20a%20minimum%20size%20of%204%20MB."&gt;documentation &lt;/a&gt;of nrf9160, that:&lt;/p&gt;
&lt;p&gt;A full modem firmware upgrade requires external flash.&lt;/p&gt;
&lt;p&gt;Also (on the same page), full-upgrade (using wired connection) uses SMP protocol to provide interface over UART and enables the device to perform the update.&amp;nbsp;The same protocol is used in &lt;strong&gt;fmfu_smp_svr&lt;/strong&gt; sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem firmware updates via serial interface</title><link>https://devzone.nordicsemi.com/thread/409897?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 14:44:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6081612-fd62-42b4-979c-a5fd907fe971</guid><dc:creator>Johan-Henry</dc:creator><description>&lt;p&gt;Hi Naeem, thanks for your reply.&lt;/p&gt;
&lt;p&gt;As explained in the first post, I would like to upgrade the modem firmware over the nrf9160&amp;#39;s serial uart interface. XFOTA cannot do that as far as I understand, it can only download&amp;nbsp;binaries via http or am I wrong? Is there perhaps another way to use XFOTA to upgrade the modem firmware over serial uart without first storing the image on external flash? I do not want to add external flash to our product just for firmware updates if possible.&lt;/p&gt;
&lt;p&gt;The fmfu_smp_svr sample seems to demonstrate what I would like to do, however it uses the CONFIG_MCUMGR_SMP_UART=y option which I cannot activate in the&amp;nbsp;serial_lte_modem application as it seems to interfere with the at command parser of &lt;span&gt;serial_lte_modem&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Do you have any suggestions for me to try?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem firmware updates via serial interface</title><link>https://devzone.nordicsemi.com/thread/409892?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 14:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c0ce1c8-dd5d-4ce0-a4fc-1c9d153882ec</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Johan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]but it seems that this implementation cannot co-exist with the serial_lte_modem application[/quote]
&lt;p&gt;What do you mean by that?&lt;/p&gt;
&lt;p&gt;Our serial_lte_modem application uses &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;FOTA Download&lt;/span&gt; and &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;Download client&lt;/span&gt; libraries along with other nCS libraries.&lt;/p&gt;
&lt;p&gt;Moreover, &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;serial_lte_modem&lt;/span&gt; (application) accepts both modem-specific AT commands and our proprietary AT commands.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Creating / designing a new AT command is at your discretion. However, XFOTA command from &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/FOTA_AT_commands.html#fota-request-xfota"&gt;SLM-specific AT commands&lt;/a&gt; provides functionality for different types of FOTA requests. I hope it will be helpful.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem firmware updates via serial interface</title><link>https://devzone.nordicsemi.com/thread/409858?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 12:43:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e137e4e6-9e11-422f-91f0-fc7b658374c5</guid><dc:creator>Johan-Henry</dc:creator><description>&lt;p&gt;Some updates on my initial investigation, it seems the slm_at_host.c file provides a enter_datamode function. Would it be feasible to create a new at command to enable the datamode from where the&amp;nbsp;fmfu serial packets can be handled similar to what is done in&amp;nbsp;fmfu_firmware_upload?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>