Package: usb-modeswitch Version: 0.9.7-1 Severity: normal I have on Option UMTS modem with the USB id 0af0:6971 (output of lsusb -v attached) plugged in. When I run the command:
# /usr/sbin/usb_modeswitch --DefaultVendor 0x0af0 --DefaultProduct 0x6971 --MessageEndpoint 0x05 --MessageContent 55534243785634120100000080000601000000000000000000000000000000 (as written in /etc/udev/rules.d/usb_modeswitch.rules) I get error messages: * usb_modeswitch: tool for controlling "flip flop" mode USB devices * Version 0.9.7 (C) Josua Dietze 2009 * Works with libusb 0.1.12 and probably other versions Looking for default devices ... Found default devices (1) Prepare switching, accessing device 007 on bus 003 ... Looking for active driver ... No driver found. Either detached before or never attached Setting up communication with interface 0 ... Trying to send the message to endpoint 0x05 ... Sending the message returned error -2. Trying to continue -> Run lsusb to note any changes. Bye This does not look like the right behaviour to me. What does "error -2" mean? When I comment out the respective lines in /etc/usb_modeswitch.conf, and do not use udev, but run the command: # usb_modeswitch without arguments, I get: * usb_modeswitch: tool for controlling "flip flop" mode USB devices * Version 0.9.7 (C) Josua Dietze 2009 * Works with libusb 0.1.12 and probably other versions Looking for target devices ... Found devices in target mode or class (1) Looking for default devices ... Found default devices (1) All devices in target class mode. Nothing to do. Bye! Is the device really supported? Are there maybe wrong parameters? Esp. I cannot find the MessageContent documented somewhere in the package, so it's hard to tell, whether there might be an error. (Minor point, which does not justify a bug report: In both /etc/udev/rules.d/usb_modeswitch.rules and /etc/usb_modeswitch.conf, the names of the contributors Bernd Holzmüller, Flávio Moringa, and Jérôme Oufella are encoded in ISO-8859-1. I believe, this should be UTF-8, right?) -- System Information: Debian Release: 5.0.1 APT prefers unstable APT policy: (990, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8) Versions of packages usb-modeswitch depends on: ii libc6 2.9-17 GNU C Library: Shared libraries ii libusb-0.1-4 2:0.1.12-13 userspace USB programming library
Bus 003 Device 011: ID 0af0:6971 Option Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 255 Vendor Specific Class bDeviceSubClass 255 Vendor Specific Subclass bDeviceProtocol 255 Vendor Specific Protocol bMaxPacketSize0 64 idVendor 0x0af0 Option idProduct 0x6971 bcdDevice 0.00 iManufacturer 1 iProduct 2 iSerial 4 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 65 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 (Bus Powered) Remote Wakeup MaxPower 500mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 3 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x85 EP 5 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0010 1x 16 bytes bInterval 128 INTERFACE CLASS: 03 24 03 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 3 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x84 EP 4 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x04 EP 4 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0