home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / apple2 / 19886 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  3.0 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!ucbvax!gnh-cathouse.cts.com!ferret
  2. From: ferret@gnh-cathouse.cts.com (Brendan Hoar)
  3. Newsgroups: comp.sys.apple2
  4. Subject: GS port HW handshaking & result codes...
  5. Message-ID: <m0mQtdU-0000jYC@crash.cts.com>
  6. Date: 5 Sep 92 07:23:09 GMT
  7. Sender: usenet@ucbvax.BERKELEY.EDU
  8. Organization: The Internet
  9. Lines: 63
  10. X-Unparsable-Date: Fri Sep 04 92 at 15:19:52 (EST)
  11.  
  12. Hmmm...
  13.  
  14. >From: behrenss@Informatik.TU-Muenchen.DE (Soenke Behrens)
  15. >Date: 4 Sep 92 06:00:12 GMT
  16. >
  17. >t_captain@bluemoon.rn.com (Tc Wilson) writes:
  18. >
  19. >>As for using bit 5 of reg 3, not possible - I have to be able to get
  20. >>return codes from the modem when it's not connected, and be able to
  21. >read
  22. >>BOTH dcd and cts when needed.
  23. >
  24. >Are you quite _sure_ you need DCD? I mean, ok, it's convenient, but
  25. >even
  26. >more so is "automagic" hardware handshake :). You could try to
  27. >interprete
  28. >(sp?) the return messages you get, making sure you don't mistake a
  29. >NO CARRIER
  30. >with text after it as a real NO CARRIER ... but that is possible, as
  31. >PT3 shows.
  32.  
  33. I suggested this to Greg Schaefer and I [THINK] he added it to later version
  34. of
  35. the PT3.0 bug fixes (available via the InSync BBS and AO) in at least the Oki
  36. RTS/CTS 9600 driver (which I use at 57600 with my ZyXEL).  I am not sure if
  37. this is the exact implementation he used in his RTS/CTS drivers, but it should
  38. be similar.
  39.  
  40. Basic Idea:
  41. Keep TRUE carrier detect enabled in the modem at all times.  Leave automagic
  42. hardware handshaking disabled to start with.  Dial a system, IF AND ONLY IF CD
  43. goes high, turn on the automagic hardware handshake via the soft switches
  44. immediately.  You now have dealt with half the problem.  You get your result
  45. codes AND your hardware handshake as well.
  46.  
  47. The other half of the problem has to do with detecting carrier loss. 
  48. Something
  49. similar can be done about that.  I don't recall (used to know when I was
  50. talking quite a bit with Greg...) if the CD signal can be detected when
  51. hardware flow control is enabled or not.  If it can be, then the solution is
  52. quite simple:  When CD is lost, have your drivers immediately turn of
  53. automagic
  54. HHS and the inform the program that carrier was lost.  If not, then you must
  55. go
  56. the PT3 route - have your program scan for NO CARRIER (hey, if you're doing
  57. terminal emulation, the code is mostly there anyway...).
  58.  
  59. On thing [I] have noticed is that since I got the latest Oki 9600 drivers, NO
  60. CARRIER never appears on my screen when I get disconnected, so maybe Greg is
  61. able to detect CD with HHS on...
  62.  
  63. >
  64. >Soenke
  65. >P.S.: Now, if Steve doesn't come up with his serial card pretty soon,
  66. >I have to dig out my plans for a 2*16550AFN card again. This is a
  67. >threat :)
  68.  
  69. Hey, if Soenke doesn't come up with his EPROMMER system pretty soon...  :)
  70. ____________  
  71. Loc.|Address|___What are we?___ 5 billion pieces   Downtime this is downtime
  72. Work|Brendan_Hoar@notes.pw.com|____so defined____  but we're fixing nothing...
  73. Play|badbunny@gnh-starport.cts.com (703) 998-5687| just watching plated fire,
  74. IPay|BrendanHr@aol.com___________________________| the burn first touching.
  75.