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