Message from discussion
Enabling mobile broadband for Dell D830 Novatel 5520 card
Path: g2news1.google.com!postnews.google.com!w31g2000yqb.googlegroups.com!not-for-mail
From: Niklas R <nikla...@gmail.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Enabling mobile broadband for Dell D830 Novatel 5520 card
Date: Mon, 5 Jul 2010 21:46:23 -0700 (PDT)
Organization: http://groups.google.com
Lines: 146
Message-ID: <8f4dbba2-ead7-4b56-b130-c2c0ab7e0a3d@w31g2000yqb.googlegroups.com>
References: <ec109a0a-0e91-4628-8e8c-f5e251663fe6@j8g2000yqd.googlegroups.com>
<6KqdnbhkAcgSrKzRnZ2dnUVZ_g-dnZ2d@speakeasy.net>
NNTP-Posting-Host: 90.233.137.134
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1278391583 2158 127.0.0.1 (6 Jul 2010 04:46:23 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 6 Jul 2010 04:46:23 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: w31g2000yqb.googlegroups.com; posting-host=90.233.137.134;
posting-account=FIEshAoAAACgkwxavNw__Z67OTmvAXQk
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3)
Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3,gzip(gfe)
On Jul 5, 1:12=A0am, r...@rpw3.org (Rob Warnock) wrote:
> Niklas R =A0<nikla...@gmail.com> wrote:
> +---------------
> | How? Tried with ppp it won't. Here's the spec
> |http://www.dragonflybsd.org/docs/user/delld830/
> | Top prio enable 3G connect via APN to service provided using a
> | terminal window and AT command
> |
> | AT+CGDCONT=3D1,"IP","online.telia.se",,0,0
> | or like current provider said today
> |
> | AT+CGDCONT=3D10,,"online.telia.se"
> | for networking using '*99#'.(Novatel 5520 wireless mobile broadband
> | builtin SIMcard) to try with ppp or likewise
> +---------------
>
> I have an old Sierra Wireless AC860 PCMCIA card [which replaced an
> earlier Ericsson GC82] which I have been using for years on an H-P
> Pavilion ze4560us, running FreeBSD versions 4.9, 4.10, and now 8.0.
> Oh, and with an AT&T cellular data plan. A few "lessons learned"
> which might be helpful:
>
> 0. Use "user-mode PPP" rather than any kernel-resident version,
> =A0 =A0since you need to be able to issue & react to AT commands
> =A0 =A0[via the "term" command] more flexibly than any kernel-resident
> =A0 =A0versions I've run across. [Especially given #4 below!]
>
> 1. To help with manual input & debugging, I always turn on "command
> =A0 =A0echo" ("E1") and "long format result codes" ("V1"). And I also wan=
t
> =A0 =A0noise from the "registration" process, too ("+CGREG=3D2"). My full
> =A0 =A0initialization string [which in my case seems to be stored in the
> =A0 =A0modem and thus doesn't need to be repeated each time] is thus this=
:
>
> =A0 =A0 =A0AT&F&D2&C1E1V1S0=3D0+CGREG=3D2
>
> =A0 =A0Many [though not all] modems *REQUIRE* an initial AT+CFUN=3D1 comm=
and
> =A0 =A0to turn on the main modem functionality, or they won't do *anythin=
g*!!
> =A0 =A0If you're getting nothing but "ERROR" responses to anything but an
> =A0 =A0empty "AT" command, try giving an "AT+CFUN=3D1" first. [My previou=
s GC82
> =A0 =A0needed this; the AC860 doesn't.]
>
> 1. With AT&T, at least, the AT+CGDCONT is unnecessary. The default
> =A0 =A0"+CGDCONT" that one's account is set up with "just works".
> =A0 =A0Though as usual, your country/carrier might vary. =A0;-}
>
> 3. Don't try to "dial" the data call ("ATD*99#" in your case, "ATD*99***1=
#"
> =A0 =A0in mine) before you have checked that you have adequate signal str=
ength
> =A0 =A0(with "AT+CSQ") and have verified that "registration" has succeede=
d
> =A0 =A0(with "AT+CGREG?"). If you don't wait, you might get an "ERROR" or
> =A0 =A0you might just get a silent hang.
>
> Finally [and this might be the one that's biting you]:
>
> 4. After you dial and the modem prints a "CONNECT", *some* cellular
> =A0 =A0modems [with *some* carriers?] *don't* immediately automatically
> =A0 =A0start the PPP protocol from their side. In that case, you have to
> =A0 =A0force it with a manual "~p" (<tilde><lowercase-p>) after you see
> =A0 =A0the "CONNECT". [My previous GC82 didn't need this; the AC860 does!=
]
> =A0 =A0The "ppp(1)" man page gives no hints [AFAICT] for how to automate
> =A0 =A0this "forcing" process in scripts, so I have to manually start eac=
h
> =A0 =A0cellular modem session. A pain, but I'm used to it at this point.
>
> FWIW [and, yes, your situation *will* differ!!], here's a typical
> transcript for my setup [annotated with "#comment"s]:
>
> =A0 =A0 $ ppp ac860 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # Mainly for the "set=
mtu max 1450"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # and to =
set the local "tun0" IP addr
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # to safe=
(and reproducable) value.
> =A0 =A0 ...[lot of "Loading /lib/libFOO.so" noise]...
> =A0 =A0 Using interface: tun0
> =A0 =A0 ppp ON lisp> term
> =A0 =A0 deflink: Entering terminal mode on /dev/cuau1
> =A0 =A0 Type `~?' for help
>
> =A0 =A0 +PACSP0
> =A0 =A0 at =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# Hello? Yo=
u there?
>
> =A0 =A0 OK
> =A0 =A0 at+CSQ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# Does it see t=
he cell net signal yet?
> =A0 =A0 +CSQ: 0,99 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# No.
>
> =A0 =A0 OK
> =A0 =A0 at+CGREG? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # Does the network =
see us?
> =A0 =A0 +CGREG: 0,2 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # No.
>
> =A0 =A0 OK
>
> =A0 =A0 ...[wait a few seconds; can be *minutes* during traffic rush hour=
!]...
>
> =A0 =A0 at+CSQ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# Does it see t=
he cell net signal yet?
> =A0 =A0 +CSQ: 13,99 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # Weak, but yes. =A01=
3 =3D =A0-87 dBm =3D=3D> 2 bars,
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # =A0"wea=
k, reduced throughput (12-16)"
> =A0 =A0 OK
> =A0 =A0 at+CGREG? =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # Does the network =
see us?
> =A0 =A0 +CGREG: 0,5,DEA6,0722 =A0 =A0 =A0 # Aha! Yes, we're registered! L=
et's dial now!
>
> =A0 =A0 OK
> =A0 =A0 atd*99***1#
> =A0 =A0 CONNECT
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # At this=
point I typed ~p (*not* echoed)
> =A0 =A0 Packet mode.
> =A0 =A0 ppp ON lisp>
> =A0 =A0 Ppp ON lisp>
> =A0 =A0 PPp ON lisp>
> =A0 =A0 PPP ON lisp> =A0 =A0 =A0 =A0 =A0 =A0 # O.k., PPP is completely up=
.
>
> If I now go to another window and "ping", things are live.
>
> Hope this helps...
>
> -Rob
>
> -----
> Rob Warnock =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <r...@rpw3.org>
> 627 26th Avenue =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <URL:http://rpw3.org/>
> San Mateo, CA 94403 =A0 =A0 =A0 =A0 =A0 =A0 (650)572-2607
Dear Rob, so outstanding getting so instructive replies now trying
slightly hassly since neither ppp nor pppd finds command AT. Rebooting
in different modes will help. pppd fills screen with junk so reading
instructions here carefully over & over sooner or later shall enable
BSD this way this Linux already has. Sincerely! Nick Rosencrantz