Subject: ucom0 unidirectional ?!
To: None <tech-kern@netbsd.org>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-kern
Date: 08/13/2001 00:13:42
Hi!

I have ported the umct driver from -current to 1.5.1, but accessing
/dev/ttyU0 via tip(1) only seems to work in one direction: I can send
commands to a modem, but don't get a reply. The commands do arrive,
though: e.g. the modem dials on ATD, but there is no "OK" on just "AT".
I've tried this with a known-working modem/serial cable and ppp config.


The hardware I have is a USB-Bay 3U1S1P hub with 3 USB ports, a serial and
a parallel interface.


Here is what dmesg says about the device (10-finger-dump): 

	uhub2 at uhub0 port 1
	uhub2: MCT Corp. Hub, class 9/1, rev 1.10/1.10, addr2
	uhub2: 5 ports with 3 removable, self powered
	uhub2: strange, connected port 4 has no power
	umct0 at uhub2 port 4
	umct0: MCT Corporation. USB BAY-3U1S1P, rev 1.10/1.10, addr 3
	ucom0 at umct0

I wonder what the "strange, connected port 4 has no power" means. It seems
to be the com port, and the hub DOES have proper external power. The same
message appears on bootup and when unplugging and replugging the hub.

usbdevs -v says:

	...
	port 4 addr 3: self powered, config 1, USB BAY-3U1S1P(0x0200), MCT Corporation.(0x0711), rev 1.10
	...

Here's what I have in the kernel config file:

	umct* at uhub? port ?
	ucom* at umct? portno ?


I have taken the sys/dev/usb/umct* files, the files.umct and the usbdevs
entries from -current as of ~1 week ago:

	files.usb: 1.30		(got just the umct lines)
	umct.c: 1.2		(taken from -current)
	umct.h: 1.1		(same)
	GENERIC: 1.414		(just took the umct lines)
	ucom.c: 1.24.2.4	(the 1.5.1 one I'm using)
	ucomvar.h: 1.7.2.1	(1.5.1 too)
	

FWIW here's also the /etc/remote entry:

	ttyU0:dv=/dev/ttyU0:br#9600:dc:

I have also tried using :hd:, :pa=none: and :at=hayes:, no change. 


I don't really know where to go from here - how do I get the ucom0 talk in
both directions? Help! :>


 - Hubert

-- 
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup  -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html 
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/