On Fri, 22 Mar 2013, victor yeo wrote: > > you need to send the entire data, without editting. How are you > > accessing your plataform ? Do you have a serial console by any chance ? > > > > You can use tools such as minicom to capture all the information via > > serial console. > > I have a serial console to access the platform. Today i use Linux as > USB host. The log of the usb gadget is attached (gadget-log.txt). > > The Linux usbmon log file is also attached (usbmon-log.txt). Hopefully > the log data will be useful. It looks like you cut out a lot of information from the gadget log. Please don't do that. The logs show that your driver still has several bugs. For example, the start of the gadget log shows that the driver thinks it received a bunch of packets on the bulk-out endpoint, but the usbmon log shows that the host never sent these packets. Your driver does not set the Halt feature for the bulk-in endpoint when it is supposed to. It doesn't even respond with NAK when it receives an invalid request on endpoint 0. When asked to transmit 4096 bytes of data, your driver sent a packet containing more than 512 bytes. Alan Stern -- 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