Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Modem troubles
@ 1998-03-02  0:40 James Woodruff
  1998-03-02  1:24 ` Michal Jaegermann
  1998-03-02  3:30 ` Steve Dum
  0 siblings, 2 replies; 3+ messages in thread
From: James Woodruff @ 1998-03-02  0:40 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

I have been following the thread of messages regarding modem troubles with great interest
as I  have the same problem.  I have read the HOWTO's, checked the Linux/Alpha home pages
on the internet, opened a trouble report with Red Hat support, talked to Microway support, and
have tried every suggestion that has been offered to no avail.

Background info:
I recently upgraded from a 486DX2 with Red Hat 5.0/Windows 95 to a Microway Screamer 533-SX
with Red Hat 5.0/WIndows NT (each on their own Seagate hard drive) and MILO.  My modem is
an internal Hayes Accura 56 Kflex modem that worked with the Intel/Linux system and works
presently with WIndows NT.  The PNP feature on the modem has been disabled and the modem
optioned for COM2 and IRQ 3.

I have recomplied the kernel answering yes to CONFIG_SERIAL and CONFIG_PPP.

The following line appears in dmesg:
	Serial driver version 4.13 with no serial options enabled

I have linked /dev/modem to /dev/cua1
	lrwxrwxrwx  1 root  root  4 Feb 12 08:55 /dev/modem -> cua1

I have added the following to /etc/rc.d/rc.serial:
	/bin/setserial /dev/cua1 spd_vhi

/bin/setserial -a /dev/modem reports:
	/dev/modem, Line 1, UART;  16550A, Port: 0x02f8, IRQ: 3
		Baud_base: 115200, close_delay: 5242, divisor: 0
		closing_wait: 52428, closing_wait2: infinte
		Flags: spd_vhi skip_test

I have set up ppp with the netcfg tool and have transferred over my ppp-on and ppp-on-dialer
scripts from my Intel system.

Problems:
When I start minicom (with the -s option), minicom launches then hangs during the initialization
of the modem phase.

When I try to start ppp it fails with a message of a script failure in my /var/log/message file.

/usr/sbin/statserial /dev/modem reports:
	Signal   Pin    Pin   Direction      Status   Full
	Name    (25)   (9)    (computer)                Name
	--------     ----    ----    ---------------    ---------   --------
	PG	1	-	-	     -	Frame Ground
	TXD	2	3	out	     -	Transmit Data
	RXD	3	2	in	     -	Receive Data
	RTS	4	7	out	     1	Request to Send
	CTS	5	8	in	     0	Clear to Send
	DSR	6	6	in	     0	Data Set Ready
	GND	7	5	-	     -	Signal Ground
	DCD	8	1	in	     0	Data Carrier Detect
	DTR     20	4	out	     1	Data Terminal Ready
	RI        22	9	in	     0	Ring Indicator
(then it hangs)

One last item.  When I launch seyon it recognizes the modem.  When I
manually dial a number it dials out and connects, but at that point I am unable to do any
thing and have exit and rm the lock file.

Sorry for the long message, but I wanted to be complete.  Thanks for advance for any
responses and help.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Modem troubles
  1998-03-02  0:40 Modem troubles James Woodruff
@ 1998-03-02  1:24 ` Michal Jaegermann
  1998-03-02  3:30 ` Steve Dum
  1 sibling, 0 replies; 3+ messages in thread
From: Michal Jaegermann @ 1998-03-02  1:24 UTC (permalink / raw)
  To: axp-list

> 
> I have linked /dev/modem to /dev/cua1
> 	lrwxrwxrwx  1 root  root  4 Feb 12 08:55 /dev/modem -> cua1

Ok, once again it looks like it is a time for a periodic post.  I wonder
when a need for this will vanish.  In case somebody wonders Ted Ts'o
authored, among other things, a serial port code for Linux.

Ah, don't tell me that Red Hat tools set your modem on cuaXX interface
as well. Red Hat also could use some reading time once in a while.

 From: "Theodore Y. Ts'o" <tytso@mit.edu>
 To: Tony Nugent <tonyn@sctnugen.ppp.gu.edu.au>
 Cc: linux-net@vger.rutgers.edu, linux-ppp@vger.rutgers.edu
 Subject: Re: /dev/cua? Vs /dev/ttyS? (was: Re: co-existance of pppd and mgetty ?)
 Date: Mon, 13 May 1996 19:51:04 +0200
 Status: ROr

    Date:        Mon, 13 May 1996 07:57:09 +1000
    From: Tony Nugent <tonyn@sctnugen.ppp.gu.edu.au>

    Can someone kindly explain the difference between the /dev/cua? and
    /dev/ttyS? devices?

 /dev/ttySxx devices are fully POSIX-compliant TTY devices.  If you are
 only going to be using one set of tty devices, you should be using
 /dev/ttySxx. 

 /dev/cuaXX devices are different from /dev/ttySXX in two ways --- first
 of all, they will allow you to open the device even if CLOCAL is not set
 and the O_NONBLOCK flag was not given to the open device.  This allows
 programs that don't use the POSIX-mondated interface for opening
 /dev/ttySxx devices to be able to use /dev/cuaXX to make outgoing phone
 calls on their modem (cu stands for "callout", and is taken from SunOS).

 The second way in which /dev/cuaXX differs from /dev/ttySXX is that if
 they are used, they will trigger a simplistic kernel-based locking
 scheme:  If /dev/ttySXX is opened by one or more processes, then an
 attempt to open /dev/cuaXX will return EAGAIN.  If /dev/cuaXX is opened
 by one or more processes, then an attempt to open /dev/ttySXX will
 result the open blocking until /dev/cuaXX is closed, and the carrier
 detect line goes high.

 While this will allow for simple lockouts between a user using a modem
 for callout and a getty listening on the line for logins, it doesn't
 work if you need to arbitrate between multiple programs wanting to do
 dialout --- for example, users wanting to do dialout and UUCP.

 I originally implemented the cuaXX/ttySXX lockout mechanism back before
 FSSTND established a standard convention for the use of tty lock files.
 Now that it's there, people should use the tty lock files and not try
 using /dev/cuaXX.  The only reason why /dev/cuaXX hasn't disappeared yet
 is for backwards compatibility reasons.

						 - Ted

> 
> Problems:
> When I start minicom (with the -s option), minicom launches then hangs during the initialization
> of the modem phase.

Cannot tell that for sure, as I did not have an opportunity to test it,
but I would be not surprised at all if glibs, which follows closesly
POSIX standards, would break /dev/cuaXX interfaces for good.

On the other hand I cannot exclude that serial ports in 5.0 are simply
broken.  Just do not know.

  Michal

p.s. Could you please hit <return> once for a while.  Lines well over 70
characters in lengths are quite unreadable and not acceptable according
to long established customs of netiquette.  When confronted with a
message with such long lines more often than not I simply chuck it to
a bit-bucket without even trying to read it.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Modem troubles
  1998-03-02  0:40 Modem troubles James Woodruff
  1998-03-02  1:24 ` Michal Jaegermann
@ 1998-03-02  3:30 ` Steve Dum
  1 sibling, 0 replies; 3+ messages in thread
From: Steve Dum @ 1998-03-02  3:30 UTC (permalink / raw)
  To: axp-list; +Cc: steve_dum


In message <01BD4530.D1073860@adialup55.ptld.uswest.net>you write:

I would suggest trying to connect at 38400 baud or below. If that works, but
the higher rates fail then that narrows things down.  The data from
statserial looks like the control lines aren't connected properly but that
depends on what state the modem thinks it's in.
>
>	PG	1	-	-	     -	Frame Ground
>	TXD	2	3	out	     -	Transmit Data
>	RXD	3	2	in	     -	Receive Data
>	RTS	4	7	out	     1	Request to Send
>	CTS	5	8	in	     0	Clear to Send
>	DSR	6	6	in	     0	Data Set Ready
>	GND	7	5	-	     -	Signal Ground
>	DCD	8	1	in	     0	Data Carrier Detect
>	DTR     20	4	out	     1	Data Terminal Ready
>	RI        22	9	in	     0	Ring Indicator
>(then it hangs)
>
>One last item.  When I launch seyon it recognizes the modem.  When I
>manually dial a number it dials out and connects, but at that point I am unabl
>e to do any
>thing and have exit and rm the lock file.

This would also seem like cabling too, unless the modem is trying to use
hardware flow control and the computer is using software flow control.

steve


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-03-02  3:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-02  0:40 Modem troubles James Woodruff
1998-03-02  1:24 ` Michal Jaegermann
1998-03-02  3:30 ` Steve Dum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox