[comp.dcom.modems] Telebit TrailBlazer and Sun Configuration

modems@telebit.UUCP (Modem Mail Account) (03/10/88)

Due to a number of requests both by phone and by Email, I am posting
the first in a series of configurations for the Telebit TrailBlazer
and various Systems. This one is for the Sun 3 series of workstations.
I believe it to be correct, and if anyone has any questions or problems
with it, please email to me with your comments. 

Regards

================================================================================
Richard Siegel                           Phone:                   (408) 996-2644
Senior Systems Engineer                  UUCP:  {uunet,ames,hoptoad}!telebit!rls
Telebit Corporation                      ARPA:  telebit!rls@ames.ARPA
                                
            "When the going gets tough, the weird turn pro"...HST
================================================================================

  SETUP INSTRUCTIONS FOR TELEBIT TRAILBLAZERS and SUN WORKSTATIONS

The following examples should allow easy initialization of a Telebit 
TrailBlazer Plus modem for use with UUCP on a current SUN 3 or SUN 4 
workstation.

1. MODIFY KERNEL:
   First, the kernel must be modified so that the modem can dial/answer calls.

        cd /usr/sys/conf
        cp GENERIC MODEM
        ------edit MODEM-- change:
                device  zs0 at obio ? csr 0x20000 flags 3 priority 3
        to:
                device  zs0 at obio ? csr 0x20000 flags 0 priority 3
        -----save the file.
        /etc/config MODEM
        cd ../MODEM
        make
        mv /vmunix /vmunix.old
        mv vmunix /vmunix
        ---reboot the system----------

2. CREATE THE DIAL OUT DEVICES (if necessary):
   This will create the entries in /dev/to dial out with the modem.

        cd /dev
        mknod cua c 12 128
        mknod cub c 12 129
        chmod a+wr cua cub

   References to dialout ports in this document assume the ttya port "cua". If 
   you are connecting to ttyb, remember to substitute "cub" where appropriate.

3. MODIFY /etc/gettytab:
   This allows modem operation at 19200 bps.

        cd /etc
        --- edit gettytab, add this entry to the list:
                z|std.19200|19200-baud:\
                        :sp#19200:
        --- save the file.

4. MODIFY /etc/remote 
   Add these entries (all characters are literal, i.e. the ^ is 'shift 6' 
   on the Sun):

       hard:dv=/dev/cua:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:
       cua:dv=/dev/cua:br#19200:el=^C^S^Q^U^D:ie=%$:oe=^D:



