<?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 throughput issues with write_req()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92775/pc-ble-driver-py-throughput-issues-with-write_req</link><description>Hello, 
 I am currently working with pc-ble-driver-py and have observed write operations taking an exceedingly long time. Previous DevZone posts on this topic seem to be unresolved: 
 
 
 
 I am observing the write_req() function take upwards of 60ms</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Oct 2022 14:49:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92775/pc-ble-driver-py-throughput-issues-with-write_req" /><item><title>RE: pc-ble-driver-py throughput issues with write_req()</title><link>https://devzone.nordicsemi.com/thread/391248?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 14:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e8858f6-1693-4192-82b3-984191cb58eb</guid><dc:creator>grantrudd</dc:creator><description>&lt;p&gt;Hi SIgurd,&lt;/p&gt;
&lt;p&gt;Thanks for confirming that the pc-ble-driver-py library is behaving properly. I was able to figure out the issue with my application and now am seeing the expected results.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Grant&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver-py throughput issues with write_req()</title><link>https://devzone.nordicsemi.com/thread/390971?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 11:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10987392-f7f9-4cf9-9f6b-8e9de00699f6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="grantrudd"]And here is the sniffer trace from when the devices connect and part of the DFU.[/quote]
&lt;p&gt;Not sure how you are measuring this, but what&amp;#39;s happening on-air is as expected though,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666004648843v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;the write response is&amp;nbsp;received in the next connection event. And a new write request is sent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver-py throughput issues with write_req()</title><link>https://devzone.nordicsemi.com/thread/390700?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 16:30:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb1727e6-bcdb-4ceb-97c9-9535aecc9d28</guid><dc:creator>grantrudd</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the return from get_connectivity_hex_version():&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt; config.get_connectivity_hex_version()&lt;br /&gt;&amp;#39;4.1.4&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And here is the sniffer trace from when the devices connect and part of the DFU.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4505.trace.pcapng"&gt;devzone.nordicsemi.com/.../4505.trace.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Grant&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver-py throughput issues with write_req()</title><link>https://devzone.nordicsemi.com/thread/390566?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 07:58:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d691b890-50eb-46bc-b529-d5984b83b8d1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1) Could you check what get_connectivity_hex_version() returns?&lt;/p&gt;
&lt;p&gt;2) If you have a spare DK or dongle, could you capture a sniffer trace?&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver-py throughput issues with write_req()</title><link>https://devzone.nordicsemi.com/thread/390483?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 14:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1543e62c-70df-4550-b3d0-3860f040b968</guid><dc:creator>grantrudd</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I am still seeing this issue on v0.17.0, with Python 3.8 running an a machine with Ubuntu 22.04. I installed a fresh copy of pc-ble-driver-py from pip this morning and am still seeing slow performance with write_req().&lt;/p&gt;
&lt;p&gt;This is what I&amp;#39;m seeing for timing with the connection parameters mentioned above:&lt;/p&gt;
&lt;p&gt;write_req() time 0.05992388725280762&lt;br /&gt;write_req() time 0.05992531776428223&lt;br /&gt;write_req() time 0.059960365295410156&lt;br /&gt;write_req() time 0.05984926223754883&lt;br /&gt;write_req() time 0.05991005897521973&lt;br /&gt;write_req() time 0.05988287925720215&lt;br /&gt;write_req() time 0.059864044189453125&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a way to check the version of _nrf_ble_driver_sd_api.so (which I assume is the shared library created from pc-ble-driver-py)? The documentation at the top of the associated python file still says 4.0.1.&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# This file was automatically generated by SWIG (http://www.swig.org).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# Version 4.0.1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# Do not make changes to this file unless you know what you are doing--modify&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# the SWIG interface file instead.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver-py throughput issues with write_req()</title><link>https://devzone.nordicsemi.com/thread/390421?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 11:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5bca914-b7b8-46e7-b25c-73ea20a62172</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I am currently working with pc-ble-driver-py and have observed write operations taking an exceedingly long time. Previous DevZone posts on this topic seem to be unresolved:[/quote]
&lt;p&gt;We fixed the speed issue in this PR:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/pull/264"&gt;https://github.com/NordicSemiconductor/pc-ble-driver/pull/264&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The fix is released in pc-ble-driver v4.1.4, which is used in pc-ble-driver-py starting from v0.16.1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4034.pastedimage1665574156315v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py/commit/1242ae2281a3c0d01f435e2dcf0e5aec16171028"&gt;https://github.com/NordicSemiconductor/pc-ble-driver-py/commit/1242ae2281a3c0d01f435e2dcf0e5aec16171028&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>