Вы находитесь на странице: 1из 6

linuxpakistan.

net :: View topic - Worldcall Evdo USB on Linux

Page 1 of 6

linuxpakistan.net
LinuxPakistan.net discussion forums
FAQ Profile Search Memberlist Usergroups Register Log in

Log in to check your private messages

Search

Worldcall Evdo USB on Linux


linuxpakistan.net Forum Index -> Howto's & Tip n' Tricks View previous topic :: View next topic
Display posts from previous: All Posts

Oldest First Message

Go

Author pesheek
Cadet Posted: Sat Jul 04, 2009 10:06 pm

Post subject: Worldcall Evdo USB on Linux

Joined: 28 Jun 2002 Posts: 6

I am using Worldcall Evdo usb on FC10. When first you insert the Worldcall Evdo USB device which is AnyDATA Corporation device appears as a USB CDROM/MMC. ( lsusb output )
Code: Bus 007 Device 004: ID 05c6:1000 Qualcomm, Inc.

When the device is inserted, my "/dev/cdrom" link is changed from


Code: lrwxrwxrwx 1 root root 3 2009-07-04 21:42 /dev/cdrom -> sr0

TO
Code: lrwxrwxrwx 1 root root 3 2009-07-04 16:44 /dev/cdrom -> sr1

The modem will not appear until this "CD/MMC" is "Ejected" I use simple "eject" to do the job by issuing one or two times
Code: [root@localhost ~]# eject /dev/cdrom [root@localhost ~]# eject /dev/cdrom

http://linuxpakistan.net/forum/viewtopic.php?p=45164&sid=6ea1f7bf9ea2952f00d380059f... 3/18/2010

linuxpakistan.net :: View topic - Worldcall Evdo USB on Linux

Page 2 of 6

Now the Standard USB Modem will appear ( lsusb output )


Code: Bus 007 Device 003: ID 16d5:6502 AnyDATA Corporation

By using kppp or any dialup software of your choice you can connect to internet.
Code: Modem Device UserName Password Phone No DNS : : : : : /dev/ttyUSB0 wcall@worldcall.com wcall #777 203.81.204.2 203.81.204.23

I use kppp and face two issues 1) Default Gateway is not set and 2) No DNS Servers Entry in /etc/resolv.conf For DNS Server, make the entry in /etc/resolv.conf file like
Code: nameserver 203.81.204.2 nameserver 203.81.204.23

and Default Gateway is a little tricky


Code: ppp0 Link encap:Point-to-Point Protocol inet addr:115.186.67.233 P-t-P:192.168.2.10 Mask:255.255.255.255

your local address of the ppp0 is the default gateway which I set with "route" command
Code: [root@localhost ~]# route add default gw 115.186.xxx.xxx

So every time you connect you have to set the default gateway. Happy Netting.

http://linuxpakistan.net/forum/viewtopic.php?p=45164&sid=6ea1f7bf9ea2952f00d380059f... 3/18/2010

linuxpakistan.net :: View topic - Worldcall Evdo USB on Linux

Page 3 of 6

For device mode switch the following can be done ( I didnt tested any of the follwoing ) USB_ModeSwitch - Activating Switchable USB Devices on Linux http://www.draisberghof.de/usb_modeswitch/ Or using "udev". Making a rule entry in /etc/udev/rules.d/ to automatically eject the device when inserted.
Code: ENV{ID_CDROM}=="?*",ENV{ID_SERIAL}=="XXXXXXXXXXX-999999999990:0",RUN+="/usr/bin/eject /dev/%k"

Please let me know any script or tools to resolve the USB Mode switch and Default Gateway issues.
Back to top pesheek
Cadet Posted: Sun Jul 05, 2009 6:57 pm Scripts for kppp Post subject: Eject & Default Gateway

Joined: 28 Jun 2002 Posts: 6

Just write two bash scripts and make their entry in kppp configuration. Eject CROM/MMC /root/ejectCDROM.sh
Code: #!/bin/sh eject /dev/sr1 eject /dev/sr1

Set Default Gateway on Connect /root/setdfGWppp0.sh


Quote: #!/bin/sh route add default gw $(ifconfig | grep 115.186 | cut -d : --fields=2 | cut -d P --fields=1)

And make entry in kppp Account -> Execute -> Before Connect : /root/ejectCDROM.sh Account -> Execute ->Upon Connect : /root/setdfGWppp0.sh Still looking for better script or solution.
Back to top lambda
Major General Posted: Mon Jul 06, 2009 12:25 am Post subject:

http://linuxpakistan.net/forum/viewtopic.php?p=45164&sid=6ea1f7bf9ea2952f00d380059f... 3/18/2010

linuxpakistan.net :: View topic - Worldcall Evdo USB on Linux

