<?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>USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42119/usb-speed-issue-on-nrf52840</link><description>Hi, 
 I&amp;#39;m using a BMD-340 module evaluation kit (Rigado) I modified usbd example and I can transfer data in between host and device. But I have issues with usb speed and I need more help to debug this issue. 
 The host side is using libusb-1.0, sending</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Mar 2021 14:50:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42119/usb-speed-issue-on-nrf52840" /><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/300729?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 14:50:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de46a9fd-5a59-4cd0-97e4-c6a46d565726</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;This is a rather old case, but can you try to first recreate the speed reported below on Linux or Windows 10? This should isolate if the issue is OS related and/or firmware related.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/292877?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2021 11:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fafc218-d63f-465c-affc-9d13dfa2d76d</guid><dc:creator>Constantin</dc:creator><description>&lt;p&gt;Furthermore, I&amp;#39;ve checked the &lt;/p&gt;
&lt;p&gt;```static ret_code_t cdc_acm_req_out_data_cb(nrf_drv_usbd_ep_status_t status, void * p_context)```&lt;/p&gt;
&lt;p&gt;And there despite the baudrate I&amp;#39;ve set I am always getting only 9600. If I try to connect with pyserial this callback is running 30-50 times until pyserial gives up and starts the processing. This is why it takes approx. 15 seconds to start the transfer under python.&lt;/p&gt;
&lt;p&gt;Again, this was with your standard example.&lt;br /&gt;&lt;br /&gt;Any suggestion on that?&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Constantin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/292866?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2021 10:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe72d65-c041-426d-b20b-15e330e24215</guid><dc:creator>Constantin</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;although it is quiet old thread I would like to jump in.&lt;/p&gt;
&lt;p&gt;I am facing a similar problem. I implemented my own application an I am wondering that I cannot get more data through the CDC than 85 kB /s. Therefore, I tried the suggested example and I am getting even less.&lt;br /&gt;My test equipment was: &lt;br /&gt;&lt;br /&gt;PCA10056 -&amp;gt; connected to macOSX running CoolEdit Pro / SDK 17.0.0&lt;br /&gt;&lt;br /&gt;Terminal was connected with 3 MBaud. Data was captured to Textfile. There was no Data-loss at all.&lt;br /&gt;But still the Terminal only says &lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1612434588602v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Approx. 4.2 MByte per minute =&amp;gt; 70 kB / s.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/167547?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 07:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c9b06b7-863e-4c77-9a7e-8aff28e8b93f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Asli&lt;/p&gt;
&lt;p&gt;My pleasure, I hope you get the performance you need for your project &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/167401?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 14:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f79c891e-e5a2-46de-8836-7b344a0562ed</guid><dc:creator>ASLI</dc:creator><description>&lt;p&gt;Hi Torbjorn,&lt;/p&gt;
&lt;p&gt;Yes you are right. CDC ACM device data rate is definitely higher with Linux too. I measured&lt;/p&gt;
&lt;p&gt;~570KBytes/sec for few different data lengths.&lt;/p&gt;
&lt;p&gt;Thank you for all the help.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Asli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/167307?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 09:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e5c4b86-bcfb-4500-8dac-1cbdc140f957</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Asli&lt;/p&gt;
&lt;p&gt;Unfortunately neither me or the USB developer have any good theories than this, other than the fact that Windows PC&amp;#39;s come in a lot of different flavors with different combinations of hardware, device drivers and configurations.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also it is clear that the CDC ACM stack in Linux is more efficient in terms of ensuring high data rate.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/167212?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 19:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f4e736f-31a5-4eca-8261-699034f67755</guid><dc:creator>ASLI</dc:creator><description>&lt;p&gt;Hi Torbjorn,&lt;/p&gt;
&lt;p&gt;I repeated the CDC_ACM tests on another Windows 10 PC and the speed results are very similar to yours or maybe better for small number of frames.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not sure what is causing this speed difference on different Windows 10 PCs. Any suggestions on this?&lt;/p&gt;
&lt;p&gt;Thanks and Best Regards,&lt;/p&gt;
&lt;p&gt;Asli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/167175?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 16:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28e1c486-92d7-46f2-9ff9-b5ff960572f0</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Asli&lt;/p&gt;
&lt;p&gt;I still get considerably higher data rates. Testing your code with the frame_counter limit set to 100 I got a total time of less than 22.5ms consistently, indicating a transfer speed of 280KBytes/sec or more.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also tried 400 and 4096, and got similar speeds (less than a second total for 4096 packets).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did notice that the byte counter in TeraTerm didn&amp;#39;t seem to catch all the bytes unless I changed the buffer to contain all standard characters, but on second thought that is probably just because I forgot to enable the binary option.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/166873?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 14:16:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:755d2eb5-d277-47fc-b43c-fd02af6378cf</guid><dc:creator>ASLI</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Correct. When LED_CDC_ACM_TX goes high to low test should be done. And yes, you need to reset the board if you want another test .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Asli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/166863?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 14:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee85458d-33af-43a2-9962-1404527f5c44</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;So if I understand your test correctly you just keep button 1 pressed until the limit is reached, and then you have to reset the board if you want to do another test?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/166578?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 17:17:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33e51ab2-b91b-411d-b134-bad7fae9ae10</guid><dc:creator>ASLI</dc:creator><description>&lt;p&gt;Hi Torbjorn,&lt;/p&gt;
&lt;p&gt;I repeated your test, sent data to host for about 30 seconds&amp;nbsp; couple of times and I measure ~140 - 160 KBytes/sec not as high as your test result.&lt;/p&gt;
&lt;p&gt;I also did some measurements checking the number of frames on Tera Term similar to yours and measured the toggling&amp;nbsp;&lt;span&gt;LED_CDC_ACM_TX time b&lt;/span&gt;&lt;span&gt;ut to set number of frames to 100, 500 or another number I did the below.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I know it&amp;#39;s not very accurate but this way I can test&amp;nbsp;the small and exact number of frames.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1. I commented out the LED toggling in main.c line#163&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case APP_USBD_CDC_ACM_USER_EVT_TX_DONE:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //bsp_board_led_invert(LED_CDC_ACM_TX);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;/p&gt;
&lt;p&gt;2. Modified the while loop in&amp;nbsp; main function code as below:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;......................................................................................................................&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; for (int i = 0; i&amp;lt; 64; i++) &lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m_tx_buffer[i] = i;&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; static int frame_counter;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;// clear the led (it&amp;#39;s opposite because of the LEDS_ACTIVE_STATE 0 in pca10056.h)&lt;br /&gt;&amp;nbsp; &amp;nbsp; bsp_board_led_on(LED_CDC_ACM_TX);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; while (true)&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (app_usbd_event_queue_process())&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Nothing to do */&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(m_send_flag)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bsp_board_led_off(LED_CDC_ACM_TX); //set the led&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ret = app_usbd_cdc_acm_write(&amp;amp;m_app_cdc_acm, m_tx_buffer, 64);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (ret == NRF_SUCCESS)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++frame_counter;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (frame_counter == 4096) &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bsp_board_led_on(LED_CDC_ACM_TX);//clear the led&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;nrf_cli_process(&amp;amp;m_cli_uart);&lt;/p&gt;
&lt;p&gt;............................................................................................................&lt;/p&gt;
&lt;p&gt;3. On Tera Term I save a log (only binary option is checked)&lt;/p&gt;
&lt;p&gt;4. Change the frame number for different data lengths&lt;/p&gt;
&lt;p&gt;I press the button and check the scope to see&amp;nbsp;&lt;span&gt;LED_CDC_ACM_TX go high and low during the transfer of total frame numbers and measure the &amp;#39;high&amp;#39; time. I also check the Tera Term window to check the total amount of bytes as in the below image and use it for the data rate calculation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please let me know if you can reproduce similar results.&lt;/p&gt;
&lt;p&gt;Best Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Asli&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/742x655/__key/communityserver-discussions-components-files/4/Bytes100X64.JPG" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/166411?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 09:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf9ab641-e228-4522-81c9-c794ca9c64d3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Asli&lt;/p&gt;
&lt;p&gt;The toggling of the LED will indicate a packet sent, that is correct, but measuring a single interval is not really enough as there is quite a bit of jitter from packet to packet. For this to work properly you would have to measure the total time taken over a larger number of transfers, and calculate an average. Maybe that is what you did to get the attached numbers?&lt;/p&gt;
&lt;p&gt;I tried to test the speed from device to host in a slightly different way. I modified the send function of the example to send 64 bytes on each transfer, but still include a counter in the string:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;if(m_send_flag)&lt;br /&gt; {&lt;br /&gt; static int frame_counter;&lt;br /&gt; for(int i = 0; i &amp;lt; 64; i++) m_tx_buffer[i] = &amp;#39;-&amp;#39;;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;size_t size = sprintf(m_tx_buffer, &amp;quot;Hello USB CDC FA demo: %u\r\n&amp;quot;, frame_counter);&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;ret = app_usbd_cdc_acm_write(&amp;amp;m_app_cdc_acm, m_tx_buffer, 64);&lt;br /&gt; if (ret == NRF_SUCCESS)&lt;br /&gt; {&lt;br /&gt; ++frame_counter;&lt;br /&gt; }&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;Then I pressed button 1 on the kit for 30 seconds, and noted in the terminal how many transactions came through.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It ended up at 155909 packets of 64 bytes each, averaging out to about 330KB/sec.&lt;/p&gt;
&lt;p&gt;Running the test for a long time doesn&amp;#39;t appear to slow down the transfer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you can share the changes you did to send 10/100/500/4096 frames and I can try it out?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Alternatively, copy my changes above and try to repeat my test scenario.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/166328?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 16:13:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9328852d-ef88-4a14-a03c-095408990d51</guid><dc:creator>ASLI</dc:creator><description>&lt;p&gt;Hi Torbjorn,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve just tested sending a binary file from the host to device using Tera Term &amp;#39;Send File&amp;#39; with binary option, and I see 290-300 KBytes/sec similar to your test results&amp;nbsp; on TeraTerm file transfer window when I send a large file. I also measured the LED_CDC_ACM_RX toggling time and the data rate was within the range ~290 KBytes/sec.&lt;/p&gt;
&lt;p&gt;My test results above in the previous reply are for sending data from device to the host which our project will do data transfer mainly on this direction. As I mentioned before I just could measure the&amp;nbsp;&lt;span&gt;LED_CDC_ACM_TX toggling time as a measure of transfer time for the known binary data with various frame numbers.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please confirm using LED_CDC_ACM_TX (or RX) toggling duration is roughly good enough to measure the data rate and confirm my device -&amp;gt; host data transfer rate results are as expected with developers?&lt;/p&gt;
&lt;p&gt;Thank you and Best Regards,&lt;/p&gt;
&lt;p&gt;Asli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/166315?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 15:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16c844eb-20ec-4884-9388-17abfdffe818</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Asli&lt;/p&gt;
&lt;p&gt;I was able to repeat the test myself. I simply took the CDC_ACM example from SKD v15.2.0 and disabled logging.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am getting a quite consistent data rate of 290-300 KBytes/sec, and if I send a large file the transfer rate seems very consistent throughout the file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tested it both on my new desktop computer and an older laptop with similar results, running Windows 10 in both cases.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which version of Windows are you using, and are you able to test on another Windows computer to see if there are any differences?&lt;/p&gt;
&lt;p&gt;The developer was unavailable today unfortunately, so I didn&amp;#39;t have a chance to discuss your results with him. I will try to get a hold of him tomorrow so I can get his feedback.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/166105?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 23:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:829b33e1-5473-43b1-aa43-b2e276b2f508</guid><dc:creator>ASLI</dc:creator><description>&lt;p&gt;Hi Torbjorn,&lt;/p&gt;
&lt;p&gt;I tried CDC_ACM device data speed test and I had the below results. I disabled logging and used the example modifying the tx data and it&amp;#39;s size, sent known binary data and 64 bytes each time. I also increased the COM port baud rate to highest. I measured the time&amp;nbsp;on LED_CDC_ACM_TX using&amp;nbsp; a scope)&lt;/p&gt;
&lt;p&gt;10 frames X 64 bytes =&amp;gt; ~242 KBytes/sec&lt;/p&gt;
&lt;p&gt;100 frames X 64 bytes =&amp;gt; ~220 KBytes/sec&lt;/p&gt;
&lt;p&gt;500 frames X 64 bytes =&amp;gt; ~153 KBytes/sec&lt;/p&gt;
&lt;p&gt;4096 frames X 64 bytes =&amp;gt; ~133 KBytes/sec (also measured ~120 KBytes or ~150 KBytes/sec)&lt;/p&gt;
&lt;p&gt;It seems like data rate is slowing down as the consecutive number of frames are higher. Also the data rate for the same number of frames might vary a bit.&lt;/p&gt;
&lt;p&gt;Please let me know your test results and if you have further description about testing if you think above results are unexpected.&lt;/p&gt;
&lt;p&gt;Thanks and Best Regards,&lt;/p&gt;
&lt;p&gt;Asli&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/165992?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 13:42:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c48c50e-398e-4d9e-8b76-d0b9a564b720</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Asli&lt;/p&gt;
&lt;p&gt;Reviewing the test results again I see that the only test results from Windows was using the CDC class, and the end result was 215 kB/s.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This&amp;nbsp;was using the method desribed below, using Tera Term to send a binary file over the virtual comport.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried this test?&lt;/p&gt;
&lt;p&gt;I will try to repeat it myself to see if I can reproduce the issue of variability that you discovered. The original testing done by the USB team doesn&amp;#39;t include any note of this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edit: Another important note is that logging must be disabled and the event queue enabled for optimal performance when running the CDC example. If you can&amp;#39;t figure out how just let me know, and I will try to provide more detailed instructions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/165840?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 21:41:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2de78a5d-fa66-4e81-b44c-94c33f5bef17</guid><dc:creator>ASLI</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I tested the MSC device speed as instructed. Attached are the images for Write and Read speed.&lt;/p&gt;
&lt;p&gt;I see a high change (drop) in speed as the block and total data sizes are smaller.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Is this speed drop expected and why is it happening?&lt;/p&gt;
&lt;p&gt;Write Test:&lt;/p&gt;
&lt;p&gt;&lt;img alt="MSC_Write_Speed_Test" src="https://devzone.nordicsemi.com/resized-image/__size/955x559/__key/communityserver-discussions-components-files/4/MSC_5F00_Write_5F00_Speed_5F00_Test.png" /&gt;&lt;/p&gt;
&lt;p&gt;Read Test:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt="MSC_Read_Speed_Test" src="https://devzone.nordicsemi.com/resized-image/__size/918x597/__key/communityserver-discussions-components-files/4/MSC_5F00_Read_5F00_Speed_5F00_Test.png" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m working on CDC_ACM speed test in order to evaluate it . I&amp;#39;ll update once I have the results but please update with Windows example/instructions with &amp;gt;200 KBytes/sec data rate if available.&lt;/p&gt;
&lt;p&gt;Thank you and Best Regards,&lt;/p&gt;
&lt;p&gt;Asli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/165802?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 15:28:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:021524c9-26ae-44bf-9021-6dbb5424cd67</guid><dc:creator>ASLI</dc:creator><description>&lt;p&gt;Hi Torbjorn,&lt;/p&gt;
&lt;p&gt;Thank you for the update and suggested speed testing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll repeat the tests and update the results when I&amp;#39;m done but I&amp;#39;m specifically looking for speed test with&amp;nbsp; Windows, where the data rate was measured &amp;gt;200 KBytes/sec with Windows as you wrote about earlier in the thread (please check your replies above)&lt;/p&gt;
&lt;p&gt;CDC rate is not high enough for our requirement and the issue I&amp;#39;m observing is the low and varying data rate with Windows as I explained above in the ticket.&lt;/p&gt;
&lt;p&gt;As an additional update, when I run my code with libusb on linux I see ~480 KBytes/sec&amp;nbsp; and the rate is not varying much as in Windows (with Windows it&amp;#39;s varying a lot and the highest rate I get is ~100 KBytes/sec and mostly ~30 - 70 KBytes/sec).&amp;nbsp; So now I&amp;#39;m wondering whether there is a limitation with Windows no matter I&amp;#39;m using libusb and its drivers?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you can provide the instructions for the speed test with Windows where the rate&amp;nbsp; is &amp;gt; 200 KBytes/sec that would be very helpful.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you and Best Regards,&lt;/p&gt;
&lt;p&gt;Asli&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/165718?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 12:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98e2210d-6519-46f8-9cf1-61f30360f853</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Asli&lt;/p&gt;
&lt;p&gt;I got the following descriptions for CDC and MSC testing respectively.&lt;/p&gt;
&lt;p&gt;CDC:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Install Tera Term&lt;/li&gt;
&lt;li&gt;Flash CDC ACM example (logging and lack of event queue decreases performance), connect to COM&lt;/li&gt;
&lt;li&gt;Change speed to highest available (921600)&lt;/li&gt;
&lt;li&gt;Send a big file using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;binary option&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;MSC:&lt;/p&gt;
&lt;h1&gt;Quick notes how to test MSC transfers&lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;Connect MSC demo to the linux machine or linux virtual machine.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Detect the device using dmesg command&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;table border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div title="Hint: double-click to select code"&gt;
&lt;div&gt;&lt;code&gt;dmesg&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Search for our devices, they would look like this:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;table border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div title="Hint: double-click to select code"&gt;
&lt;div&gt;&lt;code&gt;[&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;5089.681017&lt;/code&gt;&lt;code&gt;] sd&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;6&lt;/code&gt;&lt;code&gt;:&lt;/code&gt;&lt;code&gt;0&lt;/code&gt;&lt;code&gt;:&lt;/code&gt;&lt;code&gt;0&lt;/code&gt;&lt;code&gt;:&lt;/code&gt;&lt;code&gt;0&lt;/code&gt;&lt;code&gt;: [sdb]&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;64&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;512&lt;/code&gt;&lt;code&gt;-&lt;/code&gt;&lt;code&gt;byte&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;logical blocks: (&lt;/code&gt;&lt;code&gt;32.8&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;kB/&lt;/code&gt;&lt;code&gt;32.0&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;KiB)&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;[&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;5089.689992&lt;/code&gt;&lt;code&gt;] sd&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;6&lt;/code&gt;&lt;code&gt;:&lt;/code&gt;&lt;code&gt;0&lt;/code&gt;&lt;code&gt;:&lt;/code&gt;&lt;code&gt;0&lt;/code&gt;&lt;code&gt;:&lt;/code&gt;&lt;code&gt;1&lt;/code&gt;&lt;code&gt;: [sdc]&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;1048576&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;512&lt;/code&gt;&lt;code&gt;-&lt;/code&gt;&lt;code&gt;byte&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;logical blocks: (&lt;/code&gt;&lt;code&gt;537&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;MB/&lt;/code&gt;&lt;code&gt;512&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;MiB)&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Test read&lt;/h2&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sdc is a detected device name:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;table border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div title="Hint: double-click to select code"&gt;
&lt;div&gt;&lt;code&gt;sudo dd&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;if&lt;/code&gt;&lt;code&gt;=/dev/sdc of=/dev/&lt;/code&gt;&lt;code&gt;null&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;bs=1M count=&lt;/code&gt;&lt;code&gt;32&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;status=progress&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Test write&lt;/h2&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;table border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div title="Hint: double-click to select code"&gt;
&lt;div&gt;&lt;code&gt;sudo dd&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;if&lt;/code&gt;&lt;code&gt;=/dev/zero of=/dev/sdc bs=1M count=&lt;/code&gt;&lt;code&gt;32&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;status=progress&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Real time statistic&lt;/h2&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The status=progress seems not to work properly with /dev/zero as a source. How to view statistic anyway:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://askubuntu.com/questions/215505/how-do-you-monitor-the-progress-of-dd" rel="nofollow"&gt;http://askubuntu.com/questions/215505/how-do-you-monitor-the-progress-of-dd&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/164824?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 08:12:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:334afe86-6ca1-4776-8292-6e0200ffd0d2</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Asli&lt;/p&gt;
&lt;p&gt;The device side code is just the standard SDK examples.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Currently the USB developers are unavailable, but once they are back I will ask if they can share some details on the host configuration when these tests were performed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/164559?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 15:10:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efa75350-cdda-4a44-a139-59430f7662dc</guid><dc:creator>ASLI</dc:creator><description>&lt;p&gt;Hi Torbjorn,&lt;/p&gt;
&lt;p&gt;Actually I&amp;#39;m defining a MSC device with bulk endpoints, modifying the usbd example&amp;nbsp;which should provide the highest usb speed according to my understanding.&amp;nbsp;My goal is evaluate the maximum usb rate available and show that it can reach ~600-700 kB/sec which is needed for our application.&lt;/p&gt;
&lt;p&gt;I went through the SDK examples but not sure how MSC and CDC examples will help me to reach faster speeds.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it possible to provide the USB speed measurement example (with both PC and device side code) where you can measure &amp;gt;200KBytes/sec? This would be a great help.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Asli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/164552?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 14:39:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0946cfa-d6bc-4a40-bc1e-e8e62e6b0a33</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Asli&lt;/p&gt;
&lt;p&gt;Would it be an option to use the CDC or MSC USB classes instead?&lt;/p&gt;
&lt;p&gt;We have full examples for this in the SDK, and have tested them to work at speeds of &amp;gt; 200KBytes/sec.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/164057?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 22:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb83ba97-8b70-4269-b098-aeba67f483cd</guid><dc:creator>ASLI</dc:creator><description>&lt;p&gt;Unfortunately I don&amp;#39;t see any improvement on speed with sending a packet size &amp;lt; EP1_MAXPACKETSIZE or zero byte packet. I don&amp;#39;t have an issue sending and receiving data. It&amp;#39;s the speed of the USB transfer varying a lot and low.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB speed issue on nRF52840</title><link>https://devzone.nordicsemi.com/thread/163982?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 14:13:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d403fcb-a660-44ff-b1ad-9295ea4060df</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Same issue as in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42120/nrf52840-usb-cdc-strange-problem-on-windows-10/163838#163838" rel="noopener noreferrer" target="_blank"&gt;this CDC problem&lt;/a&gt;: You must send a packet &amp;lt; EP1_MAXPACKETSIZE in order to properly finish a transaction. You can send zero bytes in a packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>