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.

To use Beaglebone Black to handle USB protocol of customer windows application

Hi experts,

Beaglebone black's USB OTG connected to a Windows PC should handle USB protocol of an application.

For this, disabling "g_multi" functionality of USB_OTG, we tried inserting the module Gadget zero (g_zero),  and on windows side we see the "gadget zero" detected with VID and PID in "device manager". But we cannot proceed further on using this.

We also tried inserting the module "gadgetfs", but on mounting we faced the following issue and cannot explore on using this,

$ mount -t gadgetfs /none /dev/gadget/
   nop musb-hdrc.0.auto: failed to start (null): -120

It seems complicated to find the working way, and any help on this will be much more appreciated.

Thanks,

Dhiv

  • Dhiv Sekar said:
    we tried inserting the module Gadget zero (g_zero),  and on windows side we see the "gadget zero" detected with VID and PID in "device manager". But we cannot proceed further on using this.

    g_zero is not a standard class gadget driver, Windows does not have a driver for it, but your application should be able to directly access it.

    Dhiv Sekar said:
    nop musb-hdrc.0.auto: failed to start (null): -120

    This message can be ignored. The driver printed this confusing message in its normal execution.

  • Thanks Bin Liu,

    The inputs are appreciable. We proceeded with using gadget zero driver, and on windows side, we tried WinUSB Net following this link,

    http://winusbnet.codeplex.com/documentation

    Using the VID, PID and GUID details of the gadget zero device detected on windows, we created INF file and installed it.

    But as expected we couldn't get the WinUSB.sys installed, and we dont know how to proceed further on installing WinUSB.sys on WIndows 7 PC for accessing USB device.

    Please guide us on what we are missing.

    Many more thanks,

    Dhiv

  • Dhiv,

    Unfortunately I don't have any experience with WinUSB, and did not do any usb sw development in Windows.

    Did you find anything useful about installing winusb.sys while searching on Internet?

  • Hi Bin Liu,

    Finally got an easy way of installing winusb.sys for gadget zero device using the following USB driver installer.

    http://www.sysfiles-download.com/sysindex/winusb.sys.html

    You can just run this, and it detects the new USB device for which driver is not installed with VID and PID and installs WinUSB driver for it.

    Now we are trying to use this device in our custom application.

    Cheers,

    Dhiv

  • That is great. Thanks for the update.