Place for novice C programmers to get solution for there programming enigmas
Monday, October 26, 2009
How to enable TATA Photon whiz on Ubuntu 9.04/Fedora 11
For all those who are using TATA Photon whiz (Hauwei -EC121 or others) these is small - "How to for Ubuntu 9.04 Jaunty Jackalope & Fedora 11" ,which by default can't Plug n play (atleast for me on Ubuntu :))even with Network Manager Applet -->Mobile broadband --> Country = India --> Provider -->Tata indicom ( Plug2Surf) -->Uname: internet,Password=internet,Ph =#777 ( As its CDMA).
# Ubuntu 9.04 Photon Whiz set up
1)By default Ubuntu 9.04 doesn't have wvdial ,so you can install it via #Synaptic Package Manager -->search for wvdial
---OR--
Insert original Ubuntu Cd
Go to System->Administration->software sources. add cd as a source and close . It will update itself, Then on terminal type,
sudo apt-get install wvdial .
2) Type lsusb command and see what it gives (for me below was result)
binnishah@google:~$ lsusb
Bus 001 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 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 045e:00a4 Microsoft Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 12d1:1411 Huawei Technologies Co., Ltd. ---------> ( Model #,vendor# & product# to trace for modprobe just in case your OS can't catch it plug n play)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
3)I have Huawei Mobile connect whose model # is EC121 and vendor = 12d1 & product=1411
next,
modprobe usbserial vendor=0xAAAA product=0xBBBB ,
Where AAAA is 12d1 and BBBB is 1411 in my case.
4)Open terminal and give command ( pl.give these while inserting USB photon drive in lap/Server)
sudo wvdialconf /etc/wvdial.conf ---> (These will detect the modem and install it for internet connection by inserting appropriate modem configuration into /etc/wvdial.conf)
** Pl.dont forget sudo or else you will be trapped into permission issues of /usr/sbin/pppd & chap-secrets & pap-secrets permissions and worse would be wvdial.conf wont get Baud speed rate self detected ,neither exact location of modem would be traced
5) Open wvdial.conf in /etc with :-
sudo vi /etc/wvdial.conf ,it has some entries by default add some new & match it as belows:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CRM=1
Stupid Mode = 1
New PPPD = Yes
Modem Type = USB Modem
Phone = #777
ISDN = 0
Password = internet ---> Your ph number of tata/password
Username = internet --> Your uname /#
Modem = /dev/ttyUSB0
Baud = 9600 -->Baud rate would be decided by 4rth command and written automatically into wvdial.conf script
Now save & exit vi,
6)type sudo wvdial
It may give you something like these:--
binnishah@google:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT 153600
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sun Oct 18 17:47:48 2009
--> Pid of pppd: 13130
--> Using interface ppp0
--> local IP address 121.245.189.171
--> remote IP address 172.23.119.14
--> primary DNS address 202.54.29.5
--> secondary DNS address 202.54.10.2
^CCaught signal 2: Attempting to exit gracefully...
--> Terminating on signal 15
--> Connect time 5.1 minutes.
--> Disconnecting at Sun Oct 18 17:52:50 2009
7)Command tail -f /var/log/messages --> Just immediately aft.connection gives following:
binnishah@google:~$ tail -f /var/log/messages
Oct 18 17:47:48 google pppd[13130]: Warning - ***
Oct 18 17:47:49 google pppd[13130]: CHAP authentication succeeded
Oct 18 17:47:49 google pppd[13130]: CHAP authentication succeeded
Oct 18 17:47:49 google pppd[13130]: local IP address 121.245.189.171
Oct 18 17:47:49 google pppd[13130]: remote IP address 172.23.119.14
Oct 18 17:47:49 google pppd[13130]: primary DNS address 202.54.29.5
Oct 18 17:47:49 google pppd[13130]: secondary DNS address 202.54.10.2
Oct 18 17:52:50 google pppd[13130]: Terminating on signal 15
Oct 18 17:52:50 google pppd[13130]: Connect time 5.1 minutes.
Oct 18 17:52:50 google pppd[13130]: Sent 158772 bytes, received 741237 bytes.
8)If you dont want to fall in hassles of pwd ( I wouldn't recommend to do so ,though)
sudo vi /etc/sudoers
# User privilege specification
username machine_name = NOPASSWD: /usr/bin/wvdial
So next time when you give wvdial you dont need to type in password
*For Fedora-11 - TATA Photon Whiz :- ==========================
It came to me as surprise that Fed-11 took it in plug n play ie:- just some tweak with Network manager applet and I was sorted out with live n kicking
tata photon whiz USB Mobile broadband
1)Open Network manager applet
2)In that,there's option of --> Mobile Broadband -->Add ( By default you will have Huawei Technologies or your preferable qualcom or whatever) -->Select it -->Forward -->Country - India -->Forward --> Select Tata Indicom(Plug2Surf) if you have photon whiz -->Forward ->Commit changes by pressing apply
3)In Popup of Editing tata Indicom
Add your username & password
and simply press apply
4)Left click Network manager applet and you will have option of Tata Plug2surf ,select it and you are all set
Hope that helps !!!
*Image courtesy
Subscribe to:
Posts (Atom)