<?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>nRF52833 Coded PHY</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90781/nrf52833-coded-phy</link><description>Good day 
 I am currently developing a system using the nRF52833. A nRF peripheral device needs to be connected to both a mobile app and a nRF central device. The software on the peripheral currently is able to connect to both the mobile app and central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Aug 2022 14:10:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90781/nrf52833-coded-phy" /><item><title>RE: nRF52833 Coded PHY</title><link>https://devzone.nordicsemi.com/thread/382078?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 14:10:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7a592ce-2771-4780-b15a-87cd320e0870</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m sorry, but I don&amp;#39;t see what&amp;#39;s missing here. This should run on Coded PHY from what I can see. Can you try doing a Diff between the nRF52833 main file and the Coded PHY main file I uploaded?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 Coded PHY</title><link>https://devzone.nordicsemi.com/thread/381895?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 07:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaabb3f1-d188-4542-a4d0-22444b464a0d</guid><dc:creator>Louw</dc:creator><description>&lt;p&gt;The&amp;nbsp;&lt;span&gt;NRF_BLE_SCAN_BUFFER&amp;nbsp;is set to 255&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_FAST); returns error code 0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Stepping through the ble_advertising_start function:&lt;br /&gt;line 547: p_advertising-&amp;gt;initialized == true&lt;br /&gt;552: p_advertising-&amp;gt;adv_mode_current is set to 0x03&lt;/p&gt;
