Search by Tags

USB Function Driver (WinCE)


Compare with Revision

Subscribe for this article updates

Change Functionality of the Function Driver

It is possible to switch the functionality of the USB Function driver on Colibri and Apalis modules. There are three possibilities in the Toradex default image:

  • Serial Class (Default)
  • Mass Storage Class

To change this, you have to set one of the following registry values:

DefaultClientDriver="Serial_Class"         ; This is the default setting -> Used e.g. for ActiveSync
DefaultClientDriver="Mass_Storage_Class"   ; Module behaves like USB mass storage device
DefaultClientDriver="RNDIS"                ; Module behaves like a USB network adapter

Select storage location for Mass Storage Class

Windows CE 6.0

When Mass Storage Class is selected, the storage location is DSK1: by default. This is, for example, an external USB memory stick. If you would like to change this to the internal FlashDisk, you have to change the following registry value. The FlashDisk will disappear from the module root folder because it's now dedicated to the USB mass storage function.

DeviceName="DSK0:"         ; DSK0: is the internal FlashDisk. (DSK1: is the default value)

Windows Embedded Compact 7 and 2013

In the DeviceName parameter you should set the store name of the mass-storage device you want to expose via the USB interface. You can retrieve suitable names by checking under HKEY_LOCAL_MACHINE\System\StorageManager\Profiles. Each profile has a Name entry containing its Store Name. For example to expose SD card you can configure:

DeviceName="SD Memory Card"        

On i.MX and Tegra-based devices you can't expose the internal flash via usb-client interface because it's currently used to store the registry and exposing it via mass-storage will crash the OS.

It is possible to generate a Ram Drive (Ramdisk) to expose as the mass storage.