<?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>Issue with nRF52840 Long range feature</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108855/issue-with-nrf52840-long-range-feature</link><description>Dear all, 
 
 I have two nRF52840 devices. The one is used as BLE peripheral and the other as central. Both devices use the Nordic UART Service. 
 I want to use the long range feature to transmit data continuously at greater distance. So i performed the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Mar 2024 08:58:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108855/issue-with-nrf52840-long-range-feature" /><item><title>RE: Issue with nRF52840 Long range feature</title><link>https://devzone.nordicsemi.com/thread/471958?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2024 08:58:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de8c0bbc-a908-4e5c-b271-14263e29c0df</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Hi, so if I understand right,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. I can leave the advertising initialization at 1MBPS (as it was without the addition of these three lines) since my two devices will be very close initially before connection.&lt;/p&gt;
&lt;p&gt;2. Also, in the code that I uploaded, do you think that I miss something that would not establish long range ?&lt;/p&gt;
&lt;p&gt;I am checking the example you sent me right now&lt;/p&gt;
&lt;p&gt;-------------------------UPDATE-----------------------&lt;/p&gt;
&lt;p&gt;I think I found the issues causing the problem in advertising PHY_CODED&lt;/p&gt;
&lt;p&gt;a. In central code, Since I enabled the extended scanning packets, the buffer NRF_BLE_SCAN_BUFFER length (in sdk_config.h) was 31 Bytes and I needed to increase it to 255. Now it seems to work without errors.&lt;/p&gt;
&lt;p&gt;b. Also, the BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE had to be set in the peripheral advertising data parameters&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;My main question remains though&lt;/span&gt;: Since my devices (peripheral and central) are in very close range until they connect, is it mandatory that I advertise PHY_CODED ? Why can&amp;#39;t I leave it at 1MBPS and I just update it once the connection is established, in the ble_evt_handler() the way I do it now?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with nRF52840 Long range feature</title><link>https://devzone.nordicsemi.com/thread/471948?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2024 08:08:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fe8f6d6-f7f7-4689-bcf2-21b006853b32</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]But after reading some posts on the internet, it is said that I also need to set the advertising data of the peripheral to BLE_GAP_PHY_CODED[/quote]
&lt;p&gt;When you&amp;nbsp;perform connectable advertising with the CODED PHY, you enable the connection to be established using CODED PHY rather than 1M PHY. This approach is often preferred, as you may not be within 1M PHY range when attempting to establish the connection.&lt;/p&gt;
&lt;p&gt;I posted an example of this here:&amp;nbsp;&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;https://devzone.nordicsemi.com/f/nordic-q-a/40476/unable-to-convert-to-long-range-after-looking-at-umpteen-examples--/157300#157300&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>