&lt;p&gt;The if statement on line 556 is false&lt;/p&gt;
&lt;p&gt;572: p_advertising-&amp;gt;adv_mode_current is set to 0x03&lt;/p&gt;
&lt;p&gt;The if statement on line 574 is false, else on line 584 is used&lt;br /&gt;p_advertising-&amp;gt;whitelist_reply_expected is set to 0x00&lt;/p&gt;
&lt;p&gt;595: if statement is valid, p_advertising-&amp;gt;adv_params.primary_phy is set to 0x04&lt;br /&gt;604: if statement is valid, p_advertising-&amp;gt;adv_params.secondary_phy is set to 0x04&lt;/p&gt;
&lt;p&gt;616: p_advertising-&amp;gt;adv_params.filter_policy is set to 0x00&lt;/p&gt;
&lt;p&gt;switch statement on line 619 value is BLE_ADV_MODE_FAST&lt;/p&gt;
&lt;p&gt;645: if(p_advertising-&amp;gt;adv_mode_current != BLE_ADV_MODE_IDLE) is true&lt;br /&gt;649: if(ret != NRF_SUCCESS) is false&lt;br /&gt;655: if(ret != NRF_SUCCESS) is false&lt;br /&gt;661: if (p_advertising-&amp;gt;evt_handler != NULL) is true&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 Coded PHY</title><link>https://devzone.nordicsemi.com/thread/381147?ContentTypeID=1</link><pubDate>Thu, 11 Aug 2022 09:11:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6a61316-339c-4acc-b164-2e0ebd9d1b9c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Can you show me what your&amp;nbsp;&lt;strong&gt;&lt;span&gt;ble_advertising_start&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;function does though? Please also make sure that the NRF_BLE_SCAN_BUFFER is equal to BLE_GAP_SCAN_BUFFER_EXTENDED_MIN (255)?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 Coded PHY</title><link>https://devzone.nordicsemi.com/thread/381042?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 14:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf43f2b4-a56a-4b1d-8763-db90c22625af</guid><dc:creator>Louw</dc:creator><description>&lt;p&gt;There is no more logging after &amp;quot;&lt;span&gt;Debug logging for UART over RTT started&amp;quot;. When debugging the code, I&amp;#39;m able to step through everything without any errors.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If I comment out (lines 629 - 631 in my code):&lt;br /&gt;// init.config.ble_adv_primary_phy = BLE_GAP_PHY_CODED;&lt;br /&gt;// init.config.ble_adv_secondary_phy = BLE_GAP_PHY_CODED;&lt;br /&gt;// init.config.ble_adv_extended_enabled = true;&lt;br /&gt;The code works fine again, immediately&amp;nbsp;connects.&lt;br /&gt;&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app_timer: RTC: initialized.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Debug logging for UART over RTT started.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 251 on connection 0x0.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Connected&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: Peer on connection 0x0 requested an ATT MTU of 247 bytes.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: Updating ATT MTU to 247 bytes (desired: 247) on connection 0x0.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_ble_gatt: ATT MTU updated to 247 bytes on connection&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t think the advertising_start function is changing anything&lt;br /&gt;static void advertising_start(void)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code = ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_FAST);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 Coded PHY</title><link>https://devzone.nordicsemi.com/thread/381017?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 12:43:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ecc94cf-23b4-4da7-9f4c-1e942231db50</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Is there no more logging after the &amp;quot;Debug logging for UART over RTT started&amp;quot; line? Does the peripheral application start advertising at all? And can you check that the &lt;strong&gt;ble_advertising_start&lt;/strong&gt;() function (wherever it is defined) does not change the advertising settings that you set in advertising_init()?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 Coded PHY</title><link>https://devzone.nordicsemi.com/thread/380961?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 08:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:639ce3ed-44c7-45b3-aaa0-90a7f1394171</guid><dc:creator>Louw</dc:creator><description>&lt;p&gt;I still can&amp;#39;t get the two devices to connect. I&amp;#39;ve attached my code, could you please have a look at it.&lt;br /&gt;&lt;br /&gt;I get the following output from RTT Viewer:&lt;br /&gt;&lt;br /&gt;Central&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app_timer: RTC: initialized.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; ble_scan: Added filter on UUID 1&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: BLE UART central example started.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; ble_scan: Scanning&lt;br /&gt;00&amp;gt; &lt;br /&gt;&lt;br /&gt;Peripheral&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app_timer: RTC: initialized.&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Debug logging for UART over RTT started.&lt;br /&gt;00&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Coded_5F00_PHY_5F00_Examle.zip"&gt;devzone.nordicsemi.com/.../Coded_5F00_PHY_5F00_Examle.zip&lt;/a&gt;&lt;br /&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 Coded PHY</title><link>https://devzone.nordicsemi.com/thread/380725?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 06:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9c63d1c-9ba6-459e-9a9f-2090fc3a7ac1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Indeed, only advertising/scan initialization should be necessary to&amp;nbsp;add Coded PHY. Most importantly are the following inits (in advertising):&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;strong&gt;init.advdata.flags &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;strong&gt;init.config.ble_adv_primary_phy &amp;nbsp; &amp;nbsp; &amp;nbsp; = BLE_GAP_PHY_CODED;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;init.config.ble_adv_secondary_phy &amp;nbsp; &amp;nbsp; = BLE_GAP_PHY_CODED;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;init.config.ble_adv_extended_enabled &amp;nbsp;= true;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;And these for scan_init:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;scan_params.filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;scan_params.scan_phys &amp;nbsp; &amp;nbsp; = BLE_GAP_PHY_CODED;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;scan_params.extended &amp;nbsp; &amp;nbsp; &amp;nbsp;= true;&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Simon&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 Coded PHY</title><link>https://devzone.nordicsemi.com/thread/380652?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 14:42:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d90a9bd9-2c2a-4103-abd8-bb487aab6559</guid><dc:creator>Louw</dc:creator><description>&lt;p&gt;Thank you for the quick response.&lt;br /&gt;&lt;br /&gt;I have tried to copy the code from your project to a fresh example from the SDK, since I need to use the pca10100 example and your code is from pca10056. The central and peripheral won&amp;#39;t connect to each other.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;From what I&amp;#39;ve seen, your only changes to the code was&amp;nbsp;&lt;br /&gt;to&amp;nbsp;advertising_init() on the central&lt;br /&gt;and to&amp;nbsp;scan_init() on the peripheral&lt;br /&gt;Is this correct?&lt;br /&gt;&lt;br /&gt;Do you have any further advice?&lt;br /&gt;&lt;br /&gt;Thanks for the extra advice of setting&amp;nbsp;&lt;br /&gt;sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_advertising.adv_handle, 8);&lt;br /&gt;and&lt;br /&gt;sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_SCAN_INIT, 0, 8);&lt;br /&gt;on&amp;nbsp;the devices, I&amp;#39;ll use that when I&amp;#39;ve managed to get the two devices connected&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 Coded PHY</title><link>https://devzone.nordicsemi.com/thread/380611?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 12:25:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25161bd8-9a1c-488f-813e-c2424e4c8831</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have an official sample project in the nRF5 SDK for using Coded PHY, but here you have an unofficial modified version of the ble_app_uart project running with Coded PHY. The main changes are to the PHY used. Extended advertising being enabled, as well as the advertising flags are set to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;GENERAL_DISC&lt;/strong&gt;. If your application also uses extended MTU for example, Coded PHY does not support larger data packets than 27 bytes.&lt;/p&gt;
&lt;p&gt;Please note that S2 is not supported by the nRF5 SDK, so you&amp;#39;ll have to make do with S8.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0027.Long_5F00_range_5F00_15.2.zip"&gt;Long_range_15.2.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>