This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Configuring & choosing appropriate USB gadget driver

Hi,

We use BeagleBone for our development before we get our actual h/w ready. We are using TI's Linux SDK 6.0 on BB. We need to make BB (our device) as a test/measurement device and hence need to configure BB as gadget device. I did the configuration in kernel and I could make the device as gadget zero/gadgetfs.

Our device/BB needs to get the request from the host PC and has to send the response at high data rate. I don’t know exactly which type of gadget is the appropriate one for our device. We should be grateful for the suggestions.

Thanks in advance for the prompt response.

Antony.

  • Antony,

    I would think which gadget to choose all depends on the protocol. The Linux kernel already supports a wide range of gadget protocols, if your application fits into one of them, you can directly evaluate and use it. This will save your some driver development effort and make you focusing on your application.

    But if the protocol does not fit into any of the standard classes, you have to implement your own gadget driver, you can either directly implement it in kernel, or use gadgetfs and develop the userspace driver to handle the protocol layer.