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.

Using StarterWare & BeagleBone to implement USB Bulk transfer



Hi,

I'm trying to implement USB bulk transfer using StarterWare & BeagleBone. My products needs high speed communication over USB and the host PC must be able to connect to multiple devices. I tried using Anstrom Linux that came with BeagleBone but it does not handle multiple devices very gracefully since it uses static IP through RNDIS.

So, I'm trying StarterWare but its USB bulk trasfer example does not seem very robust either. I got usb_dev_bulk and usb_bulk_example (host side example from StellarisWare working. But it is not very robust. When I increased the packet size to 128 bytes from default 64 bytes, it runs very slow and unreliably.

Is there a HowTo or a guide on working with StarterWare USB bulk transfer mode?

Thanks

Brian

  • Hi Brian,

    "Anstrom Linux that came with BeagleBone but it does not handle multiple devices very gracefully since it uses static IP through RNDIS."

    If you configure the beaglebone to run a DHCP server (PC),  DHCP-enabled clients (beaglebones) can obtain their IP address and related configuration parameters dynamically each time they join the network. When the beaglebone boots through RNDIS, it does use a static IP, but once a Linux image is up a DHCP client should enable you to get a dynamic IP from the host PC.

    For StarterWare USB

    Please have a look at usb_dev_msc example . This example uses high speed bulk pipes for interfacing with a host . You can either try to strip off the MSC layer or try to make the necessary changes to the usb_dev_bulk example.

     

     

  • Hi Vineeth,

    Thanks for the suggestion. I'm currently studying usb_dev_msc example to figure out how to update usb_dev_bulk example. However, it would be nice if I can use embedded linux. Do you know of a way to make Anstrom linux to connect to PC as a generic bulk device? According www.linux-usb.org, it seems to have been possible at some point using Gadget Zero driver. But I have not been able to make it work using the current version that comes with BeagleBone.

    Thanks.