testing simple gadget driver with Bulk In/Out endpoints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)?

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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux