<?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>Configure nRF52840 Dongle working parameters for &amp;quot;heart_rate_collector&amp;quot; example in windows 10</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63345/configure-nrf52840-dongle-working-parameters-for-heart_rate_collector-example-in-windows-10</link><description>Hi, 
 We are using nRF52840 Dongle to receive BLE peripheral Device 240 Bytes notifications for Win10 program. And w e used &amp;quot;pc-ble-driver-4.1.1\examples\heart_rate_collector&amp;quot;(win10) as starting point. 
 &amp;quot;Bluetooth Low Energy&amp;quot; APP in &amp;quot;nRF Connect&amp;quot; can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Jul 2020 12:52:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63345/configure-nrf52840-dongle-working-parameters-for-heart_rate_collector-example-in-windows-10" /><item><title>RE: Configure nRF52840 Dongle working parameters for "heart_rate_collector" example in windows 10</title><link>https://devzone.nordicsemi.com/thread/258605?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 12:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:507bb712-3094-4ba5-983d-98acfe07b3bd</guid><dc:creator>Banban</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Program received 240 bytes notifications.&lt;/p&gt;
&lt;p&gt;Thank you very much for you patients!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure nRF52840 Dongle working parameters for "heart_rate_collector" example in windows 10</title><link>https://devzone.nordicsemi.com/thread/258539?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 08:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ff30ad4-aa39-4f4b-9b24-88151aa922da</guid><dc:creator>Banban</dc:creator><description>&lt;p&gt;I tried 320, 620, 1280..., still&amp;nbsp;&lt;span&gt;NRF_ERROR_RESOURCES error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Furthermore, I added:&lt;/p&gt;
&lt;p&gt;ble_opt_t opt;&lt;br /&gt; memset(&amp;amp;opt, 0x00, sizeof(opt));&lt;br /&gt; opt.common_opt.conn_evt_ext.enable = 1;&lt;br /&gt; error_code = sd_ble_opt_set(m_adapter, BLE_COMMON_OPT_CONN_EVT_EXT, &amp;amp;opt);//NRF_SUCCESS&lt;/p&gt;
&lt;p&gt;still&amp;nbsp;&lt;span&gt;NRF_ERROR_RESOURCES error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My GOD! What&amp;#39; wrong!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure nRF52840 Dongle working parameters for "heart_rate_collector" example in windows 10</title><link>https://devzone.nordicsemi.com/thread/258538?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 08:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d5a72de-32b1-4fdb-a3c1-89e0136cd16e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I did look at your code. I can only see that you tried setting it to 24. Try increasing it, for instance to 320.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure nRF52840 Dongle working parameters for "heart_rate_collector" example in windows 10</title><link>https://devzone.nordicsemi.com/thread/258532?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 07:56:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e011f132-1a0d-4fa1-9f4a-227276bf0f88</guid><dc:creator>Banban</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for you reply.&lt;/p&gt;
&lt;p&gt;Check my program, please. At the second time, I&amp;nbsp;&lt;span&gt;configured&amp;nbsp;event_length in&amp;nbsp;ble_cfg_set(). And sd_ble_cfg_set() returned&amp;nbsp;NRF_SUCCESS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But in ble_evt_dispatch(), sd_ble_gap_data_length_update still returned&amp;nbsp;NRF_ERROR_RESOURCES error.&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure nRF52840 Dongle working parameters for "heart_rate_collector" example in windows 10</title><link>https://devzone.nordicsemi.com/thread/258528?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 07:40:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bc3c96d-6e88-424b-ab5d-0cb40bb45913</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;0x3001 means&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group__ble__err.html#ga521db6a097589b80939d76cb453fad3c"&gt;BLE_ERROR_NOT_ENABLED&lt;/a&gt;. Did you enable the softdevice first?&lt;/p&gt;
&lt;p&gt;Did you try increasing the event_length parameter? The API documentation say this for the NRF_ERROR_RESOURCES error:&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td colspan="1" rowspan="1"&gt;&lt;a title="Not enough resources for operation." href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group__nrf__error.html#gac94383171545e604e8347a044e8be13f"&gt;NRF_ERROR_RESOURCES&lt;/a&gt;&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;The connection event length configured for this link is not sufficient for the requested parameters. Use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/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;&amp;nbsp;&lt;/span&gt;with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___c_o_m_m_o_n___e_n_u_m_e_r_a_t_i_o_n_s.html#gga779434fafdab8139b77388c96adb1d81a1efa58704547ad68e4b062e28fa2ba41"&gt;BLE_CONN_CFG_GAP&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to increase the connection event length. Inspect p_dl_limitation to see where the limitation is.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&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: Configure nRF52840 Dongle working parameters for "heart_rate_collector" example in windows 10</title><link>https://devzone.nordicsemi.com/thread/258488?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 01:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53c92b3b-b9fd-40fd-84f6-8b889e3f0cdd</guid><dc:creator>Banban</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The first time,&lt;/p&gt;
&lt;p&gt;static uint32_t ble_cfg_set(uint8_t conn_cfg_tag)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; ble_gap_data_length_params_t const dlp =&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .max_rx_octets = 251,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .max_tx_octets = 251,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .max_rx_time_us = 2120,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .max_tx_time_us = 2120,&lt;br /&gt;&amp;nbsp; &amp;nbsp; };&lt;br /&gt;&amp;nbsp; &amp;nbsp; error_code = sd_ble_gap_data_length_update(m_adapter, m_connection_handle, &amp;amp;dlp, NULL);//&lt;span&gt;error_code==0x3001&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But &amp;quot;0x3001&amp;#39; is not defined&amp;nbsp; in &amp;quot;Global&amp;nbsp;Error&amp;quot;. What does &amp;quot;0x3001&amp;quot; mean?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The second time,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;static uint32_t ble_cfg_set(uint8_t conn_cfg_tag)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; const uint32_t ram_start = 0; // Value is not used by ble-driver&lt;br /&gt;&amp;nbsp; &amp;nbsp; uint32_t error_code;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ble_cfg_t ble_cfg;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; memset(&amp;amp;ble_cfg, 0x00, sizeof(ble_cfg));&lt;br /&gt;&amp;nbsp; &amp;nbsp; ble_cfg.conn_cfg.conn_cfg_tag = conn_cfg_tag;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ble_cfg.conn_cfg.params.gap_conn_cfg.event_length = 24;&lt;br /&gt;&amp;nbsp; &amp;nbsp; error_code = sd_ble_cfg_set(m_adapter, BLE_CONN_CFG_GATTC, &amp;amp;ble_cfg, ram_start);//error_code == NRF_SUCCESS&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;static void ble_evt_dispatch(adapter_t* adapter, ble_evt_t* p_ble_evt)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; switch (p_ble_evt-&amp;gt;header.evt_id)&lt;br /&gt; {&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;case BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; uint16_t i1 = p_ble_evt-&amp;gt;evt.gap_evt.params.data_length_update.effective_params.max_rx_octets;&lt;br /&gt;&amp;nbsp; &amp;nbsp; uint16_t i2 = p_ble_evt-&amp;gt;evt.gap_evt.params.data_length_update.effective_params.max_tx_octets;&lt;br /&gt;&amp;nbsp; &amp;nbsp; uint16_t i3 = p_ble_evt-&amp;gt;evt.gap_evt.params.data_length_update.effective_params.max_rx_time_us;&lt;br /&gt;&amp;nbsp; &amp;nbsp; uint16_t i4 = p_ble_evt-&amp;gt;evt.gap_evt.params.data_length_update.effective_params.max_tx_time_us;&lt;br /&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;i1=%d, i2=%d, i3=%d, i4=%d\n&amp;quot;, i1, i2, i3,i4);//i1==251, i2==251, i3==2120, i4==2120&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; ble_gap_data_length_params_t const dlp =&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .max_rx_octets = 251,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .max_tx_octets = 251,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .max_rx_time_us = 2120,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .max_tx_time_us = 2120,&lt;br /&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; ble_gap_data_length_limitation_t dll;&lt;br /&gt;&amp;nbsp; &amp;nbsp; uint32_t error_code = sd_ble_gap_data_length_update(m_adapter, m_connection_handle, &amp;amp;dlp, &amp;amp;dll);//error_code&amp;nbsp;==NRF_ERROR_RESOURCES&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; i1 = dll.rx_payload_limited_octets;//i1==52428&lt;br /&gt;&amp;nbsp; &amp;nbsp; i2 = dll.tx_payload_limited_octets;//i2==52428&lt;br /&gt;&amp;nbsp; &amp;nbsp; i3 = dll.tx_rx_time_limited_us; //i3==52428&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;event_length&amp;quot; has been configured successfully in&amp;nbsp;In&amp;nbsp;ble_cfg_set()&amp;nbsp;, but when I called sd_ble_gap_data_length_update() in &amp;quot;case BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST&amp;quot;, it returned&amp;nbsp;NRF_ERROR_RESOURCES.&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure nRF52840 Dongle working parameters for "heart_rate_collector" example in windows 10</title><link>https://devzone.nordicsemi.com/thread/258373?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 14:50:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c3249b5-dfed-4d6c-9c0e-dbdf566fc945</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;pc-ble-driver implements our serialization libraries, which gives you access to the full softdevice API. You can add functionality in&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/blob/v4.1.1/examples/heart_rate_collector/main.c"&gt;the examples&lt;/a&gt;&amp;nbsp;in the same way that the API is used in our SDK.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a title="sd_ble_gap_phy_update" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_7_4_2_2_1_2_24#gab845ddf7b56ef556ab9c2c74d5199ff8"&gt;sd_ble_gap_phy_update&lt;/a&gt;()&lt;/li&gt;
&lt;li&gt;&lt;a title="sd_ble_gap_data_length_update" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_7_4_2_2_1_2_14#gac4a6ef5c106107eb2a1707bb26f3245c"&gt;sd_ble_gap_data_length_update&lt;/a&gt;()&lt;/li&gt;
&lt;li&gt;&lt;a title="sd_ble_gattc_exchange_mtu_request" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html?cp=4_7_4_2_2_2_2_6#ga269894b0415de8c4ae76343b74f6e655"&gt;sd_ble_gattc_exchange_mtu_request&lt;/a&gt;()&lt;/li&gt;
&lt;li&gt;&lt;a title="sd_ble_gap_conn_param_update" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_7_4_2_2_1_2_10#gaf89b434841998ab384e0612dca9e12f8"&gt;sd_ble_gap_conn_param_update&lt;/a&gt;()&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Note that the application needs to handle the corresponding events to the API calls for the changes to work correctly.&lt;/p&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></channel></rss>