[libhid-discuss] Inconsistency while reading data from the usb device

shiva vadla shiva473 at gmail.com
Thu Dec 9 17:48:32 UTC 2010


Thanks for the response. I have just tried that, but I still see the same
issue. Any suggestions?

On Thu, Dec 9, 2010 at 12:23 AM, Xiaofan Chen <xiaofanc at gmail.com> wrote:

> On Thu, Dec 9, 2010 at 8:12 AM, shiva vadla <shiva473 at gmail.com> wrote:
> > Hello All,
> > I am trying to read the card data from a credit card reader (usb device)
> > using interrupt endpoint. I can open and claim the hid interface and read
> > the data from the card reader. But if I close and delete the hid
> interface
> > after i am done reading and try to read the data again for the next card
> > swipe, i miss the first packet (8 bytes) of the data on every alternate
> > read. I am not sure why this is happening. If i do not close the hid
> > interface and keep my program running, i do not see any issues. Any help
> is
> > appreciated.
>
> Just a guess, what if you reset the hid interface before closing
> the interface?
>
>
> --
> Xiaofan
>



-- 
Shiva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/libhid-discuss/attachments/20101209/8cb00a17/attachment.htm>


More information about the libhid-discuss mailing list