<?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>Why can&amp;#39;t I use CODED PHY in ipsp example?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33478/why-can-t-i-use-coded-phy-in-ipsp-example</link><description>Hi Now I am developing the application to measure PER of each data rate of BLE. 
 For packet exchange, I use IPSP example in the latest nRF5 SDK version 15, s140. 
 I could change data rate to 2Mbps and 1Mbps, but I could not change to coded phy. 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Apr 2018 10:59:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33478/why-can-t-i-use-coded-phy-in-ipsp-example" /><item><title>RE: Why can't I use CODED PHY in ipsp example?</title><link>https://devzone.nordicsemi.com/thread/129919?ContentTypeID=1</link><pubDate>Thu, 26 Apr 2018 10:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d12f1ac8-ff68-4708-a331-ee2302b609ce</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for late reply, where did it cause fatal error?&amp;nbsp;&lt;br /&gt;BLE_GAP_EVENT_LENGTH_DEFAULT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; with 240 and did not get any errors and it worked just fine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I use CODED PHY in ipsp example?</title><link>https://devzone.nordicsemi.com/thread/129064?ContentTypeID=1</link><pubDate>Fri, 20 Apr 2018 00:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c1bd5ab-1f02-422d-8221-af304f47335e</guid><dc:creator>Elissa</dc:creator><description>&lt;p&gt;Oh I misunderstand the code.... IPSP example does not use the parameter,&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH, instead,&amp;nbsp;it use&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;#define BLE_GAP_EVENT_LENGTH_DEFAULT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (3)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, when I tried to change the value, 3, it goes to fatal error....&lt;/p&gt;
&lt;p&gt;I use 247 as a MTU size in config file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I use CODED PHY in ipsp example?</title><link>https://devzone.nordicsemi.com/thread/128981?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 13:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a70d0a61-4d89-4034-b547-64237a1d0d37</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;what is the MTU size you are using? after increasing the event length, is it the same error number?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I use CODED PHY in ipsp example?</title><link>https://devzone.nordicsemi.com/thread/128932?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 10:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17d8afc2-a20d-4855-a15f-059ac0aa636d</guid><dc:creator>Elissa</dc:creator><description>&lt;p&gt;Unfortunately, it didn&amp;#39;t work....&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I use CODED PHY in ipsp example?</title><link>https://devzone.nordicsemi.com/thread/128908?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 08:06:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:849f67e5-c665-4d68-b56f-d35c56c0ee7d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The documentation is saying the reason for this error&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt; * @retval ::NRF_ERROR_RESOURCES The connection event length configured for this link is not sufficient for the combination of&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt; * @ref ble_gap_phys_t::tx_phys, @ref ble_gap_phys_t::rx_phys, and @ref ble_gap_data_length_params_t.&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt; * The connection event length is configured with @ref BLE_CONN_CFG_GAP using @ref sd_ble_cfg_set.&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt; * @retval ::NRF_ERROR_BUSY Procedure is already in progress or not allowed at this time. Process pending events and wait for the pending procedure to complete and retry.&lt;br /&gt; *&lt;br /&gt; */&lt;br /&gt;SVCALL(SD_BLE_GAP_PHY_UPDATE, uint32_t, sd_ble_gap_phy_update(uint16_t conn_handle, ble_gap_phys_t const *p_gap_phys));&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This means that you need to increase the event length for your connection to accomodate the coded phy transmission as it take atleast 8 times more time to transmit than a normal 1M non coded phy transmission of your packet.&lt;/p&gt;
&lt;p&gt;You can change the event length in your sdk_config.h file&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH. Increase the value to maybe 320 if this is the only connection you have.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I use CODED PHY in ipsp example?</title><link>https://devzone.nordicsemi.com/thread/128882?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 05:32:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:784ab578-9282-4404-b767-a872af524eef</guid><dc:creator>Elissa</dc:creator><description>&lt;p&gt;I add phy change to ipsp initiator, too, of course. and I use same device ans same version of SDK to initiator.&lt;/p&gt;
&lt;p&gt;sd_ble_gap_phy_update returns 13, operation time out or not enough resources for operation&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I use CODED PHY in ipsp example?</title><link>https://devzone.nordicsemi.com/thread/128867?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 18:28:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be0aba44-7339-45d1-bdf0-c71ed124e5ca</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;probably the peer is not configured to support coded phy . Also check if the sd_ble_gap_phy_update call&amp;nbsp; returned with any errors for coded phy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I use CODED PHY in ipsp example?</title><link>https://devzone.nordicsemi.com/thread/128771?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 10:40:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c91fdd8-9deb-40c3-a267-fec73009110f</guid><dc:creator>Elissa</dc:creator><description>&lt;p&gt;There was no error, and I could not get BLE_GAP_EVT_PHY_UPDATE event. Using 1Mbps and 2Mbps PHY, I successfully get BLE_GAP_EVT_PHY_UPDATE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I use CODED PHY in ipsp example?</title><link>https://devzone.nordicsemi.com/thread/128768?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 10:34:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef67b19a-3126-4b9f-beaa-b7121a81c045</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;it should work, do you get any errors or asserts? what do you that you could not change to coded phy? do you get&amp;nbsp;BLE_GAP_EVT_PHY_UPDATE event after the phy update request?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>