<?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>s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44922/s140-pc-ble-driver-4-0-0-freezes-when-receiving-too-many-data</link><description>I have a nRF52840-PCA10059 dongle. 
 I have a PCA10040 dev boeard on which I programmed the ble_app_hrs_freertos_pca10040_s132 example after I modified HEART_RATE_MEAS_INTERVAL and BATTERY_LEVEL_MEAS_INTERVAL variables (lines 100 and 95 of main.c) with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Feb 2020 08:21:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44922/s140-pc-ble-driver-4-0-0-freezes-when-receiving-too-many-data" /><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/237047?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 08:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:403c02c6-4780-4ae2-bf3c-b59f0880fe4f</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have updates. We just noticed that having&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;quot;nRF Connect - Bluetooth Low Energy&amp;quot; app opened (even if not connected to the dongle, just opened in Windows) makes everything work better:&lt;/p&gt;
&lt;p&gt;- The connection is prefectly stable. I can receive notifications for hours, while it used to freeze after a few seconds&lt;br /&gt;- The services dicovery is much faster&lt;/p&gt;
&lt;p&gt;As soon as I close&amp;nbsp;&lt;span&gt;&amp;quot;nRF Connect - Bluetooth Low Energy&amp;quot;, my application stops receiving notifications an I observe the freeze.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;I bet this explains why the problem was hard to reproduce, and probably also why you could not reproduce because maybe you have nRF Connect often opened.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Apparently,&amp;nbsp;&amp;quot;nRF Connect - Bluetooth Low Energy&amp;quot; does something in the background that makes the dongle and/or the soft device be more stable. What could it be?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;See this ther post:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/58470/why-having-nrf-connect---bluetooth-low-energy-open-makes-my-connection-faster-and-more-stable"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/58470/why-having-nrf-connect---bluetooth-low-energy-open-makes-my-connection-faster-and-more-stable&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/214501?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 06:58:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57d4e565-e801-4611-a255-62c191ee6f17</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you made any progress on this issue?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/203730?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 07:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83f1edd6-1fda-48bd-a288-4889297212ad</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Thanks for the update.&lt;/p&gt;
&lt;p&gt;And what about this similar issue you mentioned:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42661/nrf-52840-hang-out-and-no-more-notification-connectivity-v3-s132-usb/192546#192546"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/42661/nrf-52840-hang-out-and-no-more-notification-connectivity-v3-s132-usb/192546#192546&lt;/a&gt;. Any progress on that? It looks similar.&lt;/p&gt;
&lt;p&gt;The behaviour you observe (receiving a lot of 20bytes&amp;nbsp; packets for a few seconds and later slowing down) is what I observe when things work right, but in almost all situations, it freezes during the first second. And yes, the fact that it slows down is due to parameters being updated.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m convinced that if you test this on a freshly installed Win10 you should be able to reproduce the issue, if not, then the hardware may be different (of configured/programmed differently).&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/203683?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 19:14:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7f06883-efbd-42d6-9db0-211fdaeef5f4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the very slow response to your request. Unfortunately, I do not have a freshly installed Windows PC to test with, but I will try that if I find one available soon. I did a test on a different computer, but neither on this one, I&amp;#39;m able to reproduce your issue. I had some of the tools installed from before, so the setup is not completely identical, but I did follow your exact steps to run the test.&lt;/p&gt;
&lt;p&gt;I can confirm that I receive 20 bytes with nRF Connect and that I receive much more frequent notifications than one second. After a while, the notifications slows down, but I believe that this is caused by the connection parameters being updated.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/193233?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 14:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b7646d3-97a6-4daf-8b29-be6e6039ab1d</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello&amp;nbsp;J&amp;oslash;rgen,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As you cannot reproduce the problem and as I can on many different computers here, I was wondering if there could be a problem with our Windows setup (like using wrong drivers, or having the antivirus, firewall mess things up or whatever).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So I took a different computer, formatted the drive and did two tests:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Installed Windows 7 (Enterprise with SP1 x64)&lt;br /&gt;&lt;/span&gt;&lt;span&gt;- Simply installed&amp;nbsp;nrfconnectsetup260.exe (to get the good driver and have the dongle appear in Device Manager, it show up as &amp;quot;nRF Connect USB CDC ACM&amp;quot;&amp;nbsp;driver info reports&amp;nbsp;&amp;quot;1.0.1.0&amp;quot; &amp;quot;11/05/2018&amp;quot;)&lt;br /&gt;- Installed vc_redist.x64_2015.exe as nrf-ble-driver uses VS2015 runtimes&lt;br /&gt;- Downloaded nrf-ble-driver-4.1.1-win_x86_64.zip from github&lt;br /&gt;- Unzipped it, ran&amp;nbsp;heart_rate_collector_sd_api_v3.exe COM3&lt;br /&gt;- Pressed Enter, got ~15 notifications and nothing more: so I could reproduce the bug&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Again, formatted the drive and:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Installed Windows&amp;nbsp;10 (Enterprise version_1703)&lt;br /&gt;- Did not even installed&amp;nbsp;nrfconnectsetup260.exe (as the dongle appears directly in Device Manager)&lt;br /&gt;- Installed&amp;nbsp;vc_redist.x64_2015.exe as nrf-ble-driver uses VS2015 runtimes&lt;br /&gt;- Downloaded nrf-ble-driver-4.1.1-win_x86_64.zip from github&lt;br /&gt;- Unzipped it, ran&amp;nbsp;heart_rate_collector_sd_api_v3.exe COM3&lt;br /&gt;- Pressed Enter, got ~15 notifications and nothing more: so I could reproduce the bug&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So there is definitely a problem with this driver and it does not come from my setup here.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Either your machine has something installed/configured that makes it work better than&amp;nbsp;mine&lt;br /&gt;- Either I did not explain you correctly how to reproduce the issue&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you please test from a freshly installed Windows (following the steps above)?&lt;br /&gt;Also, can you confirm that when you start notifications with the device from nRF Connect, it sends you frame of data of 20bytes long. And can you also confirm that when you run&amp;nbsp;heart_rate_collector_sd_api_v3.exe program you get lots of data during one second, not only one per second as the standard &amp;quot;Nordic_HRM&amp;quot; app behaves?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jean&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/187022?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 14:20:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f815542-8af9-462e-aa4e-94545e74caf7</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Unfortnately, I&amp;#39;m not allowed to do that....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/186996?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 13:26:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a75def3-69a0-4a6e-98da-113adfec11d5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I&amp;#39;m see the same info, but with driver version 10.0.17134.1. Could you check if you are able to update the driver?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/186829?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 06:26:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:836fcb01-652a-4d73-940f-cfbc5e2cffba</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Its written 1.0.0 on my dongle, for the DK, it was installed by nRF Connect, it reports &amp;quot;&lt;span&gt;Connectivity firmware version: ble-connectivity 0.1.0+Aug-14-2018-15-12-51. SoftDevice API version: 3. Baud rate: 1000000.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m having more difficulties to reproduce the problem those days. After a reboot, I see the freezing one or two times, then I can&amp;#39;t reproduce them anymore. I&amp;#39;m wondering if Windows could give the process more priority at some point.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;By the way, could this be a driver issue? When I plug the dongle, it appears in device manager as &amp;quot;nRF Connect USB CDC ACM&amp;quot;, pilot used is usbser.sys (from system32/DRIVERS), Microsoft version 10.0.&lt;/span&gt;&lt;span&gt;16299.334 (WinBuild.160101.0800). Are you using the same?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/186794?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 20:51:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9f30bfd-0509-4d46-9f2b-449f7bd41e75</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I had the example running over the weekend, it had still not failed this morning. Which revisions are the Dongle and the DK, are they both v1.x.x?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/186464?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 14:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f06b8a84-3ee2-475b-bd72-38fe6ff0c1d2</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;For me too sometimes it works for minutes with no crash, but sometime it constantly freezes. The dongle is a PCA10059 with SD APIv3, it was programmed by nRF connect itself first time I started it, the app is a PCA10040 with hex file uploaded to this post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/186463?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 14:54:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8618dac-2d4b-4cc2-b59b-608f1a2f4cd0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Ah, I did not catch that you downloaded the release from your previous post. I am not able to reproduce it with the release either, I have attached the output log: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2d8eb368d8304467826cdcc33330b011/pc_2D00_ble_2D00_driver_2D00_example.log"&gt;devzone.nordicsemi.com/.../pc_2D00_ble_2D00_driver_2D00_example.log&lt;/a&gt;. This has been running for ~40 minutes now.&lt;/p&gt;
&lt;p&gt;What versions are the dongle and DK that you run the application on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/186451?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 13:53:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1934f8b-8eab-4f3b-bd3e-220b2e2616d2</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;As I mentioned in my previous post, I can constantely reproduce this issue even without compiling/modifying any code at all. Just download&amp;nbsp;&lt;a class="d-flex flex-items-center" href="https://github.com/NordicSemiconductor/pc-ble-driver/releases/download/v4.1.1/nrf-ble-driver-4.1.1-win_x86_64.zip" rel="nofollow"&gt;&lt;span class="pl-2 flex-auto min-width-0 text-bold"&gt;nrf-ble-driver-4.1.1-win_x86_64.zip&lt;/span&gt;&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;span class="pl-2 flex-auto min-width-0 text-bold"&gt;&lt;a class="d-flex flex-items-center" href="https://github.com/NordicSemiconductor/pc-ble-driver/releases/download/v4.1.0/nrf-ble-driver-4.1.0-win_x86_64.zip" rel="nofollow"&gt;nrf-ble-driver-4.1.0-win_x86_64.zip&lt;/a&gt;&amp;nbsp;from&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/releases"&gt;https://github.com/NordicSemiconductor/pc-ble-driver/releases&lt;/a&gt;, unzip and run&amp;nbsp;&lt;span&gt;heart_rate_collector_sd_api_v3.exe with dongle port name as first parameter.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;After it found the device, I hit &amp;quot;Enter&amp;quot;, I start getting notifications, after a few seconds, it eventually stops receiving data (sometimes it works for good for minutes, but often it freezes within the 3 first seconds). Then when I press &amp;quot;Enter&amp;quot; again, it reports &amp;quot;Setting HRM CCCD&amp;quot; but not &amp;quot;Received write response.&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please let me know what you experience with those executables.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jean&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/186443?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 13:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:500fea9a-a397-4bb4-9d10-7f4cf2a96ecb</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I tested with increased Sleep (up to 100), but I still cannot make the device freeze. Can you zip and upload the entire pc-ble-driver directory with compiled driver and application that I can test with?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/184936?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 14:03:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f51e0116-a7b9-4a6d-a984-b9792487a34b</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Hello J&amp;oslash;rgen,&lt;/p&gt;
&lt;p&gt;I have a very fast desktop machine (Win10), I can constantly reproduce the issue here with&amp;nbsp;heart_rate_collector_sd_api_v3. I don&amp;#39;t modify any code as I downloaded pc-ble-driver 4.1.0, it has&amp;nbsp;heart_rate_collector_sd_api_v3.exe compiled, I run it, it freezes after I receive less than 20 notifications. I could reproduce this again and again many times today.&lt;/p&gt;
&lt;p&gt;I also have a laptop, slower (Win7), but not that slow (it&amp;#39;s a Corei7). It&amp;#39;s on this laptop that I had to add Sleep statement to make the issue occur more constantely. Else it&amp;#39;s hard to get the freeze.&lt;/p&gt;
&lt;p&gt;If the PC is too slow to process data (which is not the root cause of the issue I guess, as it constantly fails on my fastest computer), there should be no freezing anyway. With SD API v2 and a nRF51 dongle, the system does not freeze, but you &amp;quot;loose&amp;quot; some data (un to 40%): meaning that the driver is smart enough to ignore data when&amp;nbsp;some internal buffer is full....but remaining responsive. With SD API v3 or v6, the driver freezes, this is not good.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m wondering if we could consider having any kind of local support. As this is only reprodcutible on our computers (but on ALL of them!). What about having someone from Nordic come and have a look, is that something possible? Or us coming to you with the computer, then we can do more testing.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jean Porcherot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/184571?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 12:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b871dfa-390f-4ad7-85fd-371dc27fd3f9</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Probably, please give it a try with a higher sleep, at least to see if you can reproduce the issue.&lt;/p&gt;
&lt;p&gt;In this situation where the PC is not &amp;quot;fast enough&amp;quot; (or the device is actually too fast), I would expect some data to be lost (meaning that the driver, instead of freezing, should just not propagate the data to higher levels). This is how a nRF51 dongle with SD API v2 works, the PC may recieve data at a lower rate than 100Hz (some notifications are being &amp;quot;lost&amp;quot; at some point, probably because a buffer is full), however it never freezes. With nRF52 dongle with SD API v3, the fact that the buffer gets full is not handled correctly and the driver freezes for good. That&amp;#39;s what we hope could be fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/184564?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 12:15:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cebddc47-64b9-40c9-8662-985bb0a0d467</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I was missing the capital S in Sleep. However, I did not manage to reproduce this with 5 ms sleep. I can try to increase it further, but of course I would expect some buffers to be filling up if you are not able to handle the data fast enough. My guess would be that either the application or connectivity firmware asserts at some point when you are not able to process the data on your slow machine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/184352?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 13:48:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:556ffa6b-fd81-4449-a38a-589209549819</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;J&amp;oslash;rgen,&lt;/p&gt;
&lt;p&gt;Here are answers to all your questions:&lt;/p&gt;
&lt;p&gt;- To have &amp;quot;Sleep(5);&amp;quot; work you simply need to include&amp;nbsp;&amp;quot;Windows.h&amp;quot;. If you could not add the Sleep statement, then you could not test the change I recommanded on Apr-16 to reproduce the issue? Did you? Hopefuly with that you can reproduce it.&lt;/p&gt;
&lt;p&gt;- I can&amp;#39;t tell how many times log_handler is called per connection interval. I don&amp;#39;t have this information, I just see when it&amp;#39;s invoked. You&amp;#39;ll see this in the console once you reproduced the problem as commeted above.&lt;/p&gt;
&lt;p&gt;- Yes we did debug the app. No error detected here.&lt;/p&gt;
&lt;p&gt;- Attached is a zip with the source of the app. It&amp;#39;s based on your example, we only modified two lines (in components\ble\ble_services\ble_hrs\ble_hrs.c and&amp;nbsp;examples\ble_peripheral\ble_app_hrs_freertos\main.c), flagged by &amp;quot;//MODIF SF&amp;quot; comment). Project to open is&amp;nbsp;examples\ble_peripheral\ble_app_hrs_freertos\pca10040\s132\arm5_no_packs\ble_app_hrs_freertos_pca10040_s132.uvprojx.&lt;/p&gt;
&lt;p&gt;Please let me know if combining this app with a Sleep(5) makes it possible for you to reproduce the issue.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jean Porcherot&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_hrs_5F00_freertos_5F00_SDK15_5F00_3.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_hrs_5F00_freertos_5F00_SDK15_5F00_3.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/183220?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 17:19:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aafada52-b3b8-4fa3-b8a9-5b9812cd3af0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I have still not been able to reproduce this. What did you include to use sleep? Are you sure that log_handler is only being called once every connection interval?&lt;/p&gt;
&lt;p&gt;Have you tried debugging the application on the nRF to see if it reports any error codes, that could explain the behavior?&lt;/p&gt;
&lt;p&gt;Can you provide the sample application in source code, rather than hex, for debugging?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/182253?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 07:16:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd989c37-fb7b-4819-853d-641c64727fe4</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;J&amp;oslash;rgen,&lt;/p&gt;
&lt;p&gt;Did you get a chance to reproduce the issue?&lt;/p&gt;
&lt;p&gt;I tried to work on this issue today. It&amp;#39;s true that it is hard to reproduce it using &amp;quot;nRF Connect&amp;quot;. I took a new laptop (faster than mine) and I was unable to reproduce the issue.&lt;/p&gt;
&lt;p&gt;However, with heart_rate_collector sample program, taken from &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/blob/master/examples/heart_rate_collector/main.c"&gt;https://github.com/NordicSemiconductor/pc-ble-driver/blob/master/examples/heart_rate_collector/main.c&lt;/a&gt;&amp;nbsp;and unmodified:&lt;/p&gt;
&lt;p&gt;- In Release, I could not reproduce the problem&lt;br /&gt;- In Debug, I could not reproduce the problem&lt;/p&gt;
&lt;p&gt;Then I commented&amp;nbsp;sd_rpc_log_handler_severity_filter_set line (to have more logging, slowing down acquisition processus):&lt;/p&gt;
&lt;p&gt;- In Release, I could not reproduce the problem&lt;br /&gt;- In&amp;nbsp;Debug, I could not reproduce the problem&lt;/p&gt;
&lt;p&gt;Now I added &amp;quot;Sleep(5)&amp;quot; at the beginning of the log_handler function:&lt;/p&gt;
&lt;p&gt;- In Release, &lt;strong&gt;I could reproduce the problem&lt;/strong&gt;, after some seconds, I stop receiving data&lt;br /&gt;- In&amp;nbsp;Debug, &lt;strong&gt;I could reproduce the problem&lt;/strong&gt;, after some seconds, I stop receiving data&lt;/p&gt;
&lt;p&gt;Hopefully, you can reproduce that now. As we receive data every 10ms, it should be OK to sleep 5ms. And even, sleeping more than 10ms should work as well, this should not freeze the softdevice,it may loose some data being unable to handle them fast enough, but it should not freeze.&lt;/p&gt;
&lt;p&gt;Please let me know if you can reproduce.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/181669?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 14:30:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3a11fc6-4c02-4953-a7c0-a5e117cf6b58</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Also, as the PC load seems to make the problem occur, could you try again with&amp;nbsp;&lt;span&gt;heart_rate_collector C program and just add a sleep in on_hvx function. If you make the sleep duration increase (5ms, 10ms, 20ms...) this will &amp;quot;simulate&amp;quot; a slow computer and hopefully this will make the dongle freeze occur on your system?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/181167?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 18:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6d65bf6-f847-4f39-95c1-e06e34ff339f</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;By the way, we speeded up the device to send data at 250Hz instead of 100Hz. Then the freezing occurs even more regularily. Specially when the PC is loaded (start new app, compile some code...).&lt;/p&gt;
&lt;p&gt;By attaching a debugger, we see the device is never frozen or crashed. It&amp;#39;s really the dongle that appears to freeze at some point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/180538?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 14:57:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bf2c0e6-00a4-4917-aeaf-5056cf5e207f</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What I mean by 20bytes is that a regular HRM device sends a few (2 or 3 I don&amp;#39;t recall) bytes per notification. With the .hex file I sent (attached to this case), it sends 20 bytes (for example&amp;nbsp;&lt;span&gt;0x00 0x00 0x00 0x00 0x8C 0x56 0x00 0x20 0x7D 0xB4 0x02 0x00 0xC8 0x61 0x00 0x20 0xFB 0x6B 0x02 0x00) per notification. This is an additional change we did in the code (we send more data, 20 bytes, AND more often, at 100Hz).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I don&amp;#39;t know what yo umean by &amp;quot;0 output&amp;quot;. For me, when a connect such device in nRF connect. I enable notification, then I get a few notifications and after a few 1&amp;agrave;s seconds, or probably minutes, notifications stop and then I can&amp;#39;t exchange with the device even if it is still reported as being connected by nRF connect.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jean&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/180533?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 14:28:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb8c939a-2e34-4aa6-bf20-219f45440aa3</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I did not manage to reproduce it with sd_api_v3 either. I do get a lot of 0 output on the terminal (and 180 occasionally), is this the 20 bytes you are talking about? I will try to check with sniffer on Monday if the packets on-air are 100Hz and 20 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/180152?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 06:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a051306-5dba-4598-a489-d9ac2ce3fab0</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;This is really surprising.&lt;/p&gt;
&lt;p&gt;Are you receiving HRM at 100Hz with blocks of 20bytes?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s140 pc-ble-driver 4.0.0 freezes when receiving too many data</title><link>https://devzone.nordicsemi.com/thread/180075?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 15:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e6e6782-9c91-4750-ae9b-c4c5cfb624c4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Unfortunately, I have not been able to reproduce this issue yet. I just ran your application together with sd_api_v6 for ~1 hour without any unresponsiveness. I will try again with sd_api_v3 now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>