Symbol MK1200 – Access the Windows CE Desktop

When Motorola introduced the MK500 and MK4000 we developed the StepOne PCK Emulator.  This allowed customers to extend their investment in the software they had developed for the PCK9100 and MK1100/MK1200/MK2000 series of kiosks.

We even went so far as to support the existing configuration files on the MK series of devices that is located in the Applicationsymbolpck directory (display.def and PCK2000.CFG).  Normally this is a simple case of connecting the device with ActiveSync and pulling the files across, but it’s an old device and needs a special serial cable to connect.

It also has a compact flash card, so that is often the easier route.  But, then the problem is breaking out of the application to the Windows CE Desktop so you can actually get to the files.  Fortunately there is a way to break out, by preventing the launch of the kiosk application described in the Symbol MK1200 Product Reference Guide page 6-3.

To prevent launching an application on power-up:

  1. Perform a cold boot: press and hold buttons B and C on the MK1200 until the display goes blank (typically 15 seconds), then release the buttons.
  2. To prevent the MK1200 from entering an application, simultaneously press and hold buttons A and D just after the blue Performing System Initialization (Phase 1) screen appears, and before the message changes to Phase2. Release the buttons.
  3. When the Enter Password prompt appears, press buttons DDBAC and touch OK, or simultaneously press the A and B buttons for Enter. The MK1200 enters Protected Mode and the Windows® CE desktop appears.

To prevent the applications from starting in the first place, look for the file Applicationmkconfig.reg.  It contains the automatic start up configuration (Startup Applications on Symbol terminals) as well as many other configuration settings.  Either edit it, or move it out of the way.
Now you can access the configuration files, copy them to a compact flash card and transfer them to the computer and use them with the StepOne PCK Emulator.

.NET CF Remote Performance Monitoring

The first step for learning about .NET CF Remote Performance Monitoring is Steven Pratschner’s excellent post, Analyzing Device Application Performance with the .Net Compact Framework Remote Performance Monitor, which provide straight forward walk through of using RPM.

Install .NET Compact Framework 2.0 SP 2 on the Workstation.

Download and install .NET Compact Framework 2.0 Service Pack 2 Redistributable to get the Remote Performance Monitor and a bunch of other useful tools and updates.

Prepare the device for Performance Monitoring

Install the components from the workstation to the device and configure the device to enable Performance Monitoring.

  1. Install .NET CF 2 SP2 on the device.
    Copy the .NET CF 2 SP2 CAB file to the device.  The file can be found at C:Program FilesMicrosoft.NETSDKCompactFrameworkv2.0WindowsCEwce500armv4i (change your OS version and processor if needed). Then choose NETCFv2.wce5.armv4i.cab for CE or NETCFv2.wm.armv4i.cab for the WM version.  Copy the CAB file to the device with ActiveSync and run to install.
  2. Install Device Side Files
    There are two device files netcfrtl.dll and netcflaunch.exe that need to be copied to the Windows directory on the device. They can also be found in the directory above.
  3. Configure the registry to enable performance monitoring on the Device
    Set the registry to allow Performance Monitoring on the device.  This is detailed in David Klines post on Enabling Performance Counters.[HKEY_LOCAL_MACHINESOFTWAREMicrosoft.NETCompactFrameworkPerfMonitor]
    "Counters"=dword:00000001

To verify that everything is configured correctly fun the program Windowsnetcflaunch.exe.  If you get the following display, everything is working.

Now to better understand all of the various settings and attributes, take a look at David Kline’s detailed walk through of RPM, Monitoring Application Performance on the .NET Compact Framework.