LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   USB Serial converter POSIX (https://www.linuxquestions.org/questions/programming-9/usb-serial-converter-posix-898636/)

nezumij 08-21-2011 12:06 PM

USB Serial converter POSIX
 
I'm trying to communicate with my Roomba vacuum cleaner using a USB-to-serial cable but I can't for the life of me get it to work using C++.
I've tried using cutecom and minicom with no success. The only thing I can get it to work with is C# using mono.

Is there something special I need to do to be able to write to /dev/ttyUSB0 as if it was a standard serial port?

Thanks,

michaelk 08-21-2011 12:58 PM

Welcome to LinuxQuestions.

Nothing special is required to write to a USB serial adapter versus the standard port.
Make sure the permissions for the device are set accordingly.

Not sure why cutecom would not work since it can talk hex.

theNbomr 08-21-2011 01:45 PM

Can you be more specific about 'with no success'? Are you able to open the device node (ie. permission issues?). Does the USB <--> serial dongle work in any other application under Linux (my weapon of choice for these matters is C-Kermit). Do you have a standard serial port? Have you tried to use it? Are you receiving any error messages? If so, it might be helpful if you posted them here.

--- rod.


All times are GMT -5. The time now is 10:07 PM.