Get SIM card ICCID

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm developing a new application that will run on a WM5 device for field
service and use GPRS for updating a host system. I would like to be able to
retrieve the SIM card ICCID for asset management purposes. Has anyone done
this use vb .netcf?
 
JohnB said:
I'm developing a new application that will run on a WM5 device for field
service and use GPRS for updating a host system. I would like to be able to
retrieve the SIM card ICCID for asset management purposes. Has anyone done
this use vb .netcf?

Hi John,

You have a couple of options I believe:

1) Do a search through the device registry for ICCID and hope you get
lucky. (Some devices store the most recent ICCID there)
2) Take a look at the Extended Telephony API (ExTAPI) if you don't mind
writing some native code

http://msdn.microsoft.com/library/en-us/mobilesdk5/html/mob5oriExtendedTAPI.asp?frame=true

There is an EXTAPI example in the SDK as well, search on extapi.cpp

What you want to do is fetch the dwSubscriberNumber value in
LINEGENERALINFO using lineGetGeneralInfo().

3) Take a look at this blog post by the esteemed Peter Foot:
http://www.peterfoot.net/DetermineCurrentGSMNetwork.aspx There is a
managed TAPI wrapper available via the OpenNETCF library.

Keep in mind that this will only work for GSM devices. I have heard
that some CDMA devices will give you the ESN but that its not guaranteed
to work.

~~K
 
JohnB said:
I'm developing a new application that will run on a WM5 device for field
service and use GPRS for updating a host system. I would like to be able to
retrieve the SIM card ICCID for asset management purposes. Has anyone done
this use vb .netcf?

Hi John,

You have a couple of options I believe:

1) Do a search through the device registry for ICCID and hope you get
lucky. (Some devices store the most recent ICCID there)
2) Take a look at the Extended Telephony API (ExTAPI) if you don't mind
writing some native code

http://msdn.microsoft.com/library/en-us/mobilesdk5/html/mob5oriExtendedTAPI.asp?frame=true

There is an EXTAPI example in the SDK as well, search on extapi.cpp

What you want to do is fetch the dwSubscriberNumber value in
LINEGENERALINFO using lineGetGeneralInfo().

3) Take a look at this blog post by the esteemed Peter Foot:
http://www.peterfoot.net/DetermineCurrentGSMNetwork.aspx There is a
managed TAPI wrapper available via the OpenNETCF library.

Keep in mind that this will only work for GSM devices. I have heard
that some CDMA devices will give you the ESN but that its not guaranteed
to work.

~~K
 
Kevin said:
JohnB said:
I'm developing a new application that will run on a WM5 device for
field service and use GPRS for updating a host system.
[Deletia...]

Keep in mind that this will only work for GSM devices. I have heard
that some CDMA devices will give you the ESN but that its not
guaranteed to work.

Should be OK. Unless I am very much mistaken, GPRS is only available on GSM
networks anyway.

Ebbe
 
Back
Top