<?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>NRF9160: FOTA over BT SMP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71934/nrf9160-fota-over-bt-smp</link><description>Hello, In our current project we are using NRF9160 with NRF52811 as BT device over HCI. Firmware on NRF52811 is just Bluetooth: HCI UART example with pinmux changed to match our hardware. 
 I want to perform firmware upgrade of NRF9160 over BT. I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Apr 2021 10:16:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71934/nrf9160-fota-over-bt-smp" /><item><title>RE: NRF9160: FOTA over BT SMP</title><link>https://devzone.nordicsemi.com/thread/307417?ContentTypeID=1</link><pubDate>Thu, 29 Apr 2021 10:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eff6241-6803-4fd5-b36f-4ed7ff840cb4</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Could you share your application(s)? Such that&amp;nbsp;I have the exact same setup as you, and can try to reproduce it on my end.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160: FOTA over BT SMP</title><link>https://devzone.nordicsemi.com/thread/306753?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 10:41:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5019bcc-106d-4af3-9986-1b13fb0ea3ff</guid><dc:creator>k.szpila</dc:creator><description>&lt;p&gt;Thanks, its now working perfectly, although I have a question.&lt;br /&gt;&lt;br /&gt;In different project using NRF52 we have:&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace, &amp;#39;Droid Sans Fallback&amp;#39;;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_BT_L2CAP_TX_MTU&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=517&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_BT_L2CAP_RX_MTU&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=517&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_BT_RX_BUF_LEN&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=525&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;so image transfer will be faster.&lt;br /&gt;&lt;br /&gt;For NRF9160 this values were not working. Bootloader was yielding invalid image error.&lt;br /&gt;&lt;br /&gt;So I flashed NRF9160 with my application, and then tried to do FOTA over SMP using the same image,&lt;br /&gt;so images in both slots should be the same. Then I dumped to a file, flash region with both bootloader slots. In slot 1 (FOTA upgrage) there was a lot of mismatching bytes in random places, so image hash was different resulting in mentioned error.&lt;br /&gt;&lt;br /&gt;So my question is why this values works:&lt;/p&gt;
&lt;p&gt;```&lt;br /&gt;CONFIG_BT_L2CAP_TX_MTU=252&lt;br /&gt;CONFIG_BT_L2CAP_RX_MTU=252&lt;br /&gt;CONFIG_BT_RX_BUF_LEN=260&lt;br /&gt;```&lt;/p&gt;
&lt;p&gt;and how to determine bigger values that will also work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160: FOTA over BT SMP</title><link>https://devzone.nordicsemi.com/thread/303977?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 11:34:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:183116ce-c51a-4c97-a908-f61ad2031573</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Have you made any progress on this? There was some discussion internally about this, and it seems like you should work fine performing FOTA over SMP BT on the host (nrf9160) when the controller is on the nrf52840 (hci_uart or hci_lpuart). These are the configs you should add to support SMP BT FOTA:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_L2CAP_TX_MTU=252
CONFIG_BT_L2CAP_RX_MTU=252
CONFIG_BT_RX_BUF_LEN=260
# Add the immutable bootloader
CONFIG_SECURE_BOOT=y
# Add MCUBoot as second-stage BL
CONFIG_BOOTLOADER_MCUBOOT=y
# Add MCUMGR for DFU over BLE
CONFIG_MCUMGR=y
CONFIG_MCUMGR_CMD_OS_MGMT=y
CONFIG_MCUMGR_CMD_IMG_MGMT=y
CONFIG_MCUMGR_SMP_BT=y
# TODO: remove this, only for debug
CONFIG_MCUMGR_SMP_BT_AUTHEN=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t get it to work, could you try to share the application you&amp;#39;re working with (and LMK what ncs version you&amp;#39;re using), then I can try to do some debugging myself.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160: FOTA over BT SMP</title><link>https://devzone.nordicsemi.com/thread/302349?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 11:14:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91b2b3df-5e50-41c8-9e96-a7a580eec433</guid><dc:creator>k.szpila</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Sorry for a late replay. I have tried to use example of `ncs\nrf\samples\bluetooth\peripheral_uart` like in the link you provided. Unfortunately I could&amp;#39;nt make it work with HCI.&lt;br /&gt;&lt;br /&gt;We need HCI or some other way to use other BT services that our device is providing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160: FOTA over BT SMP</title><link>https://devzone.nordicsemi.com/thread/301397?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 11:16:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26502315-eb79-4657-bcf0-1f246363ffab</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Were the solutions I provided you with suficcient?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160: FOTA over BT SMP</title><link>https://devzone.nordicsemi.com/thread/298061?ContentTypeID=1</link><pubDate>Fri, 05 Mar 2021 12:40:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecceecc2-1828-4be8-af12-a671479d045f</guid><dc:creator>Simon</dc:creator><description>[quote user="k.szpila"]I wanted to use BLE over HCI because our device will also have other services, not only DFU. I not sure if I&amp;#39;m correct but it looks like I won&amp;#39;t be able to do that with the solution you proposed. Am I correct?[/quote]
&lt;p&gt;&amp;nbsp;I have not tested this actually, I will put off some time the next days and test it out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160: FOTA over BT SMP</title><link>https://devzone.nordicsemi.com/thread/296767?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 09:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b22acf8-8eae-456f-843f-5476d5dad045</guid><dc:creator>k.szpila</dc:creator><description>&lt;p&gt;HI, Simon.&lt;br /&gt;Sorry for a late replay. I will look at the proposed solution this week.&lt;br /&gt;&lt;br /&gt;I wanted to use BLE over HCI because our device will also have other services, not only DFU. I not sure if I&amp;#39;m correct but it looks like I won&amp;#39;t be able to do that with the solution you proposed. Am I correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160: FOTA over BT SMP</title><link>https://devzone.nordicsemi.com/thread/296346?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2021 15:46:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:779a2bd2-30cc-4469-9f44-ddfdf19ea47f</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Have you made any progress on this? A colleague have made some cross DFU projects, inluding a sample where an nRF52 chip updates the nRF9160 over BLE. Check it out here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/52_5F00_cross_5F00_dfu_2D00_master_4000_1ba2c6b7627.zip"&gt;devzone.nordicsemi.com/.../52_5F00_cross_5F00_dfu_2D00_master_4000_1ba2c6b7627.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, in these projects the nRF5 SDK (SDK 16.0) is used on the nRF52, not NCS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160: FOTA over BT SMP</title><link>https://devzone.nordicsemi.com/thread/295899?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 15:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09f39068-f106-448f-a1c9-2991366aa51d</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I have not tried to run the smp_svr on the nRF960 BLE Host, and not sure if it&amp;#39;s supported. However, is the solution in this thread:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/59186/nrf91-firmware-upgrade-over-ble/251577"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/59186/nrf91-firmware-upgrade-over-ble/251577&lt;/a&gt;&amp;nbsp;an option? If not I&amp;#39;ll look into your inital question.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll ask internally if we have any solutions for this, and the proper way of going about it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>