DeviceInstanceService 云解决方案提供商DeviceInstanceService CSP

DeviceInstanceService 配置服务提供商提供了某些设备库存信息,对于企业都有用。The DeviceInstanceService configuration service provider provides some device inventory information that could be useful for an enterprise. 此外,此 CSP 支持在有双 SIM 时查询两个不同的电话号码。Additionally, this CSP supports querying two different phone numbers in the case of dual SIM. SIM 1 和 SIM 2 的 URI 分别是 ./Vendor/MSFT/DeviceInstanceService/Identity1 和 ./Vendor/MSFT/DeviceInstanceService/Identity/Identity2。The URIs for SIM 1 and SIM 2 are ./Vendor/MSFT/DeviceInstanceService/Identity/Identity1 and ./Vendor/MSFT/DeviceInstanceService/Identity/Identity2 respectively.

注意 停止使用 DeviceInstanceService CSP,并改为使用更新后的 DeviceStatus CSP。Note Stop using DeviceInstanceService CSP and use the updated DeviceStatus CSP instead.

DeviceInstance CSP 仅在 Windows10 移动版中受支持。The DeviceInstance CSP is only supported in Windows10 Mobile.

下图以新格式显示 DeviceInstanceService 配置服务提供程序。The following diagram shows the DeviceInstanceService configuration service provider in tree format.

provisioning-csp-deviceinstanceservice

漫游Roaming
一个指定设备漫游状态的布尔值。A boolean value that specifies the roaming status of the device. 在设备支持两个不同的电话号码时,使用 ./Vendor/MSFT/DeviceInstanceService/Identify1/Roaming 在功能上显式调用 SIM 1 是等效于使用 ./Vendor/MSFT/DeviceInstanceService/Roaming 的。In dual SIM mode when the device supports two different phone numbers, querying SIM 1 explicitly with ./Vendor/MSFT/DeviceInstanceService/Identify1/Roaming is functionally equivalent to using ./Vendor/MSFT/DeviceInstanceService/Roaming.

支持的操作 可以获取Supported operation is Get.

如果设备漫游,则返回True; 否则 ,False。Returns True if the device is roaming; otherwise False.

PhoneNumberPhoneNumber
代表设备的电话号码的字符串。A string that represents the phone number of the device. 如果设备支持两个不同的电话号码,请使用 ./Vendor/MSFT/DeviceInstanceService/Identify1/PhoneNumber 显式查询 SIM 1,但在功能上等效于使用 ./Vendor/MSFT/DeviceInstanceService/PhoneNumber。In case of dual SIM mode when the device supports two different phone numbers, querying SIM 1 explicitly with ./Vendor/MSFT/DeviceInstanceService/Identify1/PhoneNumber is functionally equivalent to using ./Vendor/MSFT/DeviceInstanceService/PhoneNumber.

值类型分为 Chr。Value type is chr.

支持的操作 可以获取Supported operation is Get.

IMEIIMEI
一个字符串表示该设备的国际移动电 (设备设备) 。A string the represents the International Mobile Station Equipment Identity (IMEI) of the device. 如果设备支持两个不同的电话号码,请使用 ./Vendor/MSFT/DeviceInstanceService/Identify1/IMEI 显式查询 SIM 1,这是等效于使用 ./Vendor/MSFT/DeviceInstanceService/IMEI 的功能。In case of dual SIM mode when the device supports two different phone numbers, querying SIM 1 explicitly with ./Vendor/MSFT/DeviceInstanceService/Identify1/IMEI is functionally equivalent to using ./Vendor/MSFT/DeviceInstanceService/IMEI.

值类型分为 Chr。Value type is chr.

支持的操作 可以获取Supported operation is Get.

IMSIIMSI
一个表示设备的移动国家) /地区代码 (移动网络代码 (前 6 位数的字符串。A string that represents the first six digits of device IMSI number (Mobile Country/region Code, Mobile Network Code) of the device. 如果设备支持两个不同的电话号码,请使用 ./Vendor/MSFT/DeviceInstanceService/Identify1/IMSI 显式查询 SIM 1,在功能上是等效于使用 ./Vendor/MSFT/DeviceInstanceService/IMSI 的。In case of dual SIM mode when the device supports two different phone numbers, querying SIM 1 explicitly with ./Vendor/MSFT/DeviceInstanceService/Identify1/IMSI is functionally equivalent to using ./Vendor/MSFT/DeviceInstanceService/IMSI.

值类型分为 Chr。Value type is chr.

支持的操作 可以获取Supported operation is Get.

标识Identity
针对每个 SIMIM 特定信息进行分组的父节点,以在选择每项特定的 SIM 模式下。The parent node to group per SIM specific information in case of dual SIM mode.

Identity1Identity1
针对 SIM1 特定信息进行分组的父节点,以在选择拨号 SIM 模式的情况下。The parent node to group SIM1 specific information in case of dual SIM mode.

Identity2Identity2
针对 SIM2 特定信息进行分组的父节点,以在具有单个 SIMIM 模式的情况下。The parent node to group SIM2 specific information in case of dual SIM mode.

示例Examples

以下示例显示如何查询设备上的漫游状态和电话号码。The following sample shows how to query roaming status and phone number on the device.

<Get>
      <CmdID>2</CmdID>
      <Item>
        <Target>
          <LocURI>./Vendor/MSFT/DeviceInstanceService/Roaming</LocURI>
        </Target>
      </Item>
      <Item>
        <Target>
          <LocURI>./Vendor/MSFT/DeviceInstanceService/PhoneNumber</LocURI>
        </Target>
      </Item>
</Get>

从手机响应。Response from the phone.

<Results>
   <CmdID>3</CmdID>
   <MsgRef>1</MsgRef>
   <CmdRef>2</CmdRef>
   <Item>
      <Source><LocURI>./Vendor/MSFT/DeviceInstanceService/Roaming</LocURI></Source>
      <Meta><Format xmlns="syncml:metinf">bool</Format></Meta>
      <Data>false</Data>
   </Item>
   <Item>
      <Source><LocURI>./Vendor/MSFT/DeviceInstanceService/PhoneNumber</LocURI></Source>
      <Data>+14254458055</Data>
   </Item>
</Results>

相关主题Related topics

配置服务提供程序参考Configuration service provider reference