Advertisement
Promo

Become a member of the ZDNet UK community

J.A. Watson

View blog's RSS Feed

Jamie's Random Musings

Various thoughts and adventures, including but not limited to Linux, Windows XP and Widows Vista, and assorted bits of hardware new and old.

Monday 8 December 2008, 9:30 AM

Ubuntu Mobile Broadband Disappointment

Posted by J.A. Watson

Some time ago I wrote about using mobile broadband with Ubuntu, and I was very hopeful at that time that it would soon be "plug in and click to connect". Unfortunately it hasn't turned out that way, at least yet. Considered in the light of my original goal, which was simply to get my Sierra Wireless Air Card 880 working with Ubuntu, it is still a major win, because I can do that - and I do so, pretty much every day. But at least for the Swisscom version of this card, and I strongly suspect for most versions other than the AT&T "branded" card, it still takes a lot more fiddling than it should.

The problem is with the APN setup in the connection procedure. The Network Manager seems to be using an incorrect command, or an incorrectly formatted command, and the APN setup fails. If I use the wvdial utility, with the correct /etc/wvdial.conf configuration, it connects with no problem. Furthermore, once I have connected using wvdial (and disconnected again, of course), if I remove the APN specification from the Network Manager configuration of the Mobile Broadband device, I can then connect using Network Manager.

It would be nice if this were eventually corrected, but I doubt if that is going to happen anytime soon. So I will include the wvdial.conf file that works for me here, and some brief instructions to accompany it. For carriers other than Swisscom, you would have to contact your service provider to get the correct APN value to replace "gprs.swisscom.ch".

Content of /etc/wvdial.conf:

[Dialer defaults]
Phone = *99***1#
Username = gprs
Password = gprs
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Init5 =AT+CDGCONT=1,"IP","gprs.swisscom.ch"
New PPPD = yes

In addition to entering this configuration file, it is necessary to remove any PIN code on the Air Card. Once that is done, the connection can be established with the command "sudo wvdial". However, because the Network Manager isn't aware of connections set up this way, applications such as Firefox will not be aware of the connection, and thus will start in "offline" mode. You can generally get around that by going to the "File" menu and un-checking "work offline".

Once the card has been properly configured and connected using wvdial, it should then be possible to connect using Network Manager. First, right-click on the Network Manager icon in the Gnome panel, and choose "Edit Connections". Then select "Mobile Broadband", click the profile for your card (there should only be one), choose "Edit", and then remove any value in the "Advanced/APN" field. Save and exit. Then you should be able to connect by simply clicking on the Network Manager icon, and selecting the Mobile Broadband interface. The advantage of doing this is that other programs will see that the network connection exists, and thus will start up in online mode.

jw 8/12/2008

Comments on this post

J.A. Watson

This member is ranked #2 in our top 100

  • J.A. Watson
  • Applications Development, Subingen, Solothurn, Bern, Switzerland
  • Member since: November 2007

Site Activity Rating 6

Contacts' Latest Discussions

Number of Tracked Discussions: 2,597

Rupert Goodwins Rupert Goodwins

Closing comments for this story

Thursday 19 November 2009, 5:02 PM

30 comments
ator1940 ator1940

Cloud data storage.

Thursday 19 November 2009, 1:10 PM

3 comments
ator1940 ator1940

Egypt bids for first Arabic top-level...

Wednesday 18 November 2009, 3:08 PM

3 comments
ator1940 ator1940

Distortion

Wednesday 18 November 2009, 2:59 PM

4 comments

Contacts' Latest Blogs

Number of Contacts Blogs: 15

Avatar Jake Rayson

The importance of copyleft

Saturday 21 November 2009, 8:34 PM

0 comments

Skip Sub Navigation Links to CNET Brand Links

Help

Become part of the ZDNet community.

Newsletters