<?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>Coded phy PC application Connection request Failed, reason 19</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55514/coded-phy-pc-application-connection-request-failed-reason-19</link><description>Hi, 
 I am developing a Linux PC application interfacing nrf52840 dongle using pc-ble-driver v4.1. I am trying to use the Long Range feature with Coded PHY. The setup in like: 
 
 An nrf52840 dongle programmed with ble_app_rscs example from SDK as peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Dec 2019 15:03:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55514/coded-phy-pc-application-connection-request-failed-reason-19" /><item><title>RE: Coded phy PC application Connection request Failed, reason 19</title><link>https://devzone.nordicsemi.com/thread/225201?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2019 15:03:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cebd6e2b-1beb-49e3-8e55-33a4d063c758</guid><dc:creator>Hamed Rafi</dc:creator><description>&lt;p&gt;Thank you very much. Very helpful response.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Hamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coded phy PC application Connection request Failed, reason 19</title><link>https://devzone.nordicsemi.com/thread/225199?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2019 14:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f2af9d9-480c-459e-a36f-c7e3c21dc3c0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would recommend that you try to increase the event_length parameter as suggested. You probably have something along &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/blob/master/examples/heart_rate_collector/main.c#L447"&gt;this line&lt;/a&gt; in your application. You should set the event_length parameter in this&amp;nbsp;struct before calling sd_ble_cfg_set(). In &lt;a href="https://github.com/NordicPlayground/nRF52-ble-long-range-demo/blob/master/central_long_range_demo_kit/pca10056/s140/config/sdk_config.h#L11823"&gt;this long-range demo sample&lt;/a&gt;, this parameter is set to 400.&lt;/p&gt;
&lt;p&gt;You can find message sequence charts here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/group___b_l_e___g_a_p___a_d_v___m_s_c___a_e.html"&gt;Advertising using extended advertising PDUs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/group___b_l_e___g_a_p___c_e_n_t_r_a_l___c_o_n_n___m_s_c___a_e.html"&gt;Connecting to advertisers performing extended advertising&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coded phy PC application Connection request Failed, reason 19</title><link>https://devzone.nordicsemi.com/thread/225197?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2019 14:57:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a444a76-5538-4542-8520-383d5e5208b0</guid><dc:creator>Hamed Rafi</dc:creator><description>&lt;div&gt;I figured out that during initialization, the following configuration needs to be set for the coded phy connection to work&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_cfg.conn_cfg.conn_cfg_tag = conn_cfg_tag;
ble_cfg.conn_cfg.params.gap_conn_cfg.conn_count = 2;
ble_cfg.conn_cfg.params.gap_conn_cfg.event_length = BLE_GAP_EVENT_LENGTH_CODED_PHY_MIN;
sd_ble_cfg_set(m_adapter, BLE_CONN_CFG_GAP, &amp;amp;ble_cfg, ram_start);&lt;/pre&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;After adding that, I could establish the connection.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>