[comp.sys.amiga.tech] DTR and serial.device - What about standardization?

rickf@pnet02.cts.com (Rick Flower) (02/02/89)

I'm currently relying on the fact that I CAN lower/raise the DTR line via the
CIA that is connected to the Serial port that is standard in the
500/1000/2000.. Is there a "Better" way to do the same thing that doesn't
rely on the CIA or which port you might be using...?? Such as the "Default" or
"built-in" or "1st extended" ports (as defined by Bryce Nesbit of C-A).. It
would certainly be NICE to have a "pseudo" standardization... All I know is
that if a modem is connected to ANY of these serial ports, it really does suck
when the ONLY way to hang up the phone is by doing the "+++ <cr> ATH0 <cr>"
junk!  Dropping the DTR is a much more effective way of doing things....

===============================================================================
                                I Thought So...

UUCP: {ames!elroy, <backbone>}!gryphon!pnet02!rickf
INET: rickf@pnet02.cts.com
===============================================================================

papa@pollux.usc.edu (Marco Papa) (02/03/89)

In article <11543@gryphon.COM> rickf@pnet02.cts.com (Rick Flower) writes:
|I'm currently relying on the fact that I CAN lower/raise the DTR line via the
|CIA that is connected to the Serial port that is standard in the
|500/1000/2000.. Is there a "Better" way to do the same thing that doesn't
|rely on the CIA or which port you might be using...?? Such as the "Default" or
|"built-in" or "1st extended" ports (as defined by Bryce Nesbit of C-A).. It
|would certainly be NICE to have a "pseudo" standardization... All I know is
|that if a modem is connected to ANY of these serial ports, it really does suck
|when the ONLY way to hang up the phone is by doing the "+++ <cr| ATH0 <cr|"
|junk!  Dropping the DTR is a much more effective way of doing things....

As Bryce suggested, a "better" way is to close the device, wait 1 sec and
then reopen it (with the SAME parameters).  I tried it and it works just
fine.  DTR is dropped properly.

Multi-serial manufacturers should ensure that this technique works on their 
hardware too.

-- Marco Papa 'Doc'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
uucp:...!pollux!papa       BIX:papa       ARPAnet:pollux!papa@oberon.usc.edu
 "There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

bryce@cbmvax.UUCP (Bryce Nesbitt) (02/03/89)

In article <11543@gryphon.COM> rickf@pnet02.cts.com (Rick Flower) writes:
|I'm currently relying on the fact that I CAN lower/raise the DTR line via the
|CIA that is connected to the Serial port that is standard in the
|500/1000/2000.. Is there a "Better" way to do the same thing that doesn't
|rely on the CIA or which port you might be using...??

Close the device, then reopen it.  (include error checking!)
This will drop then raise DTR.
Eventually there will be a better way... but this one works for all versions
of the serial.device back to V1.0!!
It will also work for extended units.

-- 
|\_/|  . ACK!, NAK!, EOT!, SOH!
{O o} .     Bryce Nesbitt
 (")        BIX: bnesbitt
  U	    USENET: cbmvax!bryce@uunet.uu.NET -or- rutgers!cbmvax!bryce
Disclaimer: I'm not an official, and this is not an official opinion.