LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


Closed Thread
  Search this Thread
Old 07-07-2004, 06:15 PM   #1
SeanatIL
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.

Thanks,
 
Old 07-07-2004, 07:03 PM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
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.

http://www.linuxquestions.org/rules.php

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:27 AM.

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