Subject: Re: Modem problem
To: Patrick Welche <prlw1@cam.ac.uk>
From: Frederick Bruckman <fredb@fb.sa.enteract.com>
List: netbsd-help
Date: 05/20/1998 10:00:09
On Tue, 19 May 1998, Patrick Welche wrote:

> What doesn't work:
> 
> DOS/kermit connected via modems with getty running on tty00, in fact,
> the modem, a no-name "33.6 DTV", doesn't answer. What have I missed?
> (At a guess stty -f /dev/tty00 settings? It didn't matter what I put
> at the end of the line /etc/ttys ie., tried {,rtscts,mdmbuf...})

This works for me. In /etc/ttys:

tty00   "/usr/libexec/uugetty std.38400" vt220 on secure rtscts

"secure" is so I can su root, and "rtscts" is pretty much the standard. 
You would need to make a special cable to use "mdmbuf."

"uugetty," in conjuntion with the "lock" option for pppd, always waits
quietly while I'm using the modem to dial out. Additionally, without the
"local"  flag, getty/uugetty also does nothing, until the modem itself
actually answers the phone and asserts DCD. This is exactly what we want. 
getty will set the line discipline when it answers; stty is irrelevant.

Now, to get the modem to answer the phone, you need to set register S0 to
a nonzero number. You set it to the number of rings you want it to answer
on, to be exact. To permanently set the modem to answer on one ring, say,
add "S0=1" to the setup string you normally use, and then "AT&W0" to save.
Here's a hypothetical dialog.

AT
OK

AT&F&E0W2&C1&D2&K3
OK

ats0=1		<== With "E0," you won't actually see this, what you typed!
OK

at&w0
OK

at&v
ACTIVE PROFILE:
B1 E1 L1 M1 N1 Q0 T V1 W2 X4 Y0 &C1 &D2 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0 &Y0
S00:001 S01:000 S02:043 S03:013 S04:010 S05:008 S06:002 S07:050 S08:002 S09:006
S10:014 S11:095 S12:050 S18:000 S25:005 S26:001 S36:007 S37:000 S38:020 S44:020
S46:138 S48:007 S95:000

STORED PROFILE 0:
B1 E0 L1 M1 N1 Q0 T V1 W2 X4 Y0 &C1 &D2 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0
S00:001 S02:043 S06:002 S07:050 S08:002 S09:006 S10:014 S11:095 S12:050 S18:000
S36:007 S37:000 S40:104 S41:195 S46:138 S95:000

STORED PROFILE 1:
B1 E0 L1 M1 N1 Q0 T V1 W2 X4 Y0 &C1 &D2 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0
S00:000 S02:043 S06:002 S07:050 S08:002 S09:006 S10:014 S11:095 S12:050 S18:000
S36:007 S37:000 S40:104 S41:195 S46:138 S95:000

TELEPHONE NUMBERS:
0=                                     1=
2=                                     3=

OK

Notice, especially, that S0 is "001" in both the current setup and first
stored profile. The "&Y0" means that profile 0 will be used on power up,
also after "ATZ".

I'm supposing you have an internal modem. External modems are much
easier--they usually light up the "AA" LED when answer mode is enabled.
Note also, that "AT&V" only works with Hayes compatables, including
Rockwell and AT&T chipsets. Microcom uses "ATLI5" and "ATLI6" for roughly
the same purpose.  USR has some other, completely different scheme for
each model they sell.  Hope you kept your printed manual! <snort>
"S0" does the same thing, however, on every modem I've ever encountered.
Hope this does it for you.