Configuring the CETK to Communicate with a Target Device

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

For the Windows Embedded CE 6.0 Test Kit (CETK) to communicate successfully with a target device, the port number specified in the CETK application on the development workstation must match the port number specified 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 Embedded CEā€“based device, see Manual Connection of the CETK to a Target Device.

To configure the CETK to communicate with a target device

  1. In the CETK 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 run-time 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 Clientside.exe to the target device, no Wcetk.txt file exists in the release directory. If you want to use Wcetk.txt, you must create a Wcetk.txt file in the release directory. For information about the contents of Wcetk.txt and to view the contents of a sample Wcetk.txt file, see Wcetk.txt and Clientside.exe Settings for the CETK.

    In Wcetk.txt, 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 Wcetk.txt.

    - 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 Wcetk.txt and Clientside.exe Settings for the CETK.

  5. **If a Windows Embedded CE OS is not already running on the target device, download your run-time image to the target device. **Boot **the run-time image on **the target device.

  6. On the target device, run Clientside.exe. If you did not specify a port number in Wcetk.txt 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 CETK window, and then, under Windows Embedded CE Test Server, view the target device.

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

See Also

Other Resources

How to Use the CETK to Test a Driver