<?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>How to transmit 6 packets in S130 Uart central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12935/how-to-transmit-6-packets-in-s130-uart-central</link><description>Hi there, 
 I am struct for two days trying to send 6 packets of 20 bytes as central. I use ble app uart central sample from nrf5_sdk11.0 with nrf51 S130 v2.0 softdevice. 
 I start believing that this sample and softdevice can only transmit 3 packets</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Nov 2018 09:17:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12935/how-to-transmit-6-packets-in-s130-uart-central" /><item><title>RE: How to transmit 6 packets in S130 Uart central</title><link>https://devzone.nordicsemi.com/thread/156442?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 09:17:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2180afa7-1182-4fb6-9f3c-3d985df6c622</guid><dc:creator>Hust</dc:creator><description>&lt;p&gt;Could you please upload how did you do it?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to transmit 6 packets in S130 Uart central</title><link>https://devzone.nordicsemi.com/thread/156437?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 09:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7da7868a-4773-4fcd-b56e-0e94719dd27b</guid><dc:creator>Hust</dc:creator><description>&lt;p&gt;Could you please refer the docs you mentioned here so I can look in those examples?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to transmit 6 packets in S130 Uart central</title><link>https://devzone.nordicsemi.com/thread/49278?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 08:47:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97b2e8ef-73be-4956-8d35-49a7a4ac9375</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;which document, this one? &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v2.0.0%2Findex.html"&gt;link text&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is not so clear, is it? For example, uint32_t sd_ble_opt_get, that document does not say much about when to use it and how to use it.&lt;/p&gt;
&lt;p&gt;When I add the following code in my ble_stack_init(), my app crashes.&lt;/p&gt;
&lt;p&gt;ble_opt_t ble_opt;&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_opt_get(BLE_COMMON_OPT_CONN_BW, &amp;amp;ble_opt);&lt;/p&gt;
&lt;p&gt;printf(&amp;quot;tx %d, rx %d\r\n&amp;quot;, ble_opt.common_opt.conn_bw.conn_bw.conn_bw_tx,   ble_opt.common_opt.conn_bw.conn_bw.conn_bw_rx);&lt;/p&gt;
&lt;p&gt;APP_ERROR_CHECK(err_code);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to transmit 6 packets in S130 Uart central</title><link>https://devzone.nordicsemi.com/thread/49277?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 14:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66cc0959-316e-4d72-a400-ba3d21fad968</guid><dc:creator>mc</dc:creator><description>&lt;p&gt;Hi Jorge,&lt;/p&gt;
&lt;p&gt;The code in the third box during initialization of stack works for me but you have to follow the steps in getting the RAM base in page 5/18 in the migration document. Do not include the sd_ble_opt_set in during stack initialization but instead use it before connecting. See the SD document of sd_ble_opt_set .&lt;/p&gt;
&lt;p&gt;Regards,
-Mc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to transmit 6 packets in S130 Uart central</title><link>https://devzone.nordicsemi.com/thread/49276?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 09:15:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fbe6eac-a07f-483e-b666-26c84d594848</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;Hello, I&amp;#39;m trying also to change to the Bandwidth high on the ble_app_uart_c, but I can&amp;#39;t change it, I already had a look at the release notes, examples, and some codes here on the Devzone but can&amp;#39;t manage to make my project work... If you can show me how did you manage to do it on the S130 v2.0 I would be appreciated. Regards, Jorge&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to transmit 6 packets in S130 Uart central</title><link>https://devzone.nordicsemi.com/thread/49272?ContentTypeID=1</link><pubDate>Sun, 03 Apr 2016 11:53:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a43aba72-3ca5-46d5-a615-007a92601519</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Good to hear - I just pointed you to the docs and you sorted it out yourself. Nice to know it works!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to transmit 6 packets in S130 Uart central</title><link>https://devzone.nordicsemi.com/thread/49275?ContentTypeID=1</link><pubDate>Sun, 03 Apr 2016 09:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1e70e6c-2cb3-438b-a9c5-b7c534ec305c</guid><dc:creator>mc</dc:creator><description>&lt;p&gt;Thank you RK,&lt;/p&gt;
&lt;p&gt;Such a great help!!!! The nrf51 S130 v2.0 softdevice and  ble app uart central sample from nrf5_sdk11.0  can be configured to transmit the 6 packets per interval. My peripheral can be now receive 6 packets per interval.&lt;/p&gt;
&lt;p&gt;Regards,
Marlon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to transmit 6 packets in S130 Uart central</title><link>https://devzone.nordicsemi.com/thread/49274?ContentTypeID=1</link><pubDate>Sun, 03 Apr 2016 07:55:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c44b5360-0305-4c57-8284-ded2ccb7ec40</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;softdevice_enable_get_default_config() is going to do exactly that - get you the default configuration which is medium speed central connections. You need to configure the ble_enable_params_t to have a number of high-speed central connections if you want to use them later.&lt;/p&gt;
&lt;p&gt;read the notes which came with the S130/S132 V2 releases, they give a number of examples of how to configure the connections you want.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to transmit 6 packets in S130 Uart central</title><link>https://devzone.nordicsemi.com/thread/49273?ContentTypeID=1</link><pubDate>Sun, 03 Apr 2016 06:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dfbfc52-ecc6-4139-b8e3-0c10fddf7a21</guid><dc:creator>mc</dc:creator><description>&lt;p&gt;Hi RK,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.
So, if you don&amp;#39;t configure the stack to higher bandwidth the central wont be transmitting 6 packets..?&lt;/p&gt;
&lt;p&gt;Below is what is code stack configuration.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t err_code;

nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;

// Initialize the SoftDevice handler module.
SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);

ble_enable_params_t ble_enable_params;

memset(&amp;amp;ble_enable_params, 0x00, sizeof(ble_enable_params));

err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,
                                                PERIPHERAL_LINK_COUNT,
                                                &amp;amp;ble_enable_params);
APP_ERROR_CHECK(err_code);

//Check the ram settings against the used number of links
CHECK_RAM_START_ADDR(CENTRAL_LINK_COUNT,PERIPHERAL_LINK_COUNT);

// Enable BLE stack.
err_code = softdevice_enable(&amp;amp;ble_enable_params);
APP_ERROR_CHECK(err_code);

/* Configure bandwidth and connect as a peripheral */
ble_opt_t ble_opt;
ble_common_opt_conn_bw_t conn_bw;
memset(&amp;amp;conn_bw, 0x00, sizeof(conn_bw));
memset(&amp;amp;ble_opt, 0x00, sizeof(ble_opt));

// if this set to mid this will work but setting it to high will not
conn_bw.conn_bw.conn_bw_rx = BLE_CONN_BW_HIGH;
conn_bw.conn_bw.conn_bw_tx = BLE_CONN_BW_HIGH;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;//    conn_bw.conn_bw.conn_bw_rx = BLE_CONN_BW_MID;
//    conn_bw.conn_bw.conn_bw_tx = BLE_CONN_BW_MID;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;conn_bw.role = BLE_GAP_ROLE_CENTRAL;

// gap option is missing?
ble_opt.common_opt.conn_bw = conn_bw;

err_code = sd_ble_opt_set(BLE_COMMON_OPT_CONN_BW, &amp;amp;ble_opt);
APP_ERROR_CHECK(err_code);

// Register with the SoftDevice handler module for BLE events.
err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This configuration I have is this, from&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/62269/s132-v2-how-to-pass-6-packets-per-connection-interval/:"&gt;devzone.nordicsemi.com/.../:&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;uint32_t err_code;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_clock_lf_cfg_t my_xtal_cfg = {
    .source = NRF_CLOCK_LF_SRC_XTAL,
    .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM
};

err_code = sd_softdevice_enable(&amp;amp;my_xtal_cfg , fault_handler);
APP_ERROR_CHECK(err_code);

