Share via


Configuring the CETK to Communicate with a Target Device

For the CETK to communicate successfully with a target device, the port number over which the CETK communicates must match the port number for the target device. After you configure the port number settings, you can start the Clientside.exe application on the target device and establish a connection.

For information about supporting the CETK on your Windows CE–based device, see Starting the CETK.

To configure the CETK to communicate with a target device

  1. In the Windows CE .NET Test Kit window, from the Server menu, choose Server Settings, and then choose the Communications tab.

  2. In the Port to use to connect to a target device box, type the number of a port for the CETK to use to communicate with the target device.

    - or -

    Leave the default value in the Port to use to connect to a target device box.

    Port 5555 is the default port over which the CETK communicates. If you build support for the CETK into a Windows CE OS image, the target device is also configured by default to use port 5555.

  3. To close the Server Settings dialog box and save your changes, choose OK.

  4. If you do not plan to specify a command-line parameter when you run Clientside.exe, configure Clientside.exe by editing the Wcetk.txt file in the release directory for your platform.

    Note   If you add support for the CETK to the target device by manually copying the Clientside.exe file to the target device, then no Wcetk.txt file exists in the release directory for the platform. If you want to use a Wcetk.txt file, you must create a Wcetk.txt file in the release directory. For information about the contents of a Wcetk.txt file, and to view the contents of a sample Wcetk.txt file, see Starting the CETK.

    In the Wcetk.txt file, add a PORTNUMBER=XXX line, where XXX is the number of the port that you specified in the Server Settings dialog box. If there is an existing PORTNUMBER line, delete it, and then save the Wcetk.txt file.

    - or -

    Specify settings in the registry for the target device. In the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CETT registry key, create a PortNumber entry with a value that matches the number of the port that you specified in the Server Settings dialog box.

    For more information, see Starting the CETK.

  5. If a Windows CE OS is not already running on the target device, download your Windows CE OS image to the target device, and then boot the Windows CE OS on the target device.

  6. On the target device, run Clientside.exe. If you did not specify a port number in the Wcetk.txt file or in the registry for the target device, run the command Clientside /p XXX, where XXX is the number of the port that you specified in the Server Settings dialog box.

    - or -

    In Platform Builder, from the Target menu, choose Run Programs, select clientside.exe, and then choose Run.

  7. To confirm that you have established communication with the target device, view the Windows CE .NET Test Kit window, and then, under Windows CE .NET Test Server, view the target device.

    It may take a few seconds for communication to be established with the target device.

See Also

How to Use the CETK to Test a Driver | CETK Tool Operation

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.