home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / att / 2660 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  7.3 KB

  1. Path: sparky!uunet!munnari.oz.au!jabaru.cec.edu.au!csource!gateway
  2. From: Bruce.Weinel@p1.f456.n632.z3.fidonet.org (Bruce Weinel)
  3. Newsgroups: comp.sys.att
  4. Subject: The proper configuration of a modem
  5. Message-ID: <724526721.AA01682@csource.oz.au>
  6. Date: Mon, 14 Dec 1992 08:23:10
  7. Sender: gateway@csource.oz.au
  8. Lines: 145
  9.  
  10. Daniel W. James (cS) was heard in "The Pit" saying to  All
  11.  
  12.   cS> I have a 9600 baud modem (on a line both incoming and outgoing running
  13.   cS> uugetty) on a port which is obviously configured at 9600 baud as well.
  14.   cS> Unfortunatly I've only got 1200 at home.
  15.   cS> 
  16.   cS> The problem is that uugetty (or is it login?) doesn't detect the fact
  17.   cS> that I am connecting at such a slow speed.  After logging in, 'stty'
  18.   cS> shows me connected at 9600, and I've also created custom login prompts
  19.   cS> for each baud rate.  My modem tells me I've connected at 1200, but my
  20.   cS> login prompt says 9600. This in itself wouldn't be a problem, except
  21.   cS> that I am also dialing in using an old Atari computer running vt100
  22.   cS> emulation software with a horrible flow-control problem.  If I try to
  23.   cS> send something to the screen with about 3 or more lines, I begin
  24.   cS> seeing nothing but garbage.  Perhaps I've 'cabled' my modem here
  25.   cS> incorrectly, perhaps a lot of things, but it seems to me that if the
  26.   cS> 3b2 was communicating with the modem at 1200, rather than 9600 (and
  27.   cS> forcing the modem to buffer the i/o) that the problems might go away.
  28.  
  29.   cS> Also, the modem is on an eports card, and when I try to enable
  30.   cS> hardware flow control, I get a different
  31.   cS> problem.
  32.   cS> 
  33.   cS> Anyway, here's my relevant settings:
  34.   cS> ------------------------------------
  35.   cS> /etc/inittab
  36.   cS> ----------------------------------------
  37.   cS> 12:234:respawn:/usr/lib/uucp/uugetty -r -t 25 tty12 modem # Dial-Up
  38.   cS> Port
  39.   cS> 
  40.   cS> /etc/gettydefs (first couple of relevant lines)
  41.   cS> ----------------------------------------
  42.   cS> modem# B19200 OPOST ONLCR # B19200 HUPCL SANE IXANY TAB3 # 19.2K
  43.   cS> Login: #96modem
  44.   cS> 96modem# B9600 HUPCL # B9600 SANE IXANY TAB3 HUPCL
  45.   cS> #9600 baud Login: #24modem
  46.   cS> 12modem# B1200 HUPCL # B1200 SANE IXANY
  47.   cS> TAB3 HUPCL #baud Login: #3modem
  48.   cS> 
  49.   cS> ---> The following doesn't seem to work at all...
  50.   cS> I've been unable to connect @300:
  51.   cS> 3modem# B300 HUPCL # B300 SANE IXANY
  52.   cS> TAB3 HUPCL #300 baud Login: #modem
  53.   cS> 
  54.   cS> /usr/lib/uucp/*  (These are all for outgoing calls no?)
  55.   cS> 
  56.   cS> -----------------------------------------------------------------
  57.   cS> Probably even more important, the modem settings:
  58.   cS> -----------------------------------------------------------------
  59.   cS> ACTIVE PROFILE:            DTE:9600      DCE:9600      PARITY:NONE B16
  60.   cS> B1 B41 B60 E1 L1 M0 N1 Q2 T V1 W0 X4 Y0 &C2 &D3 &K7 &Q8 &S1 &U0 &Y0
  61.   cS> S00:001 S01:000 S02:043 S03:013 S04:010 S05:008 S06:002 S07:050
  62.   cS> S08:001 S09:006 S10:014 S11:070 S12:050 S18:000 S25:005 S26:001
  63.   cS> S30:000 S36:007 S37:000 S38:020 S43:009 S46:138 S48:007 S82:128
  64.   cS> S86:006
  65.   cS> S95:045
  66.   cS> 
  67.   cS> And, for reference sake, some of the settings that might be involved:
  68.   cS> --------------------
  69.   cS> PM9600 Quick Command Reference      Page 1 of 6 (*= Default Setting)
  70.   cS>
  71.   cS>                PM9600 Quick Command Reference              Page 1 of 6
  72.                          (*= Default Setting)
  73.  
  74.    N0  Orig & Answer at S37 Speed     *N1  Orig & Answer Interwork from S37
  75.    N3  Originate at S37 Speed,         N5  Originate Interworks from S37,
  76.         Answer Interworks from V.32         Answer Only at S37 Speed
  77. --> Using N1 allows both incoming and outgoing calls to negotiate a common
  78.     speed, starting with the highest possible.
  79.  
  80.   *Q0  Send Result Codes               Q1  Do Not Send Result Codes
  81.    Q2  No Result Codes on Answer
  82. --> Using Q2...  I don't think uugetty watches for result codes, but then I
  83.     was having this problem when I had it set at Q0
  84.  
  85.   *W0  No Negotiation Progress Messages
  86.    W1  Progress Messages report DTE Speed
  87.    W2  Progress Messages report DCE Speed
  88. --> Was somewhat confusing, and caused problems at times,
  89.     so I disabled it (W0)
  90.  
  91.   &K0  No Flow Control                *&K3  RTS/CTS Flow Control
  92.   &K4  XON/XOFF Flow Control           &K5  Unsupported
  93.   &K6  XON/XOFF Flow Control with      &K7  RTS/CTS Flow Control with
  94.         Remote XON/XOFF Flow Control         Remote XON/XOFF Flow Control
  95. --> &K7--Hardware flow control between 3b2/modem, software between 
  96.     connecting modems
  97.  
  98.   S1  Ring Count                 0     S25 DTR Change Time               5
  99.   S2  Escape Sequence Char      43     S30 Inactivity Timeout            0
  100.   S3  Carriage Return Char      13     S36 Negotiation Fallback          7
  101.   S4  Line Feed Char            10     S37 Maximum DCE Speed             0
  102.   S5  Back Space Char            8     S38 Delay before Hangup          20
  103.   S6  Wait Time for Dial Tone    2     S43 Current DCE Speed             0
  104.   S7  Wait Time for Carrier     50     S46 Compression Selection       138
  105.   S8  Pause Duration             2     S48 Feature Negotiation Action    7
  106.   S9  Carrier Detect Time        6     S82 Break Handling Options      128
  107.   S10 Carrier Loss Time         14     S86 Connection Failure Reason     0
  108.   S11 DTMF Tone Duration        95     S95 Negotiation Messages          0
  109.   S12 Escape Guard Time         50
  110.  
  111.   cS>
  112. --------------------------------------------------------------------------
  113.   cS> Sorry to be so long, but I know that in a case like this, the more
  114.   cS> information I can throw out, the more likely I'll here something back
  115.   cS> :)
  116.   cS> 
  117.   cS> Thanx, Dan.
  118.  
  119. Sorry for this huge quote, but this is a FAQ (and not just on Unix). If you
  120. want the system to use other than the default 9600 BPS then there is a
  121. conflict
  122. in the smart modem settings. Setting W0 (instead of W2) causes the modem to
  123. report all connections at the host-to-modem (DTE) speed instead of the
  124. modem-to-modem
  125. (DCE) speed. In this case the modem would always report 'CONNECT 9600' when
  126. the 1200 BPS home modem connects. The dialer scripts aren't included [Don, you
  127. didn't throw out enough...sorry], but if they look at the 'CONNECT' message
  128. then they'll have no reason to shift speed. The getty won't autobaud away from
  129. 9600 because the modem is using 9600 BPS and that's what the Unix port sees.
  130.  
  131. However, it is questionable whether it is desirable to shift to lower speed
  132. anyway. If end-to-end handshaking is valid then there is no need to slow the
  133. host modem to remote speed. XON/XOFF is usually preferred for Unix access and
  134. I would normally set &K3, but &K7 is valid if you know that the eports card
  135. is configured for RTS/CTS handshake *AND* that your tty driver supports the
  136. card properly in this mode. If in doubt (and I am) then I'd fallback to
  137. XON/XOFF
  138. flow control.
  139.  
  140. The odds are that the problem is in the remote. Either the emulator software
  141. is too slow (resulting in overrunns that scramble characters), is missing
  142. XOFFs
  143. (this could also be due to their being scrambled) or doesn't handle them
  144. right.
  145. There is also a remote chance that the 1200 BPS modem is intentionally
  146. changing
  147. XOFF characters in an attempt to implement TRANSPARENT XON/XOFF (the
  148. unsupported
  149. &K5 option of your host modem), but this is unlikely.
  150.  
  151. Rule of thumb: Use XON/XOFF at Unix end. Leave the host modem alone. Fiddle
  152. with the remote emulator (in fact, try several) until satisfied.
  153.  
  154.  * Origin: Howls from "The Pit" BBS (03) 321-3295 (3:632/456.1@fidonet)
  155.