/* Example for one high-bandwidth RX and TX connection as a central */
ble_conn_bw_counts_t conn_bw_counts = {
    .tx_counts = {.high_count = 1, .mid_count = 0, .low_count = 0},
    .rx_counts = {.high_count = 1, .mid_count = 0, .low_count = 0}
};


ble_enable_params_t params;
uint32_t retv;
uint32_t app_ram_base;

memset(&amp;amp;params, 0x00, sizeof(params));

/*Set bandwidth*/
params.common_enable_params.p_conn_bw_counts = &amp;amp;conn_bw_counts;

// may set to x uuid..adjust the RAM?
params.common_enable_params.vs_uuid_count = 1;
/* this application requires 1 connection as a peripheral */
params.gap_enable_params.periph_conn_count = 0;
/* this application requires 0 connections as a central */
params.gap_enable_params.central_conn_count = 1;
/* this application only needs to be able to pair in one central link at a time */
params.gap_enable_params.central_sec_count = 0;
/* we require the Service Changed characteristic */
params.gatts_enable_params.service_changed = 0;
/* the default Attribute Table size is appropriate for our application */
params.gatts_enable_params.attr_tab_size = BLE_GATTS_ATTR_TAB_SIZE_DEFAULT;
/* set app_ram_base to the starting memory address of the application RAM,
obtained directly from the linker */


app_ram_base = __LINKER_APP_RAM_BASE;
/* enable the BLE Stack */
retv = sd_ble_enable(&amp;amp;params, &amp;amp;app_ram_base);
APP_ERROR_CHECK(retv);

/* Configure bandwidth and connect as a peripheral */
ble_opt_t ble_opt;
ble_common_opt_conn_bw_t conn_bw;
memset(&amp;amp;conn_bw, 0x00, sizeof(conn_bw));
memset(&amp;amp;ble_opt, 0x00, sizeof(ble_opt));

// if this set to mid this will work but setting it to high will not
conn_bw.conn_bw.conn_bw_rx = BLE_CONN_BW_HIGH;
conn_bw.conn_bw.conn_bw_tx = BLE_CONN_BW_HIGH;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;//    conn_bw.conn_bw.conn_bw_rx = BLE_CONN_BW_MID;
//    conn_bw.conn_bw.conn_bw_tx = BLE_CONN_BW_MID;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;conn_bw.role = BLE_GAP_ROLE_CENTRAL;

// gap option is missing?
ble_opt.common_opt.conn_bw = conn_bw;

err_code = sd_ble_opt_set(BLE_COMMON_OPT_CONN_BW, &amp;amp;ble_opt);
APP_ERROR_CHECK(err_code);

// Register with the SoftDevice handler module for BLE events.
err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I use the ___LINKER_APP_RAM_BASE as APP_RAM_BASE_CENTRAL_LINKS_1_PERIPH_LINKS_0_SEC_COUNT_0_MID_BW and even&lt;/p&gt;
&lt;p&gt;I hope you can help me figure this out.&lt;/p&gt;
&lt;p&gt;Thank you very much.
-Mc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to transmit 6 packets in S130 Uart central</title><link>https://devzone.nordicsemi.com/thread/49271?ContentTypeID=1</link><pubDate>Sat, 02 Apr 2016 11:46:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb90b240-2f91-421e-84c9-3f427340ee22</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Are you actually configuring the BLE stack when you initialise it to have available high bandwidth central connections? the sd_ble_opt_set() is used to tell the softdevice on a per-connection basis which of the configured bandwidths to use, but if you haven&amp;#39;t allocated any high-bandwidth central connections when you enabled the softdevice in the first place, there aren&amp;#39;t any available.&lt;/p&gt;
&lt;p&gt;Post the code you&amp;#39;re using to set up the parameters for sd_ble_enable(), that&amp;#39;s where you have to initially configure the SD to have the connections you want.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>