On Wed, Feb 03, 2016 at 07:30:56AM +0000, Suresh Gupta wrote: > > > > -----Original Message----- > > From: Greg KH [mailto:gregkh@xxxxxxxxxxxxxxxxxxx] > > Sent: Tuesday, February 02, 2016 10:19 PM > > To: Suresh Gupta <suresh.gupta@xxxxxxx>; suresh gupta > > <sureshgupta189@xxxxxxxxx> > > Cc: linux-usb@xxxxxxxxxxxxxxx > > Subject: Re: USB Raw HID > > > > On Tue, Feb 02, 2016 at 08:28:51AM +0000, Suresh Gupta wrote: > > > I want to write end to end raw HID interface for some specific user > > > defined data communication on USB. Can anyone help me or point me > > > > > > 1. What all changes I need in device/host driver. > > > 2. How it interact with application at device side. > > > 3. How it interact with Host side application. > > > > What did you try that did not work for you? The hidraw interface should > > allow you to do this from userspace with no kernel changes at all. > > Thanks Greg for reply, > > Actually I want to communicate some my defined data packets between > HOST and GADGET on HID. For that I use /dev/rawhid* interface and I > am able to get some packets here. Great. > So my question here is, do we have any driver and application on > gadget side which can be used to send/receive my defined packets to > and from host. You just said it worked? > Or I need to write my own driver which will define report_desc and > some my own application which will read and write from /dev/hidg*. I don't understand, you said the existing drivers worked. What is not now working properly? > Also what will be the maximum packet size in HID for super speed USB.( > 8 bytes for low-speed devices and 64 bytes for high-speed devices) > One more query, is HID would work in super speed. I do not find this > information in HID docs. I don't know, but I think it's still 64bytes. good luck, greg k-h -- 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