<?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>DTM functionality over HCI without the DTM sample code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111855/dtm-functionality-over-hci-without-the-dtm-sample-code</link><description>Hi, 
 We need to integrate a testing mode within our firmware that uses Nordic controller to do BLE functionality as we want to achieve single image solution for production and testing. Is there a way to use HCI commands with nordic controller to achieve</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 May 2024 18:10:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111855/dtm-functionality-over-hci-without-the-dtm-sample-code" /><item><title>RE: DTM functionality over HCI without the DTM sample code</title><link>https://devzone.nordicsemi.com/thread/487577?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 18:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10586834-d06a-444e-8938-a607ccf617dd</guid><dc:creator>Ahmed Samir</dc:creator><description>&lt;p&gt;thanks you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM functionality over HCI without the DTM sample code</title><link>https://devzone.nordicsemi.com/thread/487576?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 07:41:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:297529b6-97d5-4cb1-9763-efa49035990b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;These tests are not DTM related (this is for etsting LE isocnronous channels, while DTM is for PHY level testing).&lt;/p&gt;
&lt;p&gt;Regardign configurations,&amp;nbsp;CONFIG_BT_CTLR_ADV_ISO or&amp;nbsp;CONFIG_BT_CTLR_CONN_ISO is requiered in order to include most of this (you can see that in the code). I do not have any example of how to intergrade this in the hci_rpmsg.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM functionality over HCI without the DTM sample code</title><link>https://devzone.nordicsemi.com/thread/487575?ContentTypeID=1</link><pubDate>Mon, 20 May 2024 17:13:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4a0ce01-aecf-4a84-b182-595daf5d5a19</guid><dc:creator>Ahmed Samir</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;I&amp;#39;m trying to use the Zephyr controller with the (CONFIG_BT_LL_SW_SPLIT=y) and (CONFIG_BT_CTLR_DTM_HCI=y), as you mentioned, to execute the DTM test. I changed the &lt;strong&gt;hci_rpmsg&lt;/strong&gt; child image config file with these two flags. The code built successfully and I believe the code uses Zephyr controller now.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The next step is to use the below HCI commands to execute the DTM testing:&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;BT_HCI_OP_LE_ISO_TRANSMIT_TEST&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;BT_HCI_OP_LE_ISO_RECEIVE_TEST&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;BT_HCI_OP_LE_ISO_READ_TEST_COUNTERS&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;BT_HCI_OP_LE_ISO_TEST_END&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;- Are the above BT_HCI_OP.... flags related to DTM testing? or Am I missing something?&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;If yes, when I call the above HCI commands, I get errors. When I checked the implementation of the hci_rpmsg code, I found that these HCI commands require different configurations than&amp;nbsp;CONFIG_BT_CTLR_DTM_HCI and&amp;nbsp;CONFIG_BT_LL_SW_SPLIT. The below screenshot is from hci.c file.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&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/pastedimage1716225115261v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;At this point, I entered a continuous loop of configuration errors.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;is there an example of how to configure the hci_rpmsg correctly to support the Zephyr controller with these DTM HCI commands? also, is there an example of how to use them?&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM functionality over HCI without the DTM sample code</title><link>https://devzone.nordicsemi.com/thread/487574?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 13:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b38b3508-d0e0-4a74-8dae-d2ad0998968a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are right we have had some requests for this, but DTM support is currently not plannet for the SoftDevice controller.&lt;/p&gt;
&lt;p&gt;I am glad to hear you are happy with the SoftDevice and SoftDevice controller in other regards, though &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM functionality over HCI without the DTM sample code</title><link>https://devzone.nordicsemi.com/thread/487573?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 19:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc782d00-4c0e-4ece-bbe5-14ba392fedc2</guid><dc:creator>Ahmed Samir</dc:creator><description>&lt;p&gt;Got it. Actually I worked with Softdevice for 10 years and it is one of the best BLE controllers I used.&lt;/p&gt;
&lt;p&gt;Is there a plan to integrate the DTM functionality in the softdevice controller like zypher? I saw many requests/questions about the same functionality.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM functionality over HCI without the DTM sample code</title><link>https://devzone.nordicsemi.com/thread/487572?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 14:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1587f78-44f8-435c-a3c6-0bf643867d29</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes,&amp;nbsp;the Zephyr controller&amp;nbsp;supports it. So if you use the Zephyr controller (CONFIG_BT_LL_SW_SPLIT=y) you can enable it with&amp;nbsp;CONFIG_BT_CTLR_DTM_HCI=y.&lt;/p&gt;
&lt;p&gt;I would recomend using the SoftDevice controller in production though, for several reasons including quality and the fact that we normally only qualify the SoftDevice controller (for which you can find the QDID&amp;#39;s &lt;a href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf5340/COMP/nrf5340/nrf5340_ble_qdid_qual_matrix.html"&gt;here&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM functionality over HCI without the DTM sample code</title><link>https://devzone.nordicsemi.com/thread/487571?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 18:54:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:881eecad-e804-4bc4-b8ab-47e37d6f51c6</guid><dc:creator>Ahmed Samir</dc:creator><description>&lt;p&gt;Is DTM over HCI supported in Zypher controller?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM functionality over HCI without the DTM sample code</title><link>https://devzone.nordicsemi.com/thread/487570?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2024 07:55:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a3f5ca7-fd32-459c-9563-3f911f35e3f2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Our DTM implementation use the radio directly, and this will conflict with the Bluetooth controller in hci_rpmsg. These were never designed to be used together and use the same resources (most importantly the radio) without any mechanism for handling resource sharing.&lt;/p&gt;
&lt;p&gt;It will be difficult with DTM, but if you really need some direct radio usage for a custom test mode in your production firmware, you could consider implementing something yourself in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.1/nrf/samples/mpsl/timeslot/README.html"&gt;MPSL timeslots&lt;/a&gt;. Alternatively, perhasp you could do the tests with regular Bluetooth, perhaps with establishing a connection, advertising and/or scaninng so that you can use the regular Bluetooth stack features for your testing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM functionality over HCI without the DTM sample code</title><link>https://devzone.nordicsemi.com/thread/487569?ContentTypeID=1</link><pubDate>Tue, 02 Jan 2024 17:27:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a3a255f-210a-44d4-a6eb-cced9c59cdfa</guid><dc:creator>Ahmed Samir</dc:creator><description>&lt;p&gt;Thanks Einar,&lt;br /&gt;Is there other way than the HCI? The production firmware uses the&lt;span style="font-family:monospace;"&gt;&amp;nbsp;hci_rpmsg &lt;/span&gt;image on the network core which conflicts with the dtm image that needs to be on the network core as well. Is there a way to have both images on the network core, but run only one of them based on some configurations from the application core?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTM functionality over HCI without the DTM sample code</title><link>https://devzone.nordicsemi.com/thread/487568?ContentTypeID=1</link><pubDate>Tue, 02 Jan 2024 12:46:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4070de34-2185-43bc-9a5f-546aa08abf19</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Ahmed,&lt;/p&gt;
&lt;p&gt;There is no support for DTM in the SoftDevice Controller, so that will not work. DTM is normally not used in production testing, but if you want to to it you would need to first flash your test firmware (with TDM), and after testing, flash your production firmware without it (but with the Bluetooth controller etc).&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>