Re: More configuration options for Mobile Broadband in Network Manager



On Mon, 2009-07-27 at 23:54 +0300, Samer Atiani wrote:
> Hello,
> 
> I'm using Ubuntu 9.04, and I'm trying to configure my ZTE 636 Mobile
> Broadband modem to connect to the Cellcom/Israel network. If I use the
> default settings provided by Ubuntu, the connection could be
> established, but I could make no actual connection to anywhere on the
> internet (trying to ping any known IP addresses results in timeouts).
> 
> However, I've managed to get it working with wvdial, here is what my
> wvdial.conf looks like:
> 
> [Dialer Defaults]
> Phone = *99#
> Username = abc
> Password = abc
> New PPPD = yes
> Modem = /dev/ttyUSB2
> Baud = 460800
> Init1 = ATZ
> Init2 = AT&F &D2 &C1
> Init3 = ATS7=60 S30=0 S0=0
> Init4 = AT+CGDCONT=1,"IP","internetg"
> ISDN = off
> Modem Type = Analog Modem
> Dial Attempts = 1
> Abort on No Dialtone = off
> Stupid Mode = on
> 
> I think the critical part here are those four modem initialization
> commands:
> 
> Init1 = ATZ

That's pretty standard; already done by NM/MM.

> Init2 = AT&F &D2 &C1

AT&F resets to factory settings, and that shouldn't really be necessary
either.

> Init3 = ATS7=60 S30=0 S0=0

S7 is "wait time for remote carrier", which usually defaults to 30.  I'd
be surprised if it's really taking more than 30 seconds to connect, but
who knows.  That one *might* be interesting.  Can you try leaving it out
and see how that works?

S30 is "inactivity disconnect timer".

S0 is "# rings before auto-answer", which is irrelevant here.

> Init4 = AT+CGDCONT=1,"IP","internetg"

And this should already be done by NM as long as we either (a) have the
settings for cellcom Israel, or (b) you've entered the right APN in the
connection editor for your connection.  Also, you may want to enter a
fake username/password as some modems really want that.

Can you ensure you have the correct APN set in the connection editor for
your connection first?  If that fails, lets run NM manually with
NM_PPP_DEBUG=1 to find out what's going on.  Next, what is the contents
of /etc/resolv.conf after it's "connected" but doesn't work?

Dan

> is there anyway to apply those commands from inside network manager?
> Do you recommend some other way?
> 
> Many thanks!
> Samer
> 
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]