Telebit Trailblazer Setup Distribution for HDB for the UNIX PC

Lenny Tropiano lenny at icus.islp.ny.us
Thu Mar 30 12:11:50 AEST 1989


In article <175 at orac.pgh.pa.us> pat at orac.pgh.pa.us (Pat Barron) writes:
|>Can someone send me a list of the proper S-register settings for a
|>TrailBlazer Plus on a Unix-PC?  I've tried a set of "intuitive" settings,
|>but uucico gets as far as the startup handshake, and locks up after that.
|>
|>I need to talk to a number of different machines at all different
|>baud rates, so settings that either handle autobaud on the modem,
|>or locked interface speed, would be most useful.
|>
...

This is in reply to this article ... I've shar'd up a possible setup for
the UNIX PC using HDB...

-Lenny

--- cut here --- --- cut here --- --- cut here --- --- cut here ---
#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  README TB-S-REGS Sysfiles Devices.add Dialers.add
#   Dialers.cu.add Systems.cu.add crontab.add gettydefs.add
#   inittab.add hfc_init modem modem-reset uusched.sh
# Wrapped by lenny at icus on Wed Mar 29 21:06:26 1989
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f README -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"README\"
else
echo shar: Extracting \"README\" \(3582 characters\)
sed "s/^X//" >README <<'END_OF_README'
X     --------------------------------------------------------------------
X     Telebit Trailblazer setup files for use with HDB UUCP on the UNIX pc
X     --------------------------------------------------------------------
X	By Lenny Tropiano   -- ICUS Software Systems,   March, 29, 1989
X
XFollowing is a list of files that will aid you in setting up your Telebit 
XTrailblazer on your UNIX pc, with HoneyDanBer UUCP (HDB).
X
XSysfiles		# This sets up the Systems, Systems.cu, Dialers, and
X			  Dialers.cu files to be read by UUCP
XDevices.add		# Add these lines to /usr/lib/uucp/Devices
XDialers.add		# Add these lines to /usr/lib/uucp/Dialers
XDialers.cu.add		# Add these lines to /usr/lib/uucp/Dialers.cu
XSystems.cu.add		# Add these lines to /usr/lib/uucp/Systems.cu
Xcrontab.add		# Add these lines to /usr/lib/crontab
Xgettydefs.add		# Add these lines to /etc/gettydefs
Xinittab.add		# Add these lines to /etc/inittab
Xhfc_init		# Put this file in /etc/daemons/
Xmodem			# Put this file in /usr/lib/uucp/
Xmodem-reset		# Put this file in /usr/lib/uucp/
Xuusched.sh		# Put this file in /usr/lib/uucp/
XTB-S-REGS		# Use these S-registers to set up your Trailblazer.
X
XWhat I have here is a basic setup, note that this is NOT the only way it can
Xbe, or should be set up.  It should be used as an outline on how you can
Xset up your Trailblazer.  Many thanks to Robert Granvin (rjg at sialis) since
Xhe was instrumental in developing these setup files initially.  I've "tweaked"
Xthem form the best usage at icus, but he initially pointed me in the right
Xdirection when I got my Trailblazer (way back when...)
X
XFor those unfamiliar with the Sysfiles convention of HDB, it allows you
Xto set up a special Systems and Dialers file for use by the different
Xservices, "uucico and cu".  Basically you can have special Dialer scripts
Xwhen using cu (eg. I turn on the speaker during cu's to the modem, I also
Xturn on echo "E1", and both are off during uucico sessions.
X
XNote my inittab, modem, modem-reset files are setup for a Trailblazer plugged
Xinto /dev/tty001, this will HAVE to be changed if you have a different
Xport for your setup.
X
XThe "modem-reset" script turns off the uugetty and turns it back on before
Xit starts the uusched (this is called from uusched.sh which is called 
Xfrom the crontab) which makes sure DTR is dropped and the modem is reset.
XPrevents the old comatose mode, when DTR doesn't get properly dropped
Xafter a call terminates in some abnormal state (seemingly a bug in dial(3C))
X
X/etc/hfc_init is called from /etc/rc when your system is booted, it will
Xturn on hardware flow control (HFC), instead of using the x-on/x-off (^S/^Q)
Xmethod of flow control.  This seems to work better but do to a bug in
Xthe kernel routines somewhere (it's being worked on now) clists buffers aren't
Xproperly being flushed, and it has been known to cause your UNIX PC slow down
Xand die when clists aren't available anymore.
X
XIn the Systems.cu file, I set up the following "systems" that can be
Xcu'd to:
X	$ cu DFAST		# will connect to the modem ready to dialout
X				# interactively to a PEP site, just start
X				# typing with the "ATDT###-####" command, as
X				# the modem has detected the autobauding
X				# baud rate.
X	$ cu D2400  		# Ready to dialout to a 2400 baud site
X	$ cu D1200  		# Ready to dialout to a 1200 baud site
X	$ cu D2400mnp 		# Ready to dialout to a 2400 baud reliable MNP
X	$ cu D1200mnp 		# Ready to dialout to a 1200 baud reliable MNP
X
XThis seemed better than just doing a:
X
X	$ cu -s19200 -l/dev/tty001
X		And then having to issue all the "AAAAAATE1M1S50=..." 
X		commands to the modem.
X
END_OF_README
if test 3582 -ne `wc -c <README`; then
    echo shar: \"README\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f TB-S-REGS -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"TB-S-REGS\"
else
echo shar: Extracting \"TB-S-REGS\" \(480 characters\)
sed "s/^X//" >TB-S-REGS <<'END_OF_TB-S-REGS'
XE0 F1 M0 Q6 T V1 X3     Version BA4.00
XS00=001 S01=000 S02=255 S03=013 S04=010 S05=008 S06=002 S07=060 S08=002 S09=006
XS10=007 S11=050 S12=050 
XS45=000 S47=004 S48=000 S49=000
XS50=000 S51=254 S52=002 S53=004 S54=003 S55=000 S56=017 S57=019 S58=002 S59=000
XS60=000 S61=090 S62=003 S63=001 S64=001 S65=000 S66=000 S67=000 S68=255 
XS90=000 S91=000 S92=001 S95=000 
XS100=000 S101=000 S102=000 S104=000 
XS110=001 S111=030 S112=001 
XS121=000 
XN0:
XN1:
XN2:
XN3:
XN4:
XN5:
XN6:
XN7:
XN8:
XN9:
XOK
END_OF_TB-S-REGS
if test 480 -ne `wc -c <TB-S-REGS`; then
    echo shar: \"TB-S-REGS\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f Sysfiles -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"Sysfiles\"
else
echo shar: Extracting \"Sysfiles\" \(1858 characters\)
sed "s/^X//" >Sysfiles <<'END_OF_Sysfiles'
X#ident	"@(#)uucp:Sysfiles	1.1"
X#
X#	Sysfiles provides a means of specifying different Systems,
X#	Devices and Dialers files for uucico and cu.  This is useful
X#	for certain networks where, for example, requests for login
X#	service might be accepted on a different address than requests
X#	for uucico service (hence different Systems files), or where
X#	there are different chat scripts to request each service 
X#	(hence different Dialers files).
X#
X#	Another use of Sysfiles is to split large Systems files into
X#	smaller, more manageable files (e.g., local and global Systems 
X#	files).
X#
X#	FORMAT:
X#
X#	service=<service name>	systems=<systems file list> \
X#				devices=<devices file list> \
X#				dialers=<dialers file list>
X#
X#	Where service name is "uucico" or "cu".  Each file list is a list
X#	of colon-separated file names.  File names are relative to 
X#	/usr/lib/uucp unless a full path name is given.  Files are searched
X#	in the order that they appear in the file list.
X#
X#	The defaults are the usual uucp files: /usr/lib/uucp/Systems,
X#	/usr/lib/uucp/Devices and /usr/lib/uucp/Dialers.
X#
X#	EXAMPLE 1:  
X#	This example uses different systems and dialers file to separate
X#	the uucico- and cu-specific info, with information that they
X#	use in common still in the "usual" Systems and Dialers files.
X#
X#	service=uucico	systems=Systems.cico:Systems \
X#			dialers=Dialers.cico:Dialers
X#	service=cu	systems=Systems.cu:Systems \
X#			dialers=Dialers.cu:Dialers
X#
X#	EXAMPLE 2:  
X#	This example uses the same systems files for uucico and cu,
X#	but has split the Systems file into local, company-wide,
X#	and global files.
X#
X#	service=uucico	systems=Systems.local:Systems.company:Systems
X#	service=cu	systems=Systems.local:Systems.company:Systems
X
Xservice=uucico	systems=Sys.priv:Systems
Xservice=cu	systems=Sys.priv:Systems:Systems.cu \
X		dialers=Dialers:Dialers.cu
X
END_OF_Sysfiles
if test 1858 -ne `wc -c <Sysfiles`; then
    echo shar: \"Sysfiles\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f Devices.add -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"Devices.add\"
else
echo shar: Extracting \"Devices.add\" \(617 characters\)
sed "s/^X//" >Devices.add <<'END_OF_Devices.add'
X#
X#  1200 baud Telebit Trailblazer modem
X#
XACU   tty001 - 1200 tb1200 \D
XACU12 tty001 - 1200 tb1200 \D
X#
X#  2400 baud Telebit Trailblazer modem
X#
XACU24 tty001 - 2400 tb2400 \D
X#
X#  19200 baud (fast) Telebit Trailblazer modem
X#
XACUTB tty001 - 19200 tbfast \D
XACU96 tty001 - 9600 tbfast \D
X#
X#  For sites with MNP modems
X#
XACUM24 tty001 - 2400 tb24mnp \D
XACUM12 tty001 - 1200 tb12mnp \D
X#
X# Direct entries for connecting to outbound modem
X#
XDirect tty001 - Any direct
Xmodem tty001 - 19200 tbfastd
Xmodem tty001 - 2400 tb2400d
Xmodem tty001 - 1200 tb1200d
Xmodem_mnp tty001 - 2400 tb24mnpd
Xmodem_mnp tty001 - 1200 tb12mnpd
END_OF_Devices.add
if test 617 -ne `wc -c <Devices.add`; then
    echo shar: \"Devices.add\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f Dialers.add -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"Dialers.add\"
else
echo shar: Extracting \"Dialers.add\" \(577 characters\)
sed "s/^X//" >Dialers.add <<'END_OF_Dialers.add'
X#
X#  Telebit 1200 baud
X#
Xtb1200	=W	"" A\pA\pA\pA\pT OK ATM0S95=0S50=2S111=30DT\T CONNECT 
X#
X#  Telebit 2400 baud
X#
Xtb2400	=W	"" A\pA\pA\pA\pT OK ATM0S95=0S50=3S111=30DT\T,,,,, CONNECT
X#
X#  Telebit 1200 baud forcing MNP reliable response only
X#
Xtb12mnp	=W	"" A\pA\pA\pA\pT OK ATM0S95=2S50=2S111=30DT\T CONNECT
X#
X#  Telebit 2400 baud forcing MNP reliable connections only
X#
Xtb24mnp	=W	"" A\pA\pA\pA\pT OK ATM0S95=2S50=3S111=30DT\T,,,, CONNECT
X#
X#  Telebit PEP connect (respond only to PEP tones)
X#
Xtbfast	=W	"" A\pA\pA\pA\pA\pT OK ATM0S95=0S50=255S111=30DT\T CONNECT-\c-CONNECT 
END_OF_Dialers.add
if test 577 -ne `wc -c <Dialers.add`; then
    echo shar: \"Dialers.add\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f Dialers.cu.add -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"Dialers.cu.add\"
else
echo shar: Extracting \"Dialers.cu.add\" \(510 characters\)
sed "s/^X//" >Dialers.cu.add <<'END_OF_Dialers.cu.add'
X#
X#  Telebit 1200 baud
X#
Xtb1200d	=W	"" A\pA\pA\pA\pT OK ATE1M1S0=0S95=0S50=2 OK
X#
X#  Telebit 2400 baud
X#
Xtb2400d	=W	"" A\pA\pA\pA\pT OK ATE1M1S0=0S95=0S50=3 OK
X#
X#  Telebit 1200 baud forcing MNP reliable response only
X#
Xtb12mnpd =W	"" A\pA\pA\pA\pT OK ATE1M1S0=0S95=2S50=2 OK
X#
X#  Telebit 2400 baud forcing MNP reliable connections only
X#
Xtb24mnpd =W	"" A\pA\pA\pA\pT OK ATE1M1S0=0S95=2S50=3 OK
X#
X#  Telebit PEP connect (respond only to PEP tones)
X#
Xtbfastd	=W	"" A\pA\pA\pA\pA\pT OK ATE1M1S0=0S95=0S50=255 OK
END_OF_Dialers.cu.add
if test 510 -ne `wc -c <Dialers.cu.add`; then
    echo shar: \"Dialers.cu.add\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f Systems.cu.add -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"Systems.cu.add\"
else
echo shar: Extracting \"Systems.cu.add\" \(285 characters\)
sed "s/^X//" >Systems.cu.add <<'END_OF_Systems.cu.add'
X# Connections to outdial modem.
X
X# Reliable connection MNP with 2400 or 1200
XD2400mnp  Any modem_mnp 2400 direct
XD1200mnp  Any modem_mnp 1200 direct
X
X# Plain old connections at FAST, 2400 and 1200
XDFAST  Any modem 19200 direct
XD2400  Any modem 2400 direct
XD1200  Any modem 1200 direct
END_OF_Systems.cu.add
if test 285 -ne `wc -c <Systems.cu.add`; then
    echo shar: \"Systems.cu.add\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f crontab.add -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"crontab.add\"
else
echo shar: Extracting \"crontab.add\" \(96 characters\)
sed "s/^X//" >crontab.add <<'END_OF_crontab.add'
X6,21,36,51 * * * * /bin/su uucpadm -c "/usr/lbin/setpgrp /usr/lib/uucp/uusched.sh > /dev/null" 
END_OF_crontab.add
if test 96 -ne `wc -c <crontab.add`; then
    echo shar: \"crontab.add\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f gettydefs.add -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"gettydefs.add\"
else
echo shar: Extracting \"gettydefs.add\" \(496 characters\)
sed "s/^X//" >gettydefs.add <<'END_OF_gettydefs.add'
XT19200# B19200 CLOCAL BRKINT IGNPAR ISTRIP ECHO OPOST ONLCR # HUPCL BRKINT ISTRIP ICRNL OPOST ONLCR B19200 CS8 CREAD ISIG ICANON ECHO ECHOE ECHOK TAB3 #login: #T2400
X
XT2400# B2400 CLOCAL BRKINT IGNPAR ISTRIP ECHO OPOST ONLCR # HUPCL BRKINT ISTRIP ICRNL OPOST ONLCR B2400 CS8 CREAD ISIG ICANON ECHO ECHOE ECHOK TAB3 #login: #T1200
X
XT1200# B1200 CLOCAL BRKINT IGNPAR ISTRIP ECHO OPOST ONLCR # HUPCL BRKINT ISTRIP ICRNL OPOST ONLCR B1200 CS8 CREAD ISIG ICANON ECHO ECHOE ECHOK TAB3 #login: #T19200
X
END_OF_gettydefs.add
if test 496 -ne `wc -c <gettydefs.add`; then
    echo shar: \"gettydefs.add\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f inittab.add -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"inittab.add\"
else
echo shar: Extracting \"inittab.add\" \(57 characters\)
sed "s/^X//" >inittab.add <<'END_OF_inittab.add'
X 001:2:respawn:/usr/lib/uucp/modem # Telebit Trailblazer
END_OF_inittab.add
if test 57 -ne `wc -c <inittab.add`; then
    echo shar: \"inittab.add\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f hfc_init -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"hfc_init\"
else
echo shar: Extracting \"hfc_init\" \(26 characters\)
sed "s/^X//" >hfc_init <<'END_OF_hfc_init'
X/etc/hfc_ctl +/dev/tty001
END_OF_hfc_init
if test 26 -ne `wc -c <hfc_init`; then
    echo shar: \"hfc_init\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f modem -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"modem\"
else
echo shar: Extracting \"modem\" \(81 characters\)
sed "s/^X//" >modem <<'END_OF_modem'
Xsleep 2 ; exec /usr/lib/uucp/uugetty -r -t30 tty001 T19200 # Telebit Trailblazer
END_OF_modem
if test 81 -ne `wc -c <modem`; then
    echo shar: \"modem\" unpacked with wrong size!
fi
chmod +x modem
# end of overwriting check
fi
if test -f modem-reset -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"modem-reset\"
else
echo shar: Extracting \"modem-reset\" \(54 characters\)
sed "s/^X//" >modem-reset <<'END_OF_modem-reset'
X/usr/bin/getoff.sh 001 
Xsleep 2
X/usr/bin/geton.sh 001
END_OF_modem-reset
if test 54 -ne `wc -c <modem-reset`; then
    echo shar: \"modem-reset\" unpacked with wrong size!
fi
chmod +x modem-reset
# end of overwriting check
fi
if test -f uusched.sh -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"uusched.sh\"
else
echo shar: Extracting \"uusched.sh\" \(191 characters\)
sed "s/^X//" >uusched.sh <<'END_OF_uusched.sh'
X#
X# Check the async emulator before rudely hanging up on user.
X#
Xif [ -z "`ps -e | fgrep 'async
Xuusched
Xkermit
Xterm'`" ]
Xthen
X	/usr/lib/uucp/modem-reset
X	exec /usr/lib/uucp/uusched
Xfi
Xexit 1
END_OF_uusched.sh
if test 191 -ne `wc -c <uusched.sh`; then
    echo shar: \"uusched.sh\" unpacked with wrong size!
fi
chmod +x uusched.sh
# end of overwriting check
fi
echo shar: End of shell archive.
exit 0
-- 
Lenny Tropiano             ICUS Software Systems         [w] +1 (516) 582-5525
lenny at icus.islp.ny.us      Telex; 154232428 ICUS         [h] +1 (516) 968-8576
{talcott,decuac,boulder,hombre,pacbell,sbcs}!icus!lenny  attmail!icus!lenny
        ICUS Software Systems -- PO Box 1; Islip Terrace, NY  11752



More information about the Comp.sys.att mailing list