locked
How to differentiate between No SIM and Unsupported SIM in mobile broadband metro App.

    Question

  • Hi All,

    I am working on a mobile broadband app.

    I need to identify if there is no SIM or unsupported SIM(SIM out of range, Range specified in metadata package)  inserted in modem.

    I did not find any APIs to determine this information.

    Please provide information for this. 

    Thanks,

    Vipin

    Tuesday, September 25, 2012 5:18 AM

Answers

  • Hi,

    If SIM is out of range, you can not see the MobileBroadbandAccount object, i mean MobileBroadbandAccountWatcher will not fire the event when a new Account came in. 

    To identify no sim, you should use MBN APIs, please check the sample here.

    These are my suggestions, there might be other ways...

    Friday, September 28, 2012 12:03 PM

All replies

  • MyMetro,

    I will look into this for you.

    Best Wishes - Eric

    Tuesday, September 25, 2012 9:01 PM
    Moderator
  • Hi,

    If SIM is out of range, you can not see the MobileBroadbandAccount object, i mean MobileBroadbandAccountWatcher will not fire the event when a new Account came in. 

    To identify no sim, you should use MBN APIs, please check the sample here.

    These are my suggestions, there might be other ways...

    Friday, September 28, 2012 12:03 PM
  • Hi mehmet6parmak,

    To identify no Sim, Is there any other way? I mean using privileged APIs for mobile broadband.

    As I do not want to use the MBN Apis.

    Thanks,

    Vipin

    Monday, October 01, 2012 6:29 AM
  • Hello MyMetro,

    First i want to state that for a mobile broadband application "device" is SIM Card, not the dongle or modem. So, "no SIM" state becomes "no device" state indeed. 

    No Device state means no MobileBroadbandAccount available. 

    So you are not priviliged if there is not a SIM Card on the machine. 

    I have a question for you :) Do MBN APIs work on ARM?  


    Monday, October 01, 2012 6:45 AM
  • Hi mehmet6parmak,

    Yes you are right, but my question is how to differentiate between no Sim and Invalid sim (the Sim which is not in the range specified in metadata package) for both case there will be no MobileBroadbandAccount.

    As I never verified MBN Apis for Arm but as per information MBN Apis works for ARM.

    Please follow below link which provide information How to Write Managed Code That Uses the Mobile Broadband API.

    http://msdn.microsoft.com/en-us/windows/hardware/gg487392.aspx

    I hope it would be helpful.

    Thanks,

    Vipin

    Thursday, October 04, 2012 5:46 AM