Results 1 to 7 of 7

Thread: HOW TO: Connect T-Mobile Wireless Internet Through Your Cell Phone

  1. #1
    Join Date
    Feb 2007
    Location
    Topeka, Kansas
    Beans
    2,317
    Distro
    Ubuntu 13.10 Saucy Salamander

    HOW TO: Connect T-Mobile Wireless Internet Through Your Cell Phone

    EDIT: I've revised the below tutorial into an updated, short form as follows:

    1. In terminal:

    Code:
    sudo apt-get install wvdial
    2. In terminal (after you've attached your cell phone via usb or bluetooth):

    Code:
    sudo wvdialconf
    3. In terminal:

    Code:
    sudo gedit /etc/wvdial.conf
    4. Minimize Gnome Tex Editor containing the wvdial.conf file, and open a second terminal window. Type in:

    Code:
    dmesg | fgrep acm
    You should see something like this returned in the output:

    [ 9168.949496] cdc_acm 2-3:1.0: ttyACM0: USB ACM device

    This ACM device is your phone, and it is now an accessible piece of hardware. For wvdial to use it, you must make sure the above configuration file points wvdial to the right device name. If the above dmesg output produces a different ttyACM#, change it accordingly to match your PC. (Note, if you don’t get any dmesg results at all, try typing this in first: sudo modprobe cdc_acm).

    After your wvdial.conf file is created and your sure your Modem = /dev/tty line is correct, save the file and close gedit. Then simply run wvdial from the terminal:

    $ wvdial

    That's pretty much it! An older version of this guide is below: It's written with T-mobile phones in mind. Other carries work much in the same way, but their "phone numbers" vary, as well as username/password requirements. The rest of the wvdial.conf file is pretty nicely auto-configured using wvdialconf in terminal.

    -----------------


    You can find a hardcopy of this walk through on my blog at this location.

    I recently took on the challenge of getting an old PC up and running with Xubuntu 7.10. My father recently purchased the T-Mobile Internet package, which allows him to connect his computer to unlimited mobile Internet for $20 a month. Setting this up proved to be easier than I anticipated.

    1. The first thing you need to do is change the USB configuration in your phone. On my phone (a Motorola K1) and many other T-Mobile phones, you have to change your USB configuration: make your default USB connection a data connection. By default, most phones are configured to be in “Memory Card” mode.
    2. Next, you need to install a piece of software in Ubuntu called “wvdial”. To do this, click on Applications>Accessories>Terminal. Once your terminal window is open, type in the following:
    Code:
    sudo apt-get install wvdial
    3. Edit your wvdial.conf file. Type
    Code:
    sudo gedit /etc/wvdial.conf
    in a terminal window to do this.


    Once you have your wvdial.conf file open, paste in the following text over all the contents of the file:

    Code:
    [Dialer Defaults]
    Init1 = AT+CGDCONT=1,”IP”,”internet2.voicestream.com”
    Modem Type = USB Modem
    Phone = *99***1#
    Password = pass
    Username = user
    Modem = /dev/ttyACM0
    Baud = 460800
    Take note of the “ttyACM0″ part. This may not be the same on your PC. To find out what yours is, attach your phone to your PC, and then type the following into the terminal:

    Code:
    dmesg | fgrep acm
    You should see something like this returned in the output:

    [ 9168.949496] cdc_acm 2-3:1.0: ttyACM0: USB ACM device

    This ACM device is your phone, and it is now an accessible piece of hardware. For wvdial to use it, you must make sure the above configuration file points wvdial to the right device name. If the above dmesg output produces a different ttyACM#, change it accordingly to match your PC. (Note, if you don’t get any dmesg results at all, try typing this in first: sudo modprobe cdc_acm).

    After your wvdial.conf file is created and your sure your Modem = /dev/tty line is correct, save the file and close gedit. Then simply run wvdial from the terminal:

    $ wvdial

    Wvdial will then access your phone as it is directed to do so by the wvdial.conf file, and essentially dial T-mobiles Internet Service Provider. No real username or password is required for this, so leave the user/pass in the above config file as it is written. You’ll see some output on the screen that looks like this:

    user@user-desktop:~$ wvdial
    WvDial<*1>: WvDial: Internet dialer version 1.56
    WvModem<*1>: Cannot get information for serial port.
    WvDial<*1>: Initializing modem.
    WvDial<*1>: Sending: AT+CGDCONT=1,”IP”,”wap.voicestream.com”
    WvDial Modem<*1>: AT+CGDCONT=1,”IP”,”wap.voicestream.com”
    WvDial Modem<*1>: OK
    WvDial<*1>: Modem initialized.
    WvDial<*1>: Sending: ATDT*99#
    WvDial<*1>: Waiting for carrier.
    WvDial Modem<*1>: ATDT*99#
    WvDial Modem<*1>: CONNECT
    WvDial<*1>: Carrier detected. Waiting for prompt.

    At this point, the program will pause as it handshakes and establishes a connection using PPP. After about 10 or 20 seconds, the output will continue on and look similar to this:

    WvDial<Notice>: Don’t know what to do! Starting pppd and hoping for the best.
    WvDial<Notice>: Starting pppd at Thu Jan 17 17:50:28 2008
    WvDial<Err>: Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
    WvDial<Err>: –> PAP (Password Authentication Protocol) may be flaky.
    WvDial<Err>: Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
    WvDial<Err>: –> CHAP (Challenge Handshake) may be flaky.
    WvDial<Notice>: Pid of pppd: 13530
    WvDial<*1>: Using interface ppp0
    WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
    WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
    WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
    WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
    WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
    WvDial<*1>: local IP address 10.38.225.200
    WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
    WvDial<*1>: remote IP address 192.168.100.101
    WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
    WvDial<*1>: primary DNS address 66.94.9.120
    WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]
    WvDial<*1>: secondary DNS address 66.94.25.120
    WvDial<*1>: pppd: ?06][08]?06][08]??[06][08]

    Congrats! You are now connected to the Internet using your cellphone. And all you have to do to establish a connection is open a terminal window and type wvdial.

    To end your connection, you can simply close the terminal window containing the above mess, or hit CTRL-C while the terminal window is open. So be careful and don’t close the window by accident, or your connection will be dropped and you’ll have to run wvdial all over again. Oh, the agony of typing that one command over again!!

    Anyway, enjoy your T-Mobile Wireless Internet connection! You should see a steady downstream of about 20 to 30 KB per second, which is about 5 times faster than dial up. And it’s unlimited! It’s not DSL or Cable, but that’s still not a bad deal for 20 bucks a month.

    Additional Information for Sprint users:

    You may need to make your wvdial.conf file look more like this to get your phone to work:

    [Dialer Defaults]
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = USB Modem
    Phone = #777
    ISDN = 0
    Username = NONE
    Init1 = ATZ
    Password = NONE
    Modem = /dev/ttyACM0
    Baud = 460800
    Auto DNS = 1
    Stupid Mode = 1

    In addition, you will want to do a sudo gedit /etc/ppp/peers in a terminal window and add the following two lines to the file:

    lcp-echo-failure 0
    lcp-echo-interval 0

    I do not have a Sprint phone, but according to this guide it is confirm to work on a Sprint Samsung MM-920.
    Last edited by diablo75; February 25th, 2008 at 05:27 AM.

  2. #2
    Join Date
    Mar 2007
    Beans
    70

    Re: HOW TO: Connect T-Mobile Wireless Internet Through Your Cell Phone

    When using this as a regular internet connection, please be aware that most "unlimited" cell phone internet offers actually have a "fair use" of less than 200 MB. After that, regular data tariff plans apply, so that would be an expensive try-out of the latest 8.04 beta-iso

  3. #3
    Join Date
    Dec 2007
    Location
    Shepperton, UK.
    Beans
    2,489
    Distro
    Ubuntu Development Release

    Re: HOW TO: Connect T-Mobile Wireless Internet Through Your Cell Phone

    Hi. If you use the phone number *99***1# as the call number instead of *99# you can have several Access Point Names (APN) in your phone. By using AT+CGDCONT=1... you are entering that address into the phone at position 1 and then by using *99***1# you actually connect to the address located at position 1. With this idea in mind you can then enter some additional APNs in the phone which can be useful when you need to travel abroad and the local service provider has roaming agreement with your home phone provider. The next initialization string would then be AT+CGDCONT=2... and the number to dial would be *99***2# Don't forget that the user name and password may be different.
    Another thing to bear in mind is that the data transfer speed depends on the number of people accessing the network at any one time.

  4. #4
    Join Date
    Jun 2007
    Beans
    6

    Exclamation Re: HOW TO: Connect T-Mobile Wireless Internet Through Your Cell Phone

    Every time i try to dial with wvdial with my Motorola V3xx I get this:

    Code:
    tupeck@atupeck-laptop:~$ wvdial
    WvDial<*1>: WvDial: Internet dialer version 1.56
    WvModem<*1>: Cannot get information for serial port.
    WvDial<*1>: Initializing modem.
    WvDial<*1>: Sending: AT+CGDCONT=1,”IP”,”internet2.voicestream.com”
    WvDial Modem<*1>: AT+CGDCONT=1,b [1d]IPb [1d],b [1d]internet2.voicestream.comb [1d]
    WvDial Modem<*1>: ERROR
    WvDial<Err>: Bad init string.
    WvModem<*1>: Cannot get information for serial port.
    WvDial<*1>: Initializing modem.
    WvDial<*1>: Sending: AT+CGDCONT=1,”IP”,”internet2.voicestream.com”
    WvDial Modem<*1>: AT+CGDCONT=1,b [1d]IPb [1d],b [1d]internet2.voicestream.comb [1d]
    WvDial Modem<*1>: ERROR
    WvDial<Err>: Bad init string.
    WvModem<*1>: Cannot get information for serial port.
    WvDial<*1>: Initializing modem.
    WvDial<*1>: Sending: AT+CGDCONT=1,”IP”,”internet2.voicestream.com”
    WvDial Modem<*1>: AT+CGDCONT=1,b [1d]IPb [1d],b [1d]internet2.voicestream.comb [1d]
    WvDial Modem<*1>: ERROR
    WvDial<Err>: Bad init string.
    also, the contents of my wvdial.conf are:
    Code:
    [Dialer Defaults]
    Init1 = AT+CGDCONT=1,”IP”,”internet2.voicestream.com”
    Modem Type = USB Modem
    Phone = *99#
    Password = pass
    Username = user
    Modem = /dev/ttyACM0
    Baud = 460800
    Just like in the previous post, however..the wvdial.conf that wvdial automatically created for me, with minor adjustments for the dialing number are:
    Code:
    [Dialer Defaults]
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = USB Modem
    ; Phone = *99***1#
    ISDN = 0
    ; Username = user
    Init1 = ATZ
    ; Password = pass
    Modem = /dev/ttyACM0
    Baud = 460800
    Any help would be appreciated...Im trying to make the break from Windows, but i can't do it without my wireless internet.

  5. #5
    Join Date
    Feb 2007
    Location
    Topeka, Kansas
    Beans
    2,317
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: HOW TO: Connect T-Mobile Wireless Internet Through Your Cell Phone

    Quote Originally Posted by atupeck View Post
    Just like in the previous post, however..the wvdial.conf that wvdial automatically created for me, with minor adjustments for the dialing number are:
    Code:
    [Dialer Defaults]
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = USB Modem
    ; Phone = *99***1#
    ISDN = 0
    ; Username = user
    Init1 = ATZ
    ; Password = pass
    Modem = /dev/ttyACM0
    Baud = 460800
    Try this:

    Code:
    [Dialer Defaults]
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = USB Modem
    Phone = *99#
    ISDN = 0
    Username = user
    Init1 = ATZ
    Password = pass
    Modem = /dev/ttyACM0
    Baud = 460800

  6. #6
    Join Date
    Sep 2009
    Beans
    3

    Re: HOW TO: Connect T-Mobile Wireless Internet Through Your Cell Phone

    Thanks for the info.
    --------------------------------
    WirelessPhoneGallery | The best source of all cell phone accessories.

  7. #7
    Join Date
    Jul 2006
    Location
    Bedfordshire, UK
    Beans
    150

    Re: HOW TO: Connect T-Mobile Wireless Internet Through Your Cell Phone

    Quote Originally Posted by Kevbert View Post
    Hi. If you use the phone number *99***1# as the call number instead of *99# you can have several Access Point Names (APN) in your phone. By using AT+CGDCONT=1... you are entering that address into the phone at position 1 and then by using *99***1# you actually connect to the address located at position 1. With this idea in mind you can then enter some additional APNs in the phone which can be useful when you need to travel abroad and the local service provider has roaming agreement with your home phone provider. The next initialization string would then be AT+CGDCONT=2... and the number to dial would be *99***2# Don't forget that the user name and password may be different.
    Another thing to bear in mind is that the data transfer speed depends on the number of people accessing the network at any one time.
    Just like to say THANKS for explaining that - I had been wondering why there were two numbers that seemed to do the same thing!
    United Kingdom. Ubuntu 10.4 LTS dual-boot with Win7 on Dell 1520 laptop. Vodafone UK Mobile broadband with E220 modem and Netgear MBR624GU router.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •