Lower layer USB driver does not respond to read/write?

Hello all,

I’m writing a USB device driver. I’m having problems calling the lower driver to do a read/write. I build the urb using UsbBuildInterruptOrBulkTransferRequest and submit it to the lower driver using IoCallDriver. I set the completion routine using IoSetCompletionRoutine before sending. After calling IoCallDriver, the status returned was Status Pending. However, the Completion Routine set was never called and the program would just stall.I don’t know what’s wrong and hope that someone can shed some light to this.

Thanks…

regards,

Marilyn


Send and receive Hotmail on your mobile device: Click Here


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)

To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com

read and write request depends on command you put in the buffer of the
urb,
depending of the usb subclass protocol.
Does your device receives correct commands?
Another possibility may be you don’t put the urb in the next lower driver
stack ?


You are currently subscribed to windbg as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-windbg-$subst(‘Recip.MemberIDChar’)@lists.osr.com