Update.

So after fiddling with this for a few days... If I boot up my system,
and *then* plug in the reader, it reads correctly until I exit my
application. (I've now switched over to syncSubmit(byte[]), which
works great.) Afterwards, if I launch it again, it doesn't read
anymore, but I have to unplug and plug in the device again. I close
the pipe and release the interface correctly, I think.

I'm trying to send a RESET_DEVICE, maybe that would take care of
things, but I think I'm having trouble translating the HID Set_Report.

On 5/2/07, Mirza Garibovic <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have an MT-215 before me, the development machine runs Ubuntu
> Desktop 7.04, and javax-usb is at version 1.0.1. As far as I've
> understood from the technical doc[1], the device simply sends input
> reports on the interrupt in pipe (and sending anything to it is
> usually not necessary), and as far as I can see from usbview and from
> traversing the device, there is only a single
> configuration-interface-endpoint.
>
> So away I go, find the device, force-claim the interface, open the
> pipe, start a runnable (like the mouse driver example). The device LED
> turns on and reacts correctly when I swipe a card, but
> UsbPipe.syncSubmit never returns. I've tried various methods:
> submitting an Irp, submitting a byte[], attaching a PipeListener, and
> attaching a DeviceListener. I never get anything from the device.
>
> I figure I must be doing something wrong or not reading it correctly.
> What ways are there to get data from a device? I've attached some
> relevant code in case anyone wants details.
>
> Mirza
>
> [1] page 19, <http://www.magtek.com/docs/99875205.pdf>
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to