<?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>BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65262/ble-mesh-and-fota-upgrade</link><description>I am working with nRF Connect SDK using an nRF52840 DK. And I want to realise both BLE mesh and FOTA upgrade. FOTA upgrade example SMP Server Sample works properly for Bluetooth Low Energy (without any mesh). And now I want to integrate this FOTA upgrade</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Oct 2020 15:09:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65262/ble-mesh-and-fota-upgrade" /><item><title>RE: BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/thread/274399?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 15:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8025ff18-2f4c-4128-8ce8-62e38329abb3</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;For the problem with the &amp;quot;Failed to stop advertsing&amp;quot; error. Its seem to be false alarm. It just the Mesh trying to stop the advertising when it is already stopped. Nothing is actually going wrong here.&lt;/p&gt;
&lt;p&gt;As for the problem with the firmware reverting back. The problem occurs when you don&amp;#39;t confirm the image when you boot up. You need to call boot_write_img_confirmed() in main to confirm that the update went well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/thread/272079?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 13:29:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2211ba4f-44b2-4ce7-bff5-f9d64b21cb9f</guid><dc:creator>RAlexeev</dc:creator><description>&lt;p&gt;Mttrinh, thanks again for your assistance!&lt;/p&gt;
&lt;p&gt;I attempted to merge SMP Server sample and Bluetooth Mesh sample and I faced another trouble.&lt;br /&gt;&lt;br /&gt;When I comment out &lt;strong&gt;CONFIG_NVS=y&lt;/strong&gt; then I have such kind of errors after running a firmware:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:01.334,686] &amp;lt;err&amp;gt; fs: fs_mkdir:mount point not found!!
[00:00:01.334,686] &amp;lt;err&amp;gt; bt_settings: settings_subsys_init failed (err -2)
[00:00:01.334,716] &amp;lt;err&amp;gt; smp_bt_sample: Bluetooth init failed (err -2)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;When I comment out &lt;strong&gt;CONFIG_FILE_SYSTEM_LITTLEFS=y&lt;/strong&gt; and &lt;strong&gt;CONFIG_MCUMGR_CMD_FS_MGMT=y&lt;/strong&gt; then the firmware works and I can upgrade it, using nRF Connect for Mobile.&lt;br /&gt;After running I have such kind of logs:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.004,821] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader
[00:00:00.011,169] &amp;lt;inf&amp;gt; mcuboot: Primary image: magic=good, swap_type=0x4, copy_done=0x1, image_ok=0x1
[00:00:00.021,362] &amp;lt;inf&amp;gt; mcuboot: Boot source: none
[00:00:00.027,008] &amp;lt;inf&amp;gt; mcuboot: Swap type: none
[00:00:00.367,919] &amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0xc000
[00:00:00.375,823] &amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot
...&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;After upgrading a new firmware I have further logs:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.004,821] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader
[00:00:00.011,230] &amp;lt;inf&amp;gt; mcuboot: Primary image: magic=good, swap_type=0x4, copy_done=0x1, image_ok=0x1
[00:00:00.021,484] &amp;lt;inf&amp;gt; mcuboot: Boot source: none
[00:00:00.027,130] &amp;lt;inf&amp;gt; mcuboot: Swap type: test
[00:00:24.306,457] &amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0xc000
[00:00:24.314,331] &amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot
...&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And after pressing a button on an nRF52840 DK to reboot a microcontroller I have the firmware reverting back to the initial one before upgrading:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.004,760] &amp;lt;inf&amp;gt; mcuboot: Starting bootloader
[00:00:00.011,199] &amp;lt;inf&amp;gt; mcuboot: Primary image: magic=good, swap_type=0x2, copy_done=0x1, image_ok=0x3
[00:00:00.021,423] &amp;lt;inf&amp;gt; mcuboot: Boot source: none
[00:00:00.027,069] &amp;lt;inf&amp;gt; mcuboot: Swap type: revert
[00:00:00.368,133] &amp;lt;inf&amp;gt; mcuboot: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[00:00:24.396,881] &amp;lt;inf&amp;gt; mcuboot: Bootloader chainload address offset: 0xc000
[00:00:24.404,785] &amp;lt;inf&amp;gt; mcuboot: Jumping to the first image slot
...&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And it&amp;#39;s again the initial firmware.&lt;br /&gt;&lt;br /&gt;And if I comment out neither &lt;strong&gt;CONFIG_NVS=y&lt;/strong&gt;, nor &lt;strong&gt;CONFIG_FILE_SYSTEM_LITTLEFS=y&lt;/strong&gt; and &lt;strong&gt;CONFIG_MCUMGR_CMD_FS_MGMT=y&lt;/strong&gt;, then I have a compilation error here:&lt;br /&gt;&lt;a title="https://github.com/nrfconnect/sdk-nrf/blob/master/include/flash_map_pm.h#L28-L30" href="https://github.com/nrfconnect/sdk-nrf/blob/master/include/flash_map_pm.h#L28-L30" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/include/flash_map_pm.h#L28-L30&lt;/a&gt;&amp;nbsp;&lt;br /&gt;So, I want to ask you how to better resolve using &lt;strong&gt;CONFIG_SETTINGS_NVS&lt;/strong&gt; and &lt;strong&gt;CONFIG_FILE_SYSTEM_LITTLEFS&lt;/strong&gt; together? Why is it not supported together?&lt;br /&gt;&lt;br /&gt;If to look commits&amp;#39; history, then I can see that in&amp;nbsp;&lt;a title="https://github.com/zephyrproject-rtos/zephyr/commit/e104741b7c11c1299de8916c82754c2fe3bca768#diff-64329b5caa58c4edd14c062478eb9029" href="https://github.com/zephyrproject-rtos/zephyr/commit/e104741b7c11c1299de8916c82754c2fe3bca768#diff-64329b5caa58c4edd14c062478eb9029" rel="noopener noreferrer" target="_blank"&gt;https://github.com/zephyrproject-rtos/zephyr/commit/e104741b7c11c1299de8916c82754c2fe3bca768#diff-64329b5caa58c4edd14c062478eb9029&lt;/a&gt; commit LittleFS started to use instead of NFFS. But at the same time, it&amp;#39;s not supported with CONFIG_SETTINGS_NVS, judging by &lt;a title="https://github.com/nrfconnect/sdk-nrf/blob/master/include/flash_map_pm.h#L28-L30" href="https://github.com/nrfconnect/sdk-nrf/blob/master/include/flash_map_pm.h#L28-L30" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/include/flash_map_pm.h#L28-L30&lt;/a&gt;. So, please, tell me, how is it better to fix?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/thread/271207?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 00:54:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcec5972-7a01-4f4a-97df-3335b67bc9e8</guid><dc:creator>RAlexeev</dc:creator><description>&lt;p&gt;Thank you for your response!&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know why I decided to put NULL as an argument, it seems that I did it reading about bt_conn_auth_cb_register() function. Many thanks for these notes. I fixed everything.&lt;br /&gt;&lt;br /&gt;Also, I&amp;#39;ve found another error. I called this function bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0);&amp;nbsp; which included BT_LE_ADV_OPT_USE_NAME in advertising parameters, whereas &amp;quot;ad&amp;quot; argument also contained device name. So I had to choose between using a setting device name explicitly in &amp;quot;ad&amp;quot; structure and calling bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), NULL, 0); and calling bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0); where &amp;quot;ad&amp;quot; structure doesn&amp;#39;t contain the device name.&lt;br /&gt;&lt;br /&gt;It seems that now I have the only error, which I described before also. bt_le_adv_stop() returns success, but at the same time there&amp;#39;re errors in logs:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/adv_5F00_stop_5F00_err.txt"&gt;devzone.nordicsemi.com/.../adv_5F00_stop_5F00_err.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/thread/271160?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 15:38:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80f83c43-02e7-414e-8310-2c5a77e8dc36</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Response from the team:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Looks like his crash comes from this call in ble_stop():&amp;nbsp;&lt;tt&gt;bt_conn_cb_register(NULL);&lt;/tt&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;NULL is not a valid parameter for this function. As far as I know, you can&amp;#39;t unregister the conn_cb, and you definitely shouldn&amp;#39;t register the same handler multiple times.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Instead, he should register the handler in bt_ready().&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Other than this, what he&amp;#39;s doing looks correct. We will try test this internally.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/thread/270847?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 12:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc56db5a-fd07-4874-b195-d9c88f630ebb</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late response.&lt;/p&gt;
&lt;p&gt;I have forwarded this to our team to have a look at. I will update you when I get a response from the team.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/thread/270621?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 13:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b450222-dbf6-4add-820d-e2c28b4a2681</guid><dc:creator>RAlexeev</dc:creator><description>&lt;p&gt;Hi Mttrinh!&lt;/p&gt;
&lt;p&gt;Do you have any suggestions on how to cope with described problems? I need to turn BLE mesh off and initiate FOTA over Bluetooth Low Energy. And I need to have an ability to switch back to BLE mesh in the case of absence of any upgrade. I thought that it&amp;#39;s a routine task, which has to be already implemented. However, there&amp;#39;re so many troubles. Can you specify the root of errors, which I listed earlier to you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/thread/269499?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 04:14:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24d288e7-92ec-4e8b-bc13-ddb76228401b</guid><dc:creator>RAlexeev</dc:creator><description>&lt;p&gt;I tried the proposed solutions. But unfortunately, they also don&amp;#39;t work and it outputs the same errors and even some others.&lt;br /&gt;I wrote a simplified example, which switches between BLE mesh and usual BLE, to demonstrate my problem. I built it both with nRF Connect SDK v1.3.0 and master branch. The example is consisted of BLE mesh network, running initially, and pressing a button 1 on an nRF52840 DK you can stop BLE mesh and start usual BLE and vice versa.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/56767.main.c"&gt;devzone.nordicsemi.com/.../56767.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/model_5F00_handler.c"&gt;devzone.nordicsemi.com/.../model_5F00_handler.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And you can find the whole project here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/example.zip"&gt;devzone.nordicsemi.com/.../example.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Run the nRF52840 DK.&lt;br /&gt;Let&amp;#39;s consider the first case when BLE mesh node is not provisioned.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1.txt"&gt;devzone.nordicsemi.com/.../1.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Initially, everything seems fine, BLE mesh started. You can provision the node using the nRF Mesh mobile app. And you can connect and disconnect.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2.txt"&gt;devzone.nordicsemi.com/.../2.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Okay, the next step is that you disconnect from the node and press a button 1 to change a BLE mode. You can see that node is suspended, but advertising hasn&amp;#39;t started.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3.txt"&gt;devzone.nordicsemi.com/.../3.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You press the button 1 again to get it back to BLE mesh mode.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4.txt"&gt;devzone.nordicsemi.com/.../4.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Everything has worked without any errors. So, now you try to connect to this BLE mesh node from the nRF Mesh mobile app (Android).&lt;br /&gt;&lt;br /&gt;In the case of a master branch, I have such assertion and fatal error:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5.txt"&gt;devzone.nordicsemi.com/.../5.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In the case of v1.3.0, I just can&amp;#39;t connect to the node. It tried to connect the first time, but without any result and after it the node is not scannable from the app.&lt;br /&gt;&lt;br /&gt;But if try to connect to the node from the nRF Connect for Mobile (Android), then it connects fine without fatal error and rebooting. But it generates another error permanently:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6.txt"&gt;devzone.nordicsemi.com/.../6.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another way, start from the beginning. You don&amp;#39;t provision the node at all and it&amp;#39;s unprovisioned. And after flashing and running the node, you merely press the button 1 to switch to normal BLE.&lt;br /&gt;Initial output is the same:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7.txt"&gt;devzone.nordicsemi.com/.../7.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You press the button 1:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8.txt"&gt;devzone.nordicsemi.com/.../8.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can see errors, which I mentioned in my previous messages. And BLE advertisement doesn&amp;#39;t work.&lt;br /&gt;After it you press the button 1 again to get it back to BLE mesh mode:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/9.txt"&gt;devzone.nordicsemi.com/.../9.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And you try to add the node in the nRF Mesh mobile app (Android).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the case of the master branch, I have such assertion and fatal error:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/10.txt"&gt;devzone.nordicsemi.com/.../10.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And in the case of v1.3.0, the nRF Mesh mobile app is trying to &amp;quot;connect&amp;quot; to the node for a while and stops without any result. And the node becomes not scannable from the app also.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I sincerely ask you to provide at least a small workable example of switching between BLE mesh and usual BLE. As you can see from my logs, switching between BLE mesh and usual BLE produces various errors. Maybe you know how to overcome them.&lt;/p&gt;
&lt;p&gt;And please, give a bit more detailed answer to allow me to reproduce your idea. I am so eagerly awaiting to realise my BLE mesh and OTA DFU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/thread/269444?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 14:52:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93961ed1-d588-4c02-b954-e286a5b2dd8b</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The problem might be that you are calling&amp;nbsp;&lt;strong&gt;bt_mesh_prov_disable(),&amp;nbsp;&lt;/strong&gt;you should call&amp;nbsp;&lt;strong&gt;bt_mesh_suspend()&amp;nbsp;&lt;/strong&gt;instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/thread/269070?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 05:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6c1c24c-6436-4906-8871-3d4af4403a01</guid><dc:creator>RAlexeev</dc:creator><description>&lt;p&gt;Thanks for your answers.&lt;/p&gt;
[quote userid="15475" url="~/f/nordic-q-a/65262/ble-mesh-and-fota-upgrade/268283"]Yes, it this should be fine doing this.[/quote]
&lt;p&gt;It&amp;#39;s great, but I consider it as the last option, because it&amp;#39;s not a pretty elegant solution.&lt;/p&gt;
[quote userid="15475" url="~/f/nordic-q-a/65262/ble-mesh-and-fota-upgrade/268283"]Yes, It is possible to realise both BLE Mesh and FOTA.&amp;nbsp;&lt;span&gt;You can disable the mesh stack, and start your own BLE operations for a time period to do this.&lt;/span&gt;[/quote]
&lt;p&gt;Great! However, I faced some errors and it didn&amp;#39;t work properly. In the case of unprovisioned node, I merely don&amp;#39;t understand why &lt;strong&gt;bt_mesh_prov_disable()&lt;/strong&gt; returns success and at the same time in debug log I see an error &amp;quot;bt_mesh_proxy: Failed to stop advertising (err -5)&amp;quot;. But in the case, if a node is provisioned, then I can&amp;#39;t disable BLE mesh and advertise SMP Service at all.&lt;/p&gt;
&lt;p&gt;As an example, if I modify your example &lt;a title="Bluetooth: Mesh Light" href="https://github.com/nrfconnect/sdk-nrf/tree/master/samples/bluetooth/mesh/light" rel="noopener noreferrer" target="_blank"&gt;Bluetooth: Mesh Light&lt;/a&gt;, adding a feature of disabling provisioning bearers and stopping advertisements after &lt;strong&gt;bt_mesh_prov_enable(BT_MESH_PROV_ADV | BT_MESH_PROV_GATT)&lt;/strong&gt; kinda like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/stop_5F00_adv.txt"&gt;devzone.nordicsemi.com/.../stop_5F00_adv.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;then &lt;strong&gt;bt_mesh_prov_disable(BT_MESH_PROV_ADV | BT_MESH_PROV_GATT)&lt;/strong&gt; and &lt;strong&gt;bt_le_adv_stop()&lt;/strong&gt; return successfully, but at the same time I have such warning and error in logs during calling those functions:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/stop_5F00_adv_5F00_log.txt"&gt;devzone.nordicsemi.com/.../stop_5F00_adv_5F00_log.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when I call these functions in the opposite order, firstly - &lt;strong&gt;bt_le_adv_stop()&lt;/strong&gt;, and secondly - &lt;strong&gt;bt_mesh_prov_disable(BT_MESH_PROV_ADV | BT_MESH_PROV_GATT)&lt;/strong&gt;, then I don&amp;#39;t have those warning and error in logs. Should I call &lt;strong&gt;bt_mesh_prov_disable(BT_MESH_PROV_ADV | BT_MESH_PROV_GATT)&lt;/strong&gt; at all or not?&lt;/p&gt;
&lt;p&gt;But if I call just &lt;strong&gt;bt_le_adv_stop()&lt;/strong&gt; without &lt;strong&gt;bt_mesh_prov_disable(BT_MESH_PROV_ADV | BT_MESH_PROV_GATT)&lt;/strong&gt;, then after calling &lt;strong&gt;bt_le_adv_start()&lt;/strong&gt; nRF Connect for Mobile app shows &amp;quot;Mesh Provisioning Service&amp;quot;. But if I call &lt;strong&gt;bt_mesh_prov_disable(BT_MESH_PROV_ADV | BT_MESH_PROV_GATT)&lt;/strong&gt;, then I don&amp;#39;t have &amp;quot;Mesh Provisioning Service&amp;quot; in a list of services.&lt;/p&gt;
&lt;p&gt;Everything above was for the cases, when I didn&amp;#39;t provision a node. In the case when I provisioned the node, and after it I tried to stop BLE mesh and start ordinary advertisement by calling these functions: &lt;strong&gt;bt_le_adv_stop()&lt;/strong&gt; and &lt;strong&gt;bt_le_adv_start()&lt;/strong&gt;, both of them return success result, but in reality the node doesn&amp;#39;t start ordinary advertisement, and I see some grey records in nRF Connect for Mobile app with names &amp;quot;N/A (Bluetooth Mesh)&amp;quot; and multiple addresses. If I also call &lt;strong&gt;bt_mesh_prov_disable(BT_MESH_PROV_ADV | BT_MESH_PROV_GATT)&lt;/strong&gt;, then this function returns error code 69 regardless of it was called before or after &lt;strong&gt;bt_le_adv_stop()&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Thus, when the node is unprovisioned, then I can call &lt;strong&gt;bt_le_adv_stop()&lt;/strong&gt; and &lt;strong&gt;bt_mesh_prov_disable()&lt;/strong&gt; to stop a mesh and &lt;strong&gt;bt_le_adv_start()&lt;/strong&gt; after it to start ordinary advertisement of SMP Service with UUID 8D53DC1D-1DB7-4CD3-868B-8A527460AA84. Is it the right way or not? It seems that it works. But what should I do in the case of the provisioned node? Tell me, please, how to start an ordinary advertisement, when the node is already provisioned? And is it enough to call &lt;strong&gt;bt_le_adv_stop()&lt;/strong&gt; and &lt;strong&gt;bt_mesh_prov_disable&lt;/strong&gt;&lt;strong&gt;()&lt;/strong&gt; to disable BLE mesh or should I call something else also?&lt;/p&gt;
&lt;p&gt;I would be appreciated if you assist me in this issue before the weekends.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/thread/268283?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 11:49:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fa3e898-85d5-4860-b3d9-fb488050a1c7</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the confusion, it was a misuderstanding of the question.&lt;/p&gt;
&lt;p&gt;Yes, It is possible to realise both BLE Mesh and FOTA.&amp;nbsp;&lt;span&gt;You can disable the mesh stack, and start your own BLE operations for a time period to do this.&lt;/span&gt;&lt;/p&gt;
[quote user="RAlexeev"]Why doesn&amp;#39;t bt_mesh_prov_disable function stop BLE mesh to allow me to run bt_le_adv_start after it and advertise SMP Service with UUID 8D53DC1D-1DB7-4CD3-868B-8A527460AA84 and etc.?[/quote]
&lt;p&gt;I&amp;#39;m not sure why it doesn&amp;#39;t disable the mesh. Have you debgged the code and see if the are any error messages retrning when you call bt_mesh_prov_disable?&amp;nbsp;&lt;/p&gt;
[quote user="RAlexeev"]And is it an appropriate workaround to reboot the microcontroller with running BLE mesh and run usual FOTA upgrade after it without BLE mesh?[/quote]
&lt;p&gt;Yes, it this should be fine doing this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/thread/267655?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2020 14:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e643919-4f0e-4805-9010-9b89daf8e2a8</guid><dc:creator>RAlexeev</dc:creator><description>&lt;p&gt;Thanks for your reply! It sounds frustrating.&lt;/p&gt;
&lt;p&gt;But is it possible to stop BLE mesh advertising and run ordinary BLE advertising by some trigger kinda a button or a command? Do you want to say that it&amp;#39;s impossible to realise? Why doesn&amp;#39;t bt_mesh_prov_disable function stop BLE mesh to allow me to run bt_le_adv_start after it and advertise SMP Service with UUID 8D53DC1D-1DB7-4CD3-868B-8A527460AA84 and etc.? And is it an appropriate workaround to reboot the microcontroller with running BLE mesh and run usual FOTA upgrade after it without BLE mesh? It won&amp;#39;t be FOTA upgrade through BLE mesh, certainly, rather it will be direct BLE connection and upgrade.&lt;/p&gt;
&lt;p&gt;I merely thought that others realised the same functionality and it&amp;#39;s a typical problem, which already was solved. That&amp;#39;s why I would like to know the best practice how to realise FOTA upgrade in the case of BLE mesh.&lt;/p&gt;
&lt;p&gt;How is it expected to realise FOTA upgrade of microcontrollers within a BLE mesh?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE mesh and FOTA upgrade</title><link>https://devzone.nordicsemi.com/thread/267619?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2020 12:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfcdb5eb-a283-4360-af4b-8316dfd201c2</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I spoke to one of our developers about this and it seems like this isn&amp;#39;t supported, unfortunately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>