USB serial port vs 6.1
perryh at pluto.rain.com
perryh at pluto.rain.com
Tue Jan 29 00:32:16 PST 2008
Does 6.1 have some fundamental problem with USB serial devices?
I'm trying a USB-serial converter after getting nowhere with
connecting a USB modem directly -- the modem also has a DB9 --
and getting the same unexpected behavior from the converter as
from the modem.
When connected, the console reports:
ugen0: FIDI usb serial converter, rev 1.10/4.00, addr 3
Device nodes are created:
# ls -l /dev/ug*
crw-r--r-- 1 root operator 1, 15 Nov 24 21:17 /dev/ugen0
crw-r--r-- 1 root operator 1, 16 Nov 24 21:17 /dev/ugen0.1
crw-r--r-- 1 root operator 1, 17 Nov 24 21:17 /dev/ugen0.2
but the endpoints misbehave like those created for the ZyXEL modem
earlier this month:
# ./usbEpProbe /dev/ugen0.1
usbEpProbe: Cannot open '/dev/ugen0.1': Device not configured
# ./usbEpProbe /dev/ugen0.2
usbEpProbe: Cannot open '/dev/ugen0.2': Device not configured
# ./usbEpProbe /dev/ugen0
usbEpProbe: Cannot set short XFER
: Invalid argument
# cat /dev/ugen0.1 > /dev/null
cat: /dev/ugen0.1: Input/output error
# cat /dev/ugen0.2 > /dev/null
cat: /dev/ugen0.2: Device not configured
# cat /dev/ugen0 > /dev/null
cat: /dev/ugen0: Operation not supported by device
# udesc_dump /dev/ugen0
Standard Device Descriptor:
bLength 18
bDescriptorType 01
bcdUSB 0110
bDeviceClass 00
bDeviceSubClass 00
bDeviceProtocol 00
bMaxPacketSize 8
idVendor 0403
idProduct 6001
bcdDevice 0400
iManufacturer 1
iProduct 2
iSerialNumber 3
bNumConfigurations 1
Configuration 0:
Standard Configuration Descriptor:
bLength 9
bDescriptorType 02
wTotalLength 32
bNumInterface 1
bConfigurationValue 1
iConfiguration 0
bmAttributes a0 (remote-wakeup)
bMaxPower 22 (44 mA)
Standard Interface Descriptor:
bLength 9
bDescriptorType 04
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass ff
bInterfaceSubClass ff
bInterfaceProtocol ff
iInterface 2
Standard Endpoint Descriptor:
bLength 7
bDescriptorType 05
bEndpointAddress 81 (in)
bmAttributes 02 (Bulk)
wMaxPacketSize 64
bInterval 0
Standard Endpoint Descriptor:
bLength 7
bDescriptorType 05
bEndpointAddress 02 (out)
bmAttributes 02 (Bulk)
wMaxPacketSize 64
bInterval 0
Codes Representing Languages by the Device:
bLength 4
bDescriptorType 03
wLANGID[0] 0409
String (index 1): FIDI
String (index 2): usb serial converter
String (index 3): FTBSW3LS
More information about the freebsd-usb
mailing list