Update: If this method does not work for you and fails with the error message mentioned in this comment, then please try the solution described in this comment.
Ubuntu Linux 11.04 (Natty Narwhal) was released today and I am very excited by the new Unity interface. Upgrading from 10.10 to 11.04 was a breeze and went without a hitch. The only disappointment so far has been the modified mobile broadband configuration interface. As described in this post, in order to use a Pantech UML290 modem on Verizon's 4G LTE network, one needs to enter a custom APN value of "vzwinternet". It turns out that the option to enter a custom APN value is no longer available in 11.04. Hence, I was unable to use the same trickery to get the modem to work with 11.04.
But not all is lost as there are always many ways to do the same thing on Linux (which is one of the reasons why I love it so much). It turns out that one can use
wvdial to connect to the internet via this modem over Verizon's 4G LTE modem. I utilized the wvdial.conf file that was posted here as a starting point and made minor modifications to it. My wvdial.conf file is listed below (replace "858#######" with your modem's phone number):
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=3,"IPV4V6","vzwinternet","0.0.0.0",0,0
Modem Type = USB Modem
Stupid Mode = 1
New PPPD = yes
Dial Command = atdt
Carrier Check = no
ISDN = 0
[Dialer Verizon4GLTE]
Modem = /dev/ttyACM0
Baud = 100000000
Phone = *99***3#
Username = 858#######@vzw4g.com
Password = vzw
Place the above text into the file named
/etc/wvdial.conf (assuming that you have already installed the wvdial package). After this you can connect to the 4G network by typing the following command (output from my computer is shown below for reference):
[pagey@pagey-ideapad]$ sudo wvdial Verizon4GLTE
[sudo] password for pagey:
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=3,"IPV4V6","vzwinternet","0.0.0.0",0,0
AT+CGDCONT=3,"IPV4V6","vzwinternet","0.0.0.0",0,0
OK
--> Modem initialized.
--> Sending: atdt*99***3#
--> Waiting for carrier.
atdt*99***3#
CONNECT 100000000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu Apr 28 16:17:58 2011
--> Pid of pppd: 13561
--> pppd: e[7f]
--> Using interface ppp0
--> pppd: e[7f]
--> pppd: e[7f]
--> pppd: e[7f]
--> pppd: e[7f]
--> pppd: e[7f]
--> local IP address 10.190.171.236
--> pppd: e[7f]
--> remote IP address 10.64.64.64
--> pppd: e[7f]
--> primary DNS address 69.78.80.231
--> pppd: e[7f]
--> secondary DNS address 69.78.134.231
--> pppd: e[7f]
I am sure there are better ways to do this but the above procedure works for now till I figure out a better way.
For the line
ReplyDeleteUsername = 858#######@vzw4g.com
I just put in
Username = 8585551212@vzw4g.com
aka (some random number) as I had heard elsewhere the number
does not actually matter.
At least where I am located it does indeed not matter what I put there and the script connects fine.
@Brian: Thanks. You are correct. The number does not seem to matter at my location either. So, one can try using a random number first and use the real number if it does not work.
ReplyDeleteThis worked perfectly for me
ReplyDeleteHow do you get wvdial to work with Natty? I downloaded the package, transferred it over to Natty, but I need libuniconf4.6... so I downloaded wvstreams and transferred that over but that won't compile. How did you get it to work?
ReplyDelete@Matt The usual way to install software on Ubuntu (and most Linux distributions) is to use the "package manager" provided by the distribution instead of manually downloading the software and/or compiling it from the source code. In the case of Ubuntu, you would typically use either a tool called "apt" or graphical application called "Ubuntu Software Center". For example, you can install wvdial by typing the following command in a terminal: "sudo apt-get install wvdial". The advantage of using this method is that this will automatically install other software packages that are needed to run the software package that you need.
ReplyDeleteIn your case, I would suggest uninstalling the wvdial and other packages that you installed manually and use either the above "apt-get" command or the "Ubuntu Software Center" to install the wvdial package.
You can read more about "Ubuntu Software Center" at http://www.ubuntu.com/ubuntu/features/ubuntu-software-centre.
Similarly, a good place to start reading about "apt" is http://en.wikipedia.org/wiki/Advanced_Packaging_Tool.
for some reason, network-manager identifies the modem as CDMA, rather than GSM. if you skip the wizard and go to "edit connections -> mobile broadband" and click 'add', it will ask you if you want to create a GSM or CDMA connection, and if you choose GSM, it will ask you about APN. however, i don't know how to make ubuntu see the modem as GSM...
ReplyDeletethanks for sharing these info.
ReplyDeleteI get it mostly working: pppd got local address, remote address, DNS, etc.
But I can not access Internet. Is there any extra step needed to tell Linux to use this ppp connection?
@spotofleopard You do not need any extra step after connecting to use the ppp interface assuming that you do not have any other network interface active at the same time. You may want to try pinging one of the DNS servers to make sure that you can communicate with them through the ppp connection. Also, make sure that the ppp interface is set as the default route. This can be checked using the 'route -n' command. The last line of the output of this command should be something like:
ReplyDelete0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
I keep getting this:
ReplyDeleteWvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=3,"IPV4V6","vzwinternet","0.0.0.0",0,0
AT+CGDCONT=3,"IPV4V6","vzwinternet","0.0.0.0",0,0
ERROR
--> Bad init string.
--> Cannot get information for serial port.
@Hoosier What distribution are you using on your machine?
ReplyDeleteI could not get 11.04 to work, but could get 10.10 to work. Only now a few weeks later, that has stopped as well. I am attempting to upgrade to 11.04 again and try once more.
ReplyDeleteHoosier
ReplyDeleteI am getting the same result as you on 11.10. were you able to resolve the problem?
@Hoosier and @Lizard32: Have you tried the pppd script that I mentioned in the update to the above post? Maybe that will work better than wvdial. I have been using the pppd script every day for the past several weeks now. Hope that works for you too. Also, all of this assumes that you are in a region that has 4G LTE. Otherwise, this procedure will not work.
ReplyDeletePagey: I will try the pppd approach when I get back in 4G. My ultimate goal is to get it working on my linux dd-wrt router using pppd. I was using the wvdial as a method to debug any AT command problems which I immediately ran into. I will let you know how the pppd approach work. I was curious in your pppd chat script you do not use user xxxxxx@vzw4g.com or password vzw?
ReplyDelete@Lizard32: Thanks for trying it out and look forward to hearing about your experience. You are correct, I did not use a user name or password in the pppd chat script. I saw that several other users on various related forums reported that the user name and password were not necessary. I tried the chat script without them and it worked like a charm (at least in three cities so far: Los Angeles, San Diego and Minneapolis). I am getting over 12Mbps downloads regularly on my netbook using that script so I am fairly satisfied. :)
ReplyDelete@Hoosier: I have been getting some help from Lizard32 with the problem you are experiencing with the above script. We have narrowed it down to the firmware version on the modem. After I upgraded the firmware on my modem, I had the same errors as you while using the above wvdial script. However, if you remove the line that starts with 'Init3' then everything works again. If you try this out at your end, please let us know what happens.
ReplyDeleteCagey,
ReplyDeleteI have UML290. None of the stuff here work for me. I am willing to put in efforts to reverse engineer the Windows driver and toolkit. Could you please suggest me a path going forward. It is kind of funny. My wireless card works in Ubuntu 10.10 between Newark and Metropark, NJ. :-) That is all.
Regards.
@BroadwayTimesSquare I do not believe that there is any need to write a new driver for the UML290. I suspect that the problem is elsewhere. If you see a serial port /dev/ttyACM0 or /dev/ttyUSB0 appear on your machine after you plug in the UML290 then you probably have the correct driver for this device. The method I described above will only work if you are in an area that is covered by Verizon's 4G network. If you are in an area where you only have 3G coverage then this will not work. Could you please verify that you are in 4G coverage area?
ReplyDeletethanx amazing...
ReplyDeleteI was able to get the UML290 to work on 11.10 after following this page and removing
ReplyDeleteInit3 = AT+CGDCONT=3,"IPV4V6","vzwinternet","0.0.0.0",0,0
and making sure I booted the machine without any other active network interface (no Ethernet / WiFi)
Thank you!