<?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>nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102100/nrf52840---coded-phy-and-nus-central-and-peripheral-not-communicating-transmit-power-setting-issue</link><description>Hi, 
 I am trying to create a working example of the central and peripheral NUS examples running under CODED PHY. I also am setting the TX power level to 8 dBm and am having some issues. 
 I have merged the Central_uart / Peripheral_uart with the central_hr_coded</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Feb 2024 15:25:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102100/nrf52840---coded-phy-and-nus-central-and-peripheral-not-communicating-transmit-power-setting-issue" /><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/468679?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2024 15:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f87415a-1704-4818-bcb3-a116326af5eb</guid><dc:creator>TrentS</dc:creator><description>&lt;p&gt;Hi Schmid,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying to jog my memory and source changes on this.&amp;nbsp; I definitely had some copy/paste issues with the peripheral settings being used for the central settings for the 8 dBm power setting.&amp;nbsp; Hung had pointed those out a few replies back.&lt;/p&gt;
&lt;p&gt;For the Wireshark issue, I had tried a number of versions of Wireshark but version 4.0.8 seemed to work.&amp;nbsp; I still found it somewhat temperamental as it did not always pickup all the packets but it was able to help resolve.&lt;/p&gt;
&lt;p&gt;I have included the central and peripheral NUS, CodedS2 test programs I had used.&amp;nbsp; I am not sure if they include everything but it should be from that timeframe.&lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_uart_5F00_nus_5F00_codedS2_5F00_2024_5F00_09_5F00_06.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_uart_5F00_nus_5F00_codedS2_5F00_2024_5F00_09_5F00_06.zip&lt;/a&gt;&amp;nbsp;and&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/central_5F00_uart_5F00_nus_5F00_codedS2_5F00_2024_5F00_09_5F00_06.zip"&gt;devzone.nordicsemi.com/.../central_5F00_uart_5F00_nus_5F00_codedS2_5F00_2024_5F00_09_5F00_06.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/468539?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2024 09:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e19e40ce-253f-46f4-9900-cc0fe0dc43b5</guid><dc:creator>Schmid</dc:creator><description>&lt;p&gt;Hello Trent, I have the same Error using the same configurations you described. Would you like to share how you resolved this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/447286?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2023 17:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e4b0120-4732-49cd-b9da-e831f34ffd67</guid><dc:creator>TrentS</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Finally back at this issue.&amp;nbsp; We have resolved the issue with the code.&amp;nbsp; The RF sniffer helped determine which side was the issue.&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/444920?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 12:32:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5aefa6b-916e-409a-bb24-490c814bd045</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Trent,&amp;nbsp;&lt;br /&gt;For the sniffer to be able to track the communication, you would need to select the advertiser in the device drop down list.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can take a look at exercise 2 in this lesson in our Bluetooth Academy here:&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-6-bluetooth-le-sniffer/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-6-bluetooth-le-sniffer/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/444771?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 15:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fd0930e-7e27-47f9-a466-333a503887f0</guid><dc:creator>TrentS</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Sorry - just one more thing.&lt;/p&gt;
&lt;p&gt;With Wireshark, I have no issues capturing the advertising and anonymous data coming from the peripheral device.&lt;/p&gt;
&lt;p&gt;The NUS communication is happening but I don&amp;#39;t see any Wireshark packets.&amp;nbsp; There are no filters and these are my settings:&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/pastedimage1694015739498v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I noticed this comment:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/16674/no-data-to-wireshark-from-nrf-dongle"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/16674/no-data-to-wireshark-from-nrf-dongle&lt;/a&gt;&amp;nbsp;where they indicate Wireshark version is important.&lt;/p&gt;
&lt;p&gt;I have 4.0.8&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there another setting I am missing or should I try an older version.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/444765?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 15:39:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2504ce3c-f3a4-42a2-8872-22dd3d31b37f</guid><dc:creator>TrentS</dc:creator><description>&lt;p&gt;Thanks Hung,&lt;/p&gt;
&lt;p&gt;Thanks for letting me know about this setting.&amp;nbsp; I now have the Wireshark system working with an older version of Python.&lt;/p&gt;
&lt;p&gt;This confirmed that the peripheral device is sending advertisements properly and the central device is not responding correctly.&amp;nbsp;&amp;nbsp;I have communication working now.&amp;nbsp; There was a coding bug on my part on the central devices scan_filter_match.&lt;/p&gt;
&lt;p&gt;It has been resolved so you can close this ticket down.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/444757?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 14:48:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58d9d309-60d3-4689-bd41-5367434712aa</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Trent,&amp;nbsp;&lt;br /&gt;If you use the nRF52840 as the sniffer, it should be able to catch the CODED PHY advertising packet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Make sure this box is ticked:&amp;nbsp;&lt;br /&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/pastedimage1694011669065v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/444742?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 14:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d48a165e-1e50-4fa3-8249-db32b62f1b1d</guid><dc:creator>TrentS</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;The issue is related to the original question:&amp;nbsp; &lt;em&gt;&amp;quot;I am trying to create a working example of the central and peripheral NUS examples running under CODED PHY.&amp;nbsp; I also am setting the TX power level to 8 dBm and am having some issues.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The 8 dBm issue is resolved and I am just trying to get CODED PHY working.&amp;nbsp; I have successfully used the following example for testing CODED PHY since it allows you to adjust settings dynamically.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/throughput/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/throughput/README.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;The&amp;nbsp;peripheral_hr_coded and central_hr_coded&amp;nbsp;examples also work.&amp;nbsp; I also have the sniffer running.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We get the following MAC address information:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;PERIPHERAL&lt;br /&gt;C1:97:BB:4C:E8:AF (193, 151, 187, 76, 232, 175)&lt;/p&gt;
&lt;p&gt;CENTRAL&lt;br /&gt;E0:CD:01:60:9E:3C&amp;nbsp; &amp;nbsp;(224, 205, 1, 96, 158, 60)&lt;/p&gt;
&lt;p&gt;None of these address&amp;#39; show up in the sniffer output, unless I am misunderstanding the sniffer information.&lt;/p&gt;
&lt;p&gt;So for the above examples and our NUS version, the sniffer cannot pick up the CODED PHY information.&amp;nbsp; For the sniffer, I am using the example.py only as the Wireshark plugin does not install properly.&amp;nbsp; I am sorting this out since it likely some python dependency however all the requirements are met as per the install instruction check.&lt;/p&gt;
&lt;p&gt;If the Wireshark version can pickup the CODED PHY connections, then I will continue to pursue this.&amp;nbsp; Any other insight is welcome.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Trent.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/444669?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 09:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cf343ac-78fe-4762-8162-3547f965366f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Trent,&amp;nbsp;&lt;br /&gt;Please clarify the issue you described here is related to the original question or not ?&lt;br /&gt;Have you managed to do a connection before ?&amp;nbsp;&lt;br /&gt;Please create a new ticket if it&amp;#39;s not related to the issue before.&amp;nbsp;&lt;br /&gt;You can take a look at the peripheral_hr_coded and central_hr_coded to see how they work if you plan to do&amp;nbsp;CODED PHY advertising and establishing connection when doing CODED.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please use &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;the sniffer&lt;/a&gt; to track the communication. It will provide insight on why the connection can&amp;#39;t be established.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/444580?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 19:43:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c86ccda-15fa-4b78-aeaa-f96dd047049a</guid><dc:creator>TrentS</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I have been away from this for a few weeks but am back at trying to resolve the connection issue.&lt;/p&gt;
&lt;p&gt;I adjusted the filter settings in the Central code to allow for a specific BT name.&amp;nbsp; This at least allows the filter to acknowledge it sees the Peripheral device as follows:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:18:31.528,594] &amp;lt;inf&amp;gt; cent_uart_CS2: scan_filter_match: Filters matched. Address: C1:97:BB:4C:E8:AF (random) connectable: 1
[00:18:34.530,975] &amp;lt;inf&amp;gt; cent_uart_CS2: connected: Failed to connect to C1:97:BB:4C:E8:AF (random) (2)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The error code is a 2.&amp;nbsp; Not confident of the meaning of this when I look into the error listings - is this ENOENT or no such file or directory?&lt;/p&gt;
&lt;p&gt;The device shows as being connectable.&amp;nbsp; The listed device MAC is correctly referencing the Peripheral device.&lt;/p&gt;
&lt;p&gt;Is there anything that is preventing this from finishing the connection properly?&lt;/p&gt;
&lt;p&gt;I have attached updated code for both central/peripheral.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0624.central_5F00_uart_5F00_nus_5F00_codedS2.zip"&gt;devzone.nordicsemi.com/.../0624.central_5F00_uart_5F00_nus_5F00_codedS2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2843.peripheral_5F00_uart_5F00_nus_5F00_codedS2.zip"&gt;devzone.nordicsemi.com/.../2843.peripheral_5F00_uart_5F00_nus_5F00_codedS2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your assistance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/439058?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2023 13:56:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3561e374-22c0-4a9d-ac02-eeddabae83f0</guid><dc:creator>TrentS</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for this - it is setting the power now properly on connection (without CODED PHY).&lt;/p&gt;
&lt;p&gt;I still have some issue when CODED PHY is enabled as it does not make the connection.&amp;nbsp; I will review the code again and see if there is anything obvious and let you know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/438941?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2023 09:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d6fd449-5baf-44f4-b1fe-13950bc53b30</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Trent,&amp;nbsp;&lt;br /&gt;You should call&amp;nbsp;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;set_tx_power&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;BT_HCI_VS_LL_HANDLE_TYPE_CONN&lt;/span&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;8&lt;/span&gt;&lt;span&gt;); when you are in a connection, not when you do scanning and don&amp;#39;t have any active connection.&amp;nbsp;&lt;br /&gt;For example I called it inside connected() function and I got this in the log:&amp;nbsp;&lt;br /&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/pastedimage1690795598278v1.png" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/438787?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2023 14:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6d6ab2c-d7d6-4f56-ba8f-e3ccdc8735b9</guid><dc:creator>TrentS</dc:creator><description>&lt;p&gt;Thanks Hung,&lt;/p&gt;
&lt;p&gt;I missed the handle definition being for an advertiser; makes sense.&lt;/p&gt;
&lt;p&gt;I have removed the child_image folder as this is a leftover from the example code as there is no intent to use RPC.&lt;/p&gt;
&lt;p&gt;I have set the code as follows:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	set_tx_power(BT_HCI_VS_LL_HANDLE_TYPE_CONN, 0, 8); // should be 8dBm now.
	get_tx_power(BT_HCI_VS_LL_HANDLE_TYPE_CONN, 0, &amp;amp;txp_get);&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From this, I still get:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Set Tx power err: -5 reason 0x00&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Read Tx power err: -5 reason 0x00&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I have moved the set and get calls around in the code so it is before and after scanning has started but no change to the result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/438685?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2023 08:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd6b2f9e-a71e-4bfd-a6e3-38373d732662</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Trent,&amp;nbsp;&lt;br /&gt;I can see that you called :&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;set_tx_power&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;BT_HCI_VS_LL_HANDLE_TYPE_ADV&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;8&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Could you explain why you used BT_HCI_VS_LL_HANDLE_TYPE_ADV ? It&amp;#39;s for advertising. The central wouldn&amp;#39;t do any advertising.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;In your prj.conf you&amp;nbsp;only configured your device as CONFIG_BT_CENTRAL=y and no CONFIG_BT_PERIPHERAL=y. This explains why it crashed when you call&amp;nbsp;set_tx_power(BT_HCI_VS_LL_HANDLE_TYPE_ADV,&amp;nbsp;0,&amp;nbsp;8);&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;If you want to set TXPower when the device is in connection you should call:&amp;nbsp;&lt;br /&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;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;set_tx_power&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;BT_HCI_VS_LL_HANDLE_TYPE_CONN&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;8&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;span&gt; // should be 8dBm now.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;instead.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;In addition, I notice that you have rpc_host.conf in your child_image folder, do you plan to use the RPC ? I&amp;#39;m not so sure if any change needed for the TXPower setting if RPC is used.&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/438571?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 14:33:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa9d9142-ad2a-4b24-b622-6874051ef0cb</guid><dc:creator>TrentS</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I have tested the example and it works.&amp;nbsp; I don&amp;#39;t get any error or incorrect reading of the power reading.&amp;nbsp; This code is behaving the same as my above code labelled in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_uart_5F00_nus_5F00_codedS2.zip"&gt;peripheral_uart_nus_codedS2.zip&lt;/a&gt; for the Peripheral configuration - it also works with the power reading.&amp;nbsp; (no fault and the power sets and reads fine.)&lt;/p&gt;
