<?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>Validating the data over USB</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80626/validating-the-data-over-usb</link><description>Hi , 
 Device :- nrf52840 
 USB class :- CDC ACM 
 We are sending the ADC data (240 bytes at a time) to Host computer over USB (Full speed) and checking the received data in serial terminal (Tera Term),but we are missing the data because the tera term</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Oct 2021 18:27:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80626/validating-the-data-over-usb" /><item><title>RE: Validating the data over USB</title><link>https://devzone.nordicsemi.com/thread/335362?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 18:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38ba15a1-e1f5-44d2-8373-4d0405c59bb0</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Sagar&lt;/p&gt;
&lt;p&gt;Thanks for the clarification.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you able to share your code with me, showing how you receive the data and pass it over to the USB stack?&lt;/p&gt;
&lt;p&gt;Are you making sure to check the return values of all the USB functions, in order to detect if there could be any errors returned by any of them?&lt;/p&gt;
&lt;p&gt;How do you see that the data is incorrect?&amp;nbsp;&lt;br /&gt;Are you missing a byte here and there, or entire blocks of data?&lt;/p&gt;
&lt;p&gt;Have you verified the incoming data (using the debugger for instance) to make sure that the problem happens after it is uploaded to the USB stack, and not before?&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: Validating the data over USB</title><link>https://devzone.nordicsemi.com/thread/335190?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 07:18:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfee6821-bb31-407b-a550-4c839dc5e852</guid><dc:creator>Saagar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Let me very clear, There is already a delay ( reading the ADC data via SPI (operating at 2Mbps) filling the tx buffer(240 bytes) ) then sending it through USB. again I am adding delay manually of 200 microseconds. So total data I am sending is 14 MB/ Min.&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; regards&lt;/p&gt;
&lt;p&gt;Sagar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validating the data over USB</title><link>https://devzone.nordicsemi.com/thread/335047?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 10:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:177308bf-5926-4a3d-a12c-abfa85d49d89</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Sagar&lt;/p&gt;
[quote user="Saagar"]I am sending it very 200 microsecond.[/quote]
&lt;p&gt;So basically you are trying to send 240 bytes 5000 times a second, equaling a total data rate of 1.2MB/sec, or 9.6Mbps?&lt;/p&gt;
&lt;p&gt;This is definitely more than the nRF52840 can handle. As I said earlier we have been able to reach around 1700kbps and 2580bkps respectively on Windows and Linux.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is important to remember that the quoted 12Mbps data rate of USB full speed is just the physical bus data rate. The application datarate will always be lower than this, since there is various forms of data overhead (address information, header bytes, crc codes etc) and you are not allowed to use the bus 100% of the time.&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: Validating the data over USB</title><link>https://devzone.nordicsemi.com/thread/334769?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 08:16:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c502ed7b-b0be-49dd-b939-dcf9b0f21251</guid><dc:creator>Saagar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have already tried with putty, minicom, docklet and also serial library everywhere same issue.&lt;/p&gt;
&lt;p&gt;Is there any limitation with the NRF52840 operating at USB full speed?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and regards&lt;/p&gt;
&lt;p&gt;Sagar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validating the data over USB</title><link>https://devzone.nordicsemi.com/thread/334745?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 07:25:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1d35b6b-c21a-4884-9178-3c9a50b5ea31</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Sagar&lt;/p&gt;
&lt;p&gt;Any chance you could try the same using Putty and see if the problem is still there?&lt;br /&gt;Putty is a very popular terminal application, and should hopefully show clearly if the problem is with Tera Term or somewhere else.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;An alternativ to using a terminal is to use a serial library for Python, or some other programming language, and make a custom script or application to process the serial data.&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: Validating the data over USB</title><link>https://devzone.nordicsemi.com/thread/334497?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 07:48:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a205e86a-1ed1-44c1-8dfb-283b4df1c19a</guid><dc:creator>Saagar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply&lt;/p&gt;
&lt;p&gt;I am sending it very 200 microsecond.&lt;/p&gt;
&lt;p&gt;If Serial terminal is not recommended, then do you suggest any tool/ any way for data validating.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; regards&lt;/p&gt;
&lt;p&gt;Sagar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validating the data over USB</title><link>https://devzone.nordicsemi.com/thread/334143?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 12:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b104a429-3e48-4d1b-a652-10c9a0ec66fd</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Sagar&lt;/p&gt;
&lt;p&gt;It sounds odd that the terminal application would be the bottle neck in this case. How often are you sending&amp;nbsp;240 bytes of ADC data?&lt;/p&gt;
[quote user=""]and what is the maximum throughput we can achieve in USB full speed ?[/quote]
&lt;p&gt;We have done some testing to verify what kind of speeds you can expect when using the CDC class.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In Windows we reached around 1700 kbps, while on Linux we reached around 2580 kbps.&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></channel></rss>