VS2008远程连接Win Mobile 6.1设备 [英] VS2008 remotely connect to Win Mobile 6.1 Device
问题描述
因此,我获得了 Windows Mobile 6.1 经典设备以用于项目,但我获得了网络适配器,而不是 USB 电缆.所以我必须跨网络构建和测试.
So I've been given to a Windows Mobile 6.1 Classic Device to work with for a project, but I was given a network adapter for it and not a USB cable. So I have to build and test across the network.
那么如何让 Visual Studio 通过网络连接到设备?我已阅读以下文章无济于事:
So how do I get Visual Studio to connect to the device across the network? I have read the following articles to no avail:
还看了:
但两者都没有帮助我,我不知道接下来该尝试什么来尝试让 Visual Studio 08 远程连接到此设备
But neither have helped me, I am not sure what to try next to try and get Visual Studio 08 to connect to this device remotely
我可以 ping 设备,但无法连接到设备.我知道该设备已连接到网络,因为它在底座中时可以浏览互联网.
I can ping the device, but I can't connect to the device. I know the device is connected to the network because while it is in the cradle it can browse the internet.
我缺少什么才能让它发挥作用?如果它首先可以工作......
What am I missing to get this to work? If it can work in the first place...
编辑:明确地说,我目前遇到的问题与调试无关.它与 Visual 仅连接到设备有关.
Edit: To make it clear, the issue I currently have is not to do with Debugging. It has to do with Visual merely connecting to the device.
编辑 2:如果有帮助,我的要连接的设备列表中没有 Windows Mobile 6.1 经典设备.我有;
Edit 2: If it helps I don't have a Windows Mobile 6.1 Classic Device in my list of Devices to connect to. I have;
- Windows CE 设备
- Windows Mobile 6 专业版设备
- Windows Mobile 6 标准设备
推荐答案
如何在不使用 ActiveSync/WMDC 的情况下使用 TCP/IP 将 Visual Studio 2008 连接到 SmartDevice
远程文件
您需要安装 VS2008 Windows Mobile SDK 的以下文件:
How to connect Visual Studio 2008 to SmartDevice using TCP/IP without ActiveSync/WMDC
Remote Files
You need the following files of your VS2008 Windows Mobile SDK installation:
ClientShutdown.exe
cmaccept.EXE
ConManClient2.exe
eDbgTL.dll
TcpConnectionA.dll
更改设备上的注册表项 HLKM\System\CoreConOverrideSecurity=DWORD:1
change registry key HLKM\System\CoreConOverrideSecurity=DWORD:1 on device
您需要的文件位于(取决于设备上的 Windows CE 版本):
The files you need are located at (depends on Windows CE version on device):
Windows CE 4.2、Windows CE .NET、Windows Mobile 2003、PocketPC 2003:C:\Program Files\Common Files\Microsoft Shared\CoreCon\1.0\target\wce400\armv4i
Windows CE 4.2, Windows CE .NET, Windows Mobile 2003, PocketPC 2003: C:\Program Files\Common Files\Microsoft Shared\CoreCon\1.0\target\wce400\armv4i
对于 Visual Studio 2008 和基于 Windows CE 5 的 SDK,您可以使用 ftp \hjgode.de\temp\rdb2008.exe 工具(在以下示例中使用)或原始 rdb2008.exe 源.
For Visual Studio 2008 and a Windows CE 5 based SDK you can use ftp \hjgode.de\temp\rdb2008.exe tool (used in following example) or the original rdb2008.exe source.
检查设备的IP
在设备上启动rdb2008.exe
**在 rdb2008 中按 [Prepare] 将提取文件并设置 reg 条目
**Press [Prepare] in rdb2008 will extract files and set reg entry
确保您使用匹配的 Windows Mobile SDK.您也可以在 Windows Mobile 6.5 Classic 设备上使用 Windows Mobile 6.5 Professional SDK.或者您将 Window Mobile 6 SDK 与 Windows Mobile 6.5 Classic 设备一起使用.只需为设备使用合适的 SDK.
Ensure you use a matching Windows Mobile SDK. You may use Windows Mobile 6.5 Professional SDK also on a Windows Mobile 6.5 Classic device. Or you use Window Mobile 6 SDK with a Windows Mobile 6.5 Classic device. Just use a appropriate SDK for the device.
设置VS2008远程设备IP和端口
选择工具-选项-设备工具-设备
Select Tools-Options-Device Tools-Devices
在此处选择合适的平台(显示平台的设备)!不过话说回来,匹配基本操作系统(Windows CE 5)就足够了.
Select a appropriate Platform here (show devices for platform)! But as said, it is sufficient to match the basic OS (Windows CE 5).
选择正确的平台后选择一个设备(没有模拟器)然后点击[另存为]输入 RemoteDebug 作为新名称.
After Selecting the right Platform select a device (no Emulator) and then click [Save As] Enter RemoteDebug as new name.
现在在设备中选择新的 RemoteDebug 保存的条目...
Now select the new RemoteDebug saved entry in Devices...
... 并单击 [属性]:
... and click [Properties]:
现在输入文件部署目录(此处:\Program Files").确保传输是TCP 连接传输",然后单击 [属性]
Now enter a directory for file deployment (here: "\Program Files"). Ensure Transport is "TCP Connect Transport" and click [Properties]
确保使用固定端口5655,然后输入远程设备的IP地址!
Ensure you use the fixed port 5655 and then enter the IP address of the remote device!
现在使用 [OK] 按钮关闭所有这些选项对话框.
Now close all these option dialogs using the [OK] buttons.
在 VS2008 中,确保平台和设备处于活动状态:
In VS2008 ensure the Platform and the device is active:
现在点击 VS2008 菜单中的工具,然后点击连接到设备"
Now click Tools in VS2008 menu and then on "Connect to device"
再次检查Plaform和Device,还没有点击【连接】:
Again check the Plaform and Device, do not yet click [Connect]:
现在在设备上:在rdb2008中点击【开始】:
Now on device: Click [Start] in rdb2008:
你看到 rdb2008 说监听端口 5655!
You see rdb2008 says listening Port 5655!
现在在VS2008中点击【连接】:
Now click [Connect] in VS2008:
希望您得到上述对话框并继续进行另一项测试.点击[关闭].
Hopefully you got the above dialog and go on with another test. Click [Close].
在VS2008中选择Debug-Attach进行处理:
In VS2008 select Debug-Attach to process:
选择 Transport=SmartDevice 并单击 Califier:[Browse] 并再次选择使用的平台和设备RemoteDebug":
Select Transport=SmartDevice and click Califier:[Browse] and again select the used platform and device "RemoteDebug":
如果成功,您将看到设备上正在运行的进程列表.
If sucessfull, you will see a list of running processes on the device.
这篇关于VS2008远程连接Win Mobile 6.1设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!