All of lore.kernel.org
 help / color / mirror / Atom feed
* automatically retrieve the apn for a network
@ 2019-12-10 13:33 nick83ola
  2019-12-10 14:59 ` Giacinto Cifelli
  0 siblings, 1 reply; 4+ messages in thread
From: nick83ola @ 2019-12-10 13:33 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2361 bytes --]

Hi,
I'm a newbie of ofono and I'm having some issue connecting with
connman/ofono.

There's a way to retrieve the apn for a specific network and automatically
create a context?
I tried to use the mbpi plugins but a lot of network have duplicates in the
apn list.

There's also a property in modem properties
  [ org.ofono.AllowedAccessPoints ]

but is empty

what's the smart way to retrieve the APN for a given network programmaticly?

Thanks
Nicola Lunghi


/list-modems
[ /telit_0 ]
    Online = 1
    Powered = 1
    Lockdown = 0
    Emergency = 0
    Manufacturer = Telit
    Model = HE910-D
    Revision = 12.00.024
    Serial = 351579054636509
    SystemPath = /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1.3
    Interfaces = org.ofono.SmartMessaging org.ofono.PushNotification
org.ofono.MessageManager org.ofono.Phonebook org.ofono.NetworkRegistration
org.ofono.ConnectionManager org.ofono.AllowedAccessPoints
org.ofono.SimManager
    Features = sms net gprs sim
    Type = hardware
    [ org.ofono.SmartMessaging ]
    [ org.ofono.PushNotification ]
    [ org.ofono.MessageManager ]
        ServiceCenterAddress = +353857000000
        UseDeliveryReports = 0
        Bearer = cs-preferred
        Alphabet = default
    [ org.ofono.Phonebook ]
    [ org.ofono.NetworkRegistration ]
        Status = denied
        Mode = auto
        Name =
    [ org.ofono.ConnectionManager ]
        Attached = 0
        Bearer = hsdpa
        RoamingAllowed = 0
        Powered = 1
    [ org.ofono.AllowedAccessPoints ]
    [ org.ofono.SimManager ]
        Present = 1
        CardIdentifier = 8935303052299844310
        SubscriberIdentity = 272032040423839
        ServiceProviderName = eir
        FixedDialing = 0
        BarredDialing = 0
        MobileCountryCode = 272
        MobileNetworkCode = 03
        SubscriberNumbers = +353858016215
        LockedPins =
        ServiceNumbers = [Call Wait Off] = '#43#' [Call Wait On] = '*43#'
[Voice Mail 171] = '171' [Last Call Info] = '*#101#' [Nat Direct Enq] =
'11811' [Int Direct Enq] = '11818' [Customer Care] = '1921' [Int Cust Care]
= '+35317011450' [Int Voice Mail] = '+353855'
        PinRequired = none
        Retries = [pin = 3] [pin2 = 3] [puk = 10] [puk2 = 10]
        CardSlotCount = 1
        ActiveCardSlot = 1

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 2922 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: automatically retrieve the apn for a network
  2019-12-10 13:33 automatically retrieve the apn for a network nick83ola
@ 2019-12-10 14:59 ` Giacinto Cifelli
  2019-12-10 18:35   ` nick83ola
  0 siblings, 1 reply; 4+ messages in thread
From: Giacinto Cifelli @ 2019-12-10 14:59 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2910 bytes --]

Hi Nicola,

On Tue, Dec 10, 2019 at 2:33 PM nick83ola <nick83ola@gmail.com> wrote:
>
> Hi,
> I'm a newbie of ofono and I'm having some issue connecting with connman/ofono.
>
> There's a way to retrieve the apn for a specific network and automatically create a context?
> I tried to use the mbpi plugins but a lot of network have duplicates in the apn list.
>
> There's also a property in modem properties
>   [ org.ofono.AllowedAccessPoints ]
>
> but is empty
>
> what's the smart way to retrieve the APN for a given network programmaticly?

I am afraid there isn't.
And this because there are several APNs for each network, for
segmenting the customers or the traffic, and there are private APNs,
MVNOs APNs...

>
> Thanks
> Nicola Lunghi
>
>
> /list-modems
> [ /telit_0 ]
>     Online = 1
>     Powered = 1
>     Lockdown = 0
>     Emergency = 0
>     Manufacturer = Telit
>     Model = HE910-D
>     Revision = 12.00.024
>     Serial = 351579054636509
>     SystemPath = /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1.3
>     Interfaces = org.ofono.SmartMessaging org.ofono.PushNotification org.ofono.MessageManager org.ofono.Phonebook org.ofono.NetworkRegistration org.ofono.ConnectionManager org.ofono.AllowedAccessPoints org.ofono.SimManager
>     Features = sms net gprs sim
>     Type = hardware
>     [ org.ofono.SmartMessaging ]
>     [ org.ofono.PushNotification ]
>     [ org.ofono.MessageManager ]
>         ServiceCenterAddress = +353857000000
>         UseDeliveryReports = 0
>         Bearer = cs-preferred
>         Alphabet = default
>     [ org.ofono.Phonebook ]
>     [ org.ofono.NetworkRegistration ]
>         Status = denied
>         Mode = auto
>         Name =
>     [ org.ofono.ConnectionManager ]
>         Attached = 0
>         Bearer = hsdpa
>         RoamingAllowed = 0
>         Powered = 1
>     [ org.ofono.AllowedAccessPoints ]
>     [ org.ofono.SimManager ]
>         Present = 1
>         CardIdentifier = 8935303052299844310
>         SubscriberIdentity = 272032040423839
>         ServiceProviderName = eir
>         FixedDialing = 0
>         BarredDialing = 0
>         MobileCountryCode = 272
>         MobileNetworkCode = 03
>         SubscriberNumbers = +353858016215
>         LockedPins =
>         ServiceNumbers = [Call Wait Off] = '#43#' [Call Wait On] = '*43#' [Voice Mail 171] = '171' [Last Call Info] = '*#101#' [Nat Direct Enq] = '11811' [Int Direct Enq] = '11818' [Customer Care] = '1921' [Int Cust Care] = '+35317011450' [Int Voice Mail] = '+353855'
>         PinRequired = none
>         Retries = [pin = 3] [pin2 = 3] [puk = 10] [puk2 = 10]
>         CardSlotCount = 1
>         ActiveCardSlot = 1
> _______________________________________________
> ofono mailing list -- ofono(a)ofono.org
> To unsubscribe send an email to ofono-leave(a)ofono.org

BR,
Giacinto

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: automatically retrieve the apn for a network
  2019-12-10 14:59 ` Giacinto Cifelli
