LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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


Reply
  Search this Thread
Old 10-05-2004, 01:58 PM   #1
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Rep: Reputation: 30
external modems [solved]


I just bought an actiontec 56k/v.92 external serial modem to use with my Debian system. I thought it would be pretty straight forward to use.. just plug it in and go. Unfortunately that's not the case.. I can't seem to get it to be recognized.

The end goal is to use hylafax with it so I went to the hylafax page and got this command to test with (as root):

cu -l /dev/ttyS0

That results in this error:

cu: open (/dev/ttyS0): Permission denied
cu: /dev/ttyS0: Line in use

I also tried changing that ttyS0 to ttyS1 and S2 and S3 with similar results. Anybody have a suggestion on how to proceed?

Last edited by viniosity; 10-05-2004 at 03:30 PM.
 
Old 10-05-2004, 03:15 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Is there something holding that device?
eg. what does
Code:
lsof | grep ttyS
say?
 
Old 10-05-2004, 03:19 PM   #3
sjalex
Member
 
Registered: Oct 2004
Posts: 41

Rep: Reputation: 15
port problems?

The first thing to do is to make sure the serial port is functional. There are a couple ways to do that.

The most fundamental is to check the BIOS settings and make sure the thing is switched on. While you're there it might be wise to check on the IRQ and I/O port as they will indicate which tty you should look at when you get back into the OS. It will be on IRQ 3 or 4 normally, if it's on IRQ 3 you'll be looking for /dev/ttyS1 or /dev/ttyS3, if it's on IRQ 4 look for /dev/ttyS0 or /dev/ttyS2. The I/O port numbers specify which, but I don't recall the correlation at the moment.

In any case, when you are back to linux, get logged in as root. Once you're there it should be pretty easy to figure out which tty to use: just do 'cat /dev/ttyS0' or whichever tty you think is appropriate. If the serial port is not on that tty, you'll get an I/O error. If it is on that port, IIRC, you get nothing at all, which in this case is a good thing. Just ctrl-C to get back to the shell.

Once you have got this far, cu should definitely work.

If you have already got this far before posting, I'm not sure what to tell you except that your cu binary could potentially be broken, or your serial port could be. You might try using minicom, just make a soft link /dev/modem to whichever is the appropriate /dev/ttyS?

Good luck

Stephen
 
Old 10-05-2004, 03:20 PM   #4
emrahunal
LQ Newbie
 
Registered: Oct 2004
Location: Ankara
Distribution: Debian Unstable
Posts: 4

Rep: Reputation: 0
As root, try to change owner-group of /dev/ttyS0 (and the rest) like this:

chown uucp.uucp /dev/ttyS*

This should be useful.
 
Old 10-05-2004, 03:25 PM   #5
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Original Poster
Rep: Reputation: 30
lsof | grep ttyS didn't return any results, but I typed lsof | grep ttyS* and got the following:

bash 537 root 0u CHR 4,1 307888 /dev/tty1
bash 537 root 1u CHR 4,1 307888 /dev/tty1
bash 537 root 2u CHR 4,1 307888 /dev/tty1
bash 537 root 255u CHR 4,1 307888 /dev/tty1
getty 538 root cwd DIR 8,3 20480 307076 /dev
getty 538 root rtd DIR 8,3 4096 2 /
getty 538 root txt REG 8,3 14584 387994 /sbin/getty
getty 538 root mem REG 8,3 90152 193946 /lib/ld-2.3.2.so
getty 538 root mem REG 8,3 1243888 193966 /lib/libc-2.3.2.so
getty 538 root 0u CHR 4,2 307891 /dev/tty2
getty 538 root 1u CHR 4,2 307891 /dev/tty2
getty 538 root 2u CHR 4,2 307891 /dev/tty2
getty 539 root cwd DIR 8,3 20480 307076 /dev
getty 539 root rtd DIR 8,3 4096 2 /
getty 539 root txt REG 8,3 14584 387994 /sbin/getty
getty 539 root mem REG 8,3 90152 193946 /lib/ld-2.3.2.so
getty 539 root mem REG 8,3 1243888 193966 /lib/libc-2.3.2.so
getty 539 root 0u CHR 4,3 307894 /dev/tty3
getty 539 root 1u CHR 4,3 307894 /dev/tty3
getty 539 root 2u CHR 4,3 307894 /dev/tty3
getty 540 root cwd DIR 8,3 20480 307076 /dev
getty 540 root rtd DIR 8,3 4096 2 /
getty 540 root txt REG 8,3 14584 387994 /sbin/getty
getty 540 root mem REG 8,3 90152 193946 /lib/ld-2.3.2.so
getty 540 root mem REG 8,3 1243888 193966 /lib/libc-2.3.2.so
getty 540 root 0u CHR 4,4 307897 /dev/tty4
getty 540 root 1u CHR 4,4 307897 /dev/tty4
getty 540 root 2u CHR 4,4 307897 /dev/tty4
getty 541 root cwd DIR 8,3 20480 307076 /dev
getty 541 root rtd DIR 8,3 4096 2 /
getty 541 root txt REG 8,3 14584 387994 /sbin/getty
getty 541 root mem REG 8,3 90152 193946 /lib/ld-2.3.2.so
getty 541 root mem REG 8,3 1243888 193966 /lib/libc-2.3.2.so
getty 541 root 0u CHR 4,5 307900 /dev/tty5
getty 541 root 1u CHR 4,5 307900 /dev/tty5
getty 541 root 2u CHR 4,5 307900 /dev/tty5
getty 542 root cwd DIR 8,3 20480 307076 /dev
getty 542 root rtd DIR 8,3 4096 2 /
getty 542 root txt REG 8,3 14584 387994 /sbin/getty
getty 542 root mem REG 8,3 90152 193946 /lib/ld-2.3.2.so
getty 542 root mem REG 8,3 1243888 193966 /lib/libc-2.3.2.so
getty 542 root 0u CHR 4,6 307903 /dev/tty6
getty 542 root 1u CHR 4,6 307903 /dev/tty6
getty 542 root 2u CHR 4,6 307903 /dev/tty6
apt-get 698 root 0u CHR 4,1 307888 /dev/tty1
apt-get 698 root 1u CHR 4,1 307888 /dev/tty1
apt-get 698 root 2u CHR 4,1 307888 /dev/tty1
ftp 700 root 2u CHR 4,1 307888 /dev/tty1

Will try the other suggestions shortly..
 
Old 10-05-2004, 03:29 PM   #6
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Original Poster
Rep: Reputation: 30
Ok, I tried the chown suggestion and that worked! Now when I type cu -l /dev/ttyS0 it tells me I am connected. I was also able to query the modem to find it supports 0, 1, 2. Thanks for the help!
 
  


Reply



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
Query: External Modems to Avoid? kevinbenko Linux - Hardware 1 06-19-2005 11:04 PM
external modems chippie Linux - Newbie 3 08-14-2004 09:21 AM
Some good external modems? Soulful93 Linux - Newbie 10 12-18-2003 06:35 PM
Redhat 8.0 and External Modems caligari Linux - Hardware 2 08-29-2003 02:56 PM
Modems: internal vs. external? Zen Arcade Linux - Newbie 7 06-21-2003 05:45 PM

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

All times are GMT -5. The time now is 10:54 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
Open Source Consulting | Domain Registration