<?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>Sending BT_HCI_OP_LE_TX_TEST_v4 DTM command doesn&amp;#39;t work any more after ncs 2.6 update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110736/sending-bt_hci_op_le_tx_test_v4-dtm-command-doesn-t-work-any-more-after-ncs-2-6-update</link><description>Hey, After updating the nRF Connect SDK v2.60 (from 2.3.0) package an attempt to turn a BLE carrier ON by sending the BT_HCI_OP_LE_TX_TEST_v4 DTM command over the HCI interface by calling the bt_hci_cmd_send_sync() function just keeps on returning the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 May 2024 05:56:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110736/sending-bt_hci_op_le_tx_test_v4-dtm-command-doesn-t-work-any-more-after-ncs-2-6-update" /><item><title>RE: Sending BT_HCI_OP_LE_TX_TEST_v4 DTM command doesn't work any more after ncs 2.6 update</title><link>https://devzone.nordicsemi.com/thread/486079?ContentTypeID=1</link><pubDate>Tue, 28 May 2024 05:56:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21e52ddf-185b-46dc-a2cd-897d720e4990</guid><dc:creator>Jari P</dc:creator><description>&lt;p&gt;Thank for the example project. I have to try it in some phase. Yet at the moment it seems that we can use the 2.6.x versions regardless of the warning response we are observing.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll close this ticket now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending BT_HCI_OP_LE_TX_TEST_v4 DTM command doesn't work any more after ncs 2.6 update</title><link>https://devzone.nordicsemi.com/thread/485314?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 08:13:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43198db6-2e63-471f-aa75-8175de318ffe</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Jari P"]I don&amp;#39;t get your point.[/quote]
&lt;p&gt;I tested the command on v2.6.x, and it works on my side.&lt;br /&gt;This makes it seem like it is not an nRF Connect SDK v2.6.x issue, but related to configuration of your project.&lt;/p&gt;
&lt;p&gt;If you now can test the example I created to see if that works on your side, and it works for you =&amp;gt; Then you have a project that supports the command and one which does not support the command. =&amp;gt; Comparing these two should make it easier to find out what is wrong with the one that does not support the command&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending BT_HCI_OP_LE_TX_TEST_v4 DTM command doesn't work any more after ncs 2.6 update</title><link>https://devzone.nordicsemi.com/thread/484899?ContentTypeID=1</link><pubDate>Mon, 20 May 2024 06:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e172f9c-9ad9-435b-bf0a-a1f35ab38642</guid><dc:creator>Jari P</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t get your point.&lt;/p&gt;
&lt;p&gt;Yet I have some good news. Regardless of the HCI command warning we are seeing in the syslog (&amp;quot;bt_hci_core: bt_hci_cmd_send_sync: opcode 0x207b status 0x01&amp;quot;) after running the BT_HCI_OP_LE_TX_TEST_V4 I asked our RF guy to try if the operation still works e.g. if the carrier and/or modulated carrier gets turned ON. And to my surprise it indeed worked! &lt;strong&gt;Thus it seems that we can run/use BT_HCI_OP_LE_TX_TEST_v4 DTM command even it returns a warning.&lt;/strong&gt; And all this with the version 2.6.1 or 2.6.0.&lt;/p&gt;
&lt;p&gt;-Jari&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending BT_HCI_OP_LE_TX_TEST_v4 DTM command doesn't work any more after ncs 2.6 update</title><link>https://devzone.nordicsemi.com/thread/484697?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 13:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba727c84-69ed-4487-a5e8-a4397f183727</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I eventually figured that the best way to approach this is for me to test it in a minimal sample.&lt;/p&gt;
&lt;p&gt;So I created this one:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hci_5F00_test.zip"&gt;devzone.nordicsemi.com/.../hci_5F00_test.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I first tested it with v2.5.2.&lt;br /&gt;It returns OPcode 0x01 if I comment out child_image/hci_rpmsg.conf.&lt;br /&gt;It returns OPcode 0x11 if I leave that in.&lt;br /&gt;This seems to mean that the command is at least supported.&lt;/p&gt;
&lt;p&gt;I test the same for v2.6.1, but with hci_ipc.conf instead, and that gives the same result.&lt;/p&gt;
&lt;p&gt;Do you see the same from this sample?&lt;br /&gt;Cause if this works, then it means that the command is indeed supported in v2.6.1.&lt;br /&gt;And it gives you a good anchor to compare your project to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending BT_HCI_OP_LE_TX_TEST_v4 DTM command doesn't work any more after ncs 2.6 update</title><link>https://devzone.nordicsemi.com/thread/482281?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 12:59:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2daf633d-0a2a-48b8-bb86-393d4ccc4af1</guid><dc:creator>Jari P</dc:creator><description>&lt;p&gt;Here are the functions (handle_rf_test_data()-&amp;gt;ble_test_start_carrier_tx()-&amp;gt;ble_transmitter_test_v4_cmd():&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;static void handle_rf_test_data(rf_acceptance_prod_test_t const * const data)&lt;br /&gt;{&lt;br /&gt; switch(data-&amp;gt;mode){&lt;br /&gt; case RF_CARRIER:&lt;br /&gt; {&lt;br /&gt; ble_test_stop();&lt;br /&gt; uint8_t channel = get_channel(data-&amp;gt;freq);&lt;br /&gt; int ret = ble_test_start_carrier_tx(channel, 0);&lt;br /&gt; if (ret)&lt;br /&gt; {&lt;br /&gt; LOG_ERR(&amp;quot;ble_test_start_carrier_tx returned: %i&amp;quot;, ret);&lt;br /&gt; }&lt;br /&gt; break;&lt;br /&gt; }&lt;br /&gt;...&lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;int ble_test_start_carrier_tx(uint8_t channel, uint8_t tx_power) {&lt;br /&gt; transmitter_test_params_t params;&lt;br /&gt; params.tx_channel= channel;&lt;br /&gt; params.packet_payload = 0x11; //Vendor specific&lt;br /&gt; params.test_packet_length = 0xff;&lt;br /&gt; params.tx_power_level = tx_power;&lt;br /&gt; params.cte_length = 0;&lt;br /&gt; params.cte_type = 0;&lt;br /&gt; params.phy = 0x01; //1M&lt;br /&gt; return ble_transmitter_test_v4_cmd(&amp;amp;params);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;int ble_transmitter_test_v4_cmd(transmitter_test_params_t * params)&lt;br /&gt;{&lt;br /&gt; struct net_buf* buf;&lt;br /&gt; uint8_t packet[TRANSMITTER_TEST_V4_PAYLOAD_LENGTH];&lt;br /&gt; int i = 0;&lt;br /&gt; packet[0] = params-&amp;gt;tx_channel;&lt;br /&gt; packet[1] = params-&amp;gt;test_packet_length;&lt;br /&gt; packet[2] = params-&amp;gt;packet_payload;&lt;br /&gt; packet[3] = params-&amp;gt;phy;&lt;br /&gt; packet[4] = params-&amp;gt;cte_length;&lt;br /&gt; packet[5] = params-&amp;gt;cte_type;&lt;br /&gt; packet[6] = params-&amp;gt;switching_pattern_length;&lt;br /&gt; if(params-&amp;gt;switching_pattern_length){&lt;br /&gt; for(i = 0;i&amp;lt;params-&amp;gt;switching_pattern_length; ++i){&lt;br /&gt; packet[7+i] = params-&amp;gt;antenna_ids[i];&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt; packet[7+i] = params-&amp;gt;tx_power_level;&lt;/p&gt;
&lt;p&gt;buf = bt_hci_cmd_create(BT_HCI_OP_LE_TX_TEST_V4, 7+i+1);&lt;br /&gt; if (!buf) {&lt;br /&gt; return -ENOBUFS;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;net_buf_add_mem(buf, packet, 7+i+1);&lt;/p&gt;
&lt;p&gt;return bt_hci_cmd_send_sync(BT_HCI_OP_LE_TX_TEST_V4, buf, NULL);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And below is a screenshot of the function which catches the error (-5):&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/pastedimage1715086633740v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending BT_HCI_OP_LE_TX_TEST_v4 DTM command doesn't work any more after ncs 2.6 update</title><link>https://devzone.nordicsemi.com/thread/482242?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 10:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ef90114-2acb-4d9d-8bb2-4c55e112556b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;In that case, it looks like configuration should be correct.&lt;/p&gt;
&lt;p&gt;Could you share the source code you use to call the HCI command?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending BT_HCI_OP_LE_TX_TEST_v4 DTM command doesn't work any more after ncs 2.6 update</title><link>https://devzone.nordicsemi.com/thread/481785?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 12:15:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6db932e6-0c71-4194-ac86-b2587ae02894</guid><dc:creator>Jari P</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First see my 2 edits in my previous comment/answer ((1) the name of the .conf file was corrected and (2) the 2nd change we have in the .dts file was added).&lt;/p&gt;
&lt;p&gt;I tried the ncs version 2.6.1 and it didn&amp;#39;t solve our issue.&lt;/p&gt;
&lt;p&gt;I also checked that we have the &amp;quot;CONFIG_BT_HCI_DRIVER_LOG_LEVEL=3&amp;quot; line in the final&amp;nbsp;autoconf.h. Also the build output shows only the following warnings:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;warning: Experimental symbol BT_LL_SW_SPLIT is enabled.&lt;/li&gt;
&lt;li&gt;warning: The choice symbol HRM_PAGES_LOG_LEVEL_ERR.&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:inherit;"&gt;warning: Deprecated symbol BT_DEBUG_LOG is enabled.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;" lang="en-US"&gt;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;" lang="en-US"&gt;Regards,&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11.0pt;margin:0in;" lang="en-US"&gt;Jari&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending BT_HCI_OP_LE_TX_TEST_v4 DTM command doesn't work any more after ncs 2.6 update</title><link>https://devzone.nordicsemi.com/thread/481673?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 07:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2dec9a7-8e73-476c-8824-fc93ba43358c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Firstly, could I suggest that you use v2.6.1 instead of v2.6.0, since the newer has some bug-fixes in general?&lt;/p&gt;
&lt;p&gt;For the HCI command, it should also be supported for v2.6.x, as we see &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.5.99-ncs1/subsys/bluetooth/controller/hci/hci.c#L4747-L4751"&gt;here&lt;/a&gt;.&lt;br /&gt;Check for &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/configuring_app/kconfig/index.html#override-kconfig-warnings"&gt;Kconfig override warnings&lt;/a&gt; to make sure that the configurations were really set.&lt;/p&gt;
&lt;p&gt;Try to log with CONFIG_BT_HCI_DRIVER_LOG_LEVEL and see if that returns anything useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending BT_HCI_OP_LE_TX_TEST_v4 DTM command doesn't work any more after ncs 2.6 update</title><link>https://devzone.nordicsemi.com/thread/481660?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 05:12:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b080e98-d5a2-41d2-a15b-3e2e67aac39d</guid><dc:creator>Jari P</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Our intention was to run RF tests with our device so we just added the following config lines to hci_ipc.conf file (in&amp;nbsp; the../&lt;em&gt;ourdevice&lt;/em&gt;/child_image/ folder) to get the Zephyr BLE controller into use:&lt;/p&gt;
&lt;p&gt;CONFIG_BT_LL_SW_SPLIT=y&lt;br /&gt;CONFIG_BT_CTLR_DTM_HCI=y&lt;br /&gt;CONFIG_BT_CTLR_DTM_HCI_TX_V4=y&lt;/p&gt;
&lt;p&gt;And we have one more change in the ourdevice_macro_cpunet.dts (in&amp;nbsp;&lt;span&gt;../&lt;/span&gt;&lt;em&gt;ourdevice&lt;/em&gt;&lt;span&gt;/boards/arm/ourdevice_macro/ folder: the timer0 definition (&amp;quot;&amp;amp;timer0 { status = &amp;quot;okay&amp;quot;; };&amp;quot;) was commented out.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jari&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending BT_HCI_OP_LE_TX_TEST_v4 DTM command doesn't work any more after ncs 2.6 update</title><link>https://devzone.nordicsemi.com/thread/481477?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 09:20:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70c3384c-032a-484c-9f22-d9c98cbaf196</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]BT_HCI_OP_LE_TX_TEST_v4[/quote]
&lt;p&gt;Could you explain what you did to make this command work in v2.3.0 (if anything)?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>