home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sun / admin / 9694 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  3.6 KB

  1. Xref: sparky comp.sys.sun.admin:9694 comp.unix.admin:6771
  2. Newsgroups: comp.sys.sun.admin,comp.unix.admin
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!swrinde!emory!gatech!destroyer!wsu-cs!vela!w8hd!kimc
  4. From: kimc@w8hd.org (Kim Culhan)
  5. Subject: Re: dial-in modem setup
  6. Message-ID: <1992Dec23.161954.15618@w8hd.org>
  7. Organization: w8hd.org
  8. References: <9212041543.aa15975@q2.ics.uci.edu> <1992Dec8.173906.1259@sactoh0.sac.ca.us> <1992Dec10.083915.27482@cucs5.cs.cuhk.hk> <28115@dog.ee.lbl.gov>
  9. Distribution: na
  10. Date: Wed, 23 Dec 1992 16:19:54 GMT
  11. Lines: 63
  12.  
  13. >|> >I assume your modem is not set to allways return carrier high?  (I.E. your
  14. >|> >modem is configured &c1&d2, or something similar).  If this is the case, your
  15. >|> >getty line should look something like this (taken from my /etc/gettydefs).
  16. >|>
  17. >|> >modem# B19200 OPOST ONLCR # B19200 HUPCL SANE IXANY TAB3 #login: #96modem
  18. >|>
  19. >|>
  20. >|> >The important thing here is the hupcl.
  21. >|>
  22.  
  23. >My Sparc ELC's also don't have /etc/gettydefs and it is not in the man pages.
  24. >What is the format for this file and who (which program) uses it?
  25. I didn't do anything with gettydefs (doesn't exist on my 4.1.2 system.) 
  26. If you set the modem to 'always return carrier high' then
  27. there is, of courese, no way for the machine to get the message that
  28. a connection has been made. I found I needed it to be high in order to 
  29. communicate with it on outbound calls, however.
  30. If CD is not asserted, you can't see any data coming from it (try it..)
  31. I found the ideal solution to this problem to be this:
  32.  
  33.  
  34. &C2 CD action is set with a 'modem init' string when you access
  35. the port. With &C2 the modem always asserts CD but for 2 seconds on disconnect.
  36. This is what lets you talk to the modem to tell it to dial etc., yet
  37. still communicate the the fact that the carrier has been lost.
  38. If you leave it set this way all the time, though, you may note 'getty battles'
  39. when standing by for calls. It needs to be set differently depending on
  40. whether its waiting for calls or being used to dial out.
  41.  
  42. I do this when I use tip (man1) by including this is in remote:
  43.  
  44.         :dv=/dev/cua1:br#9600:hf:cm=at&c2e1\r:el=^C^S^Q^U^D:ie=%$:oe=^D:
  45.                                  ^^^^^^^^^^^^
  46. cm stands for 'connect message' which is sent to the modem when you access
  47. the device associated with this line. The e1 sets the modem to echo characters
  48. in command mode (so you can see what you're doing when entering AT commands.)
  49.  
  50. Also, note that the carrier detect action should be set for 'normal' (&C1)in the
  51. modem's nvram. When you end the call, DTR is dropped which should cause the
  52. modem to reset itself to the stored values (which means &C1 -CD not always
  53. asserted.)
  54. To set the nvram you will need to issue an AT command which looks something
  55. like this: AT&C1E0&W (You must include the &W write to nvram command in the
  56. same line because the moment its set to &C1 the CD line goes low and the &W
  57. never makes it out the port to the modem. Dont forget to include in that
  58. nvram string the commands for your modem to:
  59. 1) Reset to nvram values on loss of DTR (gets you back in &C1 after the call)
  60. 2) Not to echo characters in command mode (E0 possibly) to doubly protect
  61.    against getty battles.
  62.  
  63. I hope you followed this -lemme know if not and I'll try again.. 
  64. This arrangement allows the modem to work for both incoming and outgoing calls.
  65. I use the scheme on both IPC ports, one with a MultiTech 224E and the other
  66. with a Telebit. Both modems allow use of this concept although the & commands
  67. are slighlty different and so is the command to tell the modems to reset to
  68. nvram values on DTR drop. Check the manual.Your mileage may vary...
  69. regards
  70. kim culhan
  71. ------
  72. kimc@w8hd.org
  73.  
  74.  
  75.  
  76.