<?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>How to use Long Range on NRF52833 with SDK17 ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86236/how-to-use-long-range-on-nrf52833-with-sdk17</link><description>Hi, 
 
 I have been trying for several days to modify the ble_app_uart project on the peripheral side to use the BLE Long Range, unsuccessfully. I use the NRF52833-DK with SDK17 and S140. 
 My programs returns an &amp;quot; ERROR 7[NRF_ERROR_INVALID_PARAM] at</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Apr 2022 07:44:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86236/how-to-use-long-range-on-nrf52833-with-sdk17" /><item><title>RE: How to use Long Range on NRF52833 with SDK17 ?</title><link>https://devzone.nordicsemi.com/thread/361738?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 07:44:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b29eb02d-e3ed-4b59-9964-e84b5fca9992</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Nil,&lt;br /&gt;This thread missed my attention queue, sorry for that and the delay caused by it.&lt;br /&gt;I have overlooked at your code. The simple change you need is to configure advertising data and not the scan response data in the coded phy.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The change that you need to do is from&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    init.srdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    init.srdata.uuids_complete.p_uuids  = m_adv_uuids;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    init.advdata.uuids_complete.p_uuids  = m_adv_uuids;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Long Range on NRF52833 with SDK17 ?</title><link>https://devzone.nordicsemi.com/thread/360557?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 13:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feaea59b-a056-4fca-a354-4d6a2747b934</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for late response, yes that settings does not seem to work anymore and I do not know what has changed. I need to debug this example a bit to understand what is broken with CODED PHY. I need some time for that and will be back to you when i have some info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Long Range on NRF52833 with SDK17 ?</title><link>https://devzone.nordicsemi.com/thread/360090?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 17:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a479d98b-5c0b-4f47-bd2e-1a814588ade2</guid><dc:creator>Nil Orbach</dc:creator><description>&lt;p&gt;Update :&amp;nbsp;the only way I found to avoid this error is to add&amp;nbsp;&lt;strong&gt;p_advertising-&amp;gt;p_adv_data-&amp;gt;adv_data.p_data = NULL;&lt;/strong&gt; and&amp;nbsp;&lt;strong&gt;p_advertising-&amp;gt;p_adv_data-&amp;gt;adv_data.len = 0;&lt;/strong&gt; just before calling&amp;nbsp;&lt;strong&gt;sd_ble_gap_adv_set_configure(&amp;amp;p_advertising-&amp;gt;adv_handle, p_advertising-&amp;gt;p_adv_data, &amp;amp;p_advertising-&amp;gt;adv_params);&lt;/strong&gt; (which is the function that raises the ERROR 7). But I guess this is not the proper way to do, and indeed my advertising still does not work...&lt;/p&gt;
&lt;p&gt;By running the debugger on Keil, here is the adv_data structure before setting it to NULL:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1648228423144v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Long Range on NRF52833 with SDK17 ?</title><link>https://devzone.nordicsemi.com/thread/360041?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 14:04:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af27b155-f68b-4cb2-9f96-60bdd51ae11f</guid><dc:creator>Nil Orbach</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your input. Actually, this is thanks to this example that I managed to modify my code to test CODED_PHY. But&amp;nbsp;these modifications have led&amp;nbsp;to the error I raised above...&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Nil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Long Range on NRF52833 with SDK17 ?</title><link>https://devzone.nordicsemi.com/thread/360032?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 13:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48f750a7-e8c7-476e-bcdf-e6211ac2d79f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There is an example on a bit older SDK to test advertising on CODED PHY for ble_app_uart. You can find the example uploaded &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40476/unable-to-convert-to-long-range-after-looking-at-umpteen-examples--/157300#157300"&gt;here&lt;/a&gt;&amp;nbsp;by Vidar. I do not think that there are that big functional changes to this API, so worth a try to test his project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>