@ 2019-12-10 18:35   ` nick83ola
  2019-12-10 19:05     ` Giacinto Cifelli
  0 siblings, 1 reply; 4+ messages in thread
From: nick83ola @ 2019-12-10 18:35 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 4132 bytes --]

Hi Giacinto,

thanks for your email.
Is not possible either to get it from the SIM card itself?
I was reading this

https://stackoverflow.com/questions/9896079/is-apn-login-information-stored-on-sim-cards#answer-32880199

and also what about the org.ofono.AllowedAccessPoints property?

if I call the test command list-allowed-access-pints connman is trying to
get those from the sim I think

ofonod[30132]: Aux: > AT+CRSM=192,28503\r
ofonod[30132]: Aux: < \r\n
ofonod[30132]: Aux: < +CRSM:
144,0,621B8202412183026F57A5038001718A01058B036F0607800200648800\r\n\r\nOK\r\n
ofonod[30132]: Aux: > AT+CRSM=176,28503,0,0,100\r
ofonod[30132]: Aux: < \r\n
ofonod[30132]: Aux: < +CRSM:
144,0,00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\r\n\r\nOK\r\n

Cheers
Nicola Lunghi




On Tue, 10 Dec 2019@14:59, Giacinto Cifelli <gciofono@gmail.com> wrote:

> Hi Nicola,
>
> On Tue, Dec 10, 2019 at 2:33 PM nick83ola <nick83ola@gmail.com> wrote:
> >
> > Hi,
> > I'm a newbie of ofono and I'm having some issue connecting with
> connman/ofono.
> >
> > There's a way to retrieve the apn for a specific network and
> automatically create a context?
> > I tried to use the mbpi plugins but a lot of network have duplicates in
> the apn list.
> >
> > There's also a property in modem properties
> >   [ org.ofono.AllowedAccessPoints ]
> >
> > but is empty
> >
> > what's the smart way to retrieve the APN for a given network
> programmaticly?
>
> I am afraid there isn't.
> And this because there are several APNs for each network, for
> segmenting the customers or the traffic, and there are private APNs,
> MVNOs APNs...
>
> >
> > Thanks
> > Nicola Lunghi
> >
> >
> > /list-modems
> > [ /telit_0 ]
> >     Online = 1
> >     Powered = 1
> >     Lockdown = 0
> >     Emergency = 0
> >     Manufacturer = Telit
> >     Model = HE910-D
> >     Revision = 12.00.024
> >     Serial = 351579054636509
> >     SystemPath =
> /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1.3
> >     Interfaces = org.ofono.SmartMessaging org.ofono.PushNotification
> org.ofono.MessageManager org.ofono.Phonebook org.ofono.NetworkRegistration
> org.ofono.ConnectionManager org.ofono.AllowedAccessPoints
> org.ofono.SimManager
> >     Features = sms net gprs sim
> >     Type = hardware
> >     [ org.ofono.SmartMessaging ]
> >     [ org.ofono.PushNotification ]
> >     [ org.ofono.MessageManager ]
> >         ServiceCenterAddress = +353857000000
> >         UseDeliveryReports = 0
> >         Bearer = cs-preferred
> >         Alphabet = default
> >     [ org.ofono.Phonebook ]
> >     [ org.ofono.NetworkRegistration ]
> >         Status = denied
> >         Mode = auto
> >         Name =
> >     [ org.ofono.ConnectionManager ]
> >         Attached = 0
> >         Bearer = hsdpa
> >         RoamingAllowed = 0
> >         Powered = 1
> >     [ org.ofono.AllowedAccessPoints ]
> >     [ org.ofono.SimManager ]
> >         Present = 1
> >         CardIdentifier = 8935303052299844310
> >         SubscriberIdentity = 272032040423839
> >         ServiceProviderName = eir
> >         FixedDialing = 0
> >         BarredDialing = 0
> >         MobileCountryCode = 272
> >         MobileNetworkCode = 03
> >         SubscriberNumbers = +353858016215
> >         LockedPins =
> >         ServiceNumbers = [Call Wait Off] = '#43#' [Call Wait On] =
> '*43#' [Voice Mail 171] = '171' [Last Call Info] = '*#101#' [Nat Direct
> Enq] = '11811' [Int Direct Enq] = '11818' [Customer Care] = '1921' [Int
> Cust Care] = '+35317011450' [Int Voice Mail] = '+353855'
> >         PinRequired = none
> >         Retries = [pin = 3] [pin2 = 3] [puk = 10] [puk2 = 10]
> >         CardSlotCount = 1
> >         ActiveCardSlot = 1
> > _______________________________________________
> > ofono mailing list -- ofono(a)ofono.org
> > To unsubscribe send an email to ofono-leave(a)ofono.org
>
> BR,
> Giacinto
>

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 5525 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: automatically retrieve the apn for a network
  2019-12-10 18:35   ` nick83ola
@ 2019-12-10 19:05     ` Giacinto Cifelli
  0 siblings, 0 replies; 4+ messages in thread
From: Giacinto Cifelli @ 2019-12-10 19:05 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 625 bytes --]

Hi Nicola,


On Tue, Dec 10, 2019 at 7:35 PM nick83ola <nick83ola@gmail.com> wrote:
>
> Hi Giacinto,
>
> thanks for your email.
> Is not possible either to get it from the SIM card itself?

yes, this is exactly the property you mentioned earlier:
org.ofono.AllowedAccessPoints

but in general is not populated in the SIM. You can also see this in
the apdu answer you posted below:
          00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF


BR,
Giacinto

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-10 19:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-10 13:33 automatically retrieve the apn for a network nick83ola
2019-12-10 14:59 ` Giacinto Cifelli
2019-12-10 18:35   ` nick83ola
2019-12-10 19:05     ` Giacinto Cifelli

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.