LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Modem wedged - hylafax (https://www.linuxquestions.org/questions/linux-server-73/modem-wedged-hylafax-4175506548/)

timinator 05-30-2014 03:49 PM

Modem wedged - hylafax
 
Does anyone know how to un-wedge an external modem. It is a MultiTech connected by USB.

Below is some lines from the messages log.
Any help would be appreciated.



May 30 16:44:26 netmax FaxGetty[8401]: Unable to setup modem on /dev/ttyUSB1; giving up after 2 attempts
May 30 16:44:26 netmax FaxGetty[8401]: CLOSE /dev/ttyUSB1
May 30 16:44:26 netmax FaxQueuer[4901]: MODEM /dev/ttyUSB1 appears to be wedged
May 30 16:44:26 netmax FaxQueuer[4901]: MODEM WEDGED: bin/wedged "ttyUSB1" "/dev/ttyUSB1"

dijetlo 06-02-2014 10:08 PM

You'd have to know why it's being wedged in the first place to unwedge it.
First I'd reset the modem.

From what I've read about this it's either that another process is connected/connecting/failed to connect but still claiming the resource... so maybe an
#lsof | grep -i ttyusb1
would give you the process attaching it if there is one
If that doesn't work, you could minicom into it (it's a tty, after all) and run it's internal diagnostics.

timinator 06-03-2014 07:14 AM

Thanks for the reply. The #lsof | grep -i ttyusb1 command did not reveal anything. I'm not familiar with minicom. For now I created another tty and moved the modem to it.

dijetlo 06-03-2014 08:45 AM

Smart move. Did it unwedge?

timinator 06-03-2014 08:55 AM

1 Attachment(s)
No, it's just sitting there - wedged. See ttyUSB1 in attached screen shot

dijetlo 06-03-2014 09:17 AM

So we've reset the modem and created a new tty in case the original kludged and we're still getting a wedge?
You're going to have to minicom into it.
Quote:

MINICOM(1) Version 2.6.1 MINICOM(1)

NAME
minicom - friendly serial communication program

SYNOPSIS
minicom [-somMlwz8] [-c on|off] [-S script] [-d entry]
[-a on|off] [-t term] [-p pty] [-C capturefile] [configuration]

DESCRIPTION
minicom is a communication program which somewhat resembles the shareware program TELIX but is free with source code and runs under most Unices. Features include dialing directory with auto-redial, support for UUCP-style lock files on serial devices, a separate script language inter-preter, capture to file, multiple users with individual configurations, and more.
Run a "man minicom", I haven't used it in a while because I don't deal with tty devices much anymore, at least not ones that wedge, but as I remember it wasn't that hard to set up and use.


All times are GMT -5. The time now is 10:01 AM.