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 at 14:59, Giacinto Cifelli <[email protected]> wrote: > Hi Nicola, > > On Tue, Dec 10, 2019 at 2:33 PM nick83ola <[email protected]> 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 -- [email protected] > > To unsubscribe send an email to [email protected] > > BR, > Giacinto >
_______________________________________________ ofono mailing list -- [email protected] To unsubscribe send an email to [email protected]
