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"><<a href="mailto:xiaofanc@gmail.com">xiaofanc@gmail.com</a>></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 <<a href="mailto:shiva473@gmail.com">shiva473@gmail.com</a>> wrote:<br>
> Hello All,<br>
> I am trying to read the card data from a credit card reader (usb device)<br>
> using interrupt endpoint. I can open and claim the hid interface and read<br>
> the data from the card reader. But if I close and delete the hid interface<br>
> after i am done reading and try to read the data again for the next card<br>
> swipe, i miss the first packet (8 bytes) of the data on every alternate<br>
> read. I am not sure why this is happening. If i do not close the hid<br>
> interface and keep my program running, i do not see any issues. Any help is<br>
> 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>