On Mon, Jul 12, 2010 at 6:15 PM, Shivdas Gujare <shivdas.tech@xxxxxxxxx> wrote: > Hi, > > I am currently working on writing a simple gadget driver which > enumerates as a vendor specific( i.e. .bInterfaceClass = 0xFF > into interface descriptor) > with "a bulk In and Bulk Out endpoint" and I want to send some data > over bulk In endpoint to USB Host PC. > > Since, my device enumerates as a "vendor specific" device, I doesn't > expect there is a driver at Linux Host side which can talk with my > device over bulk In/Out endpoints. > So, I am not sure, how to test this gadget driver. I tried by opening > a usbmon device(i.e. cat /sys/kernel/debug/usb/usbmon/2u (assume > device connected to bus 2)) and then write data to gadget drivers bulk > In endpoint from application, > but I don't see any transaction happening over usbmon. > > So, I would like to know, whether usbmon does & should show any > activity even though there is no host side class driver talking to my > device? and will it be possible for me to verify whatever data I sent > over bulk In endpoint from gadget driver, without writing any USB host > driver (possibly over usbmon)? Yes use libusb and no special host driver is required. Any USB activity that passes through the 'usbcore' should be captured by usbmon > > Thanks for any help. > > Thanks and Regards, > Shivdas Gujare > -- > To unsubscribe from this list: send the line "unsubscribe linux-usb" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html