<?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>pc-ble-driver CODED PHY not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82574/pc-ble-driver-coded-phy-not-working</link><description>Hi, 
 
 We are trying to work pc-ble-driver on Windows with CODED PHY. 
 it works with 1Mb PHY but not with CODED PHY. 
 I changed the MAX CONNECITON INTERVAL to 500, but getting error on connection of NRF_ERROR_RESOURCES. 
 Using nrf52840 dongle on Windows</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Dec 2021 12:54:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82574/pc-ble-driver-coded-phy-not-working" /><item><title>RE: pc-ble-driver CODED PHY not working</title><link>https://devzone.nordicsemi.com/thread/343401?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 12:54:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4649f04-933a-426a-9e88-0f7c17f71a07</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Moshe Baker"]but now&amp;nbsp;sd_ble_gap_connect() is failing on&amp;nbsp;NRF_ERROR_INVALID_STATE.[/quote]
&lt;p&gt;Are you in a connection already when you call sd_ble_gap_connect()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver CODED PHY not working</title><link>https://devzone.nordicsemi.com/thread/343322?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 08:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9bb4c86-ce0b-4c6a-9710-1d599c3a6477</guid><dc:creator>Moshe Baker</dc:creator><description>&lt;p&gt;Update: calling the below is not failing anymore on&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___c_o_m_m_o_n___f_u_n_c_t_i_o_n_s.html#ga4edae2bac8c68b672c0fa101ed2c687f"&gt;sd_ble_cfg_set&lt;/a&gt;(), but now&amp;nbsp;sd_ble_gap_connect() is failing on&amp;nbsp;NRF_ERROR_INVALID_STATE. Peripheral is Nordic Long-Range in CODED PHY mode. nRF Connect on phone is connecting with no issue. Please help to resolve. Thanks!&lt;/p&gt;
&lt;p&gt;memset(&amp;amp;ble_cfg, 0x00, sizeof(ble_cfg));&lt;br /&gt; ble_cfg.conn_cfg.conn_cfg_tag = conn_cfg_tag;&lt;br /&gt; ble_cfg.conn_cfg.params.gap_conn_cfg.event_length = BLE_GAP_EVENT_LENGTH_CODED_PHY_MIN *3;&lt;br /&gt; ble_cfg.conn_cfg.params.gap_conn_cfg.conn_count = BLE_GAP_CONN_COUNT_DEFAULT;&lt;br /&gt; &lt;br /&gt; error_code = sd_ble_cfg_set(m_adapter, BLE_CONN_CFG_GAP, &amp;amp;ble_cfg, ram_start);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver CODED PHY not working</title><link>https://devzone.nordicsemi.com/thread/343203?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 13:55:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf018f1d-d07f-4eba-9eb0-d5bdcceb09d1</guid><dc:creator>Moshe Baker</dc:creator><description>&lt;p&gt;Can you please provide a code example how to do this? The documentation is very unclear. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver CODED PHY not working</title><link>https://devzone.nordicsemi.com/thread/343169?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 12:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd138bd1-a0c1-46f0-808a-e1406ef4f405</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;NRF_ERROR_INVALID_PARAM&amp;nbsp;error means that you have supplied an invalid&amp;nbsp;cfg_id. Have a look at &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___c_o_m_m_o_n___f_u_n_c_t_i_o_n_s.html#ga4edae2bac8c68b672c0fa101ed2c687f"&gt;sd_ble_cfg_set&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver CODED PHY not working</title><link>https://devzone.nordicsemi.com/thread/343028?ContentTypeID=1</link><pubDate>Sun, 12 Dec 2021 07:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec994e35-89f8-4eee-8862-ecd9003d5dbf</guid><dc:creator>Moshe Baker</dc:creator><description>&lt;p&gt;Hi, I added this, but getting&amp;nbsp;NRF_ERROR_INVALID_PARAM error:&lt;/p&gt;
&lt;p&gt;memset(&amp;amp;ble_cfg, 0x00, sizeof(ble_cfg));&lt;br /&gt; ble_cfg.conn_cfg.params.gap_conn_cfg.event_length = BLE_GAP_EVENT_LENGTH_CODED_PHY_MIN;&lt;br /&gt; ble_cfg.conn_cfg.params.gap_conn_cfg.conn_count = BLE_GAP_CONN_COUNT_DEFAULT;&lt;br /&gt; &lt;br /&gt; error_code = sd_ble_cfg_set(m_adapter, BLE_CONN_CFG_GAP, &amp;amp;ble_cfg, ram_start);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver CODED PHY not working</title><link>https://devzone.nordicsemi.com/thread/342956?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 14:26:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6d8d289-5455-403c-8883-c3927dfe64df</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;sd_ble_gap_connect() returning&amp;nbsp;NRF_ERROR_RESOURCES means either:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Not enough BLE role slots available. Stop one or more currently active roles (Central, Peripheral or Observer) and try again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;or&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- The event_length parameter associated with conn_cfg_tag is too small to be able to establish a connection on the selected ble_gap_scan_params_t::scan_phys. Use sd_ble_cfg_set to increase the event length.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It is probably the latter, can you check?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver CODED PHY not working</title><link>https://devzone.nordicsemi.com/thread/342750?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 14:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59ace736-9305-4840-8c75-3e1012fdf38f</guid><dc:creator>Moshe Baker</dc:creator><description>&lt;p&gt;I set PHY_CODED and set the&amp;nbsp;extended advertising to 1 in&amp;nbsp;m_scan_param.&lt;/p&gt;
&lt;p&gt;sd_ble_gap_connect() is failing&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver CODED PHY not working</title><link>https://devzone.nordicsemi.com/thread/342743?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 14:24:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2ad136c-8e0e-4709-b065-8ba02e70a3bd</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is the&amp;nbsp;&lt;span&gt;MAX CONNECITON INTERVAL the only modification you have made? What function is returning&amp;nbsp;NRF_ERROR_RESOURCES?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>