Author Topic: ofono list-contexts empty (solved)  (Read 2902 times)

laukref

  • Newbie
  • *
  • Posts: 4
    • View Profile
ofono list-contexts empty (solved)
« on: August 01, 2020, 06:10:52 pm »
According to the Planet Computers installation guide to activate mobile data:
http://support.planetcom.co.uk/index.php/Cosmo_Linux_Mobile_Data#Install_connman

the command:
/ usr / share / ofono / scripts / list-contexts
It should show the default APN configuration but in my case no context information appears, I only see this:

[/ ril_1]
[/ ril_0]

Any idea why no context appears?
« Last Edit: August 02, 2020, 05:21:55 am by laukref »

cam1965

  • Sr. Member
  • ****
  • Posts: 422
    • View Profile
    • http://
Re: ofono list-contexts empty
« Reply #1 on: August 01, 2020, 06:23:07 pm »
In some cases as explained by planet your operator is not configured automatically.
here is my output : Operator is "oi " here in BRAZIL.
I dont know where this output is stored. But as in you other post you said that your sim card is locked. Try to disable the pin code ( please see my full answer in your post ). But I really dont know if the cause of your problem is the pin code. Just a suggestion.

[ /ril_0 ]
    [ /ril_0/context1 ]
        Name = Internet
        Active = 0
        Type = internet
        Protocol = dual
        AccessPointName = gprs.oi.com.br
        Username =
        Password = oioioi
        AuthenticationMethod = any
        Settings = { }
        IPv6.Settings = { }

    [ /ril_0/context2 ]
        Name = Oi MMS
        Active = 0
        Type = mms
        Protocol = ip
        AccessPointName = mmsgprs.oi.com.br
        Username = oimms
        Password = oioioi
        AuthenticationMethod = any
        MessageProxy = 192.168.10.50:3128
        MessageCenter = http://200.222.42.204:8002
        Settings = { }
        IPv6.Settings = { }

    [ /ril_0/context3 ]
        Name = IMS
        Active = 0
        Type = ims
        Protocol = dual
        AccessPointName = ims
        Username =
        Password =
        AuthenticationMethod = none
        Settings = { }
        IPv6.Settings = { }

[ /ril_1 ]

cam1965

  • Sr. Member
  • ****
  • Posts: 422
    • View Profile
    • http://
Re: ofono list-contexts empty
« Reply #2 on: August 01, 2020, 06:32:38 pm »
it is stored in /var/lib/ofono/"a number " and inside have some files .The fiile is "gprs" like below

root@cosmopda:/var/lib/ofono/724314938245683# more gprs
[Settings]
Powered=true
RoamingAllowed=1

[context1]
Name=Internet
AccessPointName=gprs.oi.com.br
Username=
Password=oioioi
AuthenticationMethod=any
Type=internet
Protocol=dual

[context2]
Name=Oi MMS
AccessPointName=mmsgprs.oi.com.br
Username=oimms
Password=oioioi
AuthenticationMethod=any
Type=mms
Protocol=ip
MessageProxy=192.168.10.50:3128
MessageCenter=http://200.222.42.204:8002

[context3]
Name=IMS
AccessPointName=ims
Username=
Password=
AuthenticationMethod=none
Type=ims
Protocol=dual

laukref

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: ofono list-contexts empty
« Reply #3 on: August 02, 2020, 05:15:02 am »
Thanks cam1965, as you suggested the solution was to first unlock the SIM using the command:

Code: [Select]
/usr/share/ofono/scripts/enter-pin pin <pin_number>
Once this was done, the response of:

Code: [Select]
/usr/share/ofono/scripts/list-contexts
displays my operator information.