<?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 BLE_GAP_PHY_CODED in ble_app_beacon Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40365/how-to-use-ble_gap_phy_coded-in-ble_app_beacon-example</link><description>Dear Team, 
 I am using NRF52840 for ble_app_beacon and working fine. Now I want to extend the range using &amp;#39;PHY_CODED&amp;#39; option. Please let me know in this &amp;#39; ble_app_beacon&amp;#39; example code where I have to update. 
 Regards 
 Ashiq Mohammed.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Nov 2018 07:13:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40365/how-to-use-ble_gap_phy_coded-in-ble_app_beacon-example" /><item><title>RE: How to use BLE_GAP_PHY_CODED in ble_app_beacon Example</title><link>https://devzone.nordicsemi.com/thread/157637?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 07:13:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:609f382a-d410-4c72-90c1-58c786948670</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I posted a modified version of ble_app_uart_c in this thread 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;. diff file is included in folder.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use BLE_GAP_PHY_CODED in ble_app_beacon Example</title><link>https://devzone.nordicsemi.com/thread/157628?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 05:44:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b741be3c-50c4-435b-aad9-4e5eadf0ccde</guid><dc:creator>Ashiq Mohammed</dc:creator><description>&lt;p&gt;I am trying to use &amp;#39;.scan_phys&amp;nbsp; &amp;nbsp; &amp;nbsp;= BLE_GAP_PHY_CODED&amp;#39; in SDK15.2.0 \Example\ble_central\ble_app_uart_c. But I am not able to find &amp;#39;m_scan_param&amp;#39;. Any idea&amp;nbsp;how to update&amp;nbsp;&lt;span&gt;.scan_phys&amp;nbsp; &amp;nbsp; &amp;nbsp;= BLE_GAP_PHY_CODED in SDK15.2?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use BLE_GAP_PHY_CODED in ble_app_beacon Example</title><link>https://devzone.nordicsemi.com/thread/156957?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 17:01:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15d7460e-f681-4ded-95f8-df165f88b52b</guid><dc:creator>Ashiq Mohammed</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank&amp;nbsp;you&amp;nbsp;&lt;/span&gt;&lt;span&gt;Vidar. Hope this will help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use BLE_GAP_PHY_CODED in ble_app_beacon Example</title><link>https://devzone.nordicsemi.com/thread/156941?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 15:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:841ea0a7-2605-4760-a61c-cc015597a376</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes,&amp;nbsp; &amp;quot;active&amp;quot; scanning must be enabled, and &amp;quot;scan_phys&amp;quot; must be set to&amp;nbsp;BLE_GAP_PHY_CODED:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**&amp;lt; Scan parameters requested for scanning and connection. */
static ble_gap_scan_params_t const m_scan_param =
{
    .active        = 0x01,
    .interval      = NRF_BLE_SCAN_SCAN_INTERVAL,
    .window        = NRF_BLE_SCAN_SCAN_WINDOW,
    .filter_policy = BLE_GAP_SCAN_FP_WHITELIST,
    .timeout       = SCAN_DURATION_WITELIST,
    .scan_phys     = BLE_GAP_PHY_CODED,
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use BLE_GAP_PHY_CODED in ble_app_beacon Example</title><link>https://devzone.nordicsemi.com/thread/156926?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 14:42:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ebd4f3c-3f8a-4887-8b68-ebd0eb0bf60e</guid><dc:creator>Ashiq Mohammed</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&lt;span&gt;Vidar, I am planning to use NRF52840 for scanning, do I need to configure&amp;nbsp;for&amp;nbsp;BLE_GAP_PHY_CODED for scanning also?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use BLE_GAP_PHY_CODED in ble_app_beacon Example</title><link>https://devzone.nordicsemi.com/thread/156910?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 14:10:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd0e57ec-6e1a-4aca-8a09-4805d9df95b5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Ashiq,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The following changes should be sufficient to advertise&amp;nbsp;with CODED PHY:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/examples/ble_peripheral/ble_app_beacon/main.c b/examples/ble_peripheral/ble_app_beacon/main.c
index abe39e1..9e3d484 100644
--- a/examples/ble_peripheral/ble_app_beacon/main.c
+++ b/examples/ble_peripheral/ble_app_beacon/main.c
@@ -187,11 +187,13 @@ static void advertising_init(void)
     // Initialize advertising parameters (used when starting advertising).
     memset(&amp;amp;m_adv_params, 0, sizeof(m_adv_params));
 
-    m_adv_params.properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;
+    m_adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;
     m_adv_params.p_peer_addr     = NULL;    // Undirected advertisement.
     m_adv_params.filter_policy   = BLE_GAP_ADV_FP_ANY;
     m_adv_params.interval        = NON_CONNECTABLE_ADV_INTERVAL;
     m_adv_params.duration        = 0;       // Never time out.
+    m_adv_params.primary_phy     = BLE_GAP_PHY_CODED;
+    m_adv_params.secondary_phy   = BLE_GAP_PHY_CODED;
 
     err_code = ble_advdata_encode(&amp;amp;advdata, m_adv_data.adv_data.p_data, &amp;amp;m_adv_data.adv_data.len);
     APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note: as far I know, there are no cell phones that have support for coded phy so you need a custom central/BT5 sniffer to receive&amp;nbsp;the packets.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>