Page 4 of 6

Joined: 27 May 2003 Posts: 3358 Location: Lahore

i use pppd directly instead of using frontends like kppp. do you have "defaultroute" in /etc/ppp/options? _________________ Watch out for the Manners Taliban! Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

Back to top pesheek


Cadet Posted: Tue Jul 07, 2009 2:09 pm Post subject:

Joined: 28 Jun 2002 Posts: 6

Quote: i use pppd directly instead of using frontends like kppp. do you have "defaultroute" in /etc/ppp/options?

Once I used a script for dialup in SLackware 2.0. If you can send me sample pppd dialing code/script, I will check what can I do or you can use the following code at the end of your script to set default gateway.
Code: route add default gw $(ifconfig | grep 115.186 | cut -d : -fields=2 | cut -d P --fields=1)

And Please check the IP range ( 115.186.x.x) I use in Karachi and you are in Lahore.
Back to top lambda
Major General Posted: Tue Jul 07, 2009 2:36 pm Post subject:

Joined: 27 May 2003 Posts: 3358 Location: Lahore

just put defaultroute in /etc/ppp/options. if kppp is a frontend for pppd, it'll use it automatically. you can always use "ps auxww" to see what kppp runs in the background, if anything. _________________ Watch out for the Manners Taliban! Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

Back to top pesheek


Cadet Posted: Sat Jul 18, 2009 4:59 pm Post subject: CentOS 5.1

Joined: 28 Jun 2002 Posts: 6

Hi, I just installed CentOS 5.1 and do the following to get usb modem

http://linuxpakistan.net/forum/viewtopic.php?p=45164&sid=6ea1f7bf9ea2952f00d380059f... 3/18/2010

linuxpakistan.net :: View topic - Worldcall Evdo USB on Linux

Page 5 of 6

Code: [root@localhost ~]# eject /dev/scd0 [root@localhost ~]# modprobe usbserial vendor=0x16d5 product=0x6502

Back to top muzaffar


Cadet Posted: Thu Sep 03, 2009 8:27 pm Post subject: PTCL EVDO

Joined: 08 Nov 2006 Posts: 7 Location: Lahore

I am using PTCL EVDO should i follow the same procedure for PTCL device as well

Regards Muzaffar Abbas CCNA JNCIA JNCIS 92312-4400442


Back to top alimuzaffarkhan
Cadet Posted: Sat Dec 19, 2009 12:34 am Post subject:

Joined: 29 Oct 2007 Posts: 1

After a long and hard research on Mr. Google I was able to solve the problem. Took me 3 or so days to nail it but finally did it. I use WorldCalls EVDO in Lahore on Huawei USB modem. If anyones interested you can go to the following link: http://tux-n00b.blogspot.com/2009/05/huawei-ec168c-on-ubuntu-804-hardyheron.html Caution: Use wcall@worldcall.com as username wcall as password and #777 as phone no. If anyone is interested I could clean the details up for Karmic and post in a separate post. (just pm me enough pms and I will clean it up meaning make is easier to follow)

Back to top DivineLight


Lance Naik Posted: Mon Jan 11, 2010 10:56 am Post subject:

Yar ye HUAWEI USB device which is given these days. LC186C, that is not working with NM on Ubuntu 9.10 right? I am trying my luck with wvdial or maybe ppp now. will update soon. _________________

Joined: 02 Sep 2005

http://linuxpakistan.net/forum/viewtopic.php?p=45164&sid=6ea1f7bf9ea2952f00d380059f... 3/18/2010

linuxpakistan.net :: View topic - Worldcall Evdo USB on Linux

Page 6 of 6

Posts: 43 Location: Lahore

Come on: irc.freenode.net, #linuxpakistan Play: http://www.planeshift.it

Back to top saquib_javed


Naib Subedar Posted: Sat Feb 13, 2010 9:41 pm Post subject:

any idea how to do it under ununtu 9.10 i tried myself but it didnt worked
Joined: 10 Apr 2004 Posts: 343 Location: Karachi

the device is not detected or m looking at wrong thing _________________ Use Linux and feel Free. OR Feel free to use Linux.

Back to top
Display posts from previous: All Posts

Oldest First

Go

linuxpakistan.net Forum Index -> Howto's & Tip All times are GMT + 6 Hours n' Tricks Page 1 of 1
Jump to: Howto's & Tip n' Tricks You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls Powered by phpBB 2001, 2005 phpBB Group Hosting provided by Inspedium Corp. (SMC Pvt) Ltd. in in in in in this this this this this

Go
forum forum forum forum forum

http://linuxpakistan.net/forum/viewtopic.php?p=45164&sid=6ea1f7bf9ea2952f00d380059f... 3/18/2010

Оценить