<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>usbser.sys: ReadFile success with 0 bytes read</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/39132/usbser-sys-readfile-success-with-0-bytes-read</link><description> 
Hello everybody, 

 
I am having trouble making Windows API ReadFile function
working 
properly with USB CDC (Communication Device Class) driver. 
Specifically, I am using CDC drivers supplied with Windows XP: 
usbser.sys 5.1.2600.5512 
serenum.sys</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: usbser.sys: ReadFile success with 0 bytes read</title><link>https://community.arm.com/thread/126632?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2011 05:21:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:038ec3c1-ff37-4409-afa3-056576feb65d</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
the OP say in effect:&lt;/p&gt;

&lt;p&gt;
you do not need to know which uC I use (that the USB engine is
different in all of them does not matter)&lt;br /&gt;
you do not need my code to be legible (work it out)&lt;br /&gt;
you do not need a clear problem description (figure it out)&lt;br /&gt;
you do not need to know I cross-posted at SILabs forum&lt;/p&gt;

&lt;p&gt;
FIX MY PROBLEM FOR FREE !!!!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usbser.sys: ReadFile success with 0 bytes read</title><link>https://community.arm.com/thread/119151?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2011 04:39:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d9b0525c-a50c-423b-b454-d2b34bee4048</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
the OP say in effect:&lt;/p&gt;

&lt;p&gt;
you do not need to know which uC I use (that the USB engine is
different in all of them does not matter)&lt;br /&gt;
you do not need my code to be legible (work it out)&lt;br /&gt;
you do not need a clear problem description (figure it out)&lt;/p&gt;

&lt;p&gt;
FIX MY PROBLEM FOR FTREE !!!!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usbser.sys: ReadFile success with 0 bytes read</title><link>https://community.arm.com/thread/104547?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2011 03:51:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ace114a8-1c54-4a35-a063-632ceb987694</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Only if you supply sufficient information!&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;The USB controller has a 8051 microprocessor core&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
What USB controller, exactly, are you using?&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;The microprocessor controlling the USB chip is another 8051
controller&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Again, what microcontroller , exactly, is it?&lt;/p&gt;

&lt;p&gt;
What guidance do the device manufacturers give about suitable
Windows drivers?&lt;/p&gt;

&lt;p&gt;
The source code you posted is illegible.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usbser.sys: ReadFile success with 0 bytes read</title><link>https://community.arm.com/thread/78986?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2011 03:47:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:71a0a817-d016-4346-9d90-e7ca00e84340</guid><dc:creator>Fabio Visona</dc:creator><description>&lt;p&gt;&lt;p&gt;
Andrew,&lt;/p&gt;

&lt;p&gt;
The USB controller has a 8051 microprocessor core.&lt;br /&gt;
The OUT endpoint is configured to be 512 bytes long. Transmission is
forced at the last byte if lenght is less than 512. Bulk mode is
used.&lt;/p&gt;

&lt;p&gt;
The microprocessor controlling the USB chip is another 8051
controller with KEIL compiler.&lt;/p&gt;

&lt;p&gt;
The issue may be driver/software but also to be found on the
firmware side in the way data are sent back to host. As I mentioned,
there is a relation with response delay. It may be easier to find
someone that has already experienced this problem here that
elsewere.&lt;/p&gt;

&lt;p&gt;
Thank you.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usbser.sys: ReadFile success with 0 bytes read</title><link>https://community.arm.com/thread/66228?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2011 01:37:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3b909c72-4cb3-409b-97e4-eb8ccee86aa3</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Where does the 8051 fit into all this?&lt;/p&gt;

&lt;p&gt;
Did you not notice the instructions for posting source code:
&lt;a href="http://www.danlhenry.com/caps/keil_code.png"&gt;www.danlhenry.com/.../keil_code.png&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>