From: Kevin Gilbert <kevin952@tp...> - 2008-12-19 02:36:04
I'm trying to get a new device working under Linux. It's a 3G modem which has
a 'dual personality' - CD-ROM & modem, so a call to 'usb-modeswitch' will be
necessary under Linux.
Sniffing (via sniffusb) under Windows and dumping output from
usb_get_descriptor(USB_DT_DEVICE) in Linux shows:
bLength 12 12
bDescriptorType 01 01
bcdUSB 02 00 02 00
bDeviceClass 00 00
bDeviceSubClass 00 00
bDeviceProtocol 00 00
bMaxPacketSize 40 40
idVendor 19 d2 19 d2
idProduct 00 31 20 00
bcdDevice 00 00 00 00
iManufacturer 02 02
iProduct 01 01
iSerialNumber 03 00
bNumConfigurations 01 01
Note that this is the _first_ URB seen under Windows after the device is
plugged in after a boot, so no pollution from any prior activity.
How can the idProduct and iSerialNumber fields differ under the two OS's? Is
it possible that there is some lower-level interaction going on (that sniffusb
cannot report on) that must be emulated under Linux?
These difference may explain why, when I call
usb_get_descriptor(USB_DT_CONFIG) I only get 2 endpoints whereas the same call
(sniffed) call under Windows gets 5.
On Fri, Dec 19, 2008 at 01:35:27PM +1100, Kevin Gilbert wrote:
> I'm trying to get a new device working under Linux. It's a 3G modem which has
> a 'dual personality' - CD-ROM & modem, so a call to 'usb-modeswitch' will be
> necessary under Linux.
What specific device is this? Almost all of these modems already work
just fine with the in-kernel Linux driver, why do you want to write a
libusb program to control it?
> Sniffing (via sniffusb) under Windows and dumping output from
> usb_get_descriptor(USB_DT_DEVICE) in Linux shows:
> bLength 12 12
> bDescriptorType 01 01
> bcdUSB 02 00 02 00
> bDeviceClass 00 00
> bDeviceSubClass 00 00
> bDeviceProtocol 00 00
> bMaxPacketSize 40 40
> idVendor 19 d2 19 d2
> idProduct 00 31 20 00
Ah, a ONDA device, it should be trivial to add this device id to the
drivers/usb/serial/option.c driver to get it to work properly. Have you
Get latest updates about Open Source Projects, Conferences and News.