Skip to main content

Tata photon Huawei and MTS ZTE Blaze in Ubuntu 13.04 Wheezy

Before you start

Ensure that you have installed wvdial, usbmodeswitch and usbmodeswitch_data

# dpkg -l | grep wvdial
# dpkg -l | grep modeswitch

Install it from your ISO or any other source. Be careful about the proper version is installed.

Be sure that USB driver modules are loaded.

# lsmod | grep usb

This should show that USB Serial driver is loaded
# usbserial              36911  2 option,usb_wwan

Load it if not.
# modprobe usbserial

Tata photon+ Huawei EC1561 Manufacturer ID 12d1 Product ID 1446

$ sudo su -

Connect your dongle

# lsusb
This should show the device as

Bus 003 Device 009: ID 12d1:140b Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card

# modprobe usbserial vendor=0x12d1 product=0x1446
# usb_modeswitch -I -W -c /etc/usb_modeswitch.d/12d1\:1446

Run wvdialconf. Then make it to look like the one below. This is a simple configuration. I will show you how to add both Tata Huawei EC1561 and MTS ZTE together at the bottom of this document.

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = internet
Init1 = ATZ
Password = internet
Modem = /dev/ttyUSB0
Baud = 9600

Now dial to connect...

# wvdial

That's it - you are now connected to the internet. You can create the Connection in GUI through System -> Preference -> Network connection

The file /etc/usb_modeswitch.d/12d1\:1446 may not exist by default depending on your USB ModesSwitch pkg. Create it with the entries as shown below.

DefaultVendor=  0x12d1
DefaultProduct= 0x1446
TargetVendor=   0x12d1
TargetProduct=  0x1446 
TargetClass=    
TargetProductList="1001,1406,140b,140c,1412,141b,14ac"

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
MessageEndpoint=  not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0

Create a file called /etc/modprobe.d/usb-storage.conf with the following entries

options usb-storage delay_use=3

MTS Blaze ZTE Manufacturer ID 19d2 Product ID fffe

$ sudo su -

Connect your dongle

# lsusb
This should show something like

Bus 003 Device 009: ID 19d2:fffe ZTE

# modprobe usbserial vendor=0x19d2 product=0xfffe
# usb_modeswitch -v 0x19d2 -p 0xfffe -H -W



Run wvdialconf. Then make it to look like the one below. This is a simple configuration. I will show you how to add both Tata Huawei EC1561 and MTS ZTE together at the bottom of this document.

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = internet@internet.mtsindia.in
Init1 = ATZ
Password = mts
Modem = /dev/ttyUSB0
Baud = 115200

Now dial and connect to Internet

# wvdial

Here is the WVDIAL config for both the devices to work together

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Modem = /dev/ttyUSB0
Baud = 9600

[Dialer mts]
Phone = #777
Modem = /dev/ttyUSB0
Password = mts
Username = internet@internet.mtsindia.in
Baud = 115200

[Dialer tata]
Phone = #777
Modem = /dev/ttyUSB0
Password = internet
Username = internet
Baud = 9600

Now you can dial both the Modems

$ sudo wvdial tata

$ sudo wvdial mts

Comments

Popular posts from this blog

Check remote UDP connectivity from Linux

Hi there, You all know how to check TCP port connectivity from a Linux or UNIX machine to a remote machine using telnet as per th example below $ telnet 127.0.0.1 25 but we can't adopt TELNET to check UDP connectivity. Linux and most of the UNIXes come with a network layer utility called nc (abbreviation for netcat) which is very useful to check UDP connectivity and to explore a lot with both TCP and UDP. An example is shown below # nc -v -u -z -w 3 172.24.16.131 123 Connection to 172.24.16.131 123 port [udp/ntp] succeeded!

The best putty package available

Bored of Black screened Task bar filling putty? Issues with porting Saved sessions from machine to machine? Do you like tabbed SSH sessions? Start using portaputty instead of normal putty and link it with puttycm . Puttycm supports sessions to be saved in its own Database files. You can use the Putty sessions you have saved already right inside putty. You can have any number of databases which allow you to arrange Remote servers in folders and convenient namings. I personally recommend creating Database with puttycm rather than using the sessions saved in putty which doesn't offer any option to create folders and saving sessions under that directory tree. You can even save username/password to get it logged automatically and there is an option to pass commands to be run soon after login. I can't recommend this since some bug was found with these options. Portaputty is a variant of putty which stores all the Configuration data in text files instead of MS Window

PING.sh

#!/usr/bin/env bash ## Ping all machines in a Network PING="$(which ping) -c 1 -W 1" echo "Enter Subnet(eg:192.168.0)" read Subnet echo "Do you want to PING the entire network or a RANGE of IPs ? Enter your choice" echo 1. Ping Entire Network echo 2. Ping a RANGE read choice if [ $choice = 1 ]; then { echo Pinging..... for((i=1;i<255;i++)); do ${PING} ${Subnet}.${i} > /dev/null 2> /dev/null if [ $? -eq 0 ]; then echo -e "${Subnet}.${i} is up" fi done } fi if [ $choice = 2 ]; then { echo Enter the Starting IP of Range read a echo Enter the Last IP of Range read b echo Pinging..... for((i=$a;i<$b;i++)); do ${PING} ${Subnet}.${i} > /dev/null 2> /dev/null if [ $? -eq 0 ]; then echo -e "${Subnet}.${i} is up" fi done } fi exit 0