LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > sumeet inani
User Name
Password

Notices

Rate this Entry

tata photon whiz on debian

Posted 05-23-2011 at 09:21 PM by sumeet inani
Updated 05-24-2011 at 10:33 PM by sumeet inani (more systematic)

I am using debian 6.0.0
First I installed wvdial , gnome-ppp involving following files
Code:
gnome-ppp_0.3.23-1_i386.deb	
libwvstreams4.6-base_4.6.1-1_i386.deb	 
libpcap0.8_1.1.1-2_i386.deb	
libwvstreams4.6-extras_4.6.1-1_i386.deb  
ppp_2.4.5-4_i386.deb
libuniconf4.6_4.6.1-1_i386.deb					 wvdial_1.60.4_i386.deb
Now when I inserted USB modem
Code:
dmesg
[ 5335.428041] usb 3-2: new full speed USB device using uhci_hcd and address 5
[ 5335.648659] usb 3-2: New USB device found, idVendor=19d2, idProduct=fff5
[ 5335.648667] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5335.648673] usb 3-2: Product: USB Storage
[ 5335.648677] usb 3-2: Manufacturer: ZTE, Incorporated
[ 5335.648681] usb 3-2: SerialNumber: 000000000002
[ 5335.650294] usb 3-2: configuration #1 chosen from 1 choice
[ 5335.653628] scsi5 : SCSI emulation for USB Mass Storage devices
[ 5335.654158] usb-storage: device found at 5
[ 5335.654162] usb-storage: waiting for device to settle before scanning
[ 5336.588087] usb 3-2: USB disconnect, address 5
[ 5336.828046] usb 3-2: new full speed USB device using uhci_hcd and address 6
[ 5337.047690] usb 3-2: New USB device found, idVendor=19d2, idProduct=fffe
[ 5337.047699] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5337.047705] usb 3-2: Product: ZTE CDMA Tech
[ 5337.047709] usb 3-2: Manufacturer: ZTE, Incorporated
[ 5337.050206] usb 3-2: configuration #1 chosen from 1 choice
[ 5337.056136] option 3-2:1.0: GSM modem (1-port) converter detected
[ 5337.056544] usb 3-2: GSM modem (1-port) converter now attached to ttyUSB0
[ 5337.058993] option 3-2:1.1: GSM modem (1-port) converter detected
[ 5337.059478] usb 3-2: GSM modem (1-port) converter now attached to ttyUSB1
[ 5337.062312] option 3-2:1.2: GSM modem (1-port) converter detected
[ 5337.062953] usb 3-2: GSM modem (1-port) converter now attached to ttyUSB2
[ 5337.065216] option 3-2:1.3: GSM modem (1-port) converter detected
[ 5337.065803] usb 3-2: GSM modem (1-port) converter now attached to ttyUSB3
lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub #empty
Bus 003 Device 006: ID 19d2:fffe ONDA Communication S.p.A.  # USB modem
Bus 003 Device 002: ID 04f3:0232 Elan Microelectronics Corp. #optical mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub # empty
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub # empty
Bus 001 Device 006: ID 0781:5567 SanDisk Corp. Cruszer Blade # 2GB USB stick
Bus 001 Device 003: ID 0bc2:5071 Seagate RSS LLC  # 1TB USB hdd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub # empty
Configuring
Code:
# wvdialconf 
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2   S3   
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: QUALCOMM INCORPORATED
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
Edit /etc/wvdial.conf to
Code:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = internet
Password = internet
Baud = 9600
Run
Code:
#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
--> Carrier detected.  Waiting for prompt.
~[7f]}#@!}!}!} }9}"}&} } } } }#}%B#}%}%}&o~s}1}'}"}(}"u[1e]~
--> PPP negotiation detected.
--> Starting pppd at Tue May 24 08:41:18 2011
--> Pid of pppd: 2017
--> Using interface ppp0
--> pppd: (��[08]@��[08]
--> pppd: (��[08]@��[08]
--> pppd: (��[08]@��[08]
--> pppd: (��[08]@��[08]
--> local  IP address 121.245.91.163
--> pppd: (��[08]@��[08]
--> remote IP address 172.29.242.57
--> pppd: (��[08]@��[08]
--> primary   DNS address 121.242.190.180
--> pppd: (��[08]@��[08]
--> secondary DNS address 4.2.2.2
--> pppd: (��[08]@��[08]
here is proof
Code:
ping http://www.google.com

PING http://www.l.google.com (209.85.231.104) 56(84) bytes of data.
64 bytes from maa03s01-in-f104.1e100.net (209.85.231.104): icmp_req=1 ttl=56 time=379 ms
64 bytes from maa03s01-in-f104.1e100.net (209.85.231.104): icmp_req=2 ttl=56 time=358 ms
64 bytes from maa03s01-in-f104.1e100.net (209.85.231.104): icmp_req=3 ttl=56 time=377 ms
^C64 bytes from maa03s01-in-f104.1e100.net (209.85.231.104): icmp_req=4 ttl=56 time=356 ms

--- http://www.l.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 356.784/367.967/379.351/10.485 ms
Posted in Uncategorized
Views 751 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 01:52 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration