locked
Requirements for accessing MobileBroadband device

    Question

  • Hi,

    My question is on the title.  What i have done so far:

    • Created a Device MetaData using visual studio(Driver menu --> Device Metadata --> Author)
    • While creating MetaData, gave the app information as Device app and also added to priviliged app list and checked the Access Driver checkbox. 
    • Added the Experience Id of created MetaData to StoreManifest.xml inside metro app project. Actually it is the MobileBroadband sample provided by microsoft.
    • Refreshed the Devices(inside devices and printers) list and see that the metadata package applied. 
    • Run the application to see my mobilebroadband device, but MobileBroadbandAccount.AvailableNetworkAccountIds is 0. 
    • Trace the log file using netsh:

    [0]0BF4.1B28::‎2012‎-‎04‎-‎03 23:34:40.670 [Microsoft-Windows-WWAN-NDISUIO-EVENTS]WWAN NDISUIO Event: Unsolicited notification indicated by the driver 
    [1]0530.1A04::‎2012‎-‎04‎-‎03 23:34:40.674 [Microsoft-Windows-WWAN-SVC-EVENTS]WWAN Service event: Signal Notification recieved 
    [0]1034.19B0::‎2012‎-‎04‎-‎03 23:34:42.802 [Microsoft-Windows-Mobile-Broadband-Experience-Api]MobileBroadbandAccount.AvailableNetworkAccountIds: There are no account IDs that this app can use. This app's package is not in the list of approved package family names in serviceinfo.xml inside the associated metadata package. 

    what is the wrong thing i do?

    thanks

    Tuesday, April 03, 2012 8:47 PM

Answers

  • This functionality is only available to mobile operator apps and Metro style apps given privileged access by mobile network operators.

    Best Wishes - Eric

    Wednesday, June 06, 2012 4:48 AM
    Moderator

All replies

  • It looks like there is an issue with the device Metadata.  Could you double check that?

    Best Wishes - Eric

    Wednesday, April 04, 2012 3:11 PM
    Moderator
  • Hello, 

    sorry for the delay,

    I checked the metadata it should be ok, also enabled tracing and get the logs to see what is going on, After creating metadata package and copying it to the metadatastore I enabled tracing. Device was unplugged during this process. Then i plugged the device in. 

    • Package succesfully unpacked to Metadata Cache,
    • When i look at registry, Account record was there but it was not complete. There were only a few values. 

    Logs showing the creation of Account succesfully, 

    [0]04D0.0E7C::‎2012‎-‎04‎-‎05 14:59:48.468 [Microsoft-Windows-WWAN-SVC-EVENTS]Account Management: Account updater started for network interface {16fc15c8-6f52-4787-bf14-0eaae9bb96e7}. 
    [0]04D0.0E7C::‎2012‎-‎04‎-‎05 14:59:48.468 [Microsoft-Windows-WWAN-SVC-EVENTS]Account Management: Getting home provider ID from hardware device for network interface {16FC15C8-6F52-4787-BF14-0EAAE9BB96E7}.  Provider ID is "28601". 
    [0]04D0.0E7C::‎2012‎-‎04‎-‎05 14:59:48.468 [Microsoft-Windows-WWAN-SVC-EVENTS]Account Management: Getting home provider name from hardware device for network interface {16FC15C8-6F52-4787-BF14-0EAAE9BB96E7}.  Provider name is "TCELL". 
    [0]04D0.0E7C::‎2012‎-‎04‎-‎05 14:59:48.468 [Microsoft-Windows-WWAN-SVC-EVENTS]Account Management: Network identity not recognized, assigning new network account ID. 
    [0]04D0.0E7C::‎2012‎-‎04‎-‎05 14:59:48.469 [Microsoft-Windows-WWAN-SVC-EVENTS]Account Management: Devnode create/update started. 
    [1]04D0.0DA8::‎2012‎-‎04‎-‎05 14:59:48.469 [Microsoft-Windows-WWAN-SVC-EVENTS]WWAN Service event: Start Connecting 
    [1]04D0.0E7C::‎2012‎-‎04‎-‎05 14:59:48.471 [Microsoft-Windows-WWAN-SVC-EVENTS]Account Management: Devnode create/update finished. 
    [1]04D0.0E7C::‎2012‎-‎04‎-‎05 14:59:48.471 [Microsoft-Windows-WWAN-SVC-EVENTS]Account Management: Data store create/update started. 
    [1]04D0.0E7C::‎2012‎-‎04‎-‎05 14:59:48.472 [Microsoft-Windows-WWAN-SVC-EVENTS]Account Management: Data store create/update finished. 
    [1]04D0.0E7C::‎2012‎-‎04‎-‎05 14:59:48.472 [Microsoft-Windows-WWAN-SVC-EVENTS]Account Management: Account updater finished for network interface {16fc15c8-6f52-4787-bf14-0eaae9bb96e7}. 

    In the document "Preparing to Develop Metro Style Apps for Mobile Broadband, Page 9" a case mentioned like below: 

    "If, on the other hand, there are only a few values (specifically, no ServiceProviderIconPath or ServiceProviderFriendlyName values – see Figure 2), it means that the mobile broadband adapter was inserted before the metadata package was copied into the device metadata store (this will also happen if the metadata package was corrupted or if its Hardware IDs were incorrect, but in that case there would also be no directory in the metadata cache for the package – see “Checking the Metadata Cache”)."

    A few values in registry fits, but i plugged the device after copying metadata and metadata cache is not empty. I checked other parts of the document and could not find anything related to my case. 

    There is just one error inside the log:

    [1]0A1C.11B4::‎2012‎-‎04‎-‎05 15:00:06.612 [Microsoft-Windows-Mobile-Broadband-Experience-Api-Internal]Error retrieving property "CompanionAppId" for account bound to network interface {16FC15C8-6F52-4787-BF14-0EAAE9BB96E7}.  Error is 0x80070490: Element not found. 

    You can get the complete log file here

    Unpackaged metadata file from here

    Thanks




    Saturday, April 07, 2012 6:49 AM
  • This functionality is only available to mobile operator apps and Metro style apps given privileged access by mobile network operators.

    Best Wishes - Eric

    Wednesday, June 06, 2012 4:48 AM
    Moderator
  • Hi, Eric,

    how can Metro style apps obtain privileged access by mobile network operators. Do mobile network operators need to add the Package Name and Publisher Name to Privileged Applications in the metadata package? Or mobile network operators offer some infomation used to generate the metadata package? 

    I tried to create the service metadata package by updating the existing service metadata package located in "C:\ProgramData\Microsoft\Windows\DeviceMetadataCache\dmrccache\en-US\*.devicemetadata.ms" using Mobile Broadband Metadata Authoring Wizard.  The existing metadata package is generated when I insert the sim card to the windows8 RT version device. I just added the "Mobile broadband account and device management sample" package Name and Publisher Name to Privileged Applications and keep other elements unchanged, such as hardware ID, service number. And then I copy the newly generated metadata package to "C:\ProgramData\Microsoft\Windows\DeviceMetadataStore\en-us\".

    But still MobileBroadbandAccountAvailableNetworkAccountIds Returns an Empty List and the WWAN log is the same.

    Tuesday, March 19, 2013 7:05 AM