Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-07-2004, 07:17 PM   #1
LQ Newbie
Registered: Jun 2004
Location: IL
Posts: 24

Rep: Reputation: 15
How to find the correct /dev/ttyS*?

I am going to use serial port to do some communication stuff. when the program comes to
open("/dev/ttyS0", O_RDWR|O_NOCTTY );
programme hangs with output "pemission denied".

What's the problem? Is it because I used wrong device name? How can I know which tty device my serial port is using? My Linux box has a ps2 mouse and a keyboard. and there is one COM port, which I am trying to use.

Old 07-07-2004, 07:33 PM   #2
Registered: Oct 2003
Posts: 41

Rep: Reputation: 15
well, just a guess...
can u do it with normal user-id. I felt that it can be done only by a privileged user.


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
Cant find correct kernel source. e-buzz SUSE / openSUSE 2 07-03-2005 08:45 AM
how to find correct tty number? SeanatIL Linux - Hardware 1 07-07-2004 08:03 PM
Where to find correct Kernel Sources?? jawaking00 Mandriva 2 03-07-2004 01:13 PM
ni52 can't find memory, but address correct Wim_Woittiez Linux - Hardware 0 12-01-2003 02:14 AM
cannot open /dev/ttyS ...resource or driver busy...error.. chiragw Linux - General 0 09-05-2001 04:03 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06: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