Activation Codes and Methods, Hardware Details, Sniffing
-
utkarsh009
- Posts: 21
- Joined: 18 May 2011, 12:03
Post
by utkarsh009 » 18 May 2011, 12:18
here is my configuration:
# Configuration for the usb_modeswitch package, a mode switching tool for
# USB devices providing multiple states or modes
#
# This file is evaluated by the wrapper script "usb_modeswitch_dispatcher"
# in /usr/sbin
# To enable an option, set it to "1", "yes" or "true" (case doesn't matter)
# Everything else counts as "disable"
# Disable automatic mode switching globally (e.g. to access the original
# install storage)
DisableSwitching=0
# Enable logging (results in a extensive report file in /var/log, named
# "usb_modeswitch_<interface-name>"
EnableLogging=0
########################################################
# MobiData MBD-200HU and others
DefaultVendor= 0x1c9e
DefaultProduct=0xf000
TargetVendor= 0x1c9e
TargetProduct= 0x9605
CheckSuccess=20
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
and here's the output:
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found devices in default mode or class (1)
Accessing device 005 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 ...
No driver found. Either detached before or never attached
and here the process stops (does nothing)
can you guys suggest how to correct it?
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 18 May 2011, 18:57
Please specify your environment in more detail:
Which usb_modeswitch version ? Data and program package installed ?
Which kernel version ? Which Linux distribution ?
Furthermore, please post the output of "dmesg" a little while after plugging the modem in, without any manual switching attempts.
Note: only the last 30-40 lines of "dmesg" text, please !!
-
utkarsh009
- Posts: 21
- Joined: 18 May 2011, 12:03
Post
by utkarsh009 » 18 May 2011, 20:08
here is the dmesg result:
[13669.212130] usb 1-2: new high speed USB device using ehci_hcd and address 9
[13669.357435] usb 1-2: New USB device found, idVendor=1c9e, idProduct=f000
[13669.357452] usb 1-2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[13669.357465] usb 1-2: Product: USB Modem
[13669.357474] usb 1-2: Manufacturer: USB Modem
[13669.357484] usb 1-2: SerialNumber: 000000000000
[13669.357784] usb 1-2: configuration #1 chosen from 1 choice
[13669.362030] scsi9 : SCSI emulation for USB Mass Storage devices
[13669.362340] usb-storage: device found at 9
[13669.362346] usb-storage: waiting for device to settle before scanning
i am using crunchbang linux (statler) with kernel 2.6.32-5-686.
the usb_modeswitch version is 201008
-
utkarsh009
- Posts: 21
- Joined: 18 May 2011, 12:03
Post
by utkarsh009 » 18 May 2011, 20:16
hey! whatever i typed didn't display fully in my previous post. here's the full info:
usb_modeswitch version is : 20100826-1+squeeze0
but the same result was obtained by me when i used ubuntu with kernel 2.6.38-8 and the latest version of usb-modeswitch available in its repositories.
PS: what do you mean by data and program packages installed?
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 19 May 2011, 09:09
There is no usb_modeswitch version 20100826. It may be the version of the data package. Regarding the two different packages, you might want to have a look at the main documentation page of usb_modeswitch (see link in the top nav bar).
Usually, distributions reflect those packages. So you have to install "usb-modeswitch" and "usb-modeswitch-data".
I have truncated your dmesg output, most of it is not of any interest. That's why I said: "the last 30-40 lines".
-
utkarsh009
- Posts: 21
- Joined: 18 May 2011, 12:03
Post
by utkarsh009 » 19 May 2011, 13:32
ah! yes my fault. the usb_modeswitch version is 1.1.4-2
-
utkarsh009
- Posts: 21
- Joined: 18 May 2011, 12:03
Post
by utkarsh009 » 19 May 2011, 14:28
btw, i forgot to mention that sakis3g works perfectly with my device. although takes a lot of time to switch the modem(approx. 30-40 seconds). well i wanted to automate the modem mode or somehow make it the default mode of the modem. i never use the usb storage device mode. can you suggest how can i permanently or automatically switch to modem mode.
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 19 May 2011, 20:12
The whole "framework" of usb_modeswitch is set up for the main purpose of making the switching process fully automatic. You need both packages, tcl and - most important - udev (which every desktop distribution should have).
Did I see that right that you put your device configuration into /etc/usb_modeswitch.conf ? This would be totally wrong.
-
utkarsh009
- Posts: 21
- Joined: 18 May 2011, 12:03
Post
by utkarsh009 » 20 May 2011, 08:51
yah i install the tcl package version 8.4.16-2 and i have the udev version164-3. and yes i put my configuration in /etc/usb_modeswitch.conf. what is wrong about it? i don't know how to set up udev rules or something like that. can you guide me step by step so that i can switch my modem to modem mode.
-
utkarsh009
- Posts: 21
- Joined: 18 May 2011, 12:03
Post
by utkarsh009 » 20 May 2011, 11:15
now i have modified (the command of) sakis3g such that it connects to the internet automatically on double clicking it. now on one problem remains (the one i said earlier). the modem does not switch if i plug it in after booting but switches if i plug it in before booting. kindly suggest a method so that the device switches when i plug it after booting.
P.S.: I was also able to connect through gnome-ppp and wvdial (NM APPLET doesnt work) but Sakis3g connected the fastest (less than 10 sec.).
-
Josh
- Site Admin
- Posts: 6570
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 06 Jun 2011, 19:52
This is hard to say with the information you give. Did you enable usb_modeswitch logging? See the main doc page, paragraph "Troubleshooting" for details.