<?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>nRF52840 USB CDC strange problem on Windows 10</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42120/nrf52840-usb-cdc-strange-problem-on-windows-10</link><description>Hi, 
 I am working on a project in which I use the USB_CDC_ACM profile. I have mainly taken the example you provide and add the rest of my code. 
 Everything is working fine, USB is detected, data is being sent to Host... but I see a strange problem when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Jan 2019 09:19:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42120/nrf52840-usb-cdc-strange-problem-on-windows-10" /><item><title>RE: nRF52840 USB CDC strange problem on Windows 10</title><link>https://devzone.nordicsemi.com/thread/163903?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 09:19:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a88f688-2c84-48f0-bd9a-ef0ae612cd6d</guid><dc:creator>Juan</dc:creator><description>&lt;p&gt;Ok, thanks! that makes sense for me now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB CDC strange problem on Windows 10</title><link>https://devzone.nordicsemi.com/thread/163838?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 18:15:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bca0db6-3ec4-4771-a88d-d088c9f938e8</guid><dc:creator>Turbo J</dc:creator><description>[quote userid="76200" url="~/f/nordic-q-a/42120/nrf52840-usb-cdc-strange-problem-on-windows-10"]In theory, everything is working as expected, but the problem I see on Windows 10 is that Windows does not receive any data until I send 4096 bytes. [/quote]
&lt;p&gt;That is actually expected behaviour for USB bulk endpoints, and stated as such in the USB 2.0 spec.&lt;/p&gt;
&lt;p&gt;In order to receive less than 4096 bytes, the last packet must be smaller than 64 bytes. USB also allows for zero byte packets, which can be used to send any integer multiple of 64 bytes as one transaction.&lt;/p&gt;
&lt;p&gt;Note that most CDC example implementations omit this zero packet handling for simplicity.&lt;/p&gt;
[quote userid="76200" url="~/f/nordic-q-a/42120/nrf52840-usb-cdc-strange-problem-on-windows-10"]I tested the same code on a Raspberry pi and I am not having the same issue.[/quote]
&lt;p&gt;Linux should behave roughly similar, but I have not tested USB CDC there much -&amp;nbsp; was rather using LibUSB directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>