From owner-freebsd-questions@FreeBSD.ORG Wed Mar 24 01:53:46 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAC2816A4D1 for ; Wed, 24 Mar 2004 01:53:45 -0800 (PST) Received: from mail.u4eatech.com (blackhole.u4eatech.com [195.188.241.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1710843D39 for ; Wed, 24 Mar 2004 01:53:44 -0800 (PST) (envelope-from richard.williamson@u4eatech.com) Received: (from filter@localhost) by mail.u4eatech.com (8.11.6/8.11.6) id i2O9rgi32441 for freebsd-questions@freebsd.org; Wed, 24 Mar 2004 09:53:42 GMT X-Authentication-Warning: mail.u4eatech.com: filter set sender to richard.williamson@u4eatech.com using -f Received: from apus.u4eatech.com (unknown [172.30.20.100]) by mail.u4eatech.com (Postfix) with ESMTP id 023A81577D4 for ; Wed, 24 Mar 2004 09:53:38 +0000 (GMT) Message-Id: <6.0.3.0.2.20040324082704.0255dd70@cygnus> X-Sender: richard@cygnus X-Mailer: QUALCOMM Windows Eudora Version 6.0.3.0 Date: Wed, 24 Mar 2004 09:52:28 +0000 To: freebsd-questions@freebsd.org From: "Richard P. Williamson" In-Reply-To: <6.0.3.0.2.20040323085825.02512f60@cygnus> References: <6.0.3.0.2.20040322152842.024b8900@cygnus> <20040322174108.GJ36839@nkinkade.bmp.ub> <6.0.3.0.2.20040323082308.02513710@cygnus> <6.0.3.0.2.20040323085825.02512f60@cygnus> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, hits=-6.7 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: SOLVED was: Serial port (com1) baud rate oddity X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 09:53:46 -0000 The long and the short of it: >According to stty, ba is 1355. >blah# stty -a -f /dev/ttyd0 >speed 1355 baud; 0 rows; 0 columns; My /boot/loader.rc had set console=vidconsole boot -h What I was trying to do was get the console output to go to /dev/null or to the (non-existent) video device (see the other post :>). For some reason, that still had the data coming out the serial port, only at 1/8th the speed. I removed the -h and the speed returned to 9600. The question subject: boot messages to /dev/null is the follow up. Thanks! rip At 09:33 23/03/2004, Richard P. Williamson wrote: >At 08:31 23/03/2004, Richard P. Williamson wrote: >>At 17:41 22/03/2004, Nathan Kinkade wrote: >>>tip gets it configurations from /etc/remote. Make sure that "com1" in >>>/etc/remote is set with appropriate values. The default is: >>> >>>sio0|com1:dv=/dev/cuaa0:br#9600:pa=none: > >According to stty, ba is 1355. >blah# stty -a -f /dev/ttyd0 >speed 1355 baud; 0 rows; 0 columns; >lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl > -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin > -nokerninfo -extproc >iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -ignbrk > -brkint -inpck -ignpar -parmrk >oflags: -opost onlcr -ocrnl oxtabs onocr onlret >cflags: cread cs8 -parenb -parodd hupcl clocal -cstopb -crtscts -dsrflow > -dtrflow -mdmbuf >cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = ; > eol2 = ; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U; > lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; > status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W; > >On the sink machine, I did 'tip -1355 com1' and got text instead >of @@ @@@@@@ @ @ @@@ etc. But why did the source machine decide >to use 1355 in the first place? > >blah# grep com1 /etc/remote >com1:dv=/dev/cuaa0:br#9600:pa=none: >blah# grep 1355 /etc/* >services:intuitive-edge 1355/tcp #Intuitive Edge >services:intuitive-edge 1355/udp #Intuitive Edge >blah# > >This is what happens if I try to force it to 9600: > >blah# stty -f /dev/ttyd0 speed 9600 >1355 >blah# stty -f /dev/ttyd0 9600 >blah# stty -a -f /dev/ttyd0 >speed 1355 baud; 0 rows; 0 columns; >... > >Possibly it won't let me adjust the baud rate, as the device is busy: >blah# tip com1 >tip: /dev/cuaa0: Device busy >link down >blah# > >So how can I idle the device long enough to try resetting the >speed? > >blah# sleep 60 vs. Seiko is a dead heat, so at least the system >clock appears to be ticking at the correct rate. > >rip > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Richard Williamson richard.williamson@u4eatech.com U4EA Technologies Ltd +44 (0) 117 373 6760 Bristol, UK BS1 6PL x5030