Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


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

Rep: Reputation: 15
how to find correct tty number?

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:03 PM   #2
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

Your other thread already has a reply and will remain open.

Closed Thread

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 07:45 AM
How to enlarge the number of tty ? linux521 Linux - Newbie 2 04-14-2005 04:21 AM
max number of tty alaios Linux - Newbie 3 07-14-2004 12:23 AM
How to find the correct /dev/ttyS*? SeanatIL Linux - Software 1 07-07-2004 06:33 PM
command to get tty number D. Marowa Linux - General 5 06-06-2004 07:47 PM > Forums > Linux Forums > Linux - Hardware

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