This is my configuration files which is edited by this all is for reference end all error are bellow after configuration files if any mistake found please infourm me I am waiting for replay and I am waiting to connect usb net end enjoy net in open suse linux
/etc/usb_modeswitch.d/230d:0007
Linktop LW272/LW273 (BSNL VISIONTEK )
DefaultVendor= 0x230d
DefaultProduct=0x0007
TargetClass=0xff
Configuration=3
CheckSuccess=20
/etc/usb_modeswitch.conf
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>” (and probably others)
EnableLogging=1
DefaultVendor= 0x230d
DefaultProduct= 0x0007
TargetVendor= 0x230d
TargetProduct= 0x0007
/etc/wvdial.conf
[Dialer bsnlnet]
Modem = /dev/ttyUSB0
Baud = 460800
Init1 = ATZ
Init2 = at+cgdcont=1,“ip”,“bsnlnet”
Init3 =
Area Code =
Phone = 99**1#
Username =gaurav
Password =gaurav
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 300
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1
Modem Type = Analog Modem
/etc/udev/rules.d/95-visiontek-udev.rules
SUBSYSTEM==“usb”, SYSFS{idProduct}==“product”, SYSFS{idVendor}==“vendor”,
RUN+="/sbin/modprobe usbserial vendor=0xproduct product=0xvendor"
So for your hardware (vendor=0x230d product=0x0007),
you could create a file called /etc/udev/rules.d/95-ZTE-MF636.rules with this line contained:
SUBSYSTEM=="usb", SYSFS{idProduct}=="0x0007", SYSFS{idVendor}=="0x230d", RUN+="/sbin/modprobe usbserial vendor=0x230d product=0x0007"
/lib/udev/rules.d/40-usb_modeswitch.rules
Part of usb-modeswitch-data, version 20101222
This file is intended for USB_ModeSwitch version >= 1.1.2
but will not break anything if used with versions >= 1.0.3
ACTION!=“add”, GOTO=“modeswitch_rules_end”
This adds a symlink “gsmmodem[n]” to ttyUSB ports with interrupt transfer;
will work only with wrapper from 1.1.4 and above (otherwise ignored)
KERNEL==“ttyUSB*”, ATTRS{bNumConfigurations}=="*", PROGRAM=“usb_modeswitch --symlink-name %p %s{idVendor} %s{idProduct} %E{PRODUCT}”, SYMLINK="%c"
SUBSYSTEM!=“usb”, GOTO=“modeswitch_rules_end”
This adds the device ID to the “option” driver after a warm boot
in cases when the device is yet unknown to the driver
ATTR{bInterfaceClass}==“ff”, ATTR{bInterfaceNumber}==“00”, ATTRS{bNumConfigurations}=="*", RUN+=“usb_modeswitch --driver-bind %p %s{idVendor} %s{idProduct} %E{PRODUCT}”
Most known install partitions are on interface 0, one on 5, one on 9
ATTRS{bInterfaceNumber}!=“0[059]”, GOTO=“modeswitch_rules_end”
only storage class devices are handled; negative
filtering here would exclude some quirky devices
ATTRS{bDeviceClass}==“08”, GOTO=“modeswitch_rules_begin”
ATTRS{bInterfaceClass}==“08”, GOTO=“modeswitch_rules_begin”
GOTO=“modeswitch_rules_end”
LABEL=“modeswitch_rules_begin”
Linktop LW272/LW273 (BSNL Teracom)
ATTRS{idVendor}==“230d”, ATTRS{idProduct}==“0001”, RUN+=“usb_modeswitch ‘%b/%k’”
Linktop LW272/LW273 (BSNL VISIONTEK )
ATTRS{idVendor}==“230d”, ATTRS{idProduct}==“0007”, RUN+=“usb_modeswitch ‘%b/%k’”
LABEL=“modeswitch_rules_end”
OUTPUT IN TERMINAL
rose:/home/king # usb_modeswitch -c /etc/usb_modeswitch.conf
Looking for target devices …
Found devices in target mode or class (1)
Looking for default devices …
Found devices in default mode, class or configuration (1)
Accessing device 053 on bus 001 …
Getting the current device configuration …
OK, got current device configuration (1)
Ambiguous Class/InterfaceClass: 0x02/0x08
Using endpoints 0x05 (out) and 0x85 (in)
Using endpoints 0x05 (out) and 0x85 (in)
Inquiring device details; driver will be detached …
Looking for active driver …
OK, driver found (“dummy”)
OK, driver “dummy” detached
SCSI inquiry data (for identification)
Vendor String: HSPAData
Model String: CD-ROM
Revision String: 0000
USB description data (for identification)
Manufacturer: HSPADataCard
Product: HSPADataCard
Serial No.: 8444311594054030
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.
(where can I give switching method? In which file ? )
==========================================================================
rose:/home/king # modprobe -v option
insmod /lib/modules/2.6.37.1-1.2-desktop/kernel/drivers/usb/serial/usb_wwan.ko
insmod /lib/modules/2.6.37.1-1.2-desktop/kernel/drivers/usb/serial/option.ko
=============================================================================
rose:~ # usb_modeswitch
Usage: usb_modeswitch -hvpVPmMrdHn] -c filename]
-h, --help this help
-e, --version print version information and exit
-v, --default-vendor NUM vendor ID of original mode (mandatory)
-p, --default-product NUM product ID of original mode (mandatory)
-V, --target-vendor NUM target mode vendor ID (optional)
-P, --target-product NUM target mode product ID (optional)
-C, --target-class NUM target mode device class (optional)
-m, --message-endpoint NUM direct the message transfer there (optional)
-M, --message-content <msg> message to send (hex number as string)
-2 <msg>, -3 <msg> additional messages to send (-n recommended)
-n, --need-response read response to the message transfer (CSW)
-r, --response-endpoint NUM read response from there (optional)
-d, --detach-only detach the active driver, no further action
-H, --huawei-mode apply a special procedure
-S, --sierra-mode apply a special procedure
-O, --sony-mode apply a special procedure
-G, --gct-mode apply a special procedure
-T, --kobil-mode apply a special procedure
-R, --reset-usb reset the device after all other actions
-Q, --quiet don’t show progress or error messages
-W, --verbose print all settings and debug output
-D, --sysmode specific result and syslog message
-s, --success NUM check switching result after NUM secs
-I, --no-inquire do not get SCSI attributes (default on)
-c, --config-file <filename> load configuration from file
-i, --interface NUM select initial USB interface (default 0)
-u, --configuration NUM select USB configuration
-a, --altsetting NUM select alternative USB interface setting
- usb_modeswitch: handle USB devices with multiple modes
- Version 1.1.6 (C) Josua Dietze 2010
- Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
rose:~ # modprobe -v option
rose:~ # modprobe usbserial vendor=0x230d product=0x0007
rose:~ # dmesg | tail -n10
38.414353] powernow: This module only works with AMD K7 CPUs
39.110143] eth0: link down
39.111325] ADDRCONF(NETDEV_UP): eth0: link is not ready
44.220938] start_kdeinit (1937): /proc/1937/oom_adj is deprecated, please use /proc/1937/oom_score_adj instead.
47.460922] EXT4-fs (sda8): re-mounted. Opts: acl,user_xattr,commit=0
47.477173] EXT4-fs (sda9): re-mounted. Opts: acl,user_xattr,commit=0
67.118082] usb 1-5: reset high speed USB device using ehci_hcd and address 3
171.788523] USB Serial support registered for GSM modem (1-port)
171.789151] usbcore: registered new interface driver option
171.789155] option: v0.7.2:USB Driver for GSM modems
rose:~ # echo “230d 0007” > /sys/bus/usb-serial/drivers/option1/new_id
rose:~ # wvdial bsnlnet
→ WvDial: Internet dialer version 1.60
→ Cannot get information for serial port.
→ Initializing modem.
→ Sending: ATZ
→ Sending: ATQ0
→ Re-Sending: ATZ
→ Modem not responding.
rose:~ #
==============----------------===========================----------------------=========================
rose:~ # modprobe -v option
rose:~ # echo “230d 0007” > /sys/bus/usb-serial/drivers/option1/new_id
rose:~ # dmesg | tail -n10
558.923179] sr 9:0:0:0: Attached scsi generic sg3 type 5
558.924297] scsi 9:0:0:1: Direct-Access HSPAData SD Card 0000 PQ: 0 ANSI: 0
558.924533] sd 9:0:0:1: Attached scsi generic sg4 type 0
558.926528] sd 9:0:0:1: [sdc] Attached SCSI removable disk
567.960395] EXT4-fs (sda8): re-mounted. Opts: acl,user_xattr,commit=0
567.964453] EXT4-fs (sda9): re-mounted. Opts: acl,user_xattr,commit=0
568.175179] eth0: link down
568.176964] ADDRCONF(NETDEV_UP): eth0: link is not ready
1297.750515] option 1-3:1.0: GSM modem (1-port) converter detected
1297.755169] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB0
rose:~ # wvdial bsnlnet
→ WvDial: Internet dialer version 1.60
→ Cannot get information for serial port.
→ Initializing modem.
→ Sending: ATZ
→ Sending: ATQ0
→ Re-Sending: ATZ
→ Modem not responding.
rose:~ #
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@22
usb_modeswitch
usb_modeswitch -c /etc/usb_modeswitch.conf
usb_modeswitch --i /dev/ttyUSB0
wvdial
wvdial bsnlnet
wvdial /etc/wvdial.conf
usb_modeswitch
modprobe -v option
echo “230d 0007” > /sys/bus/usb-serial/drivers/option1/new_id
modprobe usbserial vendor=0x230d product=0x0007
dmesg | tail -n10
ls /dev/sr*
ls /dev/sr0
ls -l /dev/sr*
================================================================================================
rose:~ # ls /dev/sr*
/dev/sr0 /dev/sr1
/dev/sr0 is cdrom
/dev/sr1 is usb modem device
rose:~ # lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader
Bus 001 Device 003: ID 174f:5212 Syntek USB 2.0 UVC PC Camera
Bus 001 Device 007: ID 230d:0007
I check command as your suggestion & I see this output
rose:~ # ls /dev/sr*
/dev/sr0 /dev/sr1
rose:~ # eject /dev/sr0
rose:~ # eject /dev/sr1
rose:~ # ls /dev/sr*
/dev/sr0 /dev/sr1
rose:~ # eject /dev/sr1
rose:~ # ls /dev/sr*
/dev/sr0 /dev/sr1
rose:~ # eject /dev/sr1
rose:~ # ls /dev/sr*
/dev/sr0 /dev/sr1
I cant eject but when I run some modem switch command it automatic eject & switch to /dev/ttyUSB0
rose:~ # lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader
Bus 001 Device 003: ID 174f:5212 Syntek USB 2.0 UVC PC Camera
Bus 001 Device 007: ID 230d:0007
rose:~ # ls /dev/sr*
/dev/sr0