<?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>Frequency trasmission and current</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64717/frequency-trasmission-and-current</link><description>Hi, 
 during the test of the trasmission, in my phone I have seen the figure below: 
 
 As you can see the trasmission is every 2 seconds and I want to change this time trasmission. I am using the code situated in the folder &amp;quot;\nRF5_SDK_12.3.0_d7731ad</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Aug 2020 12:32:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64717/frequency-trasmission-and-current" /><item><title>RE: Frequency trasmission and current</title><link>https://devzone.nordicsemi.com/thread/265096?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 12:32:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd816c1f-15de-4505-98d5-cb8cf71a6aa9</guid><dc:creator>haakonsh</dc:creator><description>[quote user="Angelo Cotroneo"]An other question is: How can I reduce the cirrent consumption?[/quote]
&lt;p&gt;With regards to what?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What current consumption do you expect to have?&lt;br /&gt;&lt;br /&gt;Have you tried the online power profiler?&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/power/w/opp"&gt;https://devzone.nordicsemi.com/nordic/power/w/opp&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequency trasmission and current</title><link>https://devzone.nordicsemi.com/thread/264815?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 10:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4e28ffa-9373-4aba-a1e4-4ac6f5766719</guid><dc:creator>Angelo Cotroneo</dc:creator><description>&lt;p&gt;Thanks a lot for the answer but nothing change :-( An other question is: How can I reduce the cirrent consumption?&lt;/p&gt;
&lt;p&gt;Thanks a lot and best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequency trasmission and current</title><link>https://devzone.nordicsemi.com/thread/264577?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 08:59:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73a23371-c927-4766-8546-6cf0ed6ad3db</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I modified the conn_params_init() in SDK12.3\examples\ble_peripheral\ble_app_uart, on line 226 of main.c:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief Function for initializing the Connection Parameters module.
 */
static void conn_params_init(void)
{
    uint32_t                err_code;
    ble_conn_params_init_t  cp_init;
    ble_gap_conn_params_t   conn_params;

    memset(&amp;amp;conn_params, 0, sizeof(conn_params));

    conn_params.conn_sup_timeout    =  BLE_GAP_CP_CONN_SUP_TIMEOUT_MAX; /**&amp;lt; Connection Supervision Timeout in 10 ms units, see @ref BLE_GAP_CP_LIMITS.*/
    conn_params.min_conn_interval   =  80; /*100ms                      /**&amp;lt; Minimum Connection Interval in 1.25 ms units, see @ref BLE_GAP_CP_LIMITS.*/
    conn_params.max_conn_interval   =  160 /*200ms                      /**&amp;lt; Maximum Connection Interval in 1.25 ms units, see @ref BLE_GAP_CP_LIMITS.*/
    conn_params.slave_latency       =  BLE_GAP_CP_SLAVE_LATENCY_MAX     /**&amp;lt; Slave Latency in number of connection events, see @ref BLE_GAP_CP_LIMITS.*/

    memset(&amp;amp;cp_init, 0, sizeof(cp_init)); 

    cp_init.p_conn_params                  = &amp;amp;conn_params;
    cp_init.first_conn_params_update_delay = FIRST_CONN_PARAMS_UPDATE_DELAY;
    cp_init.next_conn_params_update_delay  = NEXT_CONN_PARAMS_UPDATE_DELAY;
    cp_init.max_conn_params_update_count   = MAX_CONN_PARAMS_UPDATE_COUNT;
    cp_init.start_on_notify_cccd_handle    = BLE_GATT_HANDLE_INVALID;
    cp_init.disconnect_on_fail             = false;
    cp_init.evt_handler                    = on_conn_params_evt;
    cp_init.error_handler                  = conn_params_error_handler;

    err_code = ble_conn_params_init(&amp;amp;cp_init);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I added a&amp;nbsp;ble_gap_conn_params_t struct and passed it to the&amp;nbsp;ble_conn_params_init_t struct.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You can modify the minimum and maximum Connection Intervals in order to get the Connection Intervals you want. Note that any Central has the final say in what the actual Connection Parameters the link will use, it can choose to ignore your request.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequency trasmission and current</title><link>https://devzone.nordicsemi.com/thread/264524?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 16:40:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:712d810e-84ce-4f6a-aef4-3add2e6ee8b5</guid><dc:creator>Angelo Cotroneo</dc:creator><description>&lt;p&gt;Thanks, but I have not found nothing. What is the parameter do I need to change to decrease the frequency of data trasmission (red line in the first image of this post)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequency trasmission and current</title><link>https://devzone.nordicsemi.com/thread/264464?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 12:16:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4477009c-307c-417b-a4e1-0dfd8330a1d7</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;&amp;nbsp;There&amp;#39;s probably some defines in sdk_config.h concerning the default preferred connection parameters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequency trasmission and current</title><link>https://devzone.nordicsemi.com/thread/264333?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 17:27:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:897e1081-e840-412d-a7c8-a19c6b342ca2</guid><dc:creator>Angelo Cotroneo</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you for your reply. But what parameter do I need to change? Can you help me?&lt;/p&gt;
&lt;p&gt;thanks a lot&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequency trasmission and current</title><link>https://devzone.nordicsemi.com/thread/264301?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 14:08:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cebf424c-cb1e-499c-9157-710eedfc35b1</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;That line sets the timeout for when, after a connection has been established, a connection parameter update request is automatically initiated by the application. The number 5000 is in units of 1ms&amp;nbsp;== 5 seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequency trasmission and current</title><link>https://devzone.nordicsemi.com/thread/264248?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 11:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aeb9d21-d099-4c3f-bcf6-930a297fdccd</guid><dc:creator>Angelo Cotroneo</dc:creator><description>&lt;p&gt;Hi &lt;span class="user-name"&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/haakonsh"&gt;haakonsh,&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;so you can suggest to modify the following string&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;&amp;quot;#define FIRST_CONN_PARAMS_UPDATE_DELAY&amp;nbsp; APP_TIMER_TICKS(5000, APP_TIMER_PRESCALER)&amp;quot;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;Thanks a lot and best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;Angelo&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Frequency trasmission and current</title><link>https://devzone.nordicsemi.com/thread/264229?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 10:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88770e5d-298a-4498-97f1-a0dc9b335a1b</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You need to increase the BLE Connection Interval. See&amp;nbsp;&lt;a title="sd_ble_gap_conn_param_update" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=5_7_2_2_2_1_2_9#gaf89b434841998ab384e0612dca9e12f8"&gt;sd_ble_gap_conn_param_update&lt;/a&gt;&amp;nbsp;and relevant&amp;nbsp;&lt;a title="Peripheral Connection Parameter Update" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___g_a_p___c_p_u___m_s_c.html?cp=5_7_2_2_2_1_3_7"&gt;Peripheral Connection Parameter Update&lt;/a&gt;&amp;nbsp;Message Sequence Chart.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>