LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-12-2010, 12:51 PM   #1
spudgunner
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 229

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

Thanks
 
Old 11-12-2010, 01:19 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

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


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:14 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
Open Source Consulting | Domain Registration