From owner-freebsd-questions@FreeBSD.ORG Thu Aug 28 23:26:26 2003 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 AA83C16A4BF for ; Thu, 28 Aug 2003 23:26:26 -0700 (PDT) Received: from smtp804.mail.sc5.yahoo.com (smtp804.mail.sc5.yahoo.com [66.163.168.183]) by mx1.FreeBSD.org (Postfix) with SMTP id 9B33D44001 for ; Thu, 28 Aug 2003 23:26:25 -0700 (PDT) (envelope-from ms_email@pacbell.net) Received: from adsl-64-168-22-194.dsl.snfc21.pacbell.net (HELO marcelodell2) (ms?email@pacbell.net@64.168.22.194 with login) by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP; 29 Aug 2003 06:26:25 -0000 From: "Marcelo Schmidt" To: Date: Thu, 28 Aug 2003 23:26:12 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: How do I change the speed on ttyd0? 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: Fri, 29 Aug 2003 06:26:26 -0000 Hi, I need to read data from a temperature sensor (PIC12C509) that requires: serial data at 2400 baud, 8 bits, no parity, one or two stop bits. I tried several things, tip, cu, Device-SerialPort-0.13, etc. It seems to be the ttyd0 speed is locked in 9600: # stty -a -f /dev/ttyd0 speed 9600 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; My /etc/ttys: ttyd0 "/usr/libexec/getty std.2400" unknown off secure local I also got sometimes: /kernel: sio0: 26 more tty-level buffer overflows (total 8805). So how do I change the speed on ttyd0? Thanks, ======================================================== Marcelo R. Schmidt