将 Windows Phone 8.1 注册为开发者设备
Registering Windows Phone 8.1 as a Developer Device
我正在尝试调试来自 Microsoft Virtual Academy 的 Windows Visual Studio 示例项目,但无法让它与我的 phone 一起工作。我可以为 Windows(通用应用程序)调试它,但对于我的 phone 我无法 运行 模拟器或 运行 我的 phone 上的应用程序].我想让它在我的 phone 上工作,因为这是默认情况下应该工作的选项。
我尝试注册我的设备,但没成功:
我已经完成了这个 (Phone 8)other question 并尝试了列出的每个解决方案(重新启动、停止和启动服务,甚至在设备管理器中禁用该设备),但它仍然不工作。还有其他提示吗?
在 MSDN 中找到了解决方案。总的来说,在我:
之后,我能够注册我的 phone
- 分离我的 phone。
- 从设备管理器的“通用串行总线设备”下卸载了四个设备(都标记为我的phone)。
- 手动删除了密钥“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags2106610100”(数字匹配,因为我有诺基亚 920)
- 重新附加 phone
较长的版本是从 MSDN 复制并粘贴在下方以防其他人遇到此问题。
1. Open a command prompt and browse to this folder:
C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\CoreCon.0\Bin
Then run IpOverUsbEnum.exe (with the device unlocked!)
2.Expected results:
C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\CoreCon.0\Bi
n>ipoverusbenum
Partner:
Container Id: 6C5585FD-8C32-587B-BBDE-3DB382497937
Instance: USB\VID_0421&PID_0661&MI_01&2C0EBAFF&0&0001
Name: RM-820|Nokia Lumia 920
Guid: 00000011-6AE5-9FD1-0000-000000000000
Partner Services listening at ports:
Debugger 8888 -> 127.0.0.1:8888
DeviceReg 27177 -> 127.0.0.1:27077
Msvsmon 8016 -> 127.0.0.1:8016
RPCSurrogate00 6610 -> 127.0.0.1:6510
RPCSurrogate01 6611 -> 127.0.0.1:6511
RPCSurrogate02 6612 -> 127.0.0.1:6512
RPCSurrogate03 6613 -> 127.0.0.1:6513
RPCSurrogate04 6614 -> 127.0.0.1:6514
RPCSurrogate05 6615 -> 127.0.0.1:6515
RPCSurrogate06 6616 -> 127.0.0.1:6516
RPCSurrogate07 6617 -> 127.0.0.1:6517
RPCSurrogate08 6618 -> 127.0.0.1:6518
RPCSurrogate09 6619 -> 127.0.0.1:6519
RPCSurrogate10 6620 -> 127.0.0.1:6520
WPConManClient2Proxy 6891 -> 127.0.0.1:6791
WPPingSirep 29819 -> 127.0.0.1:29819
WPSirep 29917 -> 127.0.0.1:29817
If the output is as expected, most likely it’s not an IP Over USB issue.
3. If it reports RPC Server Unavailable, most likely the service is indeed not running on the PC.
4. If it reports no connected partners found:
- check the phone is unlocked
- check it is available in explorer to drag and drop files
- verify whether the USB device (i.e. the Phone) has been correctly detected and installed. This step is not trivial as it requires looking up the USB device (i.e. the phone) in the registry.
The following example is based on inspection in the registry (regedit) of an installed Nokia 920 device. If looking for a different device, the difference will be in the VID (Vendor ID, represented as VID_vvvv) and PID (Product ID, represented as PID_pppp).
1) Inspect the DeviceInterfaceGUID value in the registry key indicated below. If the device failed to install, that value may be missing. Please note this is the interface 1 (MI_01), interface 2 is used by Nokia for something different.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_0421&PID_0661&MI_01&338e4600&1&0001\Device Parameters]
"ExtPropDescSemaphore"=dword:00000001
"DeviceInterfaceGUID"="{26fedc4e-6ac3-4241-9e4d-e3d4b2c5c534}"
2) Inspect the usbflags2106610100 key below. The osvc value is the relevant thing to look for, it won’t start with 01 if the device wasn’t recognized correctly:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags2106610100]
"osvc"=hex:01,42
"SkipContainerIdQuery"=hex:01,00,00,00
The long number, in this case 042106610100 was derived from the Vendor ID (0421), the Product ID (0661) and the revision number (0100) of the device.
More USBFLAGS info:
http://msdn.microsoft.com/en-us/library/windows/hardware/jj649944(v=vs.85).aspx
The correct workaround, if these values are not correct, is to (1) uninstall the devices under “Universal Serial Bus Devices” from Device Manager, (2) remove the key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags2106610100” manually (use that number only if it is the Nokia 920), and then attach the phone again.
Mark Chamberlain Sr. Escalation Engineer | Microsoft Developer Support | Windows Phone 7
我正在尝试调试来自 Microsoft Virtual Academy 的 Windows Visual Studio 示例项目,但无法让它与我的 phone 一起工作。我可以为 Windows(通用应用程序)调试它,但对于我的 phone 我无法 运行 模拟器或 运行 我的 phone 上的应用程序].我想让它在我的 phone 上工作,因为这是默认情况下应该工作的选项。
我尝试注册我的设备,但没成功:
我已经完成了这个 (Phone 8)other question 并尝试了列出的每个解决方案(重新启动、停止和启动服务,甚至在设备管理器中禁用该设备),但它仍然不工作。还有其他提示吗?
在 MSDN 中找到了解决方案。总的来说,在我:
之后,我能够注册我的 phone- 分离我的 phone。
- 从设备管理器的“通用串行总线设备”下卸载了四个设备(都标记为我的phone)。
- 手动删除了密钥“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags2106610100”(数字匹配,因为我有诺基亚 920)
- 重新附加 phone
较长的版本是从 MSDN 复制并粘贴在下方以防其他人遇到此问题。
1. Open a command prompt and browse to this folder:
C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\CoreCon.0\Bin
Then run IpOverUsbEnum.exe (with the device unlocked!)
2.Expected results:
C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\CoreCon.0\Bi
n>ipoverusbenum
Partner:
Container Id: 6C5585FD-8C32-587B-BBDE-3DB382497937
Instance: USB\VID_0421&PID_0661&MI_01&2C0EBAFF&0&0001
Name: RM-820|Nokia Lumia 920
Guid: 00000011-6AE5-9FD1-0000-000000000000
Partner Services listening at ports:
Debugger 8888 -> 127.0.0.1:8888
DeviceReg 27177 -> 127.0.0.1:27077
Msvsmon 8016 -> 127.0.0.1:8016
RPCSurrogate00 6610 -> 127.0.0.1:6510
RPCSurrogate01 6611 -> 127.0.0.1:6511
RPCSurrogate02 6612 -> 127.0.0.1:6512
RPCSurrogate03 6613 -> 127.0.0.1:6513
RPCSurrogate04 6614 -> 127.0.0.1:6514
RPCSurrogate05 6615 -> 127.0.0.1:6515
RPCSurrogate06 6616 -> 127.0.0.1:6516
RPCSurrogate07 6617 -> 127.0.0.1:6517
RPCSurrogate08 6618 -> 127.0.0.1:6518
RPCSurrogate09 6619 -> 127.0.0.1:6519
RPCSurrogate10 6620 -> 127.0.0.1:6520
WPConManClient2Proxy 6891 -> 127.0.0.1:6791
WPPingSirep 29819 -> 127.0.0.1:29819
WPSirep 29917 -> 127.0.0.1:29817
If the output is as expected, most likely it’s not an IP Over USB issue.
3. If it reports RPC Server Unavailable, most likely the service is indeed not running on the PC.
4. If it reports no connected partners found:
- check the phone is unlocked
- check it is available in explorer to drag and drop files
- verify whether the USB device (i.e. the Phone) has been correctly detected and installed. This step is not trivial as it requires looking up the USB device (i.e. the phone) in the registry.
The following example is based on inspection in the registry (regedit) of an installed Nokia 920 device. If looking for a different device, the difference will be in the VID (Vendor ID, represented as VID_vvvv) and PID (Product ID, represented as PID_pppp).
1) Inspect the DeviceInterfaceGUID value in the registry key indicated below. If the device failed to install, that value may be missing. Please note this is the interface 1 (MI_01), interface 2 is used by Nokia for something different.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_0421&PID_0661&MI_01&338e4600&1&0001\Device Parameters]
"ExtPropDescSemaphore"=dword:00000001
"DeviceInterfaceGUID"="{26fedc4e-6ac3-4241-9e4d-e3d4b2c5c534}"
2) Inspect the usbflags2106610100 key below. The osvc value is the relevant thing to look for, it won’t start with 01 if the device wasn’t recognized correctly:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags2106610100]
"osvc"=hex:01,42
"SkipContainerIdQuery"=hex:01,00,00,00
The long number, in this case 042106610100 was derived from the Vendor ID (0421), the Product ID (0661) and the revision number (0100) of the device.
More USBFLAGS info:
http://msdn.microsoft.com/en-us/library/windows/hardware/jj649944(v=vs.85).aspx
The correct workaround, if these values are not correct, is to (1) uninstall the devices under “Universal Serial Bus Devices” from Device Manager, (2) remove the key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags2106610100” manually (use that number only if it is the Nokia 920), and then attach the phone again.
Mark Chamberlain Sr. Escalation Engineer | Microsoft Developer Support | Windows Phone 7