Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-21-2011, 12:06 PM   #1
LQ Newbie
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
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?

Old 08-21-2011, 12:58 PM   #2
Registered: Aug 2002
Posts: 14,761

Rep: Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478
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.
Old 08-21-2011, 01:45 PM   #3
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ftdi serial to usb converter rightsidedown Linux - Hardware 1 04-29-2008 04:36 PM
USB to serial converter asprakash Linux - Hardware 2 03-14-2007 11:47 PM
pilot-link not working with USB Serial-USB Converter with m105 calmofthestorm Linux - Laptop and Netbook 0 09-03-2005 02:03 PM
USB to Serial Converter on Serial Modem bongski55 Linux - General 3 08-29-2005 10:04 AM
USB serial converter problem linuxBill Linux - Software 3 04-23-2003 08:14 AM

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration