0
  1. 我收到有关 DeviceInformation 命令的“CommandFormatError”。

这就是我作为 DeviceInformation 命令发送的内容:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd>">
<plist version="1.0">
     <dict><key>Command</key>
          <dict>
               <key>RequestType</key>
               <string>DeviceInformation</string>
          </dict>
          <key>CommandUUID</key>
          <string></string>
     </dict>
</plist>
4

2 回答 2

4

MDM API 文档对此功能有点模糊。您实际上需要查询您希望从设备接收的每个值。这是一个查询 iOS 设备可能具有的所有值的示例。没有特定功能的设备(例如 iPod Touch 没有 3g 连接,因此没有运营商相关信息)将返回空值。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist
PUBLIC "-//Apple//DTD PLIST 1.0//EN"
       "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
 <dict>
  <key>Command</key>
  <dict>
   <key>RequestType</key>
   <string>DeviceInformation</string>
   <key>Queries</key>
   <array>
    <string>AvailableDeviceCapacity</string>
    <string>BluetoothMAC</string>
    <string>BuildVersion</string>
    <string>CarrierSettingsVersion</string>
    <string>CurrentCarrierNetwork</string>
    <string>CurrentMCC</string>
    <string>CurrentMNC</string>
    <string>DataRoamingEnabled</string>
    <string>DeviceCapacity</string>
    <string>DeviceName</string>
    <string>ICCID</string>
    <string>IMEI</string>
    <string>IsRoaming</string>
    <string>Model</string>
    <string>ModelName</string>
    <string>ModemFirmwareVersion</string>
    <string>OSVersion</string>
    <string>PhoneNumber</string>
    <string>Product</string>
    <string>ProductName</string>
    <string>SIMCarrierNetwork</string>
    <string>SIMMCC</string>
    <string>SIMMNC</string>
    <string>SerialNumber</string>
    <string>UDID</string>
    <string>WiFiMAC</string>
    <string>UDID</string>
   </array>
  </dict>
  <key>CommandUUID</key>
  <string>94d45445-bf54-42df-9777-6280783b49e7</string>
 </dict>
</plist>
于 2013-01-09T23:17:28.820 回答
0

您的帖子显示该CommandUUID值为空;它不能为空,因为它是必需的值。

于 2012-01-14T16:19:31.763 回答