home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950929-19951130 / 000308_our_FAQ:.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  66 lines

  1.  
  2.   http://www.columbia.edu/kermit/faq.html
  3.   ftp://kermit.columbia.edu/kermit/faq.txt
  4.  
  5. 13 WHY DOESN'T THE HANGUP COMMAND WORK FOR ME?
  6.  
  7. On network connections, Kermit's HANGUP command executes the appropriate
  8. network protocol for closing the connection, and this should always work.
  9.  
  10. On serial connections, the HANGUP commands turns off the computer's DTR (Data
  11. Terminal Ready) signal for a period of time.  According to the standard that
  12. governs modem signals, this action is supposed to make a modem hang up the
  13. phone call.  If it doesn't:
  14.  
  15.    1. Your modem has been configured to "Ignore DTR".  This setting is
  16.       available on most Hayes-compatible modems, either on a physical
  17.       switch (such as Configuration Switch 1 on the Hayes 1200) or as a
  18.       command (&Dx on Hayes 2400 and later, and compatibles).  In many
  19.       cases, "Ignore DTR" is the factory setting.  If you want your modem
  20.       to obey the DTR signal, then you should set the switch
  21.       appropriately, or give the command AT&D2.  The actual syntax of the
  22.       command might vary among different brands and models of modems, so
  23.       consult your modem manual for details.
  24.  
  25.    2. Your cable or connector has DTR "hotwired high", meaning that the
  26.       DTR wire is jumpered to some other signal that is always high (on).
  27.       If this is not what you desire, you should replace your cable with a
  28.       standard modem cable.
  29.  
  30.    3. You are using a Macintosh with a "hardware handshaking cable".  This
  31.       is actually the same situation as (2), except there is no way to
  32.       "fix" the cable - please read the ckmker.bwr file for an
  33.       explanation.
  34.  
  35. To work around these problems in Kermit, without actually fixing the underlying
  36. cause, you can use a macro that escapes back to the modem's command processor
  37. and gives it the command to hang up.  Such a macro is predefined for you in the
  38. MS-DOS Kermit 3.14 initialization file, MSKERMIT.INI:
  39.  
  40.   ; ATHANGUP macro.  Use this if regular HANGUP command doesn't do the trick.
  41.   def ATHANGUP sleep 1,out +++,sleep 1,out ath0\13
  42.  
  43. (Note: C-Kermit uses this technique anyway.)
  44.  
  45. In MS-DOS Kermit, you can assign execution of this macro to the "hot key" of
  46. your choice, for example:
  47.  
  48.   set key \315 {\Kathangup}  ; Assign ATHANGUP macro to the F1 key
  49.  
  50. In Mac Kermit, you can just go to the terminal screen and do it by hand:
  51.  
  52.    - Pause at least one second
  53.  
  54.    - Type +++
  55.  
  56.    - Pause at least one second
  57.  
  58.    - Type ATH0 (letters A, T, H, digit zero)
  59.  
  60.    - Press the return key.
  61.  
  62. The modem should hang up and say NO CARRIER.
  63.  
  64. (End quote)
  65.  
  66. - Frank