LinuxQuestions.org
Visit Jeremy's Blog.
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, 01:51 PM   #1
spudgunner
Member
 
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?

Thanks
 
Old 11-12-2010, 02:19 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,152

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


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
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 05:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration