Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Dec 2001 02:00:50 -0600
From:      Doug Poland <doug@polands.org>
To:        questions@freebsd.org
Subject:   serial port problem
Message-ID:  <20011201020049.A9159@polands.org>

next in thread | raw e-mail | index | archive | help
Hi,

I'm having a problem with a serial port and I don't know how to
diagnose it.  I'm trying to hook up an APC SMART-UPS via a black 
940-0024C cable.  When I attempt to start the apcsmart driver, I get:

	judeah#	/usr/local/libexec/nut/apcsmart	/dev/cuaa0
	Network UPS Tools - APC Smart protocol driver 0.60 (0.45.1)
	Serial port read timed out
	Unable to detect an APC Smart protocol UPS on port /dev/cuaa0
	Check the cabling, port name or model name and try again

The cable is good, it's been used on another machine for 6 months.
It's fully seated in the serial port. 

So I check the port with dmesg:

	judeah#	dmesg | grep sio
	sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
	sio0: type 16550A
	sio1: configured irq 3 not in bitmap of probed irqs 0
	
I don't know how to check the port other than issue stty:

	judeah#	stty -f /dev/cuaa0 -a
	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;

A check of irq's with dmesg doesn't reveal any conflicts:

	judeah#	dmesg | grep irq
	rl0: <Accton MPX 5030/5038 10/100BaseTX> port 0xfc00-0xfcff mem
	0xfedffc00-0xfedffcff irq 11 at device 12.0 on pci0
	ahc0: <Adaptec 2940A Ultra SCSI adapter> port 0xf800-0xf8ff mem
	0xfedfe000-0xfedfefff irq 10 at device 13.0 on pci0
	fdc0: <NEC 765 or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
	ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
	ata1 at port 0x170-0x177,0x376 irq 15 on isa0
	atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
	sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
	sio1: configured irq 3 not in bitmap of probed irqs 0
	ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0

Does anyone know what's going on here or can tell me how to
diagnose this?  FYI, I'm running 4.4-STABLE on a Compaq Presario 7170.  


-- 
Regards,
Doug

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?20011201020049.A9159>