Hello!
[If this mail is mal-formatted, please tell me]
I have successfully installed the drivers for a USB to serial adapter, as
communication with two terminal programs (minicom) via the serial line works.
Now the problem: If I do "echo > /dev/ttyUSB0 hello" on the USB side, the
"hello" can be seen at the other end of the line, but the echo does not finish.
I'm not sure if this is really a USB problem, or if it is a wrong tty
setting.
I was testing with 2.4.16 and 2.4.17, both UHCI drivers. The adapter is ATEN
with driver pl2303.
TTY settings when minicom is running (and everything is ok):
[root@up3test /root]# stty -F /dev/ttyUSB0
speed 38400 baud; line = 0;
min = 1; time = 5;
ignbrk -brkint -icrnl -imaxbel
-opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
When minicom is not running:
[root@up3test /root]# stty -F /dev/ttyUSB0
speed 9600 baud; line = 0;
-brkint -imaxbel
The write() hanging was told by strace:
f[root@up3test /root]# strace echo hallo >/dev/ttyUSB0
[snip]
stat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(188, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40173000
ioctl(1, TCGETS, {B9600 opost isig icanon echo ...}) = 0
write(1, "hallo\n", 6
The last kernel messages:
usbserial.c: serial_write_room - port 0
usbserial.c: generic_write_room - port 0
usbserial.c: generic_write_room - returns 64
usbserial.c: serial_write - port 0, 0 byte(s)
pl2303.c: pl2303_write - port 0, 0 bytes
pl2303.c: pl2303_write - length = 0, data =
usbserial.c: serial_write_room - port 0
usbserial.c: generic_write_room - port 0
usbserial.c: generic_write_room - returns 0
pl2303.c: pl2303_write_bulk_callback - port 0
usbserial.c: port_softint - port 0
... and the boot messages about USB:
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.268 $ time 10:47:48 Oct 10 2002
usb-uhci.c: High bandwidth mode enabled
PCI: Enabling device 00:07.2 (0004 -> 0005)
usb-uhci.c: USB UHCI at I/O 0x2060, IRQ 11
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
usb.c: kmalloc IF dfff9a40, numif 1
usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Product: USB UHCI Root Hub
SerialNumber: 2060
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: global over-current protection
hub.c: Port indicators are not supported
hub.c: power on to power good time: 2ms
hub.c: hub controller current requirement: 0mA
hub.c: port removable status: RR
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: hub driver claimed interface dfff9a40
usb.c: call_policy add, num 1 -- no FS yet
usb-uhci.c: v1.268:USB Universal Host Controller Interface driver
usb.c: registered new driver serial
usbserial.c: USB Serial Driver core v1.4
usbserial.c: USB Serial support registered for PL-2303
pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9
...
hub.c: port 1 connection change
hub.c: port 1, portstatus 101, change 1, 12 Mb/s
hub.c: port 1, portstatus 103, change 0, 12 Mb/s
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: kmalloc IF dfff9b80, numif 1
ds: no socket drivers loaded!
usb.c: new device strings: Mfr=0, Product=0, SerialNumber=0
usbserial.c: descriptor matches
usbserial.c: found interrupt in
usbserial.c: found bulk out
usbserial.c: found bulk in
usbserial.c: PL-2303 converter detected
usbserial.c: get_free_serial 1
usbserial.c: get_free_serial - minor base = 0
usbserial.c: usb_serial_probe - setting up 1 port structures for this device
usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for
devfs)
usb.c: serial driver claimed interface dfff9b80
usb.c: call_policy add, num 2 -- no FS yet
I really have no ideas any more (before debugging in the kernel), maybe you?
Thanks in advance
Norbert
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr f�r 1 ct/ Min. surfen!
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users