Ultimately after several tests I successfully configured PTCL EvDO PCMCIA on my laptop with gentoo linux.

Evolution-Data Optimized (EVDO) is a wireless broadband service offered by PTCL and worldcall.
Following is how i was able to configure PTCL EvDO PCMCIA adapter.
insite ~ # uname -a
Linux insite 2.6.28-gentoo #1 Fri Jan 9 09:49:32 PKT 2009 i686 Intel(R)
Pentium(R) M processor 1400MHz GenuineIntel GNU/Linux
Step:1 insert EvDO adapter in PCMCIA slot
insite ~ # tail -f /var/log/message
Mar 13 01:58:07 insite kernel: [ 1307.676129] pcmcia_socket pcmcia_socket0: pccard: CardBus card inserted into slot 0
Mar 13 01:58:07 insite kernel: [ 1307.676252] pci 0000:03:00.0: PME# supported from D0 D1 D2 D3hot
Mar 13 01:58:07 insite kernel: [ 1307.676262] pci 0000:03:00.0: PME# disabled
Mar 13 01:58:07 insite kernel: [ 1307.676377] pci 0000:03:00.1: PME# supported from D0 D1 D2 D3hot
Mar 13 01:58:07 insite kernel: [ 1307.676387] pci 0000:03:00.1: PME# disabled
Mar 13 01:58:07 insite kernel: [ 1307.692582] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
Mar 13 01:58:07 insite kernel: [ 1307.692634] ohci_hcd 0000:03:00.0: enabling device (0000 -> 0002)
Mar 13 01:58:07 insite kernel: [ 1307.692655] ohci_hcd 0000:03:00.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, low) -> IRQ 11
Mar 13 01:58:07 insite kernel: [ 1307.692715] ohci_hcd 0000:03:00.0: OHCI Host Controller
Mar 13 01:58:07 insite kernel: [ 1307.692806] ohci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 5
Mar 13 01:58:07 insite kernel: [ 1307.692848] ohci_hcd 0000:03:00.0: irq 11, io mem 0xc4000000
Mar 13 01:58:07 insite kernel: [ 1307.773577] usb usb5: configuration #1 chosen from 1 choice
Mar 13 01:58:07 insite kernel: [ 1307.773823] hub 5-0:1.0: USB hub found
Mar 13 01:58:07 insite kernel: [ 1307.773847] hub 5-0:1.0: 1 port detected
Mar 13 01:58:07 insite kernel: [ 1307.775186] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
Mar 13 01:58:07 insite kernel: [ 1307.775196] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Mar 13 01:58:07 insite kernel: [ 1307.775204] usb usb5: Product: OHCI Host Controller
Mar 13 01:58:07 insite kernel: [ 1307.775211] usb usb5: Manufacturer: Linux 2.6.28-gentoo ohci_hcd
Mar 13 01:58:07 insite kernel: [ 1307.775218] usb usb5: SerialNumber: 0000:03:00.0
Mar 13 01:58:07 insite kernel: [ 1307.775262] ohci_hcd 0000:03:00.1: enabling device (0000 -> 0002)
Mar 13 01:58:07 insite kernel: [ 1307.775283] ohci_hcd 0000:03:00.1: PCI INT B -> Link[LNKD] -> GSI 11 (level, low) -> IRQ 11
Mar 13 01:58:07 insite kernel: [ 1307.775341] ohci_hcd 0000:03:00.1: OHCI Host Controller
Mar 13 01:58:07 insite kernel: [ 1307.775526] ohci_hcd 0000:03:00.1: new USB bus registered, assigned bus number 6
Mar 13 01:58:07 insite kernel: [ 1307.775571] ohci_hcd 0000:03:00.1: irq 11, io mem 0xc4001000
Mar 13 01:58:07 insite kernel: [ 1307.856624] usb usb6: configuration #1 chosen from 1 choice
Mar 13 01:58:07 insite kernel: [ 1307.856867] hub 6-0:1.0: USB hub found
Mar 13 01:58:07 insite kernel: [ 1307.856896] hub 6-0:1.0: 1 port detected
Mar 13 01:58:07 insite kernel: [ 1307.858267] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
Mar 13 01:58:07 insite kernel: [ 1307.858277] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Mar 13 01:58:07 insite kernel: [ 1307.858286] usb usb6: Product: OHCI Host Controller
Mar 13 01:58:07 insite kernel: [ 1307.858292] usb usb6: Manufacturer: Linux 2.6.28-gentoo ohci_hcd
Mar 13 01:58:07 insite kernel: [ 1307.858299] usb usb6: SerialNumber: 0000:03:00.1
Mar 13 01:58:11 insite kernel: [ 1311.993038] usb 5-1: new full speed USB device using ohci_hcd and address 2
Mar 13 01:58:11 insite kernel: [ 1312.185704] usb 5-1: configuration #1 chosen from 1 choice
*Mar 13 01:58:11 insite kernel: [ 1312.196485] usb 5-1: New USB device found, idVendor=12d1, idProduct=1001
Mar 13 01:58:11 insite kernel: [ 1312.196496] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Mar 13 01:58:11 insite kernel: [ 1312.196504] usb 5-1: Product: Huawei Mobile
Mar 13 01:58:11 insite kernel: [ 1312.196511] usb 5-1: Manufacturer: Huawei Technologies
*Mar 13 01:58:12 insite kernel: [ 1312.425735] Initializing USB Mass Storage driver…
Mar 13 01:58:12 insite kernel: [ 1312.427102] usb-storage: probe of 5-1:1.0 failed with error -5
Mar 13 01:58:12 insite kernel: [ 1312.427330] usb-storage: probe of 5-1:1.1 failed with error -5
Mar 13 01:58:12 insite kernel: [ 1312.427468] usb-storage: probe of 5-1:1.2 failed with error -5
Mar 13 01:58:12 insite kernel: [ 1312.427516] usbcore: registered new interface driver usb-storage
Mar 13 01:58:12 insite kernel: [ 1312.427525] USB Mass Storage support registered.
Mar 13 01:58:12 insite kernel: [ 1312.453411] usbcore: registered new interface driver usbserial
Mar 13 01:58:12 insite kernel: [ 1312.453454] USB Serial support registered for generic
Mar 13 01:58:12 insite kernel: [ 1312.453556] usbcore: registered new interface driver usbserial_generic
Mar 13 01:58:12 insite kernel: [ 1312.453563] usbserial: USB Serial Driver core
Mar 13 01:58:12 insite kernel: [ 1312.463951] USB Serial support registered for GSM modem (1-port)
Mar 13 01:58:12 insite kernel: [ 1312.464573] option 5-1:1.0: GSM modem (1-port) converter detected
Mar 13 01:58:12 insite kernel: [ 1312.464816] usb 5-1: GSM modem (1-port) converter now attached to ttyUSB0
Mar 13 01:58:12 insite kernel: [ 1312.464843] option 5-1:1.1: GSM modem (1-port) converter detected
Mar 13 01:58:12 insite kernel: [ 1312.464981] usb 5-1: GSM modem (1-port) converter now attached to ttyUSB1
Mar 13 01:58:12 insite kernel: [ 1312.465037] option 5-1:1.2: GSM modem (1-port) converter detected
Mar 13 01:58:12 insite kernel: [ 1312.466211] usb 5-1: GSM modem (1-port) converter now attached to ttyUSB2
Mar 13 01:58:12 insite kernel: [ 1312.466250] usbcore: registered new interface driver option
Mar 13 01:58:12 insite kernel: [ 1312.466256] option: v0.7.2:USB Driver for GSM modems
Step 2- list pci devices
insite ~ # lspci
…
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) AC’97 Audio Controller (rev 01)
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC’97 Modem Controller (rev 01)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY
02:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller
02:02.0 Network controller: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04)
02:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE (MOB) Ethernet Controller (rev 81)
03:00.0 USB Controller: NEC Corporation USB (rev 43)
03:00.1 USB Controller: NEC Corporation USB (rev 43)
insite ~ #
Step 3- list usb devices
this adapter is detected as GSM modem on ttyUSB* device
insite ~ # lsusb
Bus 006 Device 001: ID 1d6b:0001
Bus 005 Device 002: ID 12d1:1001
Bus 005 Device 001: ID 1d6b:0001
Bus 004 Device 001: ID 1d6b:0001
…
insite ~ #
Step 4- update usbids
insite ~ # update-usbids
–2009-03-13 02:07:17– http://www.linux-usb.org/usb.ids
Resolving www.linux-usb.org… 216.34.181.97
Connecting to www.linux-usb.org|216.34.181.97|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 361266 (353K) [text/plain]
Saving to: `/usr/share/misc/usb.ids.new’
100%[============================>] 361,266 3.82K/s in 64s
2009-03-13 02:08:25 (5.50 KB/s) – `/usr/share/misc/usb.ids.new’ saved [361266/361266]
Done.
insite ~ #
insite ~ # lsusb
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
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
…
insite ~ #
Please note that Device model. On PCMCIA adapter device model is EC360.
Step 5- install wvdial application
WvDial is a program that
makes it easy to connect your Linux workstation to the Internet.
insite ~ # emerge -av wvdial
These are the packages that would be merged, in order:
Calculating dependencies… done!
[ebuild N ] virtual/c++-tr1-functional-0 0 kB
[ebuild N ] net-libs/wvstreams-4.5 USE=”dbus pam ssl -debug -doc -qt3″
1,052 kB
[ebuild N ] net-dialup/wvdial-1.60 98 kB
Total: 3 packages (3 new), Size of downloads: 1,150 kB
Would you like to merge these packages? [Yes/No] yes
Step 6- autodetect and configure modem
It will automatically detect your modem, and it can log into almost any
Internet provider’s server without any special configuration.
insite ~ # 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: +GMI: HUAWEI TECHNOLOGIES CO., LTD
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 — OK
ttyUSB2<*1>: ATQ0 V1 E1 Z — OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 — OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB2<*1>: Modem Identifier: ATI — Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB2<*1>: Speed 9600: AT — OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
Found a modem on /dev/ttyUSB0.
/etc/wvdial.conf<Warn>: Can’t open ‘/etc/wvdial.conf’ for reading: No such file or directory
/etc/wvdial.conf<Warn>: …starting with blank configuration.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″
ttyUSB2<Info>: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″
insite ~ #
Step 7- execute wvdial application
insite ~ #
insite ~ # 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.
–> Configuration does not specify a valid phone number.
–> Configuration does not specify a valid login name.
–> Configuration does not specify a valid password.
insite ~ #
Step 8- edit /etc/wvdial.conf
Provide username, password and phone number
insite ~ # vi /etc/wvdial.conf
[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = vwireless@ptcl.com
Init1 = ATZ
Password = ptcl
Modem = /dev/ttyUSB0
Baud = 9600
Step 9- execute wvdial application again
insite ~ # 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]}#@!}!} } }=}!}$}%x}”}&} } } } }#}%B#}%}%}&&G}?\}’}”}(}”h
~
–> PPP negotiation detected.
–> Starting pppd at Fri Mar 13 02:44:30 2009
–> Pid of pppd: 15805
–> Using interface ppp0
–> local IP address 119.154.58.175
–> remote IP address 192.168.70.1
–> primary DNS address 203.99.163.240
–> secondary DNS address 202.125.148.204
here internet connection established.
Step 10- ifconfig
open new terminal
insite ~ # ifconfig
. . . .
ppp0 Link encap:Point-to-Point Protocol
inet addr:119.154.58.175 P-t-P:192.168.70.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:168 (168.0 B) TX bytes:177 (177.0 B)
. . . .
insite ~ # tail -f /var/log/messages
Mar 13 02:44:33 insite kernel: [ 4093.928984] PPP BSD Compression module registered
Mar 13 02:44:33 insite kernel: [ 4093.970303] PPP Deflate Compression module registered
Mar 13 02:47:17 insite kernel: [ 4257.695598] Bridge firewalling registered
Step 11- test download speed
insite ~ # wget -c http://gentoo.osuosl.org//releases/x86/2008.0/installcd/install-x86-m…
. . .
4% [=> ] 3,427,664 102K/s eta 12m 54s
download speed very from 30kbps to 202 kbps.
I hope this how will work with other linux ditros as well without any changes.
wvdial is a good application that saved many steps of detection and configuration.
Also test this same procedure with worldcall EvDO USB version.
This should work with none or with minor changes.
Have fun
8 responses so far ↓
1 wasim // Mar 16, 2009 at 11:46 am
Excellent documentation, Basit.
2 asad.alim@gmail.com // May 25, 2009 at 5:29 pm
It was indeed very useful. Just need to add one more step as I had trouble figuring it out.
Edit /etc/resolv.conf
add the following lines for default DNS.
nameserver 203.99.163.240
nameserver 202.125.148.204
3 basit // May 26, 2009 at 10:43 am
yes, you are right. Good point.
In my case resolv.conf was written automatically when connection was established.
I just verified that things were in place.
4 nssd // Jun 1, 2009 at 5:48 am
Has anyone set up PTCL USB EVDO in Ubuntu 9.10?
5 wasim // Jun 2, 2009 at 10:49 am
We’ve got our hands on a USB stick. I’ve managed to get the USB drive part of it mounted, however no amount of cajoling is getting the usbserial to come up. I’ve tracked all sorts of hacks on the kernel modules, but no luck so far. Will keep trying, its almost there, as soon as the usbserial device comes up, we should be there.
6 wasim // Jun 8, 2009 at 9:07 pm
With regard to the USB EVDO. You have to use usb_modeswitch (thanks Asad Manzur for pointing this out). Make sure that you put the following lines in /etc/usb_modeswitch.conf.
After that just issue usb_modeswitch, and wvdial. The ZTE modem is a AC2710 but seems to behave just like the AC8710, BSNL is using. Here is what should happen … do let the usb stablize (10 secs after plugin) before you try to switch ..
teepee ~ # usb_modeswitch * usb_modeswitch: tool for controlling "flip flop" mode USB devices * Version 0.9.8 (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 003 on bus 002 ... Using endpoints 0x05 (out) and 0x84 (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: ZTE Product String: USB Storage FFFF Revision String: 2.31 ------------------------- Setting up communication with interface 0 ... Trying to send the message to endpoint 0x05 ... OK, message successfully sent Device is gone, skipping further steps ... -> Run lsusb to note any changes. Bye. teepee ~ # wvdial ptcl --> WvDial: Internet dialer version 1.60 --> 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. Starting PPP immediately. --> Starting pppd at Sun Jul 5 03:53:40 2009 --> Pid of pppd: 7076 --> Using interface ppp0 --> local IP address 119.154.19.87 --> remote IP address 192.168.7.1 --> primary DNS address 203.135.0.70 --> secondary DNS address 202.125.148.2047 A.K. Shahzad // Aug 9, 2009 at 2:54 am
I have got a USB ptcl evdo device that failed to work after going through a lot of painful work.
In the end to save further time, I have it up on a windows machine.
got a lan cable (crossover for computer to computer link) and hooked it up to my windows laptop and the other end in ubuntu machine.
Made a network through windows network setup wizard that the windows machine is directly connected to the internet and other computers connect to the internet through this machine.
After restarting the windows machine, ubuntu networking in DHCP Automatic mode, the computers started talking to each other and voila I could access the internet from ubuntu. (Linux)
8 wasim // Aug 9, 2009 at 7:57 am
Shahzad, the USB ptcl evdo works beautifully on Linux directly, you really shouldn’t need the windows machine at all …
You must log in to post a comment.