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?
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.
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?
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?
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.
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?