After 3 months of trying, finally it is work.....the problem solve after changing the wrong code inside "
usb_modeswitch.conf"
Intoduction
"The main idea here is to put the usb device into modem mode using usb_modeswitch. At first, once plug in, it will show as a usb storage device (it does seems to be a storage device for windows drivers) and later by using usb_modeswitch, the storage device will switch into modem mode."
The CSL U1-TF is using these vendor IDs:
Storage mode:
vendor 0×1c9e
product 0×1001
Modem mode:
vendor 0×1c9e
product 0×9603
(product ID is same for same model of modem, but may vary if different modem)
Step by step guide:1=install
usb_modeswitch, libusb and also
wvdial using
synaptic package manager...(the easiest way ever)
2=Edit "
usb_modeswitch.conf"(located in /etc) and delete all data in "
usb_modeswitch.conf" then paste the following code. The code may vary for different model or brand of modem.
##########
# Settings for Micromax MMX 300G USB Modem
##########
DefaultVendor = 0x1c9e
DefaultProduct = 0xf000
TargetVendor = 0x1c9e
TargetProduct = 0x9603
MessageEndpoint=0x01
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
3= Add a [Dialer] section your
wvdial.conf file (located in /etc) to look like this:
[Dialer digi]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
New PPPD = yes
Baud = 912600
Idle Seconds = 0
Auto Reconnect = 1
Auto DNS = 1
Stupid Mode = 1
Compuserve = 0
Dial Command = ATD
Ask Password = 0
FlowControl = NOFLOW
Username = user
Password = pass
4= Type
sudo gedit /usr/sbin/initmodem.sh in
terminal and write down this code and save it.
#!/bin/sh
sudo usb_modeswitch
sleep 10
sudo modprobe usbserial vendor=0x1c9e product=0x9603
then, type chmod +x the initmodem.sh file.(or type
sudo nautilus, find the file click
properties and check
execute in
permission tab)
**
9603 is the product ID in modem mode
5=Finally, plug in your CSL modem and type
sudo /usr/sbin/initmodem.sh in the
terminal The output on the screen such as below:
ming@ming-laptop:~$ sudo /usr/sbin/initmodem.sh
* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions
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 002 ...
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
Received inquiry data (detailed identification)
-------------------------
Vendor String: USBModem
Product String: Disk
Revision String: 2.31
-------------------------
Device description data (identification)
-------------------------
Manufacturer: USB Modem
Product: USB Modem
Serial No.: 1234567890ABCDEF
-------------------------
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x01 ...
OK, message successfully sent
-> Run lsusb to note any changes. Bye.
To do double check: Type lsusb in terminal
ming@ming-laptop:~$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 1c9e:9603
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 09da:054f A4 Tech Co., Ltd
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubTo connect to the internet, just type
sudo wvdial digi and to disconnect, just press CTRL+C or kill the process.
Reference:
http://www.sifoo.net/v2/?p=146
http://www.shantanubhadoria.com/taxonomy/micromax
http://211.24.237.27/forums/viewtopic.php?f=9&t=517&p=3735&hilit=usb_modeswitch#p3735
and many more (just google usb_modeswitch, 0x9603, CSL on Ubuntu)