LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-19-2004, 02:19 PM   #1
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Rep: Reputation: 31
usb modem


I'm trying to get my Best Data USB (model #56USBp) controller-based modem to work with efax.

When I load efax, it gives:
efax: 58:40 Error: can't open serial port /dev/modem: No such file or directory.

The man pages show a switch, -d (device) , with /dev/modem as the default.
Is there any way I can use that to access the modem through a usb port?

Or do I have to bite the bullet & get a serial modem?

(In /dev/usb there is a bunch of 0-byte files named ttyUSB0 through ttyUSB15. What are they? Do they have any relevance to this problem?)

PS: This is for a laptop running RedHat 9
 
Old 08-19-2004, 04:01 PM   #2
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
/dev/modem is just a link to your true device location
i am not sure which port is your usb modem hooked up to .
but i am sure you can see if in /etc/wvdial.conf or other file
after you u find that /dev/ thing.
delete /dev/modem and link it to ur modem should get it work
 
Old 08-19-2004, 04:04 PM   #3
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Original Poster
Rep: Reputation: 31
Still trying to get my Best Data USB (model #56USBp) controller-based modem to work with efax.

When I loaded efax, it gave:
efax: 58:40 Error: can't open serial port /dev/modem: No such file or directory.

I found this:
http://www.linux-usb.org/USB-guide/x332.html
and based on what I read there:
1. I already have the acm.o module
2. I created four nodes (as root):
/dev/usb/ttyACM0 c 166 0
/dev/usb/ttyACM1 c 166 1
/dev/usb/ttyACM2 c 166 2
/dve/usb/ttyACM3 c 166 3

Then I tried efax using the -d switch:
efax -d /dev/usb/ttyACM0
I got:
efax: 36:33 Error: can't open serial port /dev/usb/ttyACM0: Permission denied

Well, that's some progress. So I su'd to root & tried again:
efax -d /dev/usb/ttyACM0

This time the result is:
Quote:
efax: Thu Aug 19 16:37:05 2004 efax v 0.9 Copyright 1999 Ed Casas
efax: Thu Aug 19 16:37:05 2004 efax v 0.9 Copyright 1999 Ed Casas
efax: 37:05 compiled Aug 19 2004 13:54:11
efax: 37:05 opened /dev/usb/ttyACM0
efax: 37:05 Error: tcgetattr on fd=3 failed: Input/output error
efax: 37:05 Error: fax device write: Input/output error
efax: 37:05 Error: fax device write: Input/output error
efax: 37:05 sync: dropping DTR
efax: 37:05 Error: tcgetattr on fd=3 failed: Input/output error
efax: 37:05 Error: tcgetattr on fd=3 failed: Input/output error
efax: 37:05 Error: tcgetattr on fd=3 failed: Input/output error
efax: 37:05 Error: fax device write: Input/output error
efax: 37:05 sync: sending escapes
efax: 37:05 Error: tcgetattr on fd=3 failed: Input/output error
efax: 37:05 Error: fax device write: Input/output error
efax: 37:05 Error: fax device write: Input/output error
efax: 37:05 Error: tcgetattr on fd=3 failed: Input/output error
efax: 37:05 Error: fax device write: Input/output error
efax: 37:05 Error: fax device write: Input/output error
efax: 37:07 Error: fax device write: Input/output error
efax: 37:07 Error: fax device write: Input/output error
efax: 37:07 Error: sync: modem not responding
efax: 37:07 Error: tcgetattr on fd=3 failed: Input/output error
efax: 37:07 done, returning 2 (unrecoverable error)
So, am I getting any closer to solving this? I have no idea what these errors mean, or what to try next. Any help would be much appreciated. Thanks.
 
Old 08-19-2004, 04:10 PM   #4
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
if ur modem are working, u shouldn't need another driver for it
just link the port your computer are using to /dev/modem will do

Last edited by tricky_linux; 08-19-2004 at 05:55 PM.
 
Old 08-19-2004, 05:00 PM   #5
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Original Poster
Rep: Reputation: 31
1. I think the modem is OK. It works plugged into another PC running WinXP

2. It's an external, controller-based modem. I don't think it needs ANY driver.

3. I don't understand what this means:
Quote:
just link the port your computer are using to /dev/modem will do
Can you explain?

4. I rebooted the computer with the modem CONNECTED. Then when I tried the same command:
efax -d /dev/usb/ttyACM0
I got a "no such device" error

So, I rebooted with the modem DISconnected, and when Kudzu came up I made it remove the configuration of the modem. Then I plugged the modem in after bootup was finished, and efax was able to communicate with the modem.

EDIT: at this moment it seems to be working correctly. I was able to receive a fax on this machine (although you either have to be an amazingly fast typist, or know in advance that a fax is coming so you can have the command already typed in at the command line to answer the call.

Last edited by r.stiltskin; 08-19-2004 at 05:19 PM.
 
Old 08-19-2004, 07:01 PM   #6
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Original Poster
Rep: Reputation: 31
Well, the above is not exactly correct. The fax file that was received and saved that time turned out to be a blank page. But after rebooting again with the modem connected to the usb port, and letting Kudzu configure the modem, it was able to successfully receive an actual fax.

IMPORTANT: it seems that during subsequent boot-ups, the modem must be DISconnected until after linux is loaded. If I boot up with the modem connected, it seems that something goes wrong with the modem & it can't be used unless linux is rebooted again with it DISconnected.

Oh, and when booting with the modem disconnected, I have to tell Kudzu to "do nothing" (i.e. leave the configuration unchanged.)

I have managed to send and receive faxes successfully. Although, when I took the received fax (which looked OK on the receiving machine) and fax that same file out, the file was malformed and came out blank at the other end. But I was able to use efix to convert an ordinary text file to tiffg3 format and faxed it out successfully.

Hope this helps someone else to save some time.


PS: If anybody can explain why I have to play this game of keeping the modem disconnected during boot-up, I'd like to know.
 
Old 10-24-2004, 01:43 AM   #7
CMonster
LQ Newbie
 
Registered: May 2004
Posts: 5

Rep: Reputation: 0
does the acm.o module load at boot?
 
  


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
SUSE 9.2 detect my [B]ADSL USB-Ethernet Modem-Router [/B] as a [B]Dial up modem[/B]. myprecius Linux - Hardware 0 06-27-2005 09:21 AM
Problem with Mandrake 10.0 Community, Sagem usb modem and logitech usb mouse. al370601 Mandriva 4 04-29-2004 06:48 PM
usb modem : Can ping, but cant browse - and cant modprobe usb-uhci nmoog Linux - Newbie 8 01-07-2004 11:50 PM
USB mouse thru a USB modem & linux support zeppelin Slackware 7 07-29-2003 03:43 PM
USB cable modem kills usb keyboard sketi Linux - Hardware 1 02-22-2003 06:47 AM

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

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