Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
AdminFred
Posts: 2
Joined: 29 Sep 2010, 09:55
Location: Weinheim, Germany

mobilcom debitel XS Stick TV doesn't switch

Post by AdminFred » 29 Sep 2010, 10:31

hello

I have installed on ubuntu 10.04 the actual usb_modeswitch package.

When I put the stick from 4G-Systems.com in the notebook, the software doesn't switch automatically from usb memory to usbserial.

Code: Select all

user@lifebook:~$ uname -a
Linux lifebook 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux

user@lifebook:~$ lsusb | grep f000
Bus 001 Device 002: ID 1c9e:f000  

user@lifebook:~$ lsmod | grep usb
usb_storage            39553  1 
The file 1c9e:f000 under /etc/usb_modeswitch.d is modified for the new target:

Code: Select all

######################################################## 
# MobiData MBD-200HU and others

DefaultVendor= 0x1c9e
DefaultProduct=0xf000

TargetVendor=  0x1c9e
TargetProductList="9000,9603,9605,9a00"

CheckSuccess=20

MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
 
Then I need to use the command:

Code: Select all

user@lifebook:~$ sudo usb_modeswitch -c /etc/usb_modeswitch.d/1c9e:f000 -W
Warning: TargetProductList overrides TargetProduct!
 * usb_modeswitch: handle USB devices with multiple modes
 * Version 1.1.4 (C) Josua Dietze 2010
 * Based on libusb0 (0.1.12 and above)

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x1c9e
DefaultProduct= 0xf000
TargetVendor=   0x1c9e
TargetProduct=  not set
TargetClass=    not set
TargetProductList="9000,9603,9605,9a00"

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint=  not set
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check enabled, max. wait time 20 seconds
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device

Looking for target devices ...
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1c9e:f000
   found matching vendor ID
  searching devices, found USB ID 1d6b:0002
 No devices in target mode or class found
Looking for default devices ...
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1c9e:f000
   found matching vendor ID
   found matching product ID
   adding device
  searching devices, found USB ID 1d6b:0002
 Found devices in default mode or class (1)
Accessing device 004 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: USBModem
   Model String: Disk            
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: USB Modem
     Product: USB Modem
  Serial No.: 1234567890ABCDEF
-------------------------
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01

Checking for mode switch (max. 20 times, once per second) ...
 Waiting for original device to vanish ...
 Waiting for original device to vanish ...
USB error: could not claim interface 0: No such device
 Original device can't be accessed anymore. Good.
 Searching for target devices ...
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 005 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1c9e:9a00
   found matching vendor ID
   found matching product ID from list
  searching devices, found USB ID 1d6b:0002

Found target device 005 on bus 001

Target device description data
-------------------------
Manufacturer: USB Modem
     Product: USB Modem
  Serial No.: 1234567890ABCDEF
-------------------------
 Found correct target device

Mode switch succeeded. Bye.
Then the stick has switched and no icon for the memory is on the desktop.

Code: Select all

user@lifebook:~$ lsusb | grep 1c9e
Bus 001 Device 005: ID 1c9e:9a00  
user@lifebook:~$ lsmod | grep usb
usb_storage            39553  0 
1) Why I have to use switch manually?

2) Why I have to use "sudo modprobe usbserial vendor=0x1c9e product=0x9a00" to get an usbserial device?

Any Ideas?

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

Re: mobilcom debitel XS Stick TV doesn't switch

Post by Josh » 05 Oct 2010, 21:04

AdminFred wrote:1) Why I have to use switch manually?

2) Why I have to use "sudo modprobe usbserial vendor=0x1c9e product=0x9a00" to get an usbserial device?
Please activate logging as indicated on the main doc page, paragraph "Troubleshooting". There should be hints why the automatic way is failing.


AdminFred
Posts: 2
Joined: 29 Sep 2010, 09:55
Location: Weinheim, Germany

Post by AdminFred » 06 Oct 2010, 16:27

This feature doesn't work. I use the option

Code: Select all

EnableLogging=1
but there aren't any files like /var/log/usb_modeswitch_<device>. Yes, I have reboot the computer before using it.


I have recognized if i start the computer with the stick plugged in, then it will switch from product 0xf000 to 0x9a00. But if I put the usb stick into the computer at runtime, no switch will be done.

Meanwhile it works only with this workaround:

File 40-usb_modeswitch.rules:

Code: Select all

...
# MobiData MBD-200HU and others
# ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="f000", RUN+="usb_modeswitch '%b/%k'"
...
# Added at end of file:
# 4G XS Stick TV
SUBSYSTEM=="usb", ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="f000", RUN+="/bin/sleep 5"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="f000", RUN+="/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.d/1c9e:f000"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="f000", RUN+="/bin/sleep 10"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9a00", RUN+="/sbin/modprobe usbserial vendor=0x1c9e product=0x9a00"


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

Post by Josh » 06 Oct 2010, 18:43

Check if you can run "/usr/sbin/usb_modeswitch_dispatcher". It should generate a very short log in /var/log.

If it doesn't or if you get an error, check if you have the "tcl" package installed.

Post Reply