<div>I do not know why the resulting string is empty.</div><div>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...)</div>
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<div><br><div><div>dbus-send --system --type=method_call --print-reply</div>
<div>--dest=com.nokia.phone.SIM /com/nokia/phone/SIM Phone.Sim.read_hplmn</div><div><br></div><div>The result you get back is somewhat cryptic, but you should be able to get the numbers out</div><div>In short, the digits for both MNC and MCC are stored in 4 bit fields in the resulting 3 bytes</div>
<div><div>xxxx xxxx xxxx xxxx xxxx xxxx</div><div>mcc2 mcc1 mnc3 mcc3 mnc2 mnc1</div><div><br></div><div>Hartti</div></div><div><br></div><div><br><div class="gmail_quote">On Sun, Feb 7, 2010 at 8:20 AM, Aldon Hynes <span dir="ltr"><<a href="mailto:Aldon.Hynes@orient-lodge.com">Aldon.Hynes@orient-lodge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It is worth noting that I also get a blank string when I execute this on my<br>
N900 using an AT&T SIM<br>
<font color="#888888"><br>
Aldon<br>
</font><div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:maemo-developers-bounces@maemo.org">maemo-developers-bounces@maemo.org</a><br>
[mailto:<a href="mailto:maemo-developers-bounces@maemo.org">maemo-developers-bounces@maemo.org</a>]On Behalf Of Faheem Pervez<br>
Sent: Saturday, February 06, 2010 5:11 AM<br>
To: <a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a> List<br>
Subject: Does the get_service_provider_name method only return a name if<br>
the SIM is a USIM?<br>
<br>
<br>
Hiya,<br>
<br>
As said in the title: dbus-send --system --type=method_call<br>
--print-reply --dest=com.nokia.phone.SIM /com/nokia/phone/SIM<br>
Phone.Sim.get_service_provider_name returns a blank string. As I only<br>
have a T-Mobile SIM to be trying this out with, I'd like to know if a<br>
string is only returned if a USIM is inserted. Or maybe I'm invoking<br>
it in the wrong manner?<br>
<br>
Best Regards,<br>
Faheem<br>
_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
<br>
_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</div></div></blockquote></div><br></div></div></div>