From owner-freebsd-questions Wed Feb 28 05:41:32 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA08883 for questions-outgoing; Wed, 28 Feb 1996 05:41:32 -0800 (PST) Received: from fslg8.fsl.noaa.gov ([137.75.131.171]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id FAA08878 for ; Wed, 28 Feb 1996 05:41:30 -0800 (PST) Received: by fslg8.fsl.noaa.gov (5.57/Ultrix3.0-C) id AA04587; Wed, 28 Feb 96 07:41:29 -0600 Received: by emu.fsl.noaa.gov (1.38.193.4/SMI-4.1 (1.38.193.4)) id AA02331; Wed, 28 Feb 1996 06:41:28 -0700 Date: Wed, 28 Feb 1996 06:41:28 -0700 Message-Id: <9602281341.AA02331@emu.fsl.noaa.gov> From: Sean Kelly To: handy@sag.space.lockheed.com Cc: freebsd-questions@freebsd.org In-Reply-To: (handy@sag.space.lockheed.com) Subject: Re: baudrate on serial port? Sender: owner-questions@freebsd.org Precedence: bulk All tty settings return to their initial/lock state after the port is closed. When you do stty -f /dev/cuaa1 57600, stty will open the port, set the bps rate, and then close the port. When the port closes, it goes back to 9600. What program are you using to talk to your modem? I'd try telling that program what bps rate you'd like to use. For example, if you're using /usr/bin/tip, then edit /etc/remote and insert br#57600 in the entry you're using. If you're using your own home grown software, use the cfsetispeed() and cfsetospeed() functions. If you're doing this from the command line or from scripts, here's a trick: sleep 999999 /dev/cuaa1 # Talk to modem at that rate You could also use stty -f /dev/cuaia1 57600, which sets the INITIAL state of the modem. The next open of that port will get you 57600 bps. Type ``man sio'' for more information. -- Sean Kelly NOAA Forecast Systems Laboratory, Boulder Colorado USA I'm just guessing, but probably one of the early signs that your radarscope is wearing out is something I call "image fuzz-out." But I've never even seen a radarscope, so I wouldn't totally go by what I've just said here. -- Deep Thoughts, by Jack Handey