5. CONFIGURE MODEM
   If the modem is NOT fresh out of the box from the factory, the reset button 
   on the back of the TrailBlazer Plus should be pressed.  Use a paperclip or 
   some handy tool like that to depress the small micro switch located 
   (recessed) through a small hole next to the RS232 serial connector. 
   Make sure the modem is powered ON when depressing the switch.

   With the modem now reset, tip to the modem (use "tip hard" to talk at
   9600 bps) and configure it with the command string below:

   AT &F S51=254 S52=2 S54=3 S110=1 S111=30 S45=0 S58=0 S53=3 Q6 &W <CR>

   This string (the spaces are optional if you prefer to remove them) will:
 
         - 1st (&F) recalls factory defaults (start with known configuration).
         - 2nd (S51=254) sets up autobauding on the serial port.
               (type the letter "a" serveral times until you see it echoed).
               NOTE: Some versions of Telebit's User Manual overlooked this 
                     value for S51. It behaves exactly as the documented value 
                     255 except that a serial interface speed of 19200 is 
                     assumed on an incoming call. (S51=255 sets the speed to
                     9600 on an incoming call.
         - 3rd (S52=2) says drop the connection when DTR is dropped to the modem
               and reload the modem's stored EEPROM values (do a soft reset).
         - 4th (S54=3) says pass BREAKs through the modem transparently.
         - 5th (S110=1) enables data compression between TrailBlazers.
               If desired, S110=0 will disable this feature.
         - 6th (S111=30) enables UUCP "g" protocol support in the TrailBlazer.
         - 7th (S45=0) disables remote access.  
               When the reset button is pressed, remote access is enabled to 
               allow easier customer support from Telebit.  This is not the 
               case when the modem is originally shipped from the factory.  
               Remote access is not necessary for this application.
         - 8th (S58=0) disables flow control.
               The UUCP protocol support handles flow control instead.
         - 9th (S53=3) sets DSR "ON" when modem is off-hook. 
               It also sets DCD "ON" when carrier is detected.
         - 10th (Q6) silences the modem when an inbound call arrives.  
               This prevents getty battles between the RING result code and 
               getty's echo of the same.
         - 11th (&W) writes these new values into the EEPROM.
               This saves the new values as the modem's power on defaults from 
               now until you change them again.
         - 12th (<CR>) terminates the command to the modem.

   After this, when you want to talk directly to the modem, use "tip cua" 
   to talk at 19200 bps, since you just set the interface speed to 19200.

   NOTE: If you want to prevent anyone from dialing IN at other than
         high speed (PEP mode), add "S50=255" to the above script to
         force the modem to use only PEP mode in dial IN. To allow
         dial OUT to other speed modems, modify the L.sys
         script (noted below in step 9) to:

   hostname Any cua 19200 cua  ""  ATX0S50=0\r 0 ATDNNNNNNNNNN\r  1  ""
    ""-\r-login:-\r-login:-\r-login: \r login: Uyoursysname ssword: XXXXXXXX
        


6. ENABLE GETTY FOR DIALIN:

        cd /etc
        --- edit ttys and change:
                0fttya
        to:
                1zttya
        --- restart getty on ttya:
        kill -1 1

   Don't forget to set your getty to include 19200 in its cycle.
   You may have it trying 19200 first and moving to 2400 on the 1st
   receipt of a break and to 1200 on the second receipt of break.
   The order of the cycle is not important so long as the calling
   system knows to send breaks until it sees the login sequence.

7. MODIFY /usr/lib/uucp/uucico TO RUN 19200 BPS:
   To use uucico at 19200, you must modify the Sun version using "adb".
   We will use the 4800 baud slot and replace it with 19200.

        cd /usr/lib/uucp
        cp uucico uucico.orig
        adb -w uucico
        20000?L 0t4800
        
        --- at this point you'll get output something like:
        20a0c:

        --- so enter:
        ?DD

        --- it will respond with ADDRESS:DATA like:
        20a0c: 4800 12

        --- so enter:
        ?W 0t19200 0t14

        --- now type ^D. This completes the uucico modification.

   NOTE: Don't forget to set the permissions and ownership of uucico to be 
         the same as uucico.orig.



8. MODIFY /usr/lib/uucp/L-Devices: 
   This may be copied almost literally. Fill in the correct port #

   DIR cua 0 19200

9. MODIFY /usr/lib/uucp/L.sys:  
   Don't copy this literally. Modify the info for your application.
   Also note that this is ONE line of data, not two.

   hostname Any cua 19200 cua  ""  ATX0\r 0 ATDNNNNNNNNNN\r  1  ""
    ""-\r-login:-\r-login:-\r-login: \r login: Uyoursysname ssword: XXXXXXXX

   NOTES:
   hostname     = THEIR System name
   NNNNNNNNNN   = THEIR System phone number
   Uyoursysname = Your UUCP account on THEIR machine
   XXXXXXXX     = Your UUCP passwd on THEIR machine



You should now be able to run UUCP between two machines attached to your
modems just as you always have with slower modems.  Enjoy the new world of
of high speed UUCP "g" via the Telebit TrailBlazer Plus.

       Richard Siegel
       Telebit Corporation
       Suite 200
       20410 Town Center Lane
       Cupertino, California 95014
       {ames, uunet, hoptoad, sun, dwon}!telebit!modems