VS2008 remotely connect to Win Mobile 6.1 Device

后端 未结 2 804
长情又很酷
长情又很酷 2020-12-17 05:53

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 t

2条回答
  •  独厮守ぢ
    2020-12-17 06:49

    you can use remote deploy and debugging without using an ActiveSync/WMDC connection.

    Manual Setup

    First you have to copy some files onto your device:

    ConmanClient2.exe
    CMAccept.exe
    eDbgTL.dll
    TcpConnectionA.dll
    

    The files can be found here: C:\Program Files\Common Files\Microsoft Shared\CoreCon\1.0\target\wce400\armv4i. Change wce400 to wce500 for your Windows Mobile 6.x devices.

    To allow remote debug connection on device, you have to start ConnmanClient2.exe and then CMAccept.exe on the device.

    Visual Studio setup

    Open menu Tools-Options and navigate to Device Tools-Devices. Select the platform for your windows mobile device and then a Devices entry. Click on [Copy] to create a new entry for your device and name it, for example, RemoteDebug. Select your new RemoteDebug entry and click [Properties]. Normally all devices use ActiveSync settings. We will switch to a TCP/IP setup. In RemoteDebug's Properties dialog select Transport=TCP Connect Transport. Click [Configure] In Configure TCP/IP Transport Dialog select option "Use specific IP address" and enter the IP address of the device.Then close the VS dialogs by clicking the [OK] buttons.

    Now, you can start deployment and debugging from visual studio using the fixed IP address instead of an ActiveSync one.

    Notes

    Be aware that you have to start deployment and/or debugging within some time frame after you started ConnManClient2 and CMAccept on the device.

    Automatic Device side Setup

    I can provide an automatic install of the device side files later the day.

    Download/Upload files on device

    You can copy or download the device side remote debugger files either using a memory card or by providing them (single or as cab) on a web server in your network, that you can browse with the device and download.

    Sources, MSDN

提交回复
热议问题