Date: Thu, 28 Aug 2003 23:26:12 -0700 From: "Marcelo Schmidt" <ms_email@pacbell.net> To: <freebsd-questions@FreeBSD.ORG> Subject: How do I change the speed on ttyd0? Message-ID: <HMEJKDJGOPICJOEKEHBIAEKKCCAA.ms_email@pacbell.net>
next in thread | raw e-mail | index | archive | help
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 = <undef>; eol2 = <undef>; 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?HMEJKDJGOPICJOEKEHBIAEKKCCAA.ms_email>