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.

how to write data to BeagleBone USB host

I can write to an LCD via serial data just fine, but how do I send serial data out thru the USB host on the BeagleBone?

  • Can you please be more specific? I cannot understand your question.

  • I want to communicate to a USB-to-GPIB interface and need to know just how to send a text thru the USB. to the GPIB device. Such as a query to find out what divice ID it is with a command sent out as *IDN?

  • Do you already have the proper driver installed/configured on BeagleBone to support your USB-to-GPIB device? Do you already have the device node /dev/ttyUSB0 or similar?

  • I have the drivers and show /dev/usbdev1.1 & /dev/usb2.1 on the BeagleBone Which one of these is the USB Host?

  • In your use case, you don't need to care about the USB host. You just need to find out where the device node of your USB-to-GPIB adapter is, something similar to /dev/ttyUSB0, and your application will talk to the node.

    Compare before and after plugged in the adapter to see if /dev/ has any new node created. Otherwise, you have to get the proper driver for your adapter.

    The following link might be helpful: Opensuse Linux and the Prologix GPIB to USB converter.

    • Thanks for the timely responds. The GPIB-USB is being shipped to me now, so I will wait till I get it and make sure that I see where the device node of your USB-to-GPIB adapter is before I will ask anymore questions. Thanks for clarifying that I need to worry about the device node and not just the USB HOST.
  • OK, I now have the Prologix USB-GPIP Controller, and it dose indeed show up as /dev/ttyUSB0. And when I send a command like

    echo *IDN?\r\n > /dev/tty USB0

    I then see the  "TALK" LED blink. Now I guess my real problem now is just how do I capture the returning data from the USB-GPIB controller? Hopefully there is just a few lines of  C++ code  I need to make this happen.

  • Mark Roles said:
    OK, I now have the Prologix USB-GPIP Controller, and it dose indeed show up as /dev/ttyUSB0.

    Great, now the USB device is enumerated. The job of USB is done from application's perspective.

    Mark Roles said:
    Now I guess my real problem now is just how do I capture the returning data from the USB-GPIB controller?

    I think so. now you don't need to care about USB any more from your application's perspective, just need to figure out how to talk to GPIB device. Unfortunately I cannot help on that, I guess you need to read GPIB documents?