<?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>Problem when using &amp;quot;pc-ble-driver-js&amp;quot;, sending a large file to peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44976/problem-when-using-pc-ble-driver-js-sending-a-large-file-to-peripheral</link><description>Hi, 
 I&amp;#39;m using the &amp;quot;pc-ble-driver-js&amp;quot; to implement a central on PC, trying to send a file through a Write w/o Response characteristic to a device. It&amp;#39;s OK for a small file (eg. 4KB), but when I try to send a large file, it will break randomly, eg. after</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Mar 2019 16:28:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44976/problem-when-using-pc-ble-driver-js-sending-a-large-file-to-peripheral" /><item><title>RE: Problem when using "pc-ble-driver-js", sending a large file to peripheral</title><link>https://devzone.nordicsemi.com/thread/177664?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 16:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9bdb1d9-3329-4075-ab43-aa90ff62c2d7</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What I meant was that when you get that error, you wait a few ms, then try again. You do not need to wait between each writeCharacteristicValue(), you only have to wait (and then retry) when you get the waiting for BLE_EVT_TX_COMPLETE error.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem when using "pc-ble-driver-js", sending a large file to peripheral</title><link>https://devzone.nordicsemi.com/thread/177226?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2019 07:47:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fe4995b-7d09-4b40-95ab-61bb7307f9cb</guid><dc:creator>Eric YY</dc:creator><description>&lt;p&gt;Thanks tsec,&lt;/p&gt;
&lt;p&gt;Seems you&amp;#39;re right, I send the data too quickly, I don&amp;#39;t know why but if I add 10ms delay between each writeCharacteristicValue(), the problem gone. But I meet another throughput problem, seems the implementation of the &lt;span&gt;writeCharacteristicValue() is not alright for my application.&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><item><title>RE: Problem when using "pc-ble-driver-js", sending a large file to peripheral</title><link>https://devzone.nordicsemi.com/thread/177163?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 18:18:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef971f65-00b0-410e-ae03-a13d8b4cda0e</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It may be that you are trying to send data too quickly, so that over time for some reason you reach a point where writeCharacteristicValue() times out. You could try to implement a number of retries of the writeCharacteristicValue() call on timeout, with an added delay of a few ms between each try.&lt;/p&gt;
&lt;p&gt;The above would not explain why you have to disconnect and connect again to get things going again. Perhaps a sniffer trace, or logs from the peer device, could shed some light on what happens?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>