From: Darren Hart <dvhart@linux.intel.com>
To: ofono@ofono.org
Subject: Re: ofono-tests internet context: DNS works, ping wget and ssh do not (Connection Refused)
Date: Thu, 10 May 2012 14:50:31 -0700 [thread overview]
Message-ID: <4FAC3827.4000802@linux.intel.com> (raw)
In-Reply-To: <4FAC2B51.3080109@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 3615 bytes --]
On 05/10/2012 01:55 PM, Darren Hart wrote:
>
>
> On 05/10/2012 12:00 PM, Denis Kenzior wrote:
>> Hi Darren,
>>
>>>>> However, ping, wget, and ssh all fail. ping just sits there, wget and ssh both
>>>>> fail with Connection Refused.
>>>>>
>>>>> Is there something obvious/common I might be running into?
>>>>>
>>>>> I'm using ofono 1.5. The steps I took for context follow:
>>>>>
>>>>> # ./enable-modem
>>>>> Connecting modem /mbm_0...
>>>>>
>>>>> # ./online-modem
>>>>> Setting modem /mbm_0 online...
>>>>>
>>>>> # ./activate-context
>>>>>
>>>>
>>>> These steps are fine, is your context pre-configured already? What does
>>>> the output of list-contexts look like?
>>>
>>> How can I tell? Is there some permanent state that gets recorded after
>>> I've run through the above once?
>>>
>>> After a reboot, I see the following:
>>>
>>> $ ./list-contexts
>>> [ /mbm_0 ]
>>>
>>
>> This means there are no contexts. For MBM they show up after you run
>> online-modem.
>>
>> Assuming a brand new, virgin device, oFono runs context provisioning
>> using mobile-broadband-provider-info. If you are lucky, the context
>> will be configured automagically and the list-contexts output will look
>> something like this:
>>
>> denkenz(a)localhost ~/ofono-master $ test/list-contexts
>> [ /mbm_0 ]
>> [ /mbm_0/context1 ]
>> Username =
>> Protocol = ip
>> Name = Internet
>> Settings = { }
>> IPv6.Settings = { }
>> Active = 0
>> AccessPointName = wap.cingular
>> Password =
>> Type = internet
>
>
> In my case, AccessPointName is empty.
>
>>
>> The settings are then persisted in /var/lib/ofono/<your sim card's imsi>
>
> # cat /var/lib/ofono/310410469131422/gprs
>
> [Settings]
> Powered=true
> RoamingAllowed=false
>
> [context1]
> Name=Internet
> AccessPointName=
> Username=
> Password=
> Type=internet
> Protocol=ip
>
>
>>
>> If provisioning fails, oFono creates a default, empty context. It can
>> be recognized by an empty APN. In theory activating an empty APN should
>> fail.
>>
>> You then need to use create-internet-context to set the settings
>> manually. For AT&T the WAP-only APN is wap.cingular, and the data APN
>> is isp.cingular I believe.
>>
>
>
> OK:
>
> # ./create-internet-context isp.cingular
> Found context /mbm_1/context1
> Setting APN to isp.cingular
>
> root(a)fri2:/usr/lib/ofono/test# cat /var/lib/ofono/310410469131422/gprs
>
> [Settings]
> Powered=true
> RoamingAllowed=false
>
> [context1]
> Name=Internet
> AccessPointName=isp.cingular
> Username=
> Password=
> Type=internet
> Protocol=ip
>
Per some random set of instructions I found on the intertubes:
http://www.unlockit.co.nz/unlockit/?p=587
I've updated the context:
AccessPointName=wap.cingular
Username=WAP(a)CINGULARGPRS.COM
Password=CINGULAR1
I still get an IP address via DHCP and name resolution is working, but
my ping,wget,ssh tests fail.
A colleague allowed me to bottow his AT&T phone. I used this SIM card
and he had the same APN and Username entered in the phone (assuming same
password, wasn't visible and he didn't want me to change it just in case
:-). His phone reported an "EDGE" connection and successfully, albeit
SLOWLY, displayed web pages.
So this suggests to me that the SIM can do IP and not just WAP. However,
it says EDGE (2G?), does ofono support EDGE? I am I off in the weeds now?
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
next prev parent reply other threads:[~2012-05-10 21:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4FAAF3DB.2080007@linux.intel.com>
2012-05-10 15:33 ` ofono-tests internet context: DNS works, ping wget and ssh do not (Connection Refused) Denis Kenzior
2012-05-10 18:18 ` Darren Hart
2012-05-10 19:00 ` Denis Kenzior
2012-05-10 20:55 ` Darren Hart
2012-05-10 21:39 ` Denis Kenzior
2012-05-10 21:50 ` Darren Hart [this message]
2012-05-11 0:46 ` Denis Kenzior
2012-05-11 4:22 ` Darren Hart
2012-05-09 23:06 Darren Hart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FAC3827.4000802@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.