From owner-freebsd-questions Sat Dec 9 14:10:20 2000 From owner-freebsd-questions@FreeBSD.ORG Sat Dec 9 14:10:17 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mail2.thuntek.net (mail2.thuntek.net [206.206.98.15]) by hub.freebsd.org (Postfix) with ESMTP id 4FFE537B401 for ; Sat, 9 Dec 2000 14:10:17 -0800 (PST) Received: from Silver-Lynx.com (abq-006.thuntek.net [207.66.52.6]) by mail2.thuntek.net (8.11.1/8.11.0) with ESMTP id eB9MA8P90072 for ; Sat, 9 Dec 2000 15:10:10 -0700 (MST) (envelope-from Don@Silver-Lynx.com) Message-ID: <3A32AD6D.6A4DFD79@Silver-Lynx.com> Date: Sat, 09 Dec 2000 15:08:45 -0700 From: Don Wilde X-Mailer: Mozilla 4.72 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: serial data Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, folks - I'm trying to talk through a serial port, and freebsd's fighting me every step of the way. (seems that way!) I've got a microcontroller spitting out 2400 baud characters to ttyd1, and not all that fast at that. My problem is that the getty process doesn't seem amenable to control. I tried changing gettytab and ttys, and I don't seem to have control of things. I can't get echo to stay off, I can't get it to stay in clocal mode. My C program reading it is just a simple getc/putc copy function like what's on page 3 of every C book in sight. Even poking with stty doesn't seem to affect it, at least not all the time. Sometimes sending stty -f /dev/ttyd1 clocal && ./inputprog