Dan,

When i keep sending the HID request to the DCP using syncSubmit, after few
times, i.e like 50-70 times after submitting, i get the following and i am
getting kicked out of the loop!

DCP Submission failed: Error Submitting IRP: Submission aborted
javax.usb.UsbPlatformException: Error submitting IRP: Submission aborted

What can i do to resolve this?

 - Hide quoted text -

Regards
Rahul Bourothu

On 8/12/08, Dan Streetman <[EMAIL PROTECTED]> wrote:
>
> On Tue, Aug 12, 2008 at 11:21 AM, Bourothu Rahul
> <[EMAIL PROTECTED]> wrote:
> > Dan,
> >
> > I have figured out the way yesterday. First, i issue my read command to
> the
> > device on the DCP and then open the pipe. Then use a UsbIrp to read from
> the
> > pipe. I am able to communicate with the device!!
> >
> > But, there is one problem. When i try to put this in a loop until i get
> the
> > necessary information, that is if i try to asyncsubmit the UsbIrp to the
> > pipe, i get a message saying " cannot submit: isComplete is true" . Do i
> > need to create a new UsbIrp everytime i have to submit to the pipe?
>
> short answer: yes.
>
> long answer: you can "clear" the irp's fields if you really want to
> reuse it.  But it's much faster and easier to just create a new one -
> java has very good GC these days.
>
> >
> > Thank you!
> > Regards
> > Rahul Bourothu
> >
> >
> > On 8/12/08, Dan Streetman <[EMAIL PROTECTED]> wrote:
> >>
> >> I can't help with figuring out the protocol for your device, but I
> >> would suggest that you read the javadoc for UsbControlIrp and UsbIrp
> >> so you will know how to use them for input and output.  Specifically
> >> the input data will not get filled up if you leave it empty; but you
> >> really should read all the javadoc to understand it - it's really not
> >> that much.
> >>
> >> On Thu, Aug 7, 2008 at 2:38 PM, Bourothu Rahul <
> [EMAIL PROTECTED]>
> >> wrote:
> >> > Hi,
> >> >
> >> > I am using a USB RFID Reader to read the EPC code associated with a
> RFID
> >> > tag
> >> > on a Linux platform(using JSR80). The device uses ByteStream Protocol
> to
> >> > communicate with the host. This protocol requires use of HID Report
> >> > number
> >> > 1.
> >> > The read tag command as provided in the device specification is :
> >> > <01><00><06><22><A0><85><00>
> >> >
> >> > I believe I have to use SET_REPORT(to send control) and GET_REPORT(to
> >> > recieve data) to enable communication.
> >> >
> >> > In order to issue the read tag command, i am using the following
> header
> >> > values(from the usb 1.1 HID specification):
> >> >
> >> > bmRequestType:   0x21
> >> > bRequest:             0x09 (SET_REPORT, to the device)
> >> > wValue:                0x0201 (<I/O Type><Report Number>)
> >> > wIndex:                0x0000  (Interface number)
> >> > wLength:              0x07  (Number of Bytes to send to the device)
> >> > Data:                   <01><00><06><22><A0><85><00>
> >> >
> >> > I wrap this data in a UsbControlIrp, and send it to the device using
> >> > syncSubmit method.
> >> >
> >> > Later i have to read the report from the device using GET_REPORT. For
> >> > this I
> >> > would use the headers as follows:
> >> > (The INPUT Report from the device would be of size 22 bytes)
> >> > bmRequestType:  0xA1
> >> > bRequest:             0x01 (GET_REPORT, from the device)
> >> > wValue:                0x0101 (<I/O Type><Report Number>)
> >> > wIndex:                0x0000  (Interface number)
> >> > wLength:              0x16  (Number of Bytes to be recieved from the
> >> > device,
> >> > 22 in HEX)
> >> > Data:                   <empty> < I assume the data read from the
> device
> >> > will be stored here>
> >> >
> >> > I again wrap this data in a UsbControlIrp and send it to the device
> >> > using
> >> > syncSubmit method.
> >> > Is my approach correct or am I going wrong somewhere?
> >> >
> >> > Please let me know!
> >> >
> >> > Thank You
> >> > Regards
> >> > Rahul Bourothu
> >> >
> >> >
> -------------------------------------------------------------------------
> >> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> >> > challenge
> >> > Build the coolest Linux based applications with Moblin SDK & win great
> >> > prizes
> >> > Grand prize is a trip for two to an Open Source event anywhere in the
> >> > world
> >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> > _______________________________________________
> >> > javax-usb-devel mailing list
> >> > javax-usb-devel@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
> >> >
> >> >
> >
> >
> >
> > --
> > Rahul Bourothu
> > School of Engineering and Applied Science,
> > University of Pennsylvania,
> > Philadelphia, PA - 19104
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> > prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > javax-usb-devel mailing list
> > javax-usb-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
> >
> >
>



-- 
Rahul Bourothu
School of Engineering and Applied Science,
University of Pennsylvania,
Philadelphia, PA - 19104
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to