LinuxAnswers - the LQ Linux tutorial section.
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 11-12-2010, 01:51 PM   #1
Registered: Dec 2009
Distribution: Slackware
Posts: 228

Rep: Reputation: 18
Is a USBtty (USB serial port) treated the same as tty (normal serial port) in C?

I'm currently looking to have a C program communicate with an Arduino board. The Arduino board shows up as "USBtty0" (or any other USBtty in general). I have been trying to figure out how to communicate with this, but all the C programming stuff I've found so far only talks about standard serial ports (tty). Can I treat a USB serial port (USBtty) like a normal serial port (tty) in my C program?

Old 11-12-2010, 02:19 PM   #2
Registered: Aug 2002
Posts: 13,456

Rep: Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106
Yes, USB serial adapters are programmed just like the real thing.


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
Help: tty console to serial port Rostfrei Linux - General 1 11-03-2010 05:05 AM
[SOLVED] Serial port permissions in Fedora 13 to normal users shaunak Fedora 1 08-30-2010 07:30 AM
Porting Linux, the Serial Port, and TTY Interloper Linux - Software 2 06-25-2009 04:53 AM
TTy driver how to use underlying serial port vicky_driver Linux - Hardware 0 12-26-2008 06:48 AM
Using an USB port as a standard DB9 Serial Port Lsteele Linux - Newbie 1 10-22-2005 10:48 AM

All times are GMT -5. The time now is 02:36 AM.

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