home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / MISC / TNH_PC.ZIP / PELTO.NL < prev    next >
Encoding:
Text File  |  1987-01-14  |  2.1 KB  |  90 lines

  1. The CTTY Command of DOS 2.0
  2.  
  3.              Carl H. Pelto
  4.    South East Michigan Computer Club
  5.  
  6. There are two ways to use the CTTY
  7. command to drive an IBM PC with a
  8. remote terminal.
  9.  
  10. 1.  Direct Connection
  11.  
  12.     When computers and terminals are
  13.     configured as DTE (data terminal
  14.     equipment), the send and receive
  15.     lines have to be swapped. Another
  16.     way is to use a null modem
  17.     adapter at the serial cable
  18.     connection.  With this connection
  19.     made, type:
  20.  
  21.     MODE COM1:300,,,,
  22.  
  23.     To verify that the serial port is
  24.     active and wired correctly to the
  25.     other terminal, type:
  26.  
  27.     DIR>COM1
  28.  
  29.     This redirects the standard
  30.     output of the DIR command to the
  31.     initialized COM1 port to test the
  32.     signal path. If the remote device
  33.     sees the DIR results, you're all
  34.     set. Then type:
  35.  
  36.     CTTY COM1
  37.  
  38.     Now run any DOS command from the
  39.     remote terminal. When finished,
  40.     type from the remote terminal:
  41.  
  42.     CTTY CON
  43.  
  44.     This restores control to the host
  45.     IBM computer.
  46.  
  47. 2.  Modem Connection
  48.  
  49.     To use a smart modem with this
  50.     command, develop two batch files
  51.     to initialize the serial port and
  52.     set the modem to auto answer. To
  53.     create the first file, type:
  54.  
  55.     COPY CON:INIT.BAT
  56.     AT SO=1
  57.     F6
  58.  
  59.     F6 puts an end-of-file mark,
  60.     control Z, at the end of the
  61.     file. To create the second file,
  62.     type:
  63.  
  64.     COPY CON:SETUP.BAT
  65.     MODE COM1:300,,,,
  66.     TYPE INIT.BAT>COM1
  67.     CTTY COM1
  68.     F6
  69.  
  70.     To set up for an incoming call,
  71.     simply type:
  72.  
  73.     SETUP
  74.  
  75.     You will see the running of the
  76.     batch file and its messages up
  77.     until the CTTY COM1 command.
  78.     Every thing will then freeze up
  79.     until the phone rings, the modem
  80.     answers and sends the DOS prompt
  81.     A> to the remote terminal. As
  82.     with the direct connection, the
  83.     remote can run most DOS commands,
  84.     including ERASE *.* and FORMAT,
  85.     so be careful. To return control
  86.     to the host IBM PC again, type
  87.     CTTY CON from the remote. I hope
  88.     you have as much fun with this
  89.     command as I have had.
  90.