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.

USB Enumeration: BBB act as USB peripheral mode

Hi,

We have recently used the Beaglebone black's miniAB/OTG port to be the USB Pheripheral or Slave and Mobile Phone as USB Host/Master.
We have used the kernel which is present in the "ti-sdk-am335x-evm-07.00.00.00" SDK. The Mobile Phone which acts as USB Host does not provide the 5V vbus to USB device. To drive USB0_VBUS high we have connected the  line from 5v power switch input to USB0_VBUS. 

The requirement is we want BBB to acts as gadgetfs device. I have used the userspace code present in the "www.linux-usb.org/.../usb.c" to test this feature.

If we connect the BBB OTG port to ubuntu host m/c, we are able to view the below log and able to view gadgetfs device in host m/c using lsusb.

gadgetfs: connected
gadgetfs: configuration #1

But If we connect the BBB otg port to mobile phone we are getting only suspend event, not getting bus reset event or gadgetfs:connect event. Please let us know what we are missing.

Thanks and Regards,

Shashi

  • I tested this scenario and it works for me on BBB. I used g_zero through, since I don't have gadgetfs enabled in kernel.

    Can you please try with g_zero to see it has the same issue?
  • Thank you very much for response.

    I have tried but same behaviour, its works with Ubuntu as host m/c and BBB as device. But when I connect Apple device as Host to the BBB board which acts as device its does n't work. Please let me know if someone worked on Apple iPhone act as USB Host and BBB as device. Please let me know if I need to do any modification in BBB board to support this feature.

    Thanks & Regards,
    Shashi