Gadget mode advice sought

2017-09-16 Thread g4
Greetings, I'm trying to find the simplest way to develop a bulk mode gadget that exposes a standard userland IO interface. I've not been able to find anything suitable but if such a beast does exist please do point me in the right direction. Failing that please read on. The appliance collects da

RE: Gadget mode advice sought

2017-09-18 Thread g4
Hi and thanks > 3.4??? sorry, you're on your own. You need to ask for support from whoever forces you to stay on this kernel. Absolutely but sadly it is the all-important camera interface which is completely missing from mainline. That said I have GadgetFS working to the extent it is showing up

RE: Gadget mode advice sought

2017-09-19 Thread g4
Hello and thanks, > You should use the serial (tty) interface for this (see f_serial.c / serial.c) Not keen on that for binary data. > No. g_zero is meant only for testing purposes. Indeed. Problem is looking solved using GadgetFS working on the target board. Promise my next set of USB questi

Question: GadgetFS and EP0 'IN' traffic?

2017-09-20 Thread g4
I'm obviously missing something here but am not quite sure what. My usermode code* is set up to emulate an existing FX3 device. Bulk reads and writes are all fine as are vendor-specific commands that are host to device. However anything that is device to host never appears on the wire. The gene

RE: Question: GadgetFS and EP0 'IN' traffic?

2017-09-20 Thread g4
Hello and thanks > Do you mean: Any control-IN data (device to host) never appears on the wire? After all, you said that bulk reads and writes > are fine. Correct. Data sent via the bulk endpoint is visible. Data sent device to host on EP0 in response to my vendor commands is not. Now this is v

RE: Question: GadgetFS and EP0 'IN' traffic?

2017-09-21 Thread g4
Hello Alan. > Plenty of things could affect it. Without knowing more about your system, I > can't be more specific. For example, what UDC > driver are you using? Ah 😊. It's an ancient (3.4.x*) sunxi_usb_hdc running on an AllWinner H3. > And have you tried testing your program with the dummy-