Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!orc!inews!iwarp.intel.com!gargoyle!chinet!saj From: saj@chinet.chi.il.us (Stephen Jacobs) Newsgroups: comp.sys.atari.st Subject: Re: How to Get RS232 parameters? Summary: If I understand the question, this answer is too pessimistic Keywords: RS232,parameters Message-ID: <1990Oct23.141133.19930@chinet.chi.il.us> Date: 23 Oct 90 14:11:33 GMT References: <671@mrcu> <1990Oct23.035636.21144@ns.network.com> Organization: Chinet - Chicago Public Access UNIX Lines: 21 In article <1990Oct23.035636.21144@ns.network.com> logajan@ns.network.com (John Logajan) writes: >In article <671@mrcu> ya16@mrcu (Ian Powell) writes: >>Does anyone know how to get the current RS232 parameters (modes an baud >>rate) form the ST, so that I can reset the RS232 as it was after use. > >This state information is not saved by the OS as far as any of us have >been able to determine. In addtion, the serial hardware will not report >what its current configuration is. > >It can't be done. :-) > Normally I wouldn't reply to this without the example in front of me, but when an ST wizard (my compliments, John, really) says something a program I've hacked on does is impossible, it seems worthwhile to pipe up. At the very least, the 1040 running TOS 1.0 and the Mega running TOS 1.2 can be made to report SOMETHING about the state of the serial port. I believe this behavior was even made official under TOS 1.4. The tricky part, and the reason I wouldn't have posted normally, is that I forget how. As I faintly remember, Rsconf (-1L) returns a longword which, if passed back to Rsconf() will restore the state of the serial port. I'll check to be sure if nobody beats me to it. Steve J.