<?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>Inquiry about SDK15</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37362/inquiry-about-sdk15</link><description>hello, everyone. 
 
 I have to immigrate from SDK14 to SDK15. 
 
 I have some inquiries my project ( I will configure Transmitter(Beacon) and Receiver) 
 
 First, I have configured Advertising with Scan Response on the transmitter. The receiver scan and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Aug 2018 08:51:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37362/inquiry-about-sdk15" /><item><title>RE: Inquiry about SDK15</title><link>https://devzone.nordicsemi.com/thread/144459?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 08:51:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a622fe3f-76a3-4378-ab9b-301d643001d6</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Did you change the primary phy to BLE_GAP_PHY_CODED in the&amp;nbsp;advertising_data_set() function in main.c?&lt;/p&gt;
&lt;p&gt;Could you upload the code snippets where you changed the primary phy to BLE_GAP_PHY_CODED? Also, did you leave the secondary phy at&amp;nbsp;BLE_GAP_PHY_1MBPS or did you changed it to coded phy too?&lt;/p&gt;
&lt;p&gt;If you take a look at &lt;a href="https://github.com/NordicPlayground/nrf52-ble-app-uart-long-range"&gt;this github example&lt;/a&gt;, you notice that the peripheral uart advertises over long range &amp;amp; the central uart example will connect over long range. This can be seen by looking at the m_scan_params variable in ble app uart central project in main.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**@brief Scan parameters requested for scanning and connection. */
static ble_gap_scan_params_t m_scan_params =
{
    .active            = 0,
    .interval          = SCAN_INTERVAL,
    .window            = SCAN_WINDOW,
    .filter_policy     = BLE_GAP_SCAN_FP_ACCEPT_ALL,
    .filter_duplicates = BLE_GAP_SCAN_DUPLICATES_REPORT,
    .scan_phy          = BLE_GAP_PHY_CODED,
    .duration          = SCAN_TIMEOUT,
    .period            = 0x0000, // No period.
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The advertising_start() function has been updated here in the uart peripheral example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void advertising_start(void)
{
    static ble_gap_adv_params_t adv_params = {0};
    
    adv_params.properties.connectable = 1;
    // Setting up the scan response packet is currently not supported when using CODED phy
    adv_params.properties.scannable = 0;    
    adv_params.properties.legacy_pdu = 0;
    adv_params.p_peer_addr   = NULL;
    adv_params.fp            = BLE_GAP_ADV_FP_ANY;
    adv_params.interval      = APP_ADV_INTERVAL;
    adv_params.duration      = APP_ADV_TIMEOUT_IN_SECONDS * 100;
#if defined(S140)
    adv_params.primary_phy   = BLE_GAP_PHY_CODED;
    adv_params.secondary_phy = BLE_GAP_PHY_CODED;
#else
    adv_params.primary_phy   = BLE_GAP_PHY_1MBPS;
    adv_params.secondary_phy = BLE_GAP_PHY_1MBPS;
#endif

    NRF_LOG_INFO(&amp;quot;Starting advertising.&amp;quot;);

    ret_code_t err_code = sd_ble_gap_adv_start(BLE_GAP_ADV_SET_HANDLE_DEFAULT, &amp;amp;adv_params, APP_BLE_CONN_CFG_TAG);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In the att_mtu central &amp;amp; peripheral example, the phy can be changed via the command line using this function here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void phy_set(nrf_cli_t const * p_cli, uint8_t value)
{
    ble_gap_phys_t phy =
    {
        .rx_phys = value,
        .tx_phys = value,
    };

    preferred_phy_set(&amp;amp;phy);
    nrf_cli_fprintf(p_cli, NRF_CLI_NORMAL, &amp;quot;Preferred PHY set to %s.\r\n&amp;quot;, phy_str(phy));
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Inquiry about SDK15</title><link>https://devzone.nordicsemi.com/thread/143891?ContentTypeID=1</link><pubDate>Mon, 13 Aug 2018 09:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:308a98b3-a3cc-403f-9ba3-4fe9223d2a1e</guid><dc:creator>leejh</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3264.1.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Please understand that I am not a complete expert in F/W.&lt;/p&gt;
&lt;p&gt;I have changed primary phy to coded phy. And then this situation was discovered.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Inquiry about SDK15</title><link>https://devzone.nordicsemi.com/thread/143885?ContentTypeID=1</link><pubDate>Mon, 13 Aug 2018 09:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd4105e4-2887-40b6-b686-d369c8b3eea7</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Which error did you receive?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Inquiry about SDK15</title><link>https://devzone.nordicsemi.com/thread/143878?ContentTypeID=1</link><pubDate>Mon, 13 Aug 2018 08:56:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd19d414-5ae0-4d3a-b261-583323fadc58</guid><dc:creator>leejh</dc:creator><description>&lt;p&gt;Yes, I saw. In the attmtu example, changing primary phy to coded phy returned in an errror.&lt;/p&gt;
&lt;p&gt;Is coded phy changeable after it is triggered by an event? I wonder if it is necessary to change step by step event if only the long range mode is used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Inquiry about SDK15</title><link>https://devzone.nordicsemi.com/thread/143725?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2018 12:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b52ea78-651a-4deb-8385-c4acf9cc1e88</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Lee,&lt;/p&gt;
&lt;p&gt;Have you taken a look at the migration documentation to migrate from &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/migration.html?cp=4_0_0_1_9"&gt;sdk 14.2 to sdk 15&lt;/a&gt;? Also, I would recommend taking a look at this &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/testing-long-range-coded-phy-with-nordic-solution-it-simply-works-922075585"&gt;long range demo blog post&lt;/a&gt; from Nordic, which explains coded phy well. In addition, here is the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/ble_sdk_app_att_mtu.html?cp=4_0_0_4_1_1_0"&gt;att mtu example&lt;/a&gt;, on which the long range demo is based.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>