From owner-freebsd-questions@FreeBSD.ORG Tue Mar 23 01:33:43 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 5583916A4CF for ; Tue, 23 Mar 2004 01:33:43 -0800 (PST) Received: from mail.u4eatech.com (blackhole.u4eatech.com [195.188.241.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7353043D46 for ; Tue, 23 Mar 2004 01:33:42 -0800 (PST) (envelope-from richard.williamson@u4eatech.com) Received: (from filter@localhost) by mail.u4eatech.com (8.11.6/8.11.6) id i2N9Xf408883 for freebsd-questions@freebsd.org; Tue, 23 Mar 2004 09:33:41 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 2748A1577DA for ; Tue, 23 Mar 2004 09:33:38 +0000 (GMT) Message-Id: <6.0.3.0.2.20040323085825.02512f60@cygnus> X-Sender: richard@cygnus X-Mailer: QUALCOMM Windows Eudora Version 6.0.3.0 Date: Tue, 23 Mar 2004 09:33:32 +0000 To: freebsd-questions@freebsd.org From: "Richard P. Williamson" In-Reply-To: <6.0.3.0.2.20040323082308.02513710@cygnus> References: <6.0.3.0.2.20040322152842.024b8900@cygnus> <20040322174108.GJ36839@nkinkade.bmp.ub> <6.0.3.0.2.20040323082308.02513710@cygnus> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, hits=-6.3 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: Re: 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: Tue, 23 Mar 2004 09:33:43 -0000 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