<?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>pc-ble-driver-py - Maximum data rate</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57382/pc-ble-driver-py---maximum-data-rate</link><description>Hi, 
 Just been testing the data rate of write without response commands, I&amp;#39;m only getting about 250 bytes / second which seems incredibly slow? 
 I&amp;#39;ve just got a simple little loop sending 20 bytes (max mtu limitation for the v2 api) 
 
 I tried enabling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Feb 2020 09:51:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57382/pc-ble-driver-py---maximum-data-rate" /><item><title>RE: pc-ble-driver-py - Maximum data rate</title><link>https://devzone.nordicsemi.com/thread/236760?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 09:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe924a52-bcd9-4a84-a507-686dae6c6bf1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;&lt;span&gt;There is a significant overhead using serialization,&amp;nbsp;but only 300 bytes/ second is lower than what is expected. There are more reports about&amp;nbsp;pc_ble_driver_py being slow, e.g in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57679/pc_ble_driver_py-takes-a-lot-of-time-to-discover-services-characteristics-and-descriptors"&gt;this post&lt;/a&gt;. We are looking into what is causing this.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver-py - Maximum data rate</title><link>https://devzone.nordicsemi.com/thread/234377?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 11:41:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37cb3033-92c8-4a58-8247-cc39e545c16c</guid><dc:creator>frostp</dc:creator><description>&lt;p&gt;Hi, apologies for the slow response, I&amp;#39;ve changed the test to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="python"&gt;    timeBefore = time.perf_counter()
    bytesSent = 0
    for i in range(100):
        try:
            adapter.write_cmd(conn, bulkDataUuid, bytes(20))
            bytesSent += 20
        except NordicSemiException as error:
            if error.error_code == BLE_ERROR_NO_TX_PACKETS:
                adapter.evt_sync[conn].wait(BLEEvtID.evt_tx_complete)
            else:
                print(str(i) + &amp;quot; failed&amp;quot; + error)

    print(&amp;quot;sending %d bytes took %f seconds, %f b/s&amp;quot; % (bytesSent, time.perf_counter() - timeBefore, bytesSent / (time.perf_counter() - timeBefore)))&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is this the sort of thing you meant?&amp;nbsp;It is a little bit faster, about 300 bytes / second on average.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edit: Just thought I&amp;#39;d add that I can&amp;#39;t find a define for&amp;nbsp;&lt;span&gt;BLE_ERROR_NO_TX_PACKETS in the python BLE drivers at all so I just added &lt;/span&gt;&lt;span&gt;BLE_ERROR_NO_TX_PACKETS&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;12292 in my file.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver-py - Maximum data rate</title><link>https://devzone.nordicsemi.com/thread/233110?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 15:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af23263c-83c1-4fd2-bf43-a2cd57d2633f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The pc-ble-driver-(py) could add some delays to when you get the&amp;nbsp;BLE_EVT_TX_COMPLETE event back.&lt;/p&gt;
&lt;p&gt;Try fulling&amp;nbsp;up the packet buffer, until your write command returns BLE_ERROR_NO_TX_PACKETS. See &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html?cp=5_7_2_2_2_2_2_9#ga90298b8dcd8bbe7bbe69d362d1133378"&gt;this link&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver-py - Maximum data rate</title><link>https://devzone.nordicsemi.com/thread/232906?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 17:01:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abf7dd34-c847-4d04-a952-e42eb609189c</guid><dc:creator>frostp</dc:creator><description>&lt;p&gt;Yep, no problem&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Data-Rate-Test.pcapng"&gt;devzone.nordicsemi.com/.../Data-Rate-Test.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver-py - Maximum data rate</title><link>https://devzone.nordicsemi.com/thread/232899?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 16:06:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e26f1388-8789-4211-8e76-6e10c3918985</guid><dc:creator>Sigurd</dc:creator><description>[quote user="frostp"]I checked with the nrf sniffer [/quote]
&lt;p&gt;&amp;nbsp;Can you upload the sniffer log?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver-py - Maximum data rate</title><link>https://devzone.nordicsemi.com/thread/232871?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 14:41:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c1cb609-8d44-440c-bdc6-8f648c30b957</guid><dc:creator>frostp</dc:creator><description>&lt;p&gt;Ah yes sorry forgot to say, 7.5ms, and I checked with the nrf sniffer that it is definitely is using that interval.&lt;/p&gt;
&lt;p&gt;Edit: Just to add more info, I&amp;#39;m using the NRF51 dongle, and LE Secure passkey pairing&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver-py - Maximum data rate</title><link>https://devzone.nordicsemi.com/thread/232864?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 14:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24832c18-97b0-4153-a86f-cc98aa16e1fb</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What connection interval are you using for the BLE connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>