From owner-freebsd-questions Mon Jan 29 11:44:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail4.sdc1.sfba.home.com (femail4.sdc1.sfba.home.com [24.0.95.84]) by hub.freebsd.org (Postfix) with ESMTP id E053337B699 for ; Mon, 29 Jan 2001 11:43:51 -0800 (PST) Received: from home.com ([24.177.141.133]) by femail4.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20010129194141.VONL11986.femail4.sdc1.sfba.home.com@home.com>; Mon, 29 Jan 2001 11:41:41 -0800 Message-ID: <3A75C7F7.B25DC080@home.com> Date: Mon, 29 Jan 2001 11:43:51 -0800 From: "Raymundo M. Vega" X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.5.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Volker Jahns Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Help on serial port programming References: <20010126224215.A1511@ikarus.thalreit> <3A721A0F.886D8DFD@home.com> <20010128183125.A16285@pegasus.thalreit> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Volker Jahns wrote: > > On Fri, Jan 26, 2001 at 04:45:03PM -0800, Raymundo M. Vega wrote: > > > > I tested one of the programs and it runs OK, I had to change > > a couple of things: > > > > #include to #include > > > > after gcc -o upsstat upsstat.c execute: > > > > upsstat cuaa0 > well, is there any output, and if yes could you reply > the result? > [ 117 ]:{navajo}Downloads> ./upsstat cuaa0 LE DTR RTS ST SR CTS CD RNG DSR X X O O O O O O O X X O O O O O O O X X O O O O O O O X X O O O O O O O X X O O O O O O O X X O O O O O O O X X O O O O O O O ^C > > > > buena suerte > > > > raymundo > Could you please provide following information of your installation > > (1) uname -a > [ 104 ]:{navajo}rvega> uname -a FreeBSD navajo.tcsllc.com 3.5.1-RELEASE FreeBSD 3.5.1-RELEASE #11: Wed Nov 15 15:00:54 PST 2000 rvega@navajo.tcsllc.com:/usr/src/sys/compile/TCS i386 > (2) ls -l /dev/ttyd* > [ 105 ]:{navajo}rvega> ls -l /dev/ttyd* crw------- 1 root wheel 28, 0 Jul 19 2000 /dev/ttyd0 crw------- 1 root wheel 28, 1 Jul 19 2000 /dev/ttyd1 crw------- 1 root wheel 28, 2 Jul 19 2000 /dev/ttyd2 crw------- 1 root wheel 28, 3 Jul 19 2000 /dev/ttyd3 crw------- 1 root wheel 28, 31 Jun 8 2000 /dev/ttydv > (3) ls -l /dev/cuaa* > [ 106 ]:{navajo}rvega> ls -l /dev/cuaa* crw-rw---- 1 uucp dialer 28, 128 Jul 19 2000 /dev/cuaa0 crw-rw---- 1 uucp dialer 28, 129 Jul 19 2000 /dev/cuaa1 crw-rw---- 1 uucp dialer 28, 130 Jul 19 2000 /dev/cuaa2 crw-rw---- 1 uucp dialer 28, 131 Jul 19 2000 /dev/cuaa3 > (4) dmesg |grep sio > sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A > (5) ps auwx |grep tty > root 329 0.0 0.4 840 500 v1 Is+ 21Jan01 0:00.01 /usr/libexec/getty Pc ttyv1 root 330 0.0 0.4 840 500 v2 Is+ 21Jan01 0:00.01 /usr/libexec/getty Pc ttyv2 root 331 0.0 0.4 836 472 ?? I 21Jan01 0:00.01 /usr/libexec/getty local.19200 ttyd0 > Is there any entry in /etc/ttys for /dev/ttyd0 ? > [ 109 ]:{navajo}rvega> grep ttyd /etc/ttys ttyd0 "/usr/libexec/getty local.19200" vt100 on secure ttyd1 "/usr/libexec/getty std.9600" dialup off secure ttyd2 "/usr/libexec/getty std.9600" dialup off secure ttyd3 "/usr/libexec/getty std.9600" dialup off secure suerte raymundo > Thanks > -- > Volker Jahns, Thalreit/DE, +49 80 35 69 25, mailto:Volker.Jahns@thalreit.de > -- I know I'm ANSI, but am I SCSI? -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message