<?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>nrf long range example with low data rate</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72899/nrf-long-range-example-with-low-data-rate</link><description>hello, 
 i am using two customised nrf52840 boards and this example https://github.com/NordicPlayground/nRF52-ble-long-range-demo to get the maximum range between two boards i want to achieve that in low data rate of 500 kbps or 125 kbps. i know that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Mar 2021 20:19:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72899/nrf-long-range-example-with-low-data-rate" /><item><title>RE: nrf long range example with low data rate</title><link>https://devzone.nordicsemi.com/thread/300786?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 20:19:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc8c9443-96a3-4e07-b7fc-c34a6059dafe</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you check the return code from&amp;nbsp;sd_ble_gap_disconnect(), to see if any errors are returned?&lt;/p&gt;
&lt;p&gt;In general, it is better to use a timer for such tasks. I suspect that the function your are putting the 5 seconds delay inside is running in interrupt context, which may prevent your application from handling other lower/same priority events an potentially preventing handling of events from the softdevice. If you want to test with delays, set a flag in the function after connection, then check for this flag inside main() loop and put the delay here to allow handling of other events.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf long range example with low data rate</title><link>https://devzone.nordicsemi.com/thread/300561?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 05:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c62b5a5-35fb-47f8-a7fb-7043a52c4d5d</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;thanks that helped now can i able to connect the two devices now i have to disconnect the device after 5 seconds and again start scanning after 3 seconds i doing it like this but that does not seems to be working can you help me with this&lt;pre class="ui-code" data-mode="c_cpp"&gt;if(m_adv_scan_phy_selected == SELECTION_CODED_PHY)
         {
           NRF_LOG_INFO(&amp;quot;Connecting on coded phy.&amp;quot;);
           err_code = sd_ble_gap_connect(&amp;amp;p_adv_report-&amp;gt;peer_addr,
                                           &amp;amp;m_scan_param_coded_phy,
                                           &amp;amp;m_conn_param,
                                           APP_BLE_CONN_CFG_TAG);
           if (err_code != NRF_SUCCESS)
             {
                 NRF_LOG_ERROR(&amp;quot;sd_ble_gap_connect() failed: 0x%x.&amp;quot;, err_code);
             }
 
          printf(&amp;quot;mani&amp;quot;);   
        //err_code = app_timer_start(led_toggle_on_connection, FAST_BLINK_INTERVAL, NULL);

        nrf_delay_ms(5000);
        sd_ble_gap_disconnect(m_conn_handle,BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);  
             
         }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;thanks and regards&lt;/p&gt;
&lt;p&gt;manikandan v&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf long range example with low data rate</title><link>https://devzone.nordicsemi.com/thread/300410?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 12:52:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5413cde2-7e9d-4f31-b423-ed6dafc8a392</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34876/is-s2-or-s8-supported-in-sd140-v6-0-0/133976#133976"&gt;this post&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;The maximum range will depend on the environment and surroundings. You will not be able to achieve 1km range indoors with much interference, but it could be achieved outside with free line of sight and little interference. You will always see some packet loss, 0% packet loss is almost never possible in wireless communication, unless you are transmitting in a fully shielded room. The Bluetooth stack will ACK the messages, to make sure that packages are arriving correctly, or perform a retransmit if packet is lost. If packets cannot be delivered, a timeout error can be reported. If the devices are too far apart to communicate, the connection will be disconnected after a timeout period.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>