LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 07-07-2004, 06:17 PM   #1
SeanatIL
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
main()
{
...
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.

Thanks,
 
Old 07-07-2004, 06:33 PM   #2
rajatgarg
Member
 
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.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant find correct kernel source. e-buzz Suse/Novell 2 07-03-2005 07:45 AM
how to find correct tty number? SeanatIL Linux - Hardware 1 07-07-2004 07:03 PM
Where to find correct Kernel Sources?? jawaking00 Mandriva 2 03-07-2004 12:13 PM
ni52 can't find memory, but address correct Wim_Woittiez Linux - Hardware 0 12-01-2003 01:14 AM
cannot open /dev/ttyS ...resource or driver busy...error.. chiragw Linux - General 0 09-05-2001 03:03 AM


All times are GMT -5. The time now is 02:03 PM.

Main Menu
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