How to: Connect to Windows CE Device Without ActiveSync

How to: Connect to Windows CE Device Without ActiveSync

When ActiveSync is not available, Visual Studio does not automatically copy required connectivity files to the device. Use the following steps to install these files on the device, modify the Visual Studio connection configuration, and establish device security.

The first two steps, preparing the device and Visual Studio, have to be done only once. The last set of steps, setting security and establishing the connection, must be repeated any time that you want to connect from a new instance of Visual Studio.

To prepare the device for connecting

  • Copy the following files to the drive:\Windows\ folder on the device by using an available connection. By default, these files are located on the development computer at drive:\Program Files\Common Files\Microsoft Shared\CoreCon\1.0\Target\wce400\<CPU>.
    • Clientshutdown.exe
    • ConmanClient2.exe
    • CMaccept.exe
    • eDbgTL.dll
    • TcpConnectionA.dll
  1. From the command prompt on the device, run conmanclient2.exe.
  2. Determine the IP address of the device.

To prepare Visual Studio for connecting

  1. On the Visual Studio Tools menu, click Options, expand Device Tools, and then click Devices.
  2. Select Windows CE Device, and then click Properties.
  3. To the right of the Transport box, click Configure.
  4. In the Configure TCP/IP Transport dialog box, select Use specific IP address, and then type the device IP address.
  5. Close the dialog boxes.
    If a message box prompts you to reset your device, a soft reset is sufficient.

To set security and establish the connection

  1. At a command prompt on the device, run cMaccept.exe.
  2. Within three minutes, connect to the device.
    If you establish your first connection within three minutes, you can continue to deploy and debug indefinitely as long as you are using the same Visual Studio instance. If you have to connect from another instance of Visual Studio, you must perform these security steps again.

Security Note:

You can eliminate the cMaccept step by disabling security on the device. To do so, set HLKM\System\CoreConOverrideSecurity = 1 DWORD value in the registry. For more information, see How to: Change Device Registry Settings. Disabling security exposes your device to malicious attack and it is not a good idea unless you have provided appropriate safeguards.

   

   

posted on 2010-04-08 16:59  CheneySHI 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/opc521/archive/2010/04/08/1707537.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值