&lt;p&gt;The issue only occurs when I apply the same code and configuration to the Central setup.&amp;nbsp; The code previously attached above named:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/central_5F00_uart_5F00_nus_5F00_codedS2.zip"&gt;central_uart_nus_codedS2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps clarify things.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/438562?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 14:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c03074e6-7139-46ce-a5c1-550cd834b6b2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;Are you testing with my example ?&amp;nbsp;&lt;br /&gt;I just did a test with it this morning and got no error at all ?&amp;nbsp;&lt;br /&gt;Did you make any modification except for removing&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_ADVANCED_FEATURES=y ?&amp;nbsp;&lt;br /&gt;Please also try testing with the&amp;nbsp;hci_pwr_ctrl sample, it&amp;#39;s almost the same.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/438554?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 13:55:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e004df6c-bdeb-48ee-be49-bbab6636f577</guid><dc:creator>TrentS</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I have turned both off and the code hard faults in this code:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void set_tx_power(uint8_t handle_type, uint16_t handle, int8_t tx_pwr_lvl)
{
  struct bt_hci_cp_vs_write_tx_power_level *cp;
  struct bt_hci_rp_vs_write_tx_power_level *rp;
  struct net_buf *buf, *rsp = NULL;
  int err;

  buf = bt_hci_cmd_create(BT_HCI_OP_VS_WRITE_TX_POWER_LEVEL,
        sizeof(*cp));
  if (!buf) {
    printk(&amp;quot;Unable to allocate command buffer\n&amp;quot;);
    return;
  }

  cp = net_buf_add(buf, sizeof(*cp));
  cp-&amp;gt;handle = sys_cpu_to_le16(handle);
  cp-&amp;gt;handle_type = handle_type;
  cp-&amp;gt;tx_power_level = tx_pwr_lvl;

  err = bt_hci_cmd_send_sync(BT_HCI_OP_VS_WRITE_TX_POWER_LEVEL,
           buf, &amp;amp;rsp);
  if (err) {
    uint8_t reason = rsp ?
      ((struct bt_hci_rp_vs_write_tx_power_level *)
        rsp-&amp;gt;data)-&amp;gt;status : 0;
    printk(&amp;quot;Set Tx power err: %d reason 0x%02x\n&amp;quot;, err, reason);
    return;
  }

  rp = (void *)rsp-&amp;gt;data;
  printk(&amp;quot;TX Power: %d\n&amp;quot;, rp-&amp;gt;selected_tx_power);

  net_buf_unref(rsp);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The code&amp;nbsp;bt_hci_cmd_send_sync is where the hard fault occurs.&amp;nbsp; The hard fault is as follows:&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/pastedimage1690465746083v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Full Description:&amp;nbsp; Indicates that a fault with configurable priority has been escalated to a HardFault exception, because it could not be made active, because of priority or because it was disabled&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand why this is not working since it has no problem being set and read on the peripheral device.&lt;/p&gt;
&lt;p&gt;Any other areas to look at?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/438441?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 08:14:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f7c33f8-f4d1-4db2-8c90-0ac44c24aa5f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Trent,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Could you try again with&amp;nbsp;CONFIG_BT_CTLR_ADVANCED_FEATURES=y removed ? It&amp;#39;s not needed when using our controller.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;It&amp;#39;s important that&amp;nbsp;&lt;span&gt;BT_LL_SW_SPLIT&amp;nbsp;should not be set =y because then you will use Zephyr&amp;#39;s controller, not our controller.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/438392?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 22:33:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:badcd35b-814f-45fb-a146-f70c5afa4b62</guid><dc:creator>TrentS</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for the reply. Sorry for the delay in getting back to you.&lt;/p&gt;
&lt;p&gt;I have look at the link in the ticket and I had already implemented these functions in both the central and peripheral devices.&lt;/p&gt;
&lt;p&gt;The reason for the CONFIG_BT_LL_SW_SPLIT=y is as follows:&lt;/p&gt;
&lt;p&gt;Your example zip file (from above link) found here:&amp;nbsp;&amp;nbsp;&lt;a id="" href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_lbs_5F00_txpower.zip"&gt;/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_lbs_5F00_txpower.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Has the settings enabled as follows:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have the same CONFIG settings however, I get the squiggles under the Advanced features item:&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/pastedimage1690410470868v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If I highlight it, I see:&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/pastedimage1690410496623v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So the compiler is asking me to enable&amp;nbsp;the BT_LL_SW_SPLIT in order for the device to work properly.&amp;nbsp; If I disable it, the processor resets when it tries to set or read the power function:&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/pastedimage1690410575039v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In terms of testing with Coded PHY, I did start this with the code that I had attached.&amp;nbsp; It had worked without coded PHY.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 - CODED PHY and NUS  Central and Peripheral not communicating.  Transmit power setting issue.</title><link>https://devzone.nordicsemi.com/thread/437653?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 11:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55d745a8-3c9b-4be2-a15a-11347f5b1bd3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Trent,&lt;/p&gt;
&lt;p&gt;I would suggest to take a look at this ticket:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99721/how-to-set-ble-tx-power"&gt;How to set BLE tx power&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is also a link to a sample that I created that worked for me.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not so sure why you use&amp;nbsp;CONFIG_BT_LL_SW_SPLIT=y ? By using this you are not using Nordic Softdevice Controller, but Zephyr controller instead.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please try to test without CODED PHY first and move to CODED PHY after you verify that it works.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>