<?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 DFU Over SMP With Matter</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113906/ble-dfu-over-smp-with-matter</link><description>I was able to turn ON the Nordic’s BLE DFU over SMP + BLE NUS using Matter Lock sample code successfully. 
 The “DFU over SMP” is really great but further customization is needed for us. 
 The service is always ON (before or after Matter provisioning</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Sep 2024 16:08:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113906/ble-dfu-over-smp-with-matter" /><item><title>RE: BLE DFU Over SMP With Matter</title><link>https://devzone.nordicsemi.com/thread/502807?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 16:08:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f5ffcf0-509b-4830-bf5c-8f352faa5e97</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;You misunderstood. You can still use the SMP Service. That is not a part of Matter BLE Service.&lt;/p&gt;
&lt;p&gt;You then have a module of your own that can deregister the service by default, and register/deregister the service as you see fit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU Over SMP With Matter</title><link>https://devzone.nordicsemi.com/thread/502749?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 12:02:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:162a225c-9d51-4150-9d3b-49b3b492b4d7</guid><dc:creator>SubuMuthu</dc:creator><description>&lt;p&gt;Thank you! It will be helpful if you can explain little bit. I believe you are asking me to make a copy and create our own services. I was planning to do that already.&lt;/p&gt;
&lt;p&gt;However it defeats the purpose here. when ever Nordic updates the SDK and any improvements, we will have to migrate with additional efforts.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU Over SMP With Matter</title><link>https://devzone.nordicsemi.com/thread/502710?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 08:36:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e80d4241-3b6f-44b5-9a9f-0bbc4bf851a6</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;My apology for the late response.&lt;/p&gt;
&lt;p&gt;I was able to consult some Matter colleagues, and they explained that the BLE Manager Implementation mostly deal with Matter BLE servieces.&lt;/p&gt;
&lt;p&gt;The DFU service is outside of that, so&amp;nbsp;you can implement the registering and deregistering of the service in a custom module of your own.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU Over SMP With Matter</title><link>https://devzone.nordicsemi.com/thread/501236?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 20:36:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0596a078-7b40-4e9e-b29d-17a1332c24c8</guid><dc:creator>SubuMuthu</dc:creator><description>&lt;p&gt;This option is not possible&amp;nbsp; for us because&amp;nbsp; the product does not have any physical buttons.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU Over SMP With Matter</title><link>https://devzone.nordicsemi.com/thread/500575?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 12:03:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0249f34-c29c-4a1c-891d-9eecb4e83508</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Subu,&lt;/p&gt;
&lt;p&gt;I am still looking into the issue. My apology for the wait.&lt;/p&gt;
[quote user="SubuMuthu"]Currently, the DFU service will not be usable because it allows anyone to upload a file. So what I am asking will be useful for everyone.[/quote]
&lt;p&gt;Would an alternative solution be to limit BLE accessibility to only&amp;nbsp;user with physical access?&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU Over SMP With Matter</title><link>https://devzone.nordicsemi.com/thread/499857?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 21:09:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb053176-4c1b-419d-bffc-3f5cd85b80a9</guid><dc:creator>SubuMuthu</dc:creator><description>&lt;p&gt;Hi Hieu, I don&amp;#39;t think the information that you provided will be enough for me to continue the project.&lt;/p&gt;
&lt;p&gt;As you mentioned, all the BLE operations are done via BLEManagerImpl and BLEAdvertising Arbiter singltons.&lt;/p&gt;
&lt;p&gt;I already tried adding a code/call for shutting down the BLE DFU services using the BLE advertising Arbiter (BLE NUS services has an example) and when I do that, it&amp;nbsp; messes up the Matter BLE advertisement also.&lt;/p&gt;
&lt;p&gt;The code for shutting down the BLE service is already there. Nordic needs to add that to the DFU service.&lt;/p&gt;
&lt;p&gt;The API for starting and stopping Matter BLE advertisement is also there. All we need is that someone from Nordic Matter team to look and specify it. It will help not only me but every company. Currently, the DFU service will not be usable because it allows anyone to upload a file. So what I am asking will be useful for everyone.&lt;/p&gt;
&lt;p&gt;Can please ask the Matter team for&amp;nbsp; what changes will be required to shutdown, and start the BLE services carefully without impacting Matter BLE?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Subu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU Over SMP With Matter</title><link>https://devzone.nordicsemi.com/thread/499384?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 13:13:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6f46111-b610-4ffa-ba3e-1034f5918f62</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Subu,&lt;/p&gt;
&lt;p&gt;Sorry it took a long time. I would like to be more certain before I reply to you, but since it&amp;#39;s so late already, here is what I have found:&lt;/p&gt;
[quote user=""]Can you please let me know how we can achieve the below?&lt;ol&gt;
&lt;li&gt;The DFU over SMP is not started at power up.&lt;/li&gt;
&lt;li&gt;The service is started and stopped &amp;nbsp;by our Application code.&lt;/li&gt;&lt;/ol&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;First, you need&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/kconfig/index.html#CONFIG_BT_GATT_DYNAMIC_DB"&gt;CONFIG_BT_GATT_DYNAMIC_DB&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/kconfig/index.html#CONFIG_MCUMGR_TRANSPORT_BT_DYNAMIC_SVC_REGISTRATION"&gt;CONFIG_MCUMGR_TRANSPORT_BT_DYNAMIC_SVC_REGISTRATION&lt;/a&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/kconfig/index.html#CONFIG_BT_GATT_DYNAMIC_DB"&gt;,&lt;/a&gt;&amp;nbsp;though the latter config selects the first one.&lt;/p&gt;
&lt;p&gt;Note that &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/subsys/mgmt/mcumgr/transport/src/smp_bt.c#L670-L672"&gt;the SMP Server is still registered after initialization&lt;/a&gt; regardless, so you need to &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/zephyr/connectivity/bluetooth/api/gatt.html#c.bt_gatt_service_unregister"&gt;unregister&lt;/a&gt; it first, if you want the device to start without SMP Server by default.&lt;/p&gt;
&lt;p&gt;After that, you just &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/zephyr/connectivity/bluetooth/api/gatt.html#c.bt_gatt_service_register"&gt;register&lt;/a&gt; and unregister the service as needed.&lt;/p&gt;
&lt;p&gt;Next comes the part where I am not sure, which is&amp;nbsp;&lt;em&gt;where&lt;/em&gt; all of that should be done. I am new to Matter and C++, so I&amp;nbsp;am not 100% sure, but it seems all BLE operations are done via the BLEManagerImpl and BLEAdvertisingArbiter singletons.&lt;/p&gt;
&lt;p&gt;However, I don&amp;#39;t see how to register and unregister service using the existing Matter APIs yet.&lt;/p&gt;
[quote user=""]How do we add security and bonding (it is my understanding that Matter standard prohibits bonding)?[/quote]
&lt;p&gt;Matter spec, section 5.4.2.5,&amp;nbsp;requires that BLE Advertising be done with Random Static Address, and that this must be changed every boot.&lt;/p&gt;
&lt;p&gt;However, in BLE,&amp;nbsp;if bonding happens, the Random Static Address is treated as an Identity Address. Then if the Identity Address is changed, then the peer will not be able to find the device anymore.&lt;/p&gt;
&lt;p&gt;I think this is what has&amp;nbsp;led you to understand that Matter prohibits bonding.&lt;/p&gt;
&lt;p&gt;If so, note that section 5.4.2.5 says this:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;5.4.2.5. Using BLE&lt;/em&gt;&lt;br /&gt;&lt;em&gt;This section provides details of how a device announces its commissionable status using BLE technology.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Nodes currently commissioned into one or more fabrics SHALL NOT employ this method.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;NOTE Need to add link(s) to BLE specification.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So,&amp;nbsp;the Random Static Address requirement is only applicable to the Matter BLE Service for Commissioning purposes.&lt;/p&gt;
&lt;p&gt;Therefore, if we &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/zephyr/connectivity/bluetooth/api/gap.html#c.bt_id_create"&gt;create a separate BLE identity&lt;/a&gt;, and setup the other BLE services on that ID, then bonding can happen.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s here that I also arrived at the same issue: I don&amp;#39;t know how to implement the additional ID with Matter&amp;#39;s setup yet.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Do you think that these are sufficient tips&amp;nbsp;for you to continue your project yet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU Over SMP With Matter</title><link>https://devzone.nordicsemi.com/thread/499244?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 14:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82dbb6c5-940b-4fc0-8b99-cd4848aa1dc2</guid><dc:creator>SubuMuthu</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Can you please let me know the updates?&amp;nbsp;&amp;nbsp;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU Over SMP With Matter</title><link>https://devzone.nordicsemi.com/thread/498511?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 19:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99223850-8916-4ec3-9ad6-aa88d2a0f814</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Subu,&lt;/p&gt;
&lt;p&gt;I will need some time to look into your questions. I will follow-up with you next week.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>