Re: USB sniffer? (devel)

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

 



On Fri, Dec 26, 2008 at 12:02 AM, Michelle Konzack
<linux4michelle@xxxxxxxxxxxxxxx> wrote:
> Hello,
>
> I an developing a "24V DC modular ATX PSU" which act like a  UPS  and  I
> have problems with the USBHID-PDU stuff...
>
<snip>
>
> Q 2:    Does someone has USBHID-PDU sample (gadget/device) code?
>
Hi Michelle,

I don't know about your hardware. First you need a gadget udc software
that handles your USB hardware. Look in .../drivers/usb/gadget. If you
don't see your device supported, maybe you should change devices? It
is pretty difficult to debug and write a udc.

Then you need gadget software that actually runs the device. For
something slow like HID you should probably learn about gadgetfs. I
don't see any current gadget for HID in the kernel source, so you will
have to write your own. If you have a known good udc, gadgetfs is much
easier to debug. It is not as easy to use as host side usbdevfs, but
still, there is a sample for a gadgetfs driver.

Regards, Steve
--
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