few questions regarding org.freesmartphone.GSM.SIM

Michael 'Mickey' Lauer mickey at vanille-media.de
Wed Jun 25 18:00:33 CEST 2008


Hi Thomas,

> As this is my first post, please let me use the occation to
> congratulate everyone for the great work that is happening here. Its
> simply amazing !

Thanks :)

> On to my questions:
>
> 1) Is there a way of learning if a SIM is present in the phone?

Yes. You can invoke any of the methods in org.freesmartphone.GSM.SIM and if 
the SIM is not present you will get 'org.freesmartphone.GSM.SIM.NotPresent' 
as dbus error back.

> I guess the real question i'm actually asking is this:
> Are CME Error codes supposed to be exposed as DBUS errors, or is the
> general plan to abstract the AT-Commandset and have sensible error
> values for every method to return instead ?

We do not want to use CME Errors, we want something higher level that has 
context (depending on the dbus call, same CME/CMS Errors can mean different 
things). I _do_ need to work on the dbus error spec in XML -- right now I'm 
using the following hierarchy in ophoned:

http://git.freesmartphone.org/?p=framework.git;a=blob;f=framework/subsystems/ophoned/gsm/error.py;h=79e232c627fcc47be716fbfd3a2d158bae48a180;hb=bdefce25fd1e1a7789a5700dc6a362f567f3ce93

> 2) Is there currently a way of sending a generic command to the SIM via
> DBUS ?
>
> The GSM 07.07 spec has the commands +CSIM and +CRSM (as per chapter
> 8.17/8.18) in order to send arbitraty commands to the SIM card. This
> can
> be useful for some interesting applications, i.e.:
> - eap-sim chalenge response for accessing hotspots in wpa-supplicant
> - ciphered home directories,
> - accessing special fields of the SIM (storing i.e. the SMS Central Number)
>
> Is this functionality considered to be too low level for it to be
> exposed on DBUS?

No, I think we do want that.

> In my opinion it should be added so that an easy way exists to write a
> SIM card backend driver for wpa-supplicant (EAP-SIM).

I agree. Can you please come up with a method/signal API draft for that so 
that we have a base for discussion?

Thanks,

:M:



More information about the smartphones-standards mailing list