<?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 regarding Nrf52840 long range mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49799/issue-regarding-nrf52840-long-range-mode</link><description>Hi, I&amp;#39;m using Nrf52840 as the MCU for the developed product. 
 For my product, there is a central and a peripheral which two are communicate with each other via bluetooth. Currently, I set the adv_params.primary_phy = BLE_GAP_PHY_1MBPS for the peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jul 2019 06:38:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49799/issue-regarding-nrf52840-long-range-mode" /><item><title>RE: Issue regarding Nrf52840 long range mode</title><link>https://devzone.nordicsemi.com/thread/199117?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 06:38:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:722bd8b0-3ca1-4fc3-a816-48d9bdcf2686</guid><dc:creator>BK</dc:creator><description>&lt;p&gt;I just checked that there is no error(return zero) after executing&amp;nbsp;&lt;span&gt;ble_advertising_init() for the peripheral. Meanwhile, th central can receive advertising packets normally(because it can be receive the BLE_GAP_EVT_ADV_REPORT event), but somehow in those advertising packets received from various nearby devices, it seems that the specific paired peripheral(which the central want to connect to) cannot be found(by that, I mean, in my application, I will parse the received the adv packets to get the peripheral MAC address, and it cannot find that specific one anymore)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BTW, can I use nRF52840 DK and nRF sniffer application to sniffer the BLE 5.0 communication?&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding Nrf52840 long range mode</title><link>https://devzone.nordicsemi.com/thread/198967?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 12:20:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9f7314e-3891-49ae-9e20-a3e18d94ba72</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I agree, but it&amp;#39;s nice to know if the issue is because of wrong parameters either on the peripheral side or central side. Or, if the functions are returning &amp;quot;success&amp;quot;, we need to look somewhere else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding Nrf52840 long range mode</title><link>https://devzone.nordicsemi.com/thread/198921?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 10:19:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a9405ad-d719-43e9-9fa1-4c03ae6a8c56</guid><dc:creator>awneil</dc:creator><description>[quote userid="4556" url="~/f/nordic-q-a/49799/issue-regarding-nrf52840-long-range-mode/198917"]If the error code is &amp;quot;invalid params&amp;quot; it&amp;#39;s some of the parameters that are not according to spec[/quote]
&lt;p&gt;Sadly, this&amp;nbsp;no help in determining which paramter(s) was invalid, nor how it/they were invalid.&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48490/graceful-recovery-from-bluetooth-errors/192270#192270"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/48490/graceful-recovery-from-bluetooth-errors/192270#192270&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding Nrf52840 long range mode</title><link>https://devzone.nordicsemi.com/thread/198917?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 10:10:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa1b1916-b4c4-4e45-96ca-ae650e871d43</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;If you start by debugging the code you can see if the ble_advertising_init function (or scan init) returns with an error code. If the error code is &amp;quot;invalid params&amp;quot; it&amp;#39;s some of the parameters that are not according to spec. For instance both scannable and connectable is not supported with the extended advertising. So if you want to connect to the peripheral you will need connectable, non-scannable, undirected advertising. This is described in Volume 6, Part B, Section 4.4.2, Table 4.1 in the spec.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding Nrf52840 long range mode</title><link>https://devzone.nordicsemi.com/thread/198867?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 07:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5809f6f-3eed-41f5-a024-ff961a2bdd89</guid><dc:creator>BK</dc:creator><description>&lt;p&gt;Got it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did the modification as below, (my SDK is 15.2)&lt;/p&gt;
&lt;p&gt;For the peripheral:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;(1) Setting adv_extended_enabled = true&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1563348443954v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(2) in ble_advertising_start(), change the secondary_phy to CODED.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1563348539531v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then, for the central:&lt;/p&gt;
&lt;p&gt;Setting the .scan_phys to BLE_GAP_PHY_AUTO&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1563348591774v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, I found that, after setting&amp;nbsp;&lt;span&gt;adv_extended_enabled to true in the peripheral, they cannot connect with each other anymore.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you have any idea why is that? Probably there are some other places need to be modified also?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Maybe it&amp;#39;s because of the following one?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(it will change the adv type from SCANNABLE to NONSCANNABLE)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1563348776932v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding Nrf52840 long range mode</title><link>https://devzone.nordicsemi.com/thread/198630?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 08:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4774c4a5-0a5d-45ff-87bb-5cad0a233253</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;The peripheral will still advertise on the primary channels (@ 1Mbps), but the packets (ADV_EXT_IND) will only contain information about the secondary channel which will have the actual data.&lt;/p&gt;
&lt;p&gt;The central will still be scanning on the 1 Mbps primary channels, and when it receives the ADV_EXT_IND it switches to CODED (or whatever you specify) and receives the data on the secondary channel. This means that the central will still catch packets from other peripherals with normal advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding Nrf52840 long range mode</title><link>https://devzone.nordicsemi.com/thread/198550?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 16:10:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b315f99-d0ad-45e9-9e15-f917aa371fe9</guid><dc:creator>awneil</dc:creator><description>[quote userid="20351" url="~/f/nordic-q-a/49799/issue-regarding-nrf52840-long-range-mode/198546"]Nordic Connect is the one on mobile phone[/quote]
&lt;p&gt;So you will need a phone with coded-PHY support ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding Nrf52840 long range mode</title><link>https://devzone.nordicsemi.com/thread/198546?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 15:57:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e41523d-10a0-4fd2-822e-e0568b584d27</guid><dc:creator>BK</dc:creator><description>&lt;p&gt;Yes, I use nRF52840 for both Central and Peripheral.&amp;nbsp; And Nordic Connect is the one on mobile phone.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding Nrf52840 long range mode</title><link>https://devzone.nordicsemi.com/thread/198545?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 15:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b6ed497-a769-451f-ba64-5d735abed34d</guid><dc:creator>BK</dc:creator><description>&lt;p&gt;Hi Stian, thank you so much for you rapid response, that&amp;#39;s really helpful!&amp;nbsp; &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So just&amp;nbsp;to get to know that better, if I set up extended advertising, setting the secondary advertising to be CODED. Does that mean it will always use the secondary channel(CODED) instead of primary channel(1Mbps)?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding Nrf52840 long range mode</title><link>https://devzone.nordicsemi.com/thread/198509?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 13:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:012150a5-0cf7-4ddb-bb55-c0db9b33c993</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, only 1 Mbps is supported on the primary advertising channel (per Bluetooth 5 core specification, Vol 6, part B, section 2.3), except for ADV_EXT_IND (used for extended advertising). So if you want to use CODED PHY you have to set up extended advertising, and the secondary advertising packets can be CODED PHY.&lt;/p&gt;
&lt;p&gt;This blog is explains this a bit better: &lt;a href="https://www.novelbits.io/bluetooth-5-advertisements/"&gt;https://www.novelbits.io/bluetooth-5-advertisements/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The &amp;quot;Running speed and cadence application&amp;quot; example uses extended advertising, so you can look at this to see how to set it up.&lt;/p&gt;
&lt;p&gt;Peripheral: &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_rsc.html?cp=5_1_4_2_2_22"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_rsc.html?cp=5_1_4_2_2_22&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Central: &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_rscs_c.html?cp=5_1_4_2_0_3"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_rscs_c.html?cp=5_1_4_2_0_3&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding Nrf52840 long range mode</title><link>https://devzone.nordicsemi.com/thread/198494?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 13:32:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29ef38d4-93d3-4506-8ce0-0426cc9603ab</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Are you using nRF52840 for both Central and Peripheral?&lt;/p&gt;
[quote userid="20351" url="~/f/nordic-q-a/49799/issue-regarding-nrf52840-long-range-mode"]Nordic Connect App[/quote]
&lt;p&gt;Is that on a PC, or a mobile device ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>