<?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>multi packets per connection interval</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13018/multi-packets-per-connection-interval</link><description>HI,I want to send multi packets per connection interval. I have checked some questions and thread.
like this link text 
and this link text . 
 according to the example throughput , i think i can use the data_send function to achieve multi packets per</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Apr 2016 13:45:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13018/multi-packets-per-connection-interval" /><item><title>RE: multi packets per connection interval</title><link>https://devzone.nordicsemi.com/thread/49613?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2016 13:45:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e40f9258-adb8-4d63-b084-e5071dc366a1</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;It really depends on how often you call data_send(). If you always have available TX buffers, then yes. If you want to see how many packets you send, you can use a ble sniffer like the &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer"&gt;nRF sniffer.&lt;/a&gt;. You can also use the nRF uart app for your smarthphone, and count the packets manually. This will only be possible if you set a very high connection interval though, like over 2 seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi packets per connection interval</title><link>https://devzone.nordicsemi.com/thread/49612?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2016 12:19:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cb7c61d-f17f-468c-9f45-1f80a3efe0cd</guid><dc:creator>oliverhu</dc:creator><description>&lt;p&gt;currently, i am using NRF51 dongle to receive data. it can receive up to 6 packets per interval,right.
for example, if i want to achieve three data packets per interval, i just copy and past ble_nus_string_send three time,is it correct?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void data_send()
{
uint32_t err_code;
static uint8_t data[BLE_LBS_DATA_CHAR_LEN] = {0};
        

    err_code = ble_nus_string_send(&amp;amp;m_nus, data, 20);
    if (err_code == BLE_ERROR_NO_TX_BUFFERS ||
        err_code == NRF_ERROR_INVALID_STATE || 
        err_code == BLE_ERROR_GATTS_SYS_ATTR_MISSING)
    {
        break;
    }
    err_code = ble_nus_string_send(&amp;amp;m_nus, data, 20);
    if (err_code == BLE_ERROR_NO_TX_BUFFERS ||
        err_code == NRF_ERROR_INVALID_STATE || 
        err_code == BLE_ERROR_GATTS_SYS_ATTR_MISSING)
    {
        break;
    }
    err_code = ble_nus_string_send(&amp;amp;m_nus, data, 20);
    if (err_code == BLE_ERROR_NO_TX_BUFFERS ||
        err_code == NRF_ERROR_INVALID_STATE || 
        err_code == BLE_ERROR_GATTS_SYS_ATTR_MISSING)
    {
        break;
    }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;BTW, how can i view the number of packets per interval in MCP?&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: multi packets per connection interval</title><link>https://devzone.nordicsemi.com/thread/49611?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2016 12:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9fb8445-1cc3-4e15-95d4-d27f70037d00</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Yes. But the amount of packets per interval is in many cases limited by your central device. See &lt;a href="https://devzone.nordicsemi.com/question/3440/how-do-i-calculate-throughput-for-a-ble-link/"&gt;this&lt;/a&gt; post on BLE throughput.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi packets per connection interval</title><link>https://devzone.nordicsemi.com/thread/49610?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2016 11:57:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01a5435a-82e6-48fd-abd6-e17bddca70a9</guid><dc:creator>oliverhu</dc:creator><description>&lt;p&gt;hi, anders strand, i still have a question that use ble_nus_string_send, is it possible to achieve multi packets per connection interval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi packets per connection interval</title><link>https://devzone.nordicsemi.com/thread/49609?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2016 11:26:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28991434-0dfc-4407-8039-9433f0f8dcca</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Great! Feel free to mark the question as answered by clicking the (V) sign next to my post&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi packets per connection interval</title><link>https://devzone.nordicsemi.com/thread/49608?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2016 09:17:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60205c8c-9dc7-4ce1-9412-d17113032cee</guid><dc:creator>oliverhu</dc:creator><description>&lt;p&gt;thank you! Anders, It can receive data by using ble_nus_string_send. but if i use ble_nus_string_send, is it possible to achieve multi packets per connection interval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multi packets per connection interval</title><link>https://devzone.nordicsemi.com/thread/49607?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2016 09:12:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f22e3cad-936d-44a8-9705-93172dc749f2</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;The ble_lbs_data_send function will send the data to the connection handle saved in m_lb-&amp;gt;conn_handle. This handle is normally set in connection. If you have not changed the ble_app_uart example to do this, this handle is probably not valid. You should check the error code returned by ble_lbs_data_send. See how &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/?answer=60126#post-id-60126"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you want to implement this as easy as possible with the ble_app_uart example, replace ble_lbs_data_send with ble_nus_string_send inside data_send.&lt;/p&gt;
&lt;p&gt;-Anders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>