Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Faxgetty not unlocking modem fast enough



On Wed, Mar 31, 1999 at 01:21:40PM +0200, Steven Cruysberghs wrote:
> I use the same modem for my outbound call to my ISP (ppp) as for HylaFAX. I run faxgetty on cua3. 

First; please wrap your lines at 72 characters.

Second, you shouldn't be using /dev/cua* anymore.  Convert -everything-
on your machine to use /dev/ttyS*instead.  This is A Good Idea on 2.0
kernels, in 2.2, It's The Law.

> When I make a connection I alwas have to run the script I use to connect twice to get faxgetty to unlock the device.
> (at least, that is what I think is hapening)

Acutually not.

> So it takes me almost 2 minutes to connect to my provider. When I disable Faxgetty I goes a lot faster and the connection gets made
> imediatly.
> Is there a workaround for this???

Let's take a look at the logs...

> Mar 31 12:30:20 faxserver kernel: CSLIP: code copyright 1989 Regents of the University of California
> Mar 31 12:30:20 faxserver kernel: PPP: version 2.2.0 (dynamic channel allocation)
> Mar 31 12:30:20 faxserver kernel: PPP Dynamic channel allocation code copyright 1995 Caldera, Inc.
> Mar 31 12:30:20 faxserver kernel: PPP line discipline registered.
> Mar 31 12:30:20 faxserver kernel: registered device ppp0
> Mar 31 12:30:20 faxserver pppd[2198]: pppd 2.3.3 started by root, uid 0
> Mar 31 12:30:22 faxserver FaxGetty[459]: ANSWER: Can not lock modem device
> 
> # This is why the first attempt fails ( I think)

Nope.  This message is Faxgetty noticing that the port is now
available, realizing that the reason is because someone else just opened
it, and going back to sleep.

> Mar 31 12:30:22 faxserver chat[2202]: abort on (NO CARRIER)
> Mar 31 12:30:22 faxserver chat[2202]: abort on (BUSY)
> Mar 31 12:30:22 faxserver chat[2202]: send (ATZ^M)
> Mar 31 12:30:22 faxserver chat[2202]: expect (OK)
> Mar 31 12:30:22 faxserver chat[2202]: ^M
> Mar 31 12:30:22 faxserver chat[2202]: OK
> Mar 31 12:30:22 faxserver chat[2202]:  -- got it 
> Mar 31 12:30:22 faxserver chat[2202]: send (ATDT014250111^M)
> Mar 31 12:30:23 faxserver chat[2202]: expect (CONNECT)
> Mar 31 12:30:23 faxserver chat[2202]: ^M
> Mar 31 12:30:23 faxserver chat[2202]: ATZ^MATDT01^M

That looks questionable at best.  Why isn't it echoing the entire phone
number, I must wonder.

Perhaps you have non-European dialrules(4F) installed?

> Mar 31 12:30:23 faxserver chat[2202]: OK^M
> Mar 31 12:31:08 faxserver pppd[2198]: Connect script failed
> Mar 31 12:31:08 faxserver chat[2202]: alarm
> Mar 31 12:31:08 faxserver chat[2202]: Failed
> Mar 31 12:31:09 faxserver pppd[2198]: Exit.
> Mar 31 12:31:11 faxserver pppd[2209]: pppd 2.3.3 started by root, uid 0
> Mar 31 12:31:12 faxserver chat[2211]: abort on (NO CARRIER)
> Mar 31 12:31:12 faxserver chat[2211]: abort on (BUSY)
> Mar 31 12:31:12 faxserver chat[2211]: send (ATZ^M)
> Mar 31 12:31:12 faxserver chat[2211]: expect (OK)
> Mar 31 12:31:13 faxserver chat[2211]: ATZ^M^M
> Mar 31 12:31:13 faxserver chat[2211]: OK
> Mar 31 12:31:13 faxserver chat[2211]:  -- got it 
> Mar 31 12:31:13 faxserver chat[2211]: send (ATDT014250111^M)
> Mar 31 12:31:14 faxserver chat[2211]: expect (CONNECT)
> Mar 31 12:31:14 faxserver chat[2211]: ^M

It looks like there are missing lines there, too...

Perhaps you have a flow control problem with this modem?

What sort of mode is it?

Remember, everyone: you have to give _ALL_ the details on a problem
report.  Sometime today, I'm going to create and post a sample problem
report form; I'd encourage everyone to use it for reports, and maybe
Darren will include a copy in the next RPM, if I do a good enough job.
:-)

> Mar 31 12:31:34 faxserver pppd[2209]: Serial connection established.
> -------------------------- snip ------------------------------------------

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra@baylink.com
Member of the Technical Staff     Buy copies of The New Hackers Dictionary.
The Suncoast Freenet            Give them to all your friends.
Tampa Bay, Florida     http://www.ccil.org/jargon/             +1 813 790 7592



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services