<?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>Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39817/nordic52840-----how-to-fixed-phy-rate-at-500-and-125-kbps</link><description>Hello everyone 
 I am a beginner in BLE. 
 I am working on nRF5_SDK_14.1.0-Nordic with nRF52840-PDK. 
 
 #define BLE_GAP_PHY_1MBPS 0x01 /**&amp;lt; 1 Mbps PHY. */ #define BLE_GAP_PHY_2MBPS 0x02 /**&amp;lt; 2 Mbps PHY. */ #define BLE_GAP_PHY_CODED 0x04 /**&amp;lt; Coded PHY</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Apr 2019 19:11:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39817/nordic52840-----how-to-fixed-phy-rate-at-500-and-125-kbps" /><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/184401?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 19:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4ba39e9-53ae-4e60-8b06-77e23c3385cb</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;That&amp;#39;s OK Andreas. In fact, I was asking because I wanted to make sure that my app was using S=8 coding.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/184322?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 12:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f13a684e-803d-46bf-993c-8fea49b44f2c</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi again Juan.&lt;/p&gt;
&lt;p&gt;I think I might have explained badly in my previous replies.&lt;/p&gt;
&lt;p&gt;It is correct that the Bluetooth Spec says this.&lt;/p&gt;
&lt;p&gt;But, the SoftDevice is limited to only having the CI-field set to S=8 on the transmitted frame. There is nothing to due about this unfortunately.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/184101?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 13:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41e75e70-cb5f-4e45-9c1d-5b6dc523e6e1</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sure I&amp;#39;m wrong, but that&amp;#39;s not what the Bluetooth Specification seems to say:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/CI_5F00_description.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/184049?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 11:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e514005-e650-4213-82f9-334115fdbde6</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;On the transmitter side you only have the option of 125 kbps (S=8), you don&amp;#39;t have to do anything.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/184041?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 11:07:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:073c8c2b-bc5f-42bf-ab90-641d27681e46</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I never said you set CI in the receiver side, Andreas. Anyway, my question was: How do you set the CI field to S=2 or S=8 &lt;span style="text-decoration:underline;"&gt;on the transmitter side&lt;/span&gt;?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/183957?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 07:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f62c4bcc-b451-4eba-a9a2-f0ebd3aba525</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;It is correct that if FEC1 is S=8 and FEC2 is S=2, it will not make any sence.&lt;/p&gt;
&lt;p&gt;But as I said in my previous reply, in the HW implementation for FEC2 we decode FEC2 in regards to what is set in CI.&lt;/p&gt;
&lt;p&gt;If CI is S=8 then FEC2 is decoded as S=8, if CI is S=2 then FEC2 is decoded as S=2.&lt;/p&gt;
&lt;p&gt;This is at the RX side, you don&amp;#39;t &amp;quot;set&amp;quot; the CI field here.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/183918?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 23:16:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27a2b7b0-6965-4cb9-8e4c-3d3cd467dfff</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Andreas.&lt;/p&gt;
&lt;p&gt;Then If I got you right,&amp;nbsp;when you want your extended advertising to benefit from the BT5 4xRange advantage (according to page 2565 on the BT Specification Version 5.0-Vol 6, Part B),&amp;nbsp; you must set the Coding Indicator (CI Field on the FEC block 1 of the transmitted LE CODE PHY packet) to force S=8 coding over the FEC block 2.&amp;nbsp; Otherwise, when you&amp;nbsp;are working at 4xRange, you may receive the FEC block 1 but certainly not FEC block 2, since it will reach the receiver with only two symbols per bit coding and the receiver error correction scheme won&amp;#39;t be able to&amp;nbsp;compensate the noise at this range.&amp;nbsp;Am I right? and if I am, how&amp;nbsp;can you set this CI Field value to either S=2 or S=8?&lt;/p&gt;
&lt;p&gt;Thanks and,&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/183629?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 06:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11d8fea6-9d6f-4d16-a5bd-eba9b91abf9d</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The header of Coded packets is always transmitted on S=8&amp;nbsp; (125 kbps), in the header there is a bit saying if the rest of the payload packet is S=8 or S=2 (500 kbps). Both decoding schemes are supported at the same time in the HW.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/183198?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 15:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43d5767d-ab90-4b4f-9d2c-5878b70b5ab1</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Andreas.&lt;/p&gt;
&lt;p&gt;You said to Louis: &amp;quot;&lt;span&gt;SoftDevice 6.1.0 is able to&amp;nbsp;&lt;/span&gt;&lt;strong&gt;receive&lt;/strong&gt;&lt;span&gt;&amp;nbsp;at&amp;nbsp;&lt;/span&gt;&lt;strong&gt;125 kbps and 500 kbps&lt;/strong&gt;&lt;span&gt;. But it can only&amp;nbsp;&lt;/span&gt;&lt;strong&gt;transmit at 125 kbps&amp;quot;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;and also&amp;nbsp;changing to&amp;nbsp; &amp;quot;.scan_phys&amp;nbsp; &amp;nbsp; &amp;nbsp;= BLE_GAP_PHY_CODED,&amp;quot; in the scanner. But then, how the scanner knows whether to&amp;nbsp;decode the received PDUs at 125 Kbps or 500 Kbps?&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/155053?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 09:54:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e62ce9a-b43a-4241-89ca-3fb26f3a4fb9</guid><dc:creator>Louis Wnag</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&amp;nbsp;Andreas&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Deeply appreciated&lt;b&gt;.&lt;/b&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/154505?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 12:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4f2fedc-5165-44c7-862c-c15b9e537aa6</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;In SDK 14.1 in &lt;strong&gt;nRF5_SDK_14.1.0\examples\ble_central\ble_app_blinky_c\main.c&lt;/strong&gt;, this is defined on line 386 and 387.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ble_gap_phys_t const phys =
{
    .rx_phys = BLE_GAP_PHY_AUTO,
    .tx_phys = BLE_GAP_PHY_AUTO,
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Change this to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_gap_phys_t const phys =
{
    .rx_phys = BLE_GAP_PHY_CODED,
    .tx_phys = BLE_GAP_PHY_CODED,
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/154488?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 12:01:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aefda0ce-8400-46a9-b82f-337da6ce1b6c</guid><dc:creator>Louis Wnag</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&amp;nbsp;Andreas&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Deeply appreciated&lt;b&gt;.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Very clear.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nRF5_SDK_14.1.0\examples\ble_central\ble_app_blink_c\main.c&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does not has&amp;nbsp;&amp;quot;.scan_phys&amp;quot; to set&amp;nbsp;BLE_GAP_PHY_CODED ? Am I right ?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;static ble_gap_scan_params_t const m_scan_params =&lt;br /&gt;{&lt;br /&gt; .active = 0x1,&lt;br /&gt; .interval = SCAN_INTERVAL,&lt;br /&gt; .window = SCAN_WINDOW,&lt;br /&gt; .timeout = SCAN_TIMEOUT,&lt;br /&gt; #if (NRF_SD_BLE_API_VERSION &amp;lt;= 2)&lt;br /&gt; .selective = 0,&lt;br /&gt; .p_whitelist = NULL,&lt;br /&gt; #endif&lt;br /&gt; #if (NRF_SD_BLE_API_VERSION &amp;gt;= 3)&lt;br /&gt; .use_whitelist = 0,&lt;br /&gt; #endif&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Louis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/154481?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 11:37:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9c23deb-002e-4e14-8be9-488b782e19c8</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Louis.&lt;/p&gt;
&lt;p&gt;SoftDevice 6.1.0 is able to &lt;strong&gt;receive&lt;/strong&gt; at &lt;strong&gt;125 kbps and 500 kbps&lt;/strong&gt;. But it can only &lt;strong&gt;transmit at 125 kbps&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;These rates are fixed, you only have to set your scanning or advertising phys to &lt;strong&gt;BLE_GAP_PHY_CODED&lt;/strong&gt;,&lt;/p&gt;
&lt;p&gt;Like this in &lt;strong&gt;nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_blinky\main.c :&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Line 256:
adv_params.primary_phy     = BLE_GAP_PHY_1MBPS;

Change this line to:

adv_params.primary_phy     = BLE_GAP_PHY_CODED;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For scanning, you should for example in &lt;strong&gt;nRF5_SDK_15.2.0_9412b96\examples\ble_central\ble_app_gatts\,&lt;/strong&gt; edit &lt;strong&gt;scan_phys&lt;/strong&gt; in &lt;strong&gt;m_scan_param&amp;nbsp;&lt;/strong&gt;in&lt;strong&gt; main.c&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FROM THIS:

/**&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_1MBPS,
};

TO THIS:

/**&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;p&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/154460?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 11:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72da3713-9cca-405b-859b-f60a9432fd5a</guid><dc:creator>Louis Wnag</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;nbsp;&lt;span&gt;Andreas&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks your quick response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In SDK 15.2 with SoftDevice 6.1.0:&amp;nbsp;&amp;nbsp;BLE_GAP_PHY_CODED&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;is receive and transmit at 125 kbps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;is only receive at 500 kbps&amp;nbsp;&lt;/span&gt;?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is able to set fixed rate at 125 or 500&amp;nbsp;&lt;span&gt;kbps ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Louis&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic52840 --- How to fixed PHY rate at 500 and 125 Kbps.</title><link>https://devzone.nordicsemi.com/thread/154451?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 10:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9060855-1eea-4d1c-a339-e46c9a624b0c</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Louis.&lt;/p&gt;
&lt;p&gt;In SDK 14.1 which uses SoftDevice 5.0.0-2.alpha, you can only receive and transmit at 125 kbps.&lt;/p&gt;
&lt;p&gt;I recommend that you use SDK 15.2, as this is our newest SDK with most features and fewest bugs.&lt;/p&gt;
&lt;p&gt;In SDK 15.2, you can use the latest release of the SoftDevice (version 6.1.0), which lets you either receive at 500 kbps, and transmit and receive at 125 kbps.&lt;/p&gt;
&lt;p&gt;You can read more about this in the &lt;a href="https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?doc_id=421043"&gt;BLE 5.0 specification, at page 2565&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, to sum up:&lt;/p&gt;
&lt;p&gt;In SDK 14.1 with SoftDevice 5.0.0-2.alpha:&lt;/p&gt;
&lt;p&gt;BLE_GAP_PHY_CODED is receive and transmit at 125 kbps&lt;/p&gt;
&lt;p&gt;In SDK 15.2 with SoftDevice 6.1.0:&lt;/p&gt;
&lt;p&gt;BLE_GAP_PHY_CODED is receive and transmit at 125 kbps, and receive at 500 kbps&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>