Re: Does the get_service_provider_name method only return a name if the SIM is a USIM?

2010-02-08 Thread Aki Niemi
la, 2010-02-06 kello 11:10 +0100, ext Faheem Pervez kirjoitti:
 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?

Not all SIM cards have the SPN field set. Overall, there are four
sources of names for network operators:

  * Service Provider Name (SPN) field on the SIM
  * CPHS operator name on the SIM card
  * Hard-coded name based on a list that GSMA publishes
periodically This is typically stored on the modem firmware
  * NITZ indications that the network sends

What gets displayed on the home screen, for instance, is some
combination of these names, depending on certain conditions set on the
SIM card, and whether the device is roaming or not.

Cheers,
Aki

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Does the get_service_provider_name method only return a name if the SIM is a USIM?

2010-02-08 Thread Aki Niemi
ma, 2010-02-08 kello 08:09 +0100, ext Hartti Suomela kirjoitti:

 In short, the digits for both MNC and MCC are stored in 4 bit fields
 in the resulting 3 bytes
      
 mcc2 mcc1 mnc3 mcc3 mnc2 mnc1

Note that the MNC can be either 2 or 3 digits long. In the former case,
it's padded with 0xF.

Cheers,
Aki


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Does the get_service_provider_name method only return a name if the SIM is a USIM?

2010-02-07 Thread Aldon Hynes
It is worth noting that I also get a blank string when I execute this on my
N900 using an ATT SIM

Aldon

-Original Message-
From: maemo-developers-boun...@maemo.org
[mailto:maemo-developers-boun...@maemo.org]on Behalf Of Faheem Pervez
Sent: Saturday, February 06, 2010 5:11 AM
To: maemo-developers@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@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers