Date: Mon, 29 Jan 2001 11:43:51 -0800 From: "Raymundo M. Vega" <RaymundoVega@home.com> To: Volker Jahns <Volker.Jahns@thalreit.de> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Help on serial port programming Message-ID: <3A75C7F7.B25DC080@home.com> References: <20010126224215.A1511@ikarus.thalreit> <3A721A0F.886D8DFD@home.com> <20010128183125.A16285@pegasus.thalreit>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <termio.h> to #include <sys/termios.h>
> >
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A75C7F7.B25DC080>
