I have trouble with my new mobilcom debitel stick,
the "XS Stick W14" by 4g-systems. It works fine under Windows, but I can't make it to switch after plugging it in. Curiously, the modem *is* detected if the stick is already inserted while booting, but that seems not to be related to usb_modeswitch (see below).
I'm using ubuntu 09.10, Kernel 2.6.31-14-generic on a Lifebook, and
# /etc/usb_modeswitch.conf contains:
Code: Select all
DefaultVendor= 0x1c9e
DefaultProduct= 0xf000
TargetVendor= 0x1c9e
TargetProduct= 0x9603
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
after plugging in the stick,
> lsusb
Bus 001 Device 004: ID 1c9e:f000
...
> dmesg|grep usb
...
[ 519.208093] usb 1-3: new high speed USB device using ehci_hcd and address 4
[ 519.353453] usb 1-3: configuration #1 chosen from 1 choice
[ 519.519971] usbcore: registered new interface driver usb-storage
[ 519.520978] usb-storage: device found at 4
[ 519.520982] usb-storage: waiting for device to settle before scanning
# now starting usb_modeswitch-1.0.5
> sudo ./usb_modeswitch
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found default devices (1)
Accessing device 004 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usbfs")
OK, driver "usbfs" detached
Could not get INQUIRY response (error -16)
Device description data (identification)
-------------------------
Manufacturer: USB Modem
Product: USB Modem
Serial No.: 1234567890ABCDEF
-------------------------
Looking for active driver ...
OK, driver found ("usbfs")
OK, driver "usbfs" detached
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x01 ...
Sending the message returned error -110. Trying to continue
-> Run lsusb to note any changes. Bye.
> dmesg|grep usb
...
[ 730.920638] usb 1-3: usbfs: process 27506 (usb_modeswitch) did not claim interface 0 before use
[ 730.933003] usb 1-3: usbfs: process 27548 (usb_modeswitch) did not claim interface 0 before use
[ 730.944984] usb 1-3: usbfs: process 27506 (usb_modeswitch) did not claim interface 0 before use
> lsusb
Bus 001 Device 004: ID 1c9e:f000
... unchanged ...
> ls /dev/ttyU*
ls: cannot access /dev/ttyU*: No such file or directory
> lsmod |grep usb
usb_storage 52544 0
usbserial 36232 0
btusb 11856 2
usbhid 38208 0
Does anybody have an idea what's the problem?
Thanks,
hornsby
Stick inserted while booting
Curiously, the modem *is* detected if the stick is already inserted while booting. This works only when /etc/modules contains:
usbserial vendor=0x1c9e product=0x9603
Then I can see
> ls /dev/ttyU*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2
and I can access the modem via /dev/ttyUSB1. However, I still cannot get connected, and to work this out it would be very helpful to be able to unplug and replug the thing...
Here is more data for the case of successful detection:
lsusb
...
Bus 001 Device 003: ID 1c9e:9603
lsmod|grep usb
usbserial 36232 3
btusb 11856 2
usbhid 38208 0
usb_storage 52544 0
dmesg|grep usb
[ 0.195285] usbcore: registered new interface driver usbfs
[ 0.195285] usbcore: registered new interface driver hub
[ 0.195285] usbcore: registered new device driver usb
[ 1.032099] usb usb1: configuration #1 chosen from 1 choice
[ 1.032417] usb usb2: configuration #1 chosen from 1 choice
[ 1.032668] usb usb3: configuration #1 chosen from 1 choice
[ 1.032925] usb usb4: configuration #1 chosen from 1 choice
[ 1.033177] usb usb5: configuration #1 chosen from 1 choice
[ 1.401501] usb 1-3: new high speed USB device using ehci_hcd and address 3
[ 1.565271] usb 1-3: configuration #1 chosen from 1 choice
[ 1.586510] usbcore: registered new interface driver usb-storage
[ 1.586756] usb-storage: device found at 3
[ 1.586759] usb-storage: waiting for device to settle before scanning
[ 1.932031] usb 2-2: new low speed USB device using uhci_hcd and address 2/dev/ttyUSB1
[ 2.112472] usb 2-2: configuration #1 chosen from 1 choice
[ 2.356032] usb 5-2: new full speed USB device using uhci_hcd and address 2
[ 2.368081] usbcore: registered new interface driver hiddev
[ 2.380605] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/input/input7
[ 2.380694] generic-usb 0003:046D:C00E.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:1d.0-2/input0
[ 2.380710] usbcore: registered new interface driver usbhid
[ 2.380713] usbhid: v2.6:USB HID core driver
[ 2.535223] usb 5-2: configuration #1 chosen from 1 choice
[ 6.585382] usb-storage: device scan complete
[ 10.477049] usbcore: registered new interface driver btusb
[ 14.674540] usbcore: registered new interface driver usbserial
[ 14.674573] usbserial_generic 1-3:1.0: generic converter detected
[ 14.674664] usb 1-3: generic converter now attached to ttyUSB0
[ 14.674675] usbserial_generic 1-3:1.1: generic converter detected
[ 14.674724] usb 1-3: generic converter now attached to ttyUSB1
[ 14.674733] usbserial_generic 1-3:1.2: generic converter detected
[ 14.674785] usb 1-3: generic converter now attached to ttyUSB2
[ 14.674811] usbcore: registered new interface driver usbserial_generic
[ 14.674813] usbserial: USB Serial Driver core
> grep 9603 /etc/udev/rules.d/usb_modeswitch.rules
...nothing found