Thanks for the response. I have just tried that, but I still see the same issue. Any suggestions?<br><br><div class="gmail_quote">On Thu, Dec 9, 2010 at 12:23 AM, Xiaofan Chen <span dir="ltr">&lt;<a href="mailto:xiaofanc@gmail.com">xiaofanc@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Thu, Dec 9, 2010 at 8:12 AM, shiva vadla &lt;<a href="mailto:shiva473@gmail.com">shiva473@gmail.com</a>&gt; wrote:<br>

&gt; Hello All,<br>
&gt; I am trying to read the card data from a credit card reader (usb device)<br>
&gt; using interrupt endpoint. I can open and claim the hid interface and read<br>
&gt; the data from the card reader. But if I close and delete the hid interface<br>
&gt; after i am done reading and try to read the data again for the next card<br>
&gt; swipe, i miss the first packet (8 bytes) of the data on every alternate<br>
&gt; read. I am not sure why this is happening. If i do not close the hid<br>
&gt; interface and keep my program running, i do not see any issues. Any help is<br>
&gt; appreciated.<br>
<br>
</div></div>Just a guess, what if you reset the hid interface before closing<br>
the interface?<br>
<br>
<br>
--<br>
<font color="#888888">Xiaofan<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Shiva<br>