[maemo-developers] Does the get_service_provider_name method only return a name if the SIM is a USIM?
From: Hartti Suomela hartti at gmail.comDate: Mon Feb 8 09:09:06 EET 2010
- Previous message: Does the get_service_provider_name method only return a name if the SIM is a USIM?
- Next message: Does the get_service_provider_name method only return a name if the SIM is a USIM?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I do not know why the resulting string is empty. BTW. are you trying to find out your home service provider or the current service provider (different, if you are roaming - but unfortunately I do not know what the get_service_provider_name is supposed to return...) If you need to know the home network provider: You could use the MNC (Mobile network code) & MCC (Mobile country code) combination to identify your home operator dbus-send --system --type=method_call --print-reply --dest=com.nokia.phone.SIM /com/nokia/phone/SIM Phone.Sim.read_hplmn The result you get back is somewhat cryptic, but you should be able to get the numbers out In short, the digits for both MNC and MCC are stored in 4 bit fields in the resulting 3 bytes xxxx xxxx xxxx xxxx xxxx xxxx mcc2 mcc1 mnc3 mcc3 mnc2 mnc1 Hartti On Sun, Feb 7, 2010 at 8:20 AM, Aldon Hynes <Aldon.Hynes at orient-lodge.com>wrote: > It is worth noting that I also get a blank string when I execute this on my > N900 using an AT&T SIM > > Aldon > > -----Original Message----- > From: maemo-developers-bounces at maemo.org > [mailto:maemo-developers-bounces at maemo.org]On Behalf Of Faheem Pervez > Sent: Saturday, February 06, 2010 5:11 AM > To: maemo-developers at maemo.org List > Subject: Does the get_service_provider_name method only return a name if > the SIM is a USIM? > > > Hiya, > > As said in the title: dbus-send --system --type=method_call > --print-reply --dest=com.nokia.phone.SIM /com/nokia/phone/SIM > Phone.Sim.get_service_provider_name returns a blank string. As I only > have a T-Mobile SIM to be trying this out with, I'd like to know if a > string is only returned if a USIM is inserted. Or maybe I'm invoking > it in the wrong manner? > > Best Regards, > Faheem > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers > > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100207/6bc196ba/attachment.htm>
- Previous message: Does the get_service_provider_name method only return a name if the SIM is a USIM?
- Next message: Does the get_service_provider_name method only return a name if the SIM is a USIM?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]