Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Dec 2006 14:16:16 +0100
From:      "Janusz Dziedzic" <Janusz.Dziedzic@BenQ.com>
To:        <freebsd-usb@freebsd.org>
Subject:   Mixture of interfaces (vendor specific, class interfaces) problems
Message-ID:  <60541E311563FC47A901798C920293B2016ADC98@bmw-msv01.bqeu.corp.com>

next in thread | raw e-mail | index | archive | help
Hello,=20

My release:=20

bmw-ws047# uname -a=20
FreeBSD bmw-ws047.bqeu.corp.com 6.1-RC FreeBSD 6.1-RC #0: Thu Jul 20
16:20:27 CEST 2006
root@bmw-ws047.bqeu.corp.com:/usr/src/sys/i386/compile/CHAOS i386=20


FIRST CONFIGURATION (two vendor specific interfaces - works fine):=20

dmesg:=20
Dec 6 13:03:55 bmw-ws047 kernel: ugen0: detached=20
Dec 6 13:04:02 bmw-ws047 kernel: ugen0: BenQ Siemens BenQ Siemens Mobile
Phone, rev 1.10/0.00, addr 2=20

usb_dump:=20
bmw-ws047# ./usb_dump -D -f /dev/ugen0=20
DEVICE descriptor:=20
bLength=3D18 bDescriptorType=3D1 bcdUSB=3D1.10 bDeviceClass=3D0
bDeviceSubClass=3D0=20
bDeviceProtocol=3D0 bMaxPacketSize=3D64=20
idVendor=3D0x04a5 idProduct=3D0x4013 bcdDevice=3D0=20
iManufacturer=3D1 iProduct=3D2 iSerialNumber=3D0 bNumConfigurations=3D1=20

Current configuration is number 1=20

CONFIGURATION descriptor index 0:=20
bLength=3D9 bDescriptorType=3D2 wTotalLength=3D62 bNumInterface=3D2=20
bConfigurationValue=3D1 iConfiguration=3D0 bmAttributes=3Da0 =
bMaxPower=3D500 mA=20

INTERFACE descriptor index 0, alt index 0:=20
bLength=3D9 bDescriptorType=3D4 bInterfaceNumber=3D0 =
bAlternateSetting=3D0=20
bNumEndpoints=3D3 bInterfaceClass=3D255 bInterfaceSubClass=3D255=20
bInterfaceProtocol=3D255 iInterface=3D3=20

ENDPOINT descriptor index 0:=20
bLength=3D7 bDescriptorType=3D5 bEndpointAddress=3D1-in=20
bmAttributes=3D3 wMaxPacketSize=3D16 bInterval=3D128=20

ENDPOINT descriptor index 1:=20
bLength=3D7 bDescriptorType=3D5 bEndpointAddress=3D2-in=20
bmAttributes=3D2 wMaxPacketSize=3D64 bInterval=3D0=20

ENDPOINT descriptor index 2:=20
bLength=3D7 bDescriptorType=3D5 bEndpointAddress=3D2-out=20
bmAttributes=3D2 wMaxPacketSize=3D64 bInterval=3D0=20

INTERFACE descriptor index 1, alt index 0:=20
bLength=3D9 bDescriptorType=3D4 bInterfaceNumber=3D1 =
bAlternateSetting=3D0=20
bNumEndpoints=3D2 bInterfaceClass=3D255 bInterfaceSubClass=3D255=20
bInterfaceProtocol=3D255 iInterface=3D3=20

ENDPOINT descriptor index 0:=20
bLength=3D7 bDescriptorType=3D5 bEndpointAddress=3D4-in=20
bmAttributes=3D2 wMaxPacketSize=3D64 bInterval=3D0=20

ENDPOINT descriptor index 1:=20
bLength=3D7 bDescriptorType=3D5 bEndpointAddress=3D4-out=20
bmAttributes=3D2 wMaxPacketSize=3D64 bInterval=3D0=20


OK, in this case I can communicate with my vendor specyfic devices via
/dev/ugen0.x. Is there chance to use ucom driver with vendor=20
specific interfaces? How can I do that?=20



SECOND CONFIGURATION (the same two vendor specific interfaces and third
mass storage interface):=20

dmesg:=20
Dec 6 13:07:58 bmw-ws047 kernel: umass0: BenQ Siemens BenQ Siemens USB
MMC Storage, rev 1.10/0.00, addr 2=20
Dec 6 13:07:58 bmw-ws047 kernel: umass0: SCSI over Bulk-Only; quirks =3D
0x0000=20
Dec 6 13:07:58 bmw-ws047 kernel: umass0: Get Max Lun not supported
(STALLED)=20
Dec 6 13:07:58 bmw-ws047 kernel: umass0:0:0:-1: Attached to scbus0=20
Dec 6 13:07:58 bmw-ws047 kernel: da0 at umass-sim0 bus 0 target 0 lun 0=20
Dec 6 13:07:58 bmw-ws047 kernel: da0: <BenQ MMC Storage 2.31> Removable
Direct Access SCSI-2 device=20
Dec 6 13:07:58 bmw-ws047 kernel: da0: 1.000MB/s transfers=20
Dec 6 13:07:58 bmw-ws047 kernel: da0: 968MB (1984001 512 byte sectors:
64H 32S/T 968C)=20


I can mount device da0 and works fine, but where are my two vendor
specific interfaces?=20



Under Linux (2.6), windows (nt, xp etc) everything works fine. In second
configuration I have two=20
vendor specific interfaces (I can decide which driver I want to use with
them) and third interface=20
(class specific) mass storage.=20


So, can fsbd load different drivers for each interface?=20
How load drivers for vendor specific interfaces? (under Linux I can
simply add module parameters and works fine, egg. insmod usbserial
vendor=3D0x... product=3D0x...).=20

Best Regards=20
Janusz =20
=20
=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?60541E311563FC47A901798C920293B2016ADC98>