Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
hornsby
Posts: 4
Joined: 05 Nov 2009, 23:27

XS Stick W14 by 4g-systems not working

Post by hornsby » 06 Nov 2009, 11:31

Hello,
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"
...which should be ok according to this post

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

valyR
Posts: 12
Joined: 29 Oct 2009, 00:36
Contact:

Post by valyR » 06 Nov 2009, 12:57

see the ADU topic - maybe you should remove too the file

modem-modeswitch

in mandriva is located in /lib/udev


8)

hornsby
Posts: 4
Joined: 05 Nov 2009, 23:27

Post by hornsby » 06 Nov 2009, 16:13

valyR wrote: maybe you should remove too the file
modem-modeswitch
Hi valyR,
I removed /lib/ubev/modem-modeswitch, but the behavior is unchanged (after booting)...
cheers, hornsby.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 06 Nov 2009, 20:47

It's strange to have "usbfs" bound to a storage device as a driver.

Do you have an "usb-storage" module in your system?

Can you post a "lsusb -v -d 1c9e:" after plugging in, without any switching attempts ?

DeviceClass should be 8 or 0, the first InterfaceClass should be 8.

hornsby
Posts: 4
Joined: 05 Nov 2009, 23:27

Post by hornsby » 06 Nov 2009, 21:35

Here's the data..

prior to plugging in:

> lsmod|grep usb
usbserial 36232 0
btusb 11856 2
usbhid 38208 0

after plugging in, w/o switching attempt:

> lsmod|grep usb
usb_storage 52544 0
usbserial 36232 0
btusb 11856 2
usbhid 38208 0

> sudo lsusb -v -d 1c9e:

Code: Select all

Bus 001 Device 004: ID 1c9e:f000  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1c9e 
  idProduct          0xf000 
  bcdDevice            0.00
  iManufacturer           3 USB Modem
  iProduct                2 USB Modem
  iSerial                 4 1234567890ABCDEF
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          1 Modem Configuration
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)
I don't know where this usb_storage comes from after plugging in, but I found
> grep usb_storage /lib/modules/2.6.31-14-generic/*|wc
346 1040 35286

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 07 Nov 2009, 00:01

Hmm, looks O.K.

And storage is activated too.

What does "dmesg" say about the storage device? Any errors after plugging? Or is it bound correctly and made available as a "/dev/sd*" device?

hornsby
Posts: 4
Joined: 05 Nov 2009, 23:27

Post by hornsby » 07 Nov 2009, 18:09

Ok, this is now solved.

I made a "complete removal" of the debian package usb-modeswitch, which I had installed earlier. Now it switches as it should under version 1.0.5

Previously I had just executed ./usb_modeswitch-1.0.5/usb_modeswitch
with the older package still installed, and there must have been some bad interference (which I really don't understand).

For reference, here again my usb_modeswitch.conf:

Code: Select all

# /etc/usb_modeswitch.conf
# for  "XS Stick W14" by 4g-systems 
DefaultVendor=  0x1c9e 
DefaultProduct= 0xf000
TargetVendor=   0x1c9e
TargetProduct=  0x9603
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
I get /dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3

NetworkManager does not work (yet), but I can connect using wvdial. The crucial point is not to use /dev/ttyUSB1 as suggested by wvdialconf, but to use /dev/ttyUSB2.

Josh,
thanks a lot for your help and for this great program!
hornsby

DirkAurich
Posts: 12
Joined: 02 Jan 2024, 07:24

Re: XS Stick W14 by 4g-systems not working

Post by DirkAurich » 12 May 2024, 08:47

Your writing always leaves eleanor dc me feeling inspired and motivated.

Post Reply