LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-21-2011, 12:06 PM   #1
nezumij
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?

Thanks,
 
Old 08-21-2011, 12:58 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,895

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
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
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

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


Reply


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 08:02 PM.

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