[Msdn] How: connect to a Windows CE device without using ActiveSync

Source: Internet
Author: User
Someone recently asked this question. msdn actually has a ready-made solution:

How to: connect to a Windows CE device without using ActiveSync

When ActiveSync is unavailable, Visual Studio 2005 does not automatically copy the required connection 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.

You only need to perform the first two steps to prepare the device and Visual Studio. The last set of steps is to set up security and establish a connection. Each time you want to connect to a new instance of Visual Studio, the operation must be repeated.

Prepare the device for connection
    1. Use any connection to your device and copy the following files to the \ windows \ folder on the device. By default, these files are stored in \ Program Files \ common files \ microsoft shared \ corecon \ 1.0 \ target \ wce400 \ <CPU> on the development computer.

      • Clientshutdown.exe

      • Conmanclient2.exe

      • Cmaccept.exe

      • Edbgtl. dll

      • Tcpconnectiona. dll

    2. Run conmanclient2.exe in the command prompt of the device.

    3. Determine the IP address of the device.

Prepare Visual Studio for connection
    1. In Visual Studio, click Options, device tools, and devices ".

    2. Select "Windows CE device" and click "properties ".

    3. Click Configure on the right side of the transmission box ".

    4. In the "Configure TCP/IP Transmission" dialog box, select "use specific IP Address", and then type the IP address of the device.

    5. Close the dialog box.

      A message box may appear, prompting you to reset the device. If this message box appears, You can reset it.

Set security and establish connection
    1. Run cmaccept.exe at the command prompt on the device.

    2. Connect to the device within three minutes.

      If you establish a connection for the first time within three minutes, you can continue deployment and debugging indefinitely as long as you use the same Visual Studio instance. If you need to connect from another Visual Studio instance, You need to perform these security steps again.

      Security considerations

      You can remove the cmaccept step by disabling device security. To do this, use the Remote Registry Editor to setHlkm \ System \ coreconoverridesecurity = 1DWORD Value. Disabling security will expose your devices to malicious attacks. We do not recommend this unless you provide appropriate security measures.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.