#############################################################################
# File: /usr/lib/uucp/Dialers.
# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
#
# This entry is for a dailin/dialout Hayes SmartModem 2400 compatible modem.
# Note that the modem should be setup with switches in a position
# such that it correctly emulates the Hayes Smartmodem.
# The second entry is used for communicating directly with the modem.
# The modem is configured through software via the dialers file string.
# The initial settings of the modem may be incorrect and require
# that uugetty be turned off in /etc/inittab. The modem will be initialized
# on the first outgoing call or connection to the modem. After connecting 
# to the modem it will be configured correctly and uugetty can be set to
# respawn. If the modem is erroneously left in the wrong state with 
# uugetty running the error message (or something similar):
#      st0: line 1 cannot deliver 1 byte
# may appear on the console. This will also occur if the wrong line discipline 
# is used with uugetty. This is fixed using the correct line discipline and
# by correctly initializing the modem. The line discipline in /etc/inittab 
# should be 2400H to work with the modem.
#
# This entry sets the default (not factory) settings as follows:
#   AT&F&C1&D3S0=1Q1&W
# this setting is based on the factory default for the Hayes. If the
# factory defaults on your modem differs (it's probably the same) the 
# complete default settings needed are:
#   ATB1E1L2M1Q1V1X4Y&C1&D3&G&J&L&M&P&R&XS0=1&W
# 
# **** to use these entries the uugetty line discipline must be 2400H ****
#
# Hayes 2400 compatible (include &D3 command).
# These entries only work with modems supporting the &d3 command.
# The sequence used (hayes2400) first tells the modem to reset with its
# default settings (&F) and DCD following carrier (&C1). This part of
# the sequence terminates with the (&W). Next we tell the modem to dial
# out with DCD forced on (&C0), because the serial driver may not do that
# for us. After the local modem connects to the remote modem and CONNECT
# is received, we interrupt with the (+++) sequence and issue (&C1) so
# that the modem will once again let DCD follow carrier. In this way
# we are (reasonably) assured that the local controlling process will
# receive a SIGHUP from the port driver if the modem experiences an
# unexpected hard disconnect of the phone line.
#
hayes2400	=,-,	"" \r\cAT&F&C1&D3S0=1Q1&W&C0E1QV1\r\c OK\r ATDT\T\r\c CONNECT +++\d OK\r AT&C1\r\c OK\r \EATO\r 
#
# An alternate sequence that avoids the (+++) interrupt is
# hayes2400alt	=,-,	"" \r\cAT&F&C1&D3S0=1Q1&W&C0E1QV1\r\c OK\r \EATDT\T\r\c CONNECT \r\c
# Note that if a dial-out modem is used with hayes2400alt it will not drop
# DCD when carrier is lost, so the controlling process will not get a
# SIGUP. This may or may not cause problems. Caveat Emptor.
#
#
# The following modem2400 entry is used for direct cu connection to the  
# modem when you do not want a chat script in the Systems file. The Systems 
# entry should then look like
#                         modem2400 Any ACU2 2400H
# and the corresponding Devices entry should be
#                         ACU2 ttyGA/GAAx,M - 2400H modem2400 \D
# The connect command is then
#                         cu modem2400
# after which you can continue communicating with the modem (giving
# it dialing instructions or whatever) via the Hayes AT commands. The
# sequence is also useful for initializing all dial-in modems on a system
# to ensure they have the correct DCD behavior. IMPROPERLY INITIALIZED
# MODEMS MAY CONSTITUTE A SECURITY LOOPHOLE!
modem2400	=,-,	"" \r\cAT&F&C1&D3S0=1Q1&W&C0E1QV1\r\c
#
#
# This is the entry for a Hayes SmartModem 1200 compatible.
# The switches should be as follows:
#	true DTR - DTR controlled by computer
#	digit response
#	response messages enabled
#	echo off - commands from computer aren't echoed
#	auto answer enabled
#	Carrier Detect (CD) forced ON
#	command recognition ON
#	DTR causes "on-hook" when dropped
#
# Hayes 1200 compatible
hayes1200	=,-,	"" \r\cAT\r\c\pATM1S0=1E0Q0V0\r\c 0 ATDT\T\r\c 1 \r\c
#
#
direct
##########
#	The following entry is for use with direct connections
#	using uugetty with the -r option on both ends.
#
##########
uudirect ""	"" \r\d in:--in:
#
# 
# The following entries for high speed modems.
# 
# Telebit T2500 modem.
#
# tbfast =W-, "" \dAT "" AT&F0S52=2S0=1E0V0Q3S51=5S54=3S58=2S68=2S66=1S92=1S111=30S110=1S131=3&W0E1Q0V1\r\c OK\r\c \EATDT\T\r\c CONNECT
#
#
#
# Motorola UDS V.32 modem.
#
# udsv32 =W-, "" \dAT \r-\pAT-0\r AT&F&D2S0=1Q0E0V0&W 0\r ATDT\T 1
#
#......................................................................
# althayes - alternate console port (remote port) configuration
# 		This entry is used for Hayes 1200 and 2400 compatibles
#	on the remote console port. The modem must be configured
#	prior to connecting it to the port. For Hayes 1200 compatibles
#	this involves setting switch settings. For some Hayes 2400
#	compatibles (such as Zoom) it may be necessary to connect a 
#	terminal to the modem to initialize it.  (yuck)
#
# modem must be configured for 
#	DCD on when carrier detected
#	DSR always on
#	Modem disconnects and enters command mode when DTR is dropped
#	echos commands
#	word responses
#	auto-answer enabled 
#
# Hayes 2400 compatible modems should be initialized with AT&F&C0&D2&S0=1&W
# These settings should be saved using the &w command so the modem is
# set to these values on power-up.
#
# For some other Hayes 1200 compatibles, the switch settings are:
#	true DTR
#	word responses
#	responses enabled
#	echo on
#	auto-answer enabled
#	true CD
#	com rec on
#	DTR causes hang-up
#	
althayes =W-, "" \dAT \r-\pAT-OK\r \EATDT\T\r\c CONNECT
#
#.